diff --git a/flyteidl/clients/go/admin/mocks/AgentServiceClient.go b/flyteidl/clients/go/admin/mocks/AgentServiceClient.go index 82434852d01..0fcc10b77c9 100644 --- a/flyteidl/clients/go/admin/mocks/AgentServiceClient.go +++ b/flyteidl/clients/go/admin/mocks/AgentServiceClient.go @@ -5,11 +5,11 @@ package mocks import ( context "context" + admin "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin" + grpc "google.golang.org/grpc" mock "github.com/stretchr/testify/mock" - - service "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service" ) // AgentServiceClient is an autogenerated mock type for the AgentServiceClient type @@ -21,11 +21,11 @@ type AgentServiceClient_CreateTask struct { *mock.Call } -func (_m AgentServiceClient_CreateTask) Return(_a0 *service.TaskCreateResponse, _a1 error) *AgentServiceClient_CreateTask { +func (_m AgentServiceClient_CreateTask) Return(_a0 *admin.CreateTaskResponse, _a1 error) *AgentServiceClient_CreateTask { return &AgentServiceClient_CreateTask{Call: _m.Call.Return(_a0, _a1)} } -func (_m *AgentServiceClient) OnCreateTask(ctx context.Context, in *service.TaskCreateRequest, opts ...grpc.CallOption) *AgentServiceClient_CreateTask { +func (_m *AgentServiceClient) OnCreateTask(ctx context.Context, in *admin.CreateTaskRequest, opts ...grpc.CallOption) *AgentServiceClient_CreateTask { c_call := _m.On("CreateTask", ctx, in, opts) return &AgentServiceClient_CreateTask{Call: c_call} } @@ -36,7 +36,7 @@ func (_m *AgentServiceClient) OnCreateTaskMatch(matchers ...interface{}) *AgentS } // CreateTask provides a mock function with given fields: ctx, in, opts -func (_m *AgentServiceClient) CreateTask(ctx context.Context, in *service.TaskCreateRequest, opts ...grpc.CallOption) (*service.TaskCreateResponse, error) { +func (_m *AgentServiceClient) 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] @@ -46,17 +46,17 @@ func (_m *AgentServiceClient) CreateTask(ctx context.Context, in *service.TaskCr _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *service.TaskCreateResponse - if rf, ok := ret.Get(0).(func(context.Context, *service.TaskCreateRequest, ...grpc.CallOption) *service.TaskCreateResponse); ok { + 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).(*service.TaskCreateResponse) + r0 = ret.Get(0).(*admin.CreateTaskResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *service.TaskCreateRequest, ...grpc.CallOption) error); ok { + 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) @@ -69,11 +69,11 @@ type AgentServiceClient_DeleteTask struct { *mock.Call } -func (_m AgentServiceClient_DeleteTask) Return(_a0 *service.TaskDeleteResponse, _a1 error) *AgentServiceClient_DeleteTask { +func (_m AgentServiceClient_DeleteTask) Return(_a0 *admin.DeleteTaskResponse, _a1 error) *AgentServiceClient_DeleteTask { return &AgentServiceClient_DeleteTask{Call: _m.Call.Return(_a0, _a1)} } -func (_m *AgentServiceClient) OnDeleteTask(ctx context.Context, in *service.TaskDeleteRequest, opts ...grpc.CallOption) *AgentServiceClient_DeleteTask { +func (_m *AgentServiceClient) OnDeleteTask(ctx context.Context, in *admin.DeleteTaskRequest, opts ...grpc.CallOption) *AgentServiceClient_DeleteTask { c_call := _m.On("DeleteTask", ctx, in, opts) return &AgentServiceClient_DeleteTask{Call: c_call} } @@ -84,7 +84,7 @@ func (_m *AgentServiceClient) OnDeleteTaskMatch(matchers ...interface{}) *AgentS } // DeleteTask provides a mock function with given fields: ctx, in, opts -func (_m *AgentServiceClient) DeleteTask(ctx context.Context, in *service.TaskDeleteRequest, opts ...grpc.CallOption) (*service.TaskDeleteResponse, error) { +func (_m *AgentServiceClient) 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] @@ -94,17 +94,17 @@ func (_m *AgentServiceClient) DeleteTask(ctx context.Context, in *service.TaskDe _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *service.TaskDeleteResponse - if rf, ok := ret.Get(0).(func(context.Context, *service.TaskDeleteRequest, ...grpc.CallOption) *service.TaskDeleteResponse); ok { + 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).(*service.TaskDeleteResponse) + r0 = ret.Get(0).(*admin.DeleteTaskResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *service.TaskDeleteRequest, ...grpc.CallOption) error); ok { + 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) @@ -117,11 +117,11 @@ type AgentServiceClient_GetTask struct { *mock.Call } -func (_m AgentServiceClient_GetTask) Return(_a0 *service.TaskGetResponse, _a1 error) *AgentServiceClient_GetTask { +func (_m AgentServiceClient_GetTask) Return(_a0 *admin.GetTaskResponse, _a1 error) *AgentServiceClient_GetTask { return &AgentServiceClient_GetTask{Call: _m.Call.Return(_a0, _a1)} } -func (_m *AgentServiceClient) OnGetTask(ctx context.Context, in *service.TaskGetRequest, opts ...grpc.CallOption) *AgentServiceClient_GetTask { +func (_m *AgentServiceClient) OnGetTask(ctx context.Context, in *admin.GetTaskRequest, opts ...grpc.CallOption) *AgentServiceClient_GetTask { c_call := _m.On("GetTask", ctx, in, opts) return &AgentServiceClient_GetTask{Call: c_call} } @@ -132,7 +132,7 @@ func (_m *AgentServiceClient) OnGetTaskMatch(matchers ...interface{}) *AgentServ } // GetTask provides a mock function with given fields: ctx, in, opts -func (_m *AgentServiceClient) GetTask(ctx context.Context, in *service.TaskGetRequest, opts ...grpc.CallOption) (*service.TaskGetResponse, error) { +func (_m *AgentServiceClient) 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] @@ -142,17 +142,17 @@ func (_m *AgentServiceClient) GetTask(ctx context.Context, in *service.TaskGetRe _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *service.TaskGetResponse - if rf, ok := ret.Get(0).(func(context.Context, *service.TaskGetRequest, ...grpc.CallOption) *service.TaskGetResponse); ok { + 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).(*service.TaskGetResponse) + r0 = ret.Get(0).(*admin.GetTaskResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *service.TaskGetRequest, ...grpc.CallOption) error); ok { + 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) diff --git a/flyteidl/clients/go/admin/mocks/AgentServiceServer.go b/flyteidl/clients/go/admin/mocks/AgentServiceServer.go index 0c593cfe8e7..df417a132ce 100644 --- a/flyteidl/clients/go/admin/mocks/AgentServiceServer.go +++ b/flyteidl/clients/go/admin/mocks/AgentServiceServer.go @@ -5,7 +5,8 @@ package mocks import ( context "context" - service "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service" + admin "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin" + mock "github.com/stretchr/testify/mock" ) @@ -18,11 +19,11 @@ type AgentServiceServer_CreateTask struct { *mock.Call } -func (_m AgentServiceServer_CreateTask) Return(_a0 *service.TaskCreateResponse, _a1 error) *AgentServiceServer_CreateTask { +func (_m AgentServiceServer_CreateTask) Return(_a0 *admin.CreateTaskResponse, _a1 error) *AgentServiceServer_CreateTask { return &AgentServiceServer_CreateTask{Call: _m.Call.Return(_a0, _a1)} } -func (_m *AgentServiceServer) OnCreateTask(_a0 context.Context, _a1 *service.TaskCreateRequest) *AgentServiceServer_CreateTask { +func (_m *AgentServiceServer) OnCreateTask(_a0 context.Context, _a1 *admin.CreateTaskRequest) *AgentServiceServer_CreateTask { c_call := _m.On("CreateTask", _a0, _a1) return &AgentServiceServer_CreateTask{Call: c_call} } @@ -33,20 +34,20 @@ func (_m *AgentServiceServer) OnCreateTaskMatch(matchers ...interface{}) *AgentS } // CreateTask provides a mock function with given fields: _a0, _a1 -func (_m *AgentServiceServer) CreateTask(_a0 context.Context, _a1 *service.TaskCreateRequest) (*service.TaskCreateResponse, error) { +func (_m *AgentServiceServer) CreateTask(_a0 context.Context, _a1 *admin.CreateTaskRequest) (*admin.CreateTaskResponse, error) { ret := _m.Called(_a0, _a1) - var r0 *service.TaskCreateResponse - if rf, ok := ret.Get(0).(func(context.Context, *service.TaskCreateRequest) *service.TaskCreateResponse); ok { + var r0 *admin.CreateTaskResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.CreateTaskRequest) *admin.CreateTaskResponse); ok { r0 = rf(_a0, _a1) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*service.TaskCreateResponse) + r0 = ret.Get(0).(*admin.CreateTaskResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *service.TaskCreateRequest) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *admin.CreateTaskRequest) error); ok { r1 = rf(_a0, _a1) } else { r1 = ret.Error(1) @@ -59,11 +60,11 @@ type AgentServiceServer_DeleteTask struct { *mock.Call } -func (_m AgentServiceServer_DeleteTask) Return(_a0 *service.TaskDeleteResponse, _a1 error) *AgentServiceServer_DeleteTask { +func (_m AgentServiceServer_DeleteTask) Return(_a0 *admin.DeleteTaskResponse, _a1 error) *AgentServiceServer_DeleteTask { return &AgentServiceServer_DeleteTask{Call: _m.Call.Return(_a0, _a1)} } -func (_m *AgentServiceServer) OnDeleteTask(_a0 context.Context, _a1 *service.TaskDeleteRequest) *AgentServiceServer_DeleteTask { +func (_m *AgentServiceServer) OnDeleteTask(_a0 context.Context, _a1 *admin.DeleteTaskRequest) *AgentServiceServer_DeleteTask { c_call := _m.On("DeleteTask", _a0, _a1) return &AgentServiceServer_DeleteTask{Call: c_call} } @@ -74,20 +75,20 @@ func (_m *AgentServiceServer) OnDeleteTaskMatch(matchers ...interface{}) *AgentS } // DeleteTask provides a mock function with given fields: _a0, _a1 -func (_m *AgentServiceServer) DeleteTask(_a0 context.Context, _a1 *service.TaskDeleteRequest) (*service.TaskDeleteResponse, error) { +func (_m *AgentServiceServer) DeleteTask(_a0 context.Context, _a1 *admin.DeleteTaskRequest) (*admin.DeleteTaskResponse, error) { ret := _m.Called(_a0, _a1) - var r0 *service.TaskDeleteResponse - if rf, ok := ret.Get(0).(func(context.Context, *service.TaskDeleteRequest) *service.TaskDeleteResponse); ok { + var r0 *admin.DeleteTaskResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.DeleteTaskRequest) *admin.DeleteTaskResponse); ok { r0 = rf(_a0, _a1) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*service.TaskDeleteResponse) + r0 = ret.Get(0).(*admin.DeleteTaskResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *service.TaskDeleteRequest) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *admin.DeleteTaskRequest) error); ok { r1 = rf(_a0, _a1) } else { r1 = ret.Error(1) @@ -100,11 +101,11 @@ type AgentServiceServer_GetTask struct { *mock.Call } -func (_m AgentServiceServer_GetTask) Return(_a0 *service.TaskGetResponse, _a1 error) *AgentServiceServer_GetTask { +func (_m AgentServiceServer_GetTask) Return(_a0 *admin.GetTaskResponse, _a1 error) *AgentServiceServer_GetTask { return &AgentServiceServer_GetTask{Call: _m.Call.Return(_a0, _a1)} } -func (_m *AgentServiceServer) OnGetTask(_a0 context.Context, _a1 *service.TaskGetRequest) *AgentServiceServer_GetTask { +func (_m *AgentServiceServer) OnGetTask(_a0 context.Context, _a1 *admin.GetTaskRequest) *AgentServiceServer_GetTask { c_call := _m.On("GetTask", _a0, _a1) return &AgentServiceServer_GetTask{Call: c_call} } @@ -115,20 +116,20 @@ func (_m *AgentServiceServer) OnGetTaskMatch(matchers ...interface{}) *AgentServ } // GetTask provides a mock function with given fields: _a0, _a1 -func (_m *AgentServiceServer) GetTask(_a0 context.Context, _a1 *service.TaskGetRequest) (*service.TaskGetResponse, error) { +func (_m *AgentServiceServer) GetTask(_a0 context.Context, _a1 *admin.GetTaskRequest) (*admin.GetTaskResponse, error) { ret := _m.Called(_a0, _a1) - var r0 *service.TaskGetResponse - if rf, ok := ret.Get(0).(func(context.Context, *service.TaskGetRequest) *service.TaskGetResponse); ok { + var r0 *admin.GetTaskResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.GetTaskRequest) *admin.GetTaskResponse); ok { r0 = rf(_a0, _a1) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*service.TaskGetResponse) + r0 = ret.Get(0).(*admin.GetTaskResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *service.TaskGetRequest) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *admin.GetTaskRequest) error); ok { r1 = rf(_a0, _a1) } else { r1 = ret.Error(1) diff --git a/flyteidl/clients/go/admin/mocks/AsyncAgentServiceClient.go b/flyteidl/clients/go/admin/mocks/AsyncAgentServiceClient.go new file mode 100644 index 00000000000..84a804843f8 --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/AsyncAgentServiceClient.go @@ -0,0 +1,162 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + admin "github.com/flyteorg/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 +} diff --git a/flyteidl/clients/go/admin/mocks/AsyncAgentServiceServer.go b/flyteidl/clients/go/admin/mocks/AsyncAgentServiceServer.go new file mode 100644 index 00000000000..d24c63ea373 --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/AsyncAgentServiceServer.go @@ -0,0 +1,139 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + admin "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin" + + mock "github.com/stretchr/testify/mock" +) + +// AsyncAgentServiceServer is an autogenerated mock type for the AsyncAgentServiceServer type +type AsyncAgentServiceServer struct { + mock.Mock +} + +type AsyncAgentServiceServer_CreateTask struct { + *mock.Call +} + +func (_m AsyncAgentServiceServer_CreateTask) Return(_a0 *admin.CreateTaskResponse, _a1 error) *AsyncAgentServiceServer_CreateTask { + return &AsyncAgentServiceServer_CreateTask{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AsyncAgentServiceServer) OnCreateTask(_a0 context.Context, _a1 *admin.CreateTaskRequest) *AsyncAgentServiceServer_CreateTask { + c_call := _m.On("CreateTask", _a0, _a1) + return &AsyncAgentServiceServer_CreateTask{Call: c_call} +} + +func (_m *AsyncAgentServiceServer) OnCreateTaskMatch(matchers ...interface{}) *AsyncAgentServiceServer_CreateTask { + c_call := _m.On("CreateTask", matchers...) + return &AsyncAgentServiceServer_CreateTask{Call: c_call} +} + +// CreateTask provides a mock function with given fields: _a0, _a1 +func (_m *AsyncAgentServiceServer) CreateTask(_a0 context.Context, _a1 *admin.CreateTaskRequest) (*admin.CreateTaskResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.CreateTaskResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.CreateTaskRequest) *admin.CreateTaskResponse); ok { + r0 = rf(_a0, _a1) + } 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) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AsyncAgentServiceServer_DeleteTask struct { + *mock.Call +} + +func (_m AsyncAgentServiceServer_DeleteTask) Return(_a0 *admin.DeleteTaskResponse, _a1 error) *AsyncAgentServiceServer_DeleteTask { + return &AsyncAgentServiceServer_DeleteTask{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AsyncAgentServiceServer) OnDeleteTask(_a0 context.Context, _a1 *admin.DeleteTaskRequest) *AsyncAgentServiceServer_DeleteTask { + c_call := _m.On("DeleteTask", _a0, _a1) + return &AsyncAgentServiceServer_DeleteTask{Call: c_call} +} + +func (_m *AsyncAgentServiceServer) OnDeleteTaskMatch(matchers ...interface{}) *AsyncAgentServiceServer_DeleteTask { + c_call := _m.On("DeleteTask", matchers...) + return &AsyncAgentServiceServer_DeleteTask{Call: c_call} +} + +// DeleteTask provides a mock function with given fields: _a0, _a1 +func (_m *AsyncAgentServiceServer) DeleteTask(_a0 context.Context, _a1 *admin.DeleteTaskRequest) (*admin.DeleteTaskResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.DeleteTaskResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.DeleteTaskRequest) *admin.DeleteTaskResponse); ok { + r0 = rf(_a0, _a1) + } 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) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AsyncAgentServiceServer_GetTask struct { + *mock.Call +} + +func (_m AsyncAgentServiceServer_GetTask) Return(_a0 *admin.GetTaskResponse, _a1 error) *AsyncAgentServiceServer_GetTask { + return &AsyncAgentServiceServer_GetTask{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AsyncAgentServiceServer) OnGetTask(_a0 context.Context, _a1 *admin.GetTaskRequest) *AsyncAgentServiceServer_GetTask { + c_call := _m.On("GetTask", _a0, _a1) + return &AsyncAgentServiceServer_GetTask{Call: c_call} +} + +func (_m *AsyncAgentServiceServer) OnGetTaskMatch(matchers ...interface{}) *AsyncAgentServiceServer_GetTask { + c_call := _m.On("GetTask", matchers...) + return &AsyncAgentServiceServer_GetTask{Call: c_call} +} + +// GetTask provides a mock function with given fields: _a0, _a1 +func (_m *AsyncAgentServiceServer) GetTask(_a0 context.Context, _a1 *admin.GetTaskRequest) (*admin.GetTaskResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.GetTaskResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.GetTaskRequest) *admin.GetTaskResponse); ok { + r0 = rf(_a0, _a1) + } 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) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/agent.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/agent.grpc.pb.cc new file mode 100644 index 00000000000..cb40aaf5c9d --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/agent.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/agent.proto + +#include "flyteidl/admin/agent.pb.h" +#include "flyteidl/admin/agent.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/agent.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/agent.grpc.pb.h new file mode 100644 index 00000000000..e12178767ab --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/agent.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/agent.proto +#ifndef GRPC_flyteidl_2fadmin_2fagent_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2fagent_2eproto__INCLUDED + +#include "flyteidl/admin/agent.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2fagent_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/agent.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/agent.pb.cc new file mode 100644 index 00000000000..a7aa79d07ea --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/agent.pb.cc @@ -0,0 +1,2614 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/agent.proto + +#include "flyteidl/admin/agent.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fagent_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Resource_flyteidl_2fadmin_2fagent_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto; +namespace flyteidl { +namespace admin { +class CreateTaskRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _CreateTaskRequest_default_instance_; +class CreateTaskResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _CreateTaskResponse_default_instance_; +class GetTaskRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GetTaskRequest_default_instance_; +class GetTaskResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GetTaskResponse_default_instance_; +class ResourceDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Resource_default_instance_; +class DeleteTaskRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _DeleteTaskRequest_default_instance_; +class DeleteTaskResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _DeleteTaskResponse_default_instance_; +} // namespace admin +} // namespace flyteidl +static void InitDefaultsCreateTaskRequest_flyteidl_2fadmin_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_CreateTaskRequest_default_instance_; + new (ptr) ::flyteidl::admin::CreateTaskRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::CreateTaskRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_CreateTaskRequest_flyteidl_2fadmin_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsCreateTaskRequest_flyteidl_2fadmin_2fagent_2eproto}, { + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, + &scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto.base,}}; + +static void InitDefaultsCreateTaskResponse_flyteidl_2fadmin_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_CreateTaskResponse_default_instance_; + new (ptr) ::flyteidl::admin::CreateTaskResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::CreateTaskResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_CreateTaskResponse_flyteidl_2fadmin_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCreateTaskResponse_flyteidl_2fadmin_2fagent_2eproto}, {}}; + +static void InitDefaultsGetTaskRequest_flyteidl_2fadmin_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_GetTaskRequest_default_instance_; + new (ptr) ::flyteidl::admin::GetTaskRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::GetTaskRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_GetTaskRequest_flyteidl_2fadmin_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetTaskRequest_flyteidl_2fadmin_2fagent_2eproto}, {}}; + +static void InitDefaultsGetTaskResponse_flyteidl_2fadmin_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_GetTaskResponse_default_instance_; + new (ptr) ::flyteidl::admin::GetTaskResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::GetTaskResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_GetTaskResponse_flyteidl_2fadmin_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetTaskResponse_flyteidl_2fadmin_2fagent_2eproto}, { + &scc_info_Resource_flyteidl_2fadmin_2fagent_2eproto.base,}}; + +static void InitDefaultsResource_flyteidl_2fadmin_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_Resource_default_instance_; + new (ptr) ::flyteidl::admin::Resource(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Resource::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_Resource_flyteidl_2fadmin_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsResource_flyteidl_2fadmin_2fagent_2eproto}, { + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base,}}; + +static void InitDefaultsDeleteTaskRequest_flyteidl_2fadmin_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_DeleteTaskRequest_default_instance_; + new (ptr) ::flyteidl::admin::DeleteTaskRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::DeleteTaskRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_DeleteTaskRequest_flyteidl_2fadmin_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDeleteTaskRequest_flyteidl_2fadmin_2fagent_2eproto}, {}}; + +static void InitDefaultsDeleteTaskResponse_flyteidl_2fadmin_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_DeleteTaskResponse_default_instance_; + new (ptr) ::flyteidl::admin::DeleteTaskResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::DeleteTaskResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_DeleteTaskResponse_flyteidl_2fadmin_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDeleteTaskResponse_flyteidl_2fadmin_2fagent_2eproto}, {}}; + +void InitDefaults_flyteidl_2fadmin_2fagent_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_CreateTaskRequest_flyteidl_2fadmin_2fagent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CreateTaskResponse_flyteidl_2fadmin_2fagent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetTaskRequest_flyteidl_2fadmin_2fagent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetTaskResponse_flyteidl_2fadmin_2fagent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Resource_flyteidl_2fadmin_2fagent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_DeleteTaskRequest_flyteidl_2fadmin_2fagent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_DeleteTaskResponse_flyteidl_2fadmin_2fagent_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[7]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fadmin_2fagent_2eproto[1]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fagent_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fagent_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CreateTaskRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CreateTaskRequest, inputs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CreateTaskRequest, template__), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CreateTaskRequest, output_prefix_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CreateTaskResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CreateTaskResponse, resource_meta_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskRequest, task_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskRequest, resource_meta_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskResponse, resource_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Resource, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Resource, state_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Resource, outputs_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DeleteTaskRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DeleteTaskRequest, task_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DeleteTaskRequest, resource_meta_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DeleteTaskResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::CreateTaskRequest)}, + { 8, -1, sizeof(::flyteidl::admin::CreateTaskResponse)}, + { 14, -1, sizeof(::flyteidl::admin::GetTaskRequest)}, + { 21, -1, sizeof(::flyteidl::admin::GetTaskResponse)}, + { 27, -1, sizeof(::flyteidl::admin::Resource)}, + { 34, -1, sizeof(::flyteidl::admin::DeleteTaskRequest)}, + { 41, -1, sizeof(::flyteidl::admin::DeleteTaskResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_CreateTaskRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_CreateTaskResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_GetTaskRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_GetTaskResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Resource_default_instance_), + reinterpret_cast(&::flyteidl::admin::_DeleteTaskRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_DeleteTaskResponse_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto = { + {}, AddDescriptors_flyteidl_2fadmin_2fagent_2eproto, "flyteidl/admin/agent.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fadmin_2fagent_2eproto::offsets, + file_level_metadata_flyteidl_2fadmin_2fagent_2eproto, 7, file_level_enum_descriptors_flyteidl_2fadmin_2fagent_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fagent_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fadmin_2fagent_2eproto[] = + "\n\032flyteidl/admin/agent.proto\022\016flyteidl.a" + "dmin\032\034flyteidl/core/literals.proto\032\031flyt" + "eidl/core/tasks.proto\032\035flyteidl/core/int" + "erface.proto\"\204\001\n\021CreateTaskRequest\022)\n\006in" + "puts\030\001 \001(\0132\031.flyteidl.core.LiteralMap\022-\n" + "\010template\030\002 \001(\0132\033.flyteidl.core.TaskTemp" + "late\022\025\n\routput_prefix\030\003 \001(\t\"+\n\022CreateTas" + "kResponse\022\025\n\rresource_meta\030\001 \001(\014\":\n\016GetT" + "askRequest\022\021\n\ttask_type\030\001 \001(\t\022\025\n\rresourc" + "e_meta\030\002 \001(\014\"=\n\017GetTaskResponse\022*\n\010resou" + "rce\030\001 \001(\0132\030.flyteidl.admin.Resource\"\\\n\010R" + "esource\022$\n\005state\030\001 \001(\0162\025.flyteidl.admin." + "State\022*\n\007outputs\030\002 \001(\0132\031.flyteidl.core.L" + "iteralMap\"=\n\021DeleteTaskRequest\022\021\n\ttask_t" + "ype\030\001 \001(\t\022\025\n\rresource_meta\030\002 \001(\014\"\024\n\022Dele" + "teTaskResponse*^\n\005State\022\025\n\021RETRYABLE_FAI" + "LURE\020\000\022\025\n\021PERMANENT_FAILURE\020\001\022\013\n\007PENDING" + "\020\002\022\013\n\007RUNNING\020\003\022\r\n\tSUCCEEDED\020\004B7Z5github" + ".com/flyteorg/flyteidl/gen/pb-go/flyteid" + "l/adminb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fagent_2eproto = { + false, InitDefaults_flyteidl_2fadmin_2fagent_2eproto, + descriptor_table_protodef_flyteidl_2fadmin_2fagent_2eproto, + "flyteidl/admin/agent.proto", &assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto, 775, +}; + +void AddDescriptors_flyteidl_2fadmin_2fagent_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[3] = + { + ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, + ::AddDescriptors_flyteidl_2fcore_2ftasks_2eproto, + ::AddDescriptors_flyteidl_2fcore_2finterface_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fagent_2eproto, deps, 3); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fadmin_2fagent_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fagent_2eproto(); return true; }(); +namespace flyteidl { +namespace admin { +const ::google::protobuf::EnumDescriptor* State_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); + return file_level_enum_descriptors_flyteidl_2fadmin_2fagent_2eproto[0]; +} +bool State_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + + +// =================================================================== + +void CreateTaskRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_CreateTaskRequest_default_instance_._instance.get_mutable()->inputs_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); + ::flyteidl::admin::_CreateTaskRequest_default_instance_._instance.get_mutable()->template__ = const_cast< ::flyteidl::core::TaskTemplate*>( + ::flyteidl::core::TaskTemplate::internal_default_instance()); +} +class CreateTaskRequest::HasBitSetters { + public: + static const ::flyteidl::core::LiteralMap& inputs(const CreateTaskRequest* msg); + static const ::flyteidl::core::TaskTemplate& template_(const CreateTaskRequest* msg); +}; + +const ::flyteidl::core::LiteralMap& +CreateTaskRequest::HasBitSetters::inputs(const CreateTaskRequest* msg) { + return *msg->inputs_; +} +const ::flyteidl::core::TaskTemplate& +CreateTaskRequest::HasBitSetters::template_(const CreateTaskRequest* msg) { + return *msg->template__; +} +void CreateTaskRequest::clear_inputs() { + if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { + delete inputs_; + } + inputs_ = nullptr; +} +void CreateTaskRequest::clear_template_() { + if (GetArenaNoVirtual() == nullptr && template__ != nullptr) { + delete template__; + } + template__ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CreateTaskRequest::kInputsFieldNumber; +const int CreateTaskRequest::kTemplateFieldNumber; +const int CreateTaskRequest::kOutputPrefixFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CreateTaskRequest::CreateTaskRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.CreateTaskRequest) +} +CreateTaskRequest::CreateTaskRequest(const CreateTaskRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + output_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.output_prefix().size() > 0) { + output_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_prefix_); + } + if (from.has_inputs()) { + inputs_ = new ::flyteidl::core::LiteralMap(*from.inputs_); + } else { + inputs_ = nullptr; + } + if (from.has_template_()) { + template__ = new ::flyteidl::core::TaskTemplate(*from.template__); + } else { + template__ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.CreateTaskRequest) +} + +void CreateTaskRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_CreateTaskRequest_flyteidl_2fadmin_2fagent_2eproto.base); + output_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&inputs_, 0, static_cast( + reinterpret_cast(&template__) - + reinterpret_cast(&inputs_)) + sizeof(template__)); +} + +CreateTaskRequest::~CreateTaskRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.CreateTaskRequest) + SharedDtor(); +} + +void CreateTaskRequest::SharedDtor() { + output_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete inputs_; + if (this != internal_default_instance()) delete template__; +} + +void CreateTaskRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CreateTaskRequest& CreateTaskRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CreateTaskRequest_flyteidl_2fadmin_2fagent_2eproto.base); + return *internal_default_instance(); +} + + +void CreateTaskRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.CreateTaskRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + output_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { + delete inputs_; + } + inputs_ = nullptr; + if (GetArenaNoVirtual() == nullptr && template__ != nullptr) { + delete template__; + } + template__ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CreateTaskRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.LiteralMap inputs = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; + object = msg->mutable_inputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.TaskTemplate template = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::TaskTemplate::_InternalParse; + object = msg->mutable_template_(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string output_prefix = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.CreateTaskRequest.output_prefix"); + object = msg->mutable_output_prefix(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool CreateTaskRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.CreateTaskRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.LiteralMap inputs = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_inputs())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.TaskTemplate template = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_template_())); + } else { + goto handle_unusual; + } + break; + } + + // string output_prefix = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_output_prefix())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_prefix().data(), static_cast(this->output_prefix().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.CreateTaskRequest.output_prefix")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.CreateTaskRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.CreateTaskRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CreateTaskRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.CreateTaskRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.LiteralMap inputs = 1; + if (this->has_inputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::inputs(this), output); + } + + // .flyteidl.core.TaskTemplate template = 2; + if (this->has_template_()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::template_(this), output); + } + + // string output_prefix = 3; + if (this->output_prefix().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_prefix().data(), static_cast(this->output_prefix().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.CreateTaskRequest.output_prefix"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->output_prefix(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.CreateTaskRequest) +} + +::google::protobuf::uint8* CreateTaskRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.CreateTaskRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.LiteralMap inputs = 1; + if (this->has_inputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::inputs(this), target); + } + + // .flyteidl.core.TaskTemplate template = 2; + if (this->has_template_()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::template_(this), target); + } + + // string output_prefix = 3; + if (this->output_prefix().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_prefix().data(), static_cast(this->output_prefix().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.CreateTaskRequest.output_prefix"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->output_prefix(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.CreateTaskRequest) + return target; +} + +size_t CreateTaskRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.CreateTaskRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string output_prefix = 3; + if (this->output_prefix().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->output_prefix()); + } + + // .flyteidl.core.LiteralMap inputs = 1; + if (this->has_inputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *inputs_); + } + + // .flyteidl.core.TaskTemplate template = 2; + if (this->has_template_()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *template__); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CreateTaskRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.CreateTaskRequest) + GOOGLE_DCHECK_NE(&from, this); + const CreateTaskRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.CreateTaskRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.CreateTaskRequest) + MergeFrom(*source); + } +} + +void CreateTaskRequest::MergeFrom(const CreateTaskRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.CreateTaskRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.output_prefix().size() > 0) { + + output_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_prefix_); + } + if (from.has_inputs()) { + mutable_inputs()->::flyteidl::core::LiteralMap::MergeFrom(from.inputs()); + } + if (from.has_template_()) { + mutable_template_()->::flyteidl::core::TaskTemplate::MergeFrom(from.template_()); + } +} + +void CreateTaskRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.CreateTaskRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateTaskRequest::CopyFrom(const CreateTaskRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.CreateTaskRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateTaskRequest::IsInitialized() const { + return true; +} + +void CreateTaskRequest::Swap(CreateTaskRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void CreateTaskRequest::InternalSwap(CreateTaskRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + output_prefix_.Swap(&other->output_prefix_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(inputs_, other->inputs_); + swap(template__, other->template__); +} + +::google::protobuf::Metadata CreateTaskRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void CreateTaskResponse::InitAsDefaultInstance() { +} +class CreateTaskResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CreateTaskResponse::kResourceMetaFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CreateTaskResponse::CreateTaskResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.CreateTaskResponse) +} +CreateTaskResponse::CreateTaskResponse(const CreateTaskResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.resource_meta().size() > 0) { + resource_meta_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.resource_meta_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.CreateTaskResponse) +} + +void CreateTaskResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_CreateTaskResponse_flyteidl_2fadmin_2fagent_2eproto.base); + resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +CreateTaskResponse::~CreateTaskResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.CreateTaskResponse) + SharedDtor(); +} + +void CreateTaskResponse::SharedDtor() { + resource_meta_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void CreateTaskResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CreateTaskResponse& CreateTaskResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CreateTaskResponse_flyteidl_2fadmin_2fagent_2eproto.base); + return *internal_default_instance(); +} + + +void CreateTaskResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.CreateTaskResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + resource_meta_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CreateTaskResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // bytes resource_meta = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + object = msg->mutable_resource_meta(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParser; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool CreateTaskResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.CreateTaskResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // bytes resource_meta = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_resource_meta())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.CreateTaskResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.CreateTaskResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CreateTaskResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.CreateTaskResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bytes resource_meta = 1; + if (this->resource_meta().size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->resource_meta(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.CreateTaskResponse) +} + +::google::protobuf::uint8* CreateTaskResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.CreateTaskResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bytes resource_meta = 1; + if (this->resource_meta().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->resource_meta(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.CreateTaskResponse) + return target; +} + +size_t CreateTaskResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.CreateTaskResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // bytes resource_meta = 1; + if (this->resource_meta().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->resource_meta()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CreateTaskResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.CreateTaskResponse) + GOOGLE_DCHECK_NE(&from, this); + const CreateTaskResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.CreateTaskResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.CreateTaskResponse) + MergeFrom(*source); + } +} + +void CreateTaskResponse::MergeFrom(const CreateTaskResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.CreateTaskResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.resource_meta().size() > 0) { + + resource_meta_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.resource_meta_); + } +} + +void CreateTaskResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.CreateTaskResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateTaskResponse::CopyFrom(const CreateTaskResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.CreateTaskResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateTaskResponse::IsInitialized() const { + return true; +} + +void CreateTaskResponse::Swap(CreateTaskResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void CreateTaskResponse::InternalSwap(CreateTaskResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + resource_meta_.Swap(&other->resource_meta_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata CreateTaskResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void GetTaskRequest::InitAsDefaultInstance() { +} +class GetTaskRequest::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetTaskRequest::kTaskTypeFieldNumber; +const int GetTaskRequest::kResourceMetaFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetTaskRequest::GetTaskRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.GetTaskRequest) +} +GetTaskRequest::GetTaskRequest(const GetTaskRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.task_type().size() > 0) { + task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); + } + resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.resource_meta().size() > 0) { + resource_meta_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.resource_meta_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.GetTaskRequest) +} + +void GetTaskRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_GetTaskRequest_flyteidl_2fadmin_2fagent_2eproto.base); + task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +GetTaskRequest::~GetTaskRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.GetTaskRequest) + SharedDtor(); +} + +void GetTaskRequest::SharedDtor() { + task_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_meta_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void GetTaskRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GetTaskRequest& GetTaskRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetTaskRequest_flyteidl_2fadmin_2fagent_2eproto.base); + return *internal_default_instance(); +} + + +void GetTaskRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.GetTaskRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_meta_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GetTaskRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string task_type = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.GetTaskRequest.task_type"); + object = msg->mutable_task_type(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // bytes resource_meta = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + object = msg->mutable_resource_meta(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParser; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool GetTaskRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.GetTaskRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string task_type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_task_type())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.GetTaskRequest.task_type")); + } else { + goto handle_unusual; + } + break; + } + + // bytes resource_meta = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_resource_meta())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.GetTaskRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.GetTaskRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GetTaskRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.GetTaskRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string task_type = 1; + if (this->task_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.GetTaskRequest.task_type"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->task_type(), output); + } + + // bytes resource_meta = 2; + if (this->resource_meta().size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->resource_meta(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.GetTaskRequest) +} + +::google::protobuf::uint8* GetTaskRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.GetTaskRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string task_type = 1; + if (this->task_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.GetTaskRequest.task_type"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->task_type(), target); + } + + // bytes resource_meta = 2; + if (this->resource_meta().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->resource_meta(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.GetTaskRequest) + return target; +} + +size_t GetTaskRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.GetTaskRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string task_type = 1; + if (this->task_type().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->task_type()); + } + + // bytes resource_meta = 2; + if (this->resource_meta().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->resource_meta()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetTaskRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.GetTaskRequest) + GOOGLE_DCHECK_NE(&from, this); + const GetTaskRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.GetTaskRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.GetTaskRequest) + MergeFrom(*source); + } +} + +void GetTaskRequest::MergeFrom(const GetTaskRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.GetTaskRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.task_type().size() > 0) { + + task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); + } + if (from.resource_meta().size() > 0) { + + resource_meta_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.resource_meta_); + } +} + +void GetTaskRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.GetTaskRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetTaskRequest::CopyFrom(const GetTaskRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.GetTaskRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetTaskRequest::IsInitialized() const { + return true; +} + +void GetTaskRequest::Swap(GetTaskRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void GetTaskRequest::InternalSwap(GetTaskRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + task_type_.Swap(&other->task_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + resource_meta_.Swap(&other->resource_meta_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata GetTaskRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void GetTaskResponse::InitAsDefaultInstance() { + ::flyteidl::admin::_GetTaskResponse_default_instance_._instance.get_mutable()->resource_ = const_cast< ::flyteidl::admin::Resource*>( + ::flyteidl::admin::Resource::internal_default_instance()); +} +class GetTaskResponse::HasBitSetters { + public: + static const ::flyteidl::admin::Resource& resource(const GetTaskResponse* msg); +}; + +const ::flyteidl::admin::Resource& +GetTaskResponse::HasBitSetters::resource(const GetTaskResponse* msg) { + return *msg->resource_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetTaskResponse::kResourceFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetTaskResponse::GetTaskResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.GetTaskResponse) +} +GetTaskResponse::GetTaskResponse(const GetTaskResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_resource()) { + resource_ = new ::flyteidl::admin::Resource(*from.resource_); + } else { + resource_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.GetTaskResponse) +} + +void GetTaskResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_GetTaskResponse_flyteidl_2fadmin_2fagent_2eproto.base); + resource_ = nullptr; +} + +GetTaskResponse::~GetTaskResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.GetTaskResponse) + SharedDtor(); +} + +void GetTaskResponse::SharedDtor() { + if (this != internal_default_instance()) delete resource_; +} + +void GetTaskResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GetTaskResponse& GetTaskResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetTaskResponse_flyteidl_2fadmin_2fagent_2eproto.base); + return *internal_default_instance(); +} + + +void GetTaskResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.GetTaskResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && resource_ != nullptr) { + delete resource_; + } + resource_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GetTaskResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.admin.Resource resource = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Resource::_InternalParse; + object = msg->mutable_resource(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool GetTaskResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.GetTaskResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.admin.Resource resource = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_resource())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.GetTaskResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.GetTaskResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GetTaskResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.GetTaskResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.Resource resource = 1; + if (this->has_resource()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::resource(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.GetTaskResponse) +} + +::google::protobuf::uint8* GetTaskResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.GetTaskResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.Resource resource = 1; + if (this->has_resource()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::resource(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.GetTaskResponse) + return target; +} + +size_t GetTaskResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.GetTaskResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.admin.Resource resource = 1; + if (this->has_resource()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *resource_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetTaskResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.GetTaskResponse) + GOOGLE_DCHECK_NE(&from, this); + const GetTaskResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.GetTaskResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.GetTaskResponse) + MergeFrom(*source); + } +} + +void GetTaskResponse::MergeFrom(const GetTaskResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.GetTaskResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_resource()) { + mutable_resource()->::flyteidl::admin::Resource::MergeFrom(from.resource()); + } +} + +void GetTaskResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.GetTaskResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetTaskResponse::CopyFrom(const GetTaskResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.GetTaskResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetTaskResponse::IsInitialized() const { + return true; +} + +void GetTaskResponse::Swap(GetTaskResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void GetTaskResponse::InternalSwap(GetTaskResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(resource_, other->resource_); +} + +::google::protobuf::Metadata GetTaskResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Resource::InitAsDefaultInstance() { + ::flyteidl::admin::_Resource_default_instance_._instance.get_mutable()->outputs_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); +} +class Resource::HasBitSetters { + public: + static const ::flyteidl::core::LiteralMap& outputs(const Resource* msg); +}; + +const ::flyteidl::core::LiteralMap& +Resource::HasBitSetters::outputs(const Resource* msg) { + return *msg->outputs_; +} +void Resource::clear_outputs() { + if (GetArenaNoVirtual() == nullptr && outputs_ != nullptr) { + delete outputs_; + } + outputs_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Resource::kStateFieldNumber; +const int Resource::kOutputsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Resource::Resource() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Resource) +} +Resource::Resource(const Resource& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_outputs()) { + outputs_ = new ::flyteidl::core::LiteralMap(*from.outputs_); + } else { + outputs_ = nullptr; + } + state_ = from.state_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Resource) +} + +void Resource::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Resource_flyteidl_2fadmin_2fagent_2eproto.base); + ::memset(&outputs_, 0, static_cast( + reinterpret_cast(&state_) - + reinterpret_cast(&outputs_)) + sizeof(state_)); +} + +Resource::~Resource() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Resource) + SharedDtor(); +} + +void Resource::SharedDtor() { + if (this != internal_default_instance()) delete outputs_; +} + +void Resource::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Resource& Resource::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Resource_flyteidl_2fadmin_2fagent_2eproto.base); + return *internal_default_instance(); +} + + +void Resource::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Resource) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && outputs_ != nullptr) { + delete outputs_; + } + outputs_ = nullptr; + state_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Resource::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.admin.State state = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_state(static_cast<::flyteidl::admin::State>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.core.LiteralMap outputs = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; + object = msg->mutable_outputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Resource::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Resource) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.admin.State state = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_state(static_cast< ::flyteidl::admin::State >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralMap outputs = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_outputs())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.Resource) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Resource) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Resource::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Resource) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.State state = 1; + if (this->state() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->state(), output); + } + + // .flyteidl.core.LiteralMap outputs = 2; + if (this->has_outputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::outputs(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Resource) +} + +::google::protobuf::uint8* Resource::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Resource) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.State state = 1; + if (this->state() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->state(), target); + } + + // .flyteidl.core.LiteralMap outputs = 2; + if (this->has_outputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::outputs(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Resource) + return target; +} + +size_t Resource::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Resource) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.LiteralMap outputs = 2; + if (this->has_outputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *outputs_); + } + + // .flyteidl.admin.State state = 1; + if (this->state() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Resource::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Resource) + GOOGLE_DCHECK_NE(&from, this); + const Resource* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Resource) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Resource) + MergeFrom(*source); + } +} + +void Resource::MergeFrom(const Resource& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Resource) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_outputs()) { + mutable_outputs()->::flyteidl::core::LiteralMap::MergeFrom(from.outputs()); + } + if (from.state() != 0) { + set_state(from.state()); + } +} + +void Resource::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Resource) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Resource::CopyFrom(const Resource& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Resource) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Resource::IsInitialized() const { + return true; +} + +void Resource::Swap(Resource* other) { + if (other == this) return; + InternalSwap(other); +} +void Resource::InternalSwap(Resource* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(outputs_, other->outputs_); + swap(state_, other->state_); +} + +::google::protobuf::Metadata Resource::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void DeleteTaskRequest::InitAsDefaultInstance() { +} +class DeleteTaskRequest::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DeleteTaskRequest::kTaskTypeFieldNumber; +const int DeleteTaskRequest::kResourceMetaFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DeleteTaskRequest::DeleteTaskRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.DeleteTaskRequest) +} +DeleteTaskRequest::DeleteTaskRequest(const DeleteTaskRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.task_type().size() > 0) { + task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); + } + resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.resource_meta().size() > 0) { + resource_meta_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.resource_meta_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.DeleteTaskRequest) +} + +void DeleteTaskRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_DeleteTaskRequest_flyteidl_2fadmin_2fagent_2eproto.base); + task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +DeleteTaskRequest::~DeleteTaskRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.DeleteTaskRequest) + SharedDtor(); +} + +void DeleteTaskRequest::SharedDtor() { + task_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_meta_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void DeleteTaskRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DeleteTaskRequest& DeleteTaskRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DeleteTaskRequest_flyteidl_2fadmin_2fagent_2eproto.base); + return *internal_default_instance(); +} + + +void DeleteTaskRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.DeleteTaskRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_meta_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DeleteTaskRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string task_type = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.DeleteTaskRequest.task_type"); + object = msg->mutable_task_type(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // bytes resource_meta = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + object = msg->mutable_resource_meta(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParser; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DeleteTaskRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.DeleteTaskRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string task_type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_task_type())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.DeleteTaskRequest.task_type")); + } else { + goto handle_unusual; + } + break; + } + + // bytes resource_meta = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_resource_meta())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.DeleteTaskRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.DeleteTaskRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DeleteTaskRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.DeleteTaskRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string task_type = 1; + if (this->task_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.DeleteTaskRequest.task_type"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->task_type(), output); + } + + // bytes resource_meta = 2; + if (this->resource_meta().size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->resource_meta(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.DeleteTaskRequest) +} + +::google::protobuf::uint8* DeleteTaskRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.DeleteTaskRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string task_type = 1; + if (this->task_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.DeleteTaskRequest.task_type"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->task_type(), target); + } + + // bytes resource_meta = 2; + if (this->resource_meta().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->resource_meta(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.DeleteTaskRequest) + return target; +} + +size_t DeleteTaskRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.DeleteTaskRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string task_type = 1; + if (this->task_type().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->task_type()); + } + + // bytes resource_meta = 2; + if (this->resource_meta().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->resource_meta()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DeleteTaskRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.DeleteTaskRequest) + GOOGLE_DCHECK_NE(&from, this); + const DeleteTaskRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.DeleteTaskRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.DeleteTaskRequest) + MergeFrom(*source); + } +} + +void DeleteTaskRequest::MergeFrom(const DeleteTaskRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.DeleteTaskRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.task_type().size() > 0) { + + task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); + } + if (from.resource_meta().size() > 0) { + + resource_meta_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.resource_meta_); + } +} + +void DeleteTaskRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.DeleteTaskRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DeleteTaskRequest::CopyFrom(const DeleteTaskRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.DeleteTaskRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeleteTaskRequest::IsInitialized() const { + return true; +} + +void DeleteTaskRequest::Swap(DeleteTaskRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void DeleteTaskRequest::InternalSwap(DeleteTaskRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + task_type_.Swap(&other->task_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + resource_meta_.Swap(&other->resource_meta_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata DeleteTaskRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void DeleteTaskResponse::InitAsDefaultInstance() { +} +class DeleteTaskResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DeleteTaskResponse::DeleteTaskResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.DeleteTaskResponse) +} +DeleteTaskResponse::DeleteTaskResponse(const DeleteTaskResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.DeleteTaskResponse) +} + +void DeleteTaskResponse::SharedCtor() { +} + +DeleteTaskResponse::~DeleteTaskResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.DeleteTaskResponse) + SharedDtor(); +} + +void DeleteTaskResponse::SharedDtor() { +} + +void DeleteTaskResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DeleteTaskResponse& DeleteTaskResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DeleteTaskResponse_flyteidl_2fadmin_2fagent_2eproto.base); + return *internal_default_instance(); +} + + +void DeleteTaskResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.DeleteTaskResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DeleteTaskResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DeleteTaskResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.DeleteTaskResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.DeleteTaskResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.DeleteTaskResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DeleteTaskResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.DeleteTaskResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.DeleteTaskResponse) +} + +::google::protobuf::uint8* DeleteTaskResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.DeleteTaskResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.DeleteTaskResponse) + return target; +} + +size_t DeleteTaskResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.DeleteTaskResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DeleteTaskResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.DeleteTaskResponse) + GOOGLE_DCHECK_NE(&from, this); + const DeleteTaskResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.DeleteTaskResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.DeleteTaskResponse) + MergeFrom(*source); + } +} + +void DeleteTaskResponse::MergeFrom(const DeleteTaskResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.DeleteTaskResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void DeleteTaskResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.DeleteTaskResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DeleteTaskResponse::CopyFrom(const DeleteTaskResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.DeleteTaskResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeleteTaskResponse::IsInitialized() const { + return true; +} + +void DeleteTaskResponse::Swap(DeleteTaskResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void DeleteTaskResponse::InternalSwap(DeleteTaskResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata DeleteTaskResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::admin::CreateTaskRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::CreateTaskRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::CreateTaskRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::CreateTaskResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::CreateTaskResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::CreateTaskResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::GetTaskRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::GetTaskRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::GetTaskRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::GetTaskResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::GetTaskResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::GetTaskResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::Resource* Arena::CreateMaybeMessage< ::flyteidl::admin::Resource >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::Resource >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::DeleteTaskRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::DeleteTaskRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::DeleteTaskRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::DeleteTaskResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::DeleteTaskResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::DeleteTaskResponse >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/agent.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/agent.pb.h new file mode 100644 index 00000000000..d4fe2df8abe --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/agent.pb.h @@ -0,0 +1,1579 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/agent.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fagent_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fagent_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include "flyteidl/core/literals.pb.h" +#include "flyteidl/core/tasks.pb.h" +#include "flyteidl/core/interface.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fagent_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fadmin_2fagent_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[7] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fadmin_2fagent_2eproto(); +namespace flyteidl { +namespace admin { +class CreateTaskRequest; +class CreateTaskRequestDefaultTypeInternal; +extern CreateTaskRequestDefaultTypeInternal _CreateTaskRequest_default_instance_; +class CreateTaskResponse; +class CreateTaskResponseDefaultTypeInternal; +extern CreateTaskResponseDefaultTypeInternal _CreateTaskResponse_default_instance_; +class DeleteTaskRequest; +class DeleteTaskRequestDefaultTypeInternal; +extern DeleteTaskRequestDefaultTypeInternal _DeleteTaskRequest_default_instance_; +class DeleteTaskResponse; +class DeleteTaskResponseDefaultTypeInternal; +extern DeleteTaskResponseDefaultTypeInternal _DeleteTaskResponse_default_instance_; +class GetTaskRequest; +class GetTaskRequestDefaultTypeInternal; +extern GetTaskRequestDefaultTypeInternal _GetTaskRequest_default_instance_; +class GetTaskResponse; +class GetTaskResponseDefaultTypeInternal; +extern GetTaskResponseDefaultTypeInternal _GetTaskResponse_default_instance_; +class Resource; +class ResourceDefaultTypeInternal; +extern ResourceDefaultTypeInternal _Resource_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::admin::CreateTaskRequest* Arena::CreateMaybeMessage<::flyteidl::admin::CreateTaskRequest>(Arena*); +template<> ::flyteidl::admin::CreateTaskResponse* Arena::CreateMaybeMessage<::flyteidl::admin::CreateTaskResponse>(Arena*); +template<> ::flyteidl::admin::DeleteTaskRequest* Arena::CreateMaybeMessage<::flyteidl::admin::DeleteTaskRequest>(Arena*); +template<> ::flyteidl::admin::DeleteTaskResponse* Arena::CreateMaybeMessage<::flyteidl::admin::DeleteTaskResponse>(Arena*); +template<> ::flyteidl::admin::GetTaskRequest* Arena::CreateMaybeMessage<::flyteidl::admin::GetTaskRequest>(Arena*); +template<> ::flyteidl::admin::GetTaskResponse* Arena::CreateMaybeMessage<::flyteidl::admin::GetTaskResponse>(Arena*); +template<> ::flyteidl::admin::Resource* Arena::CreateMaybeMessage<::flyteidl::admin::Resource>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace admin { + +enum State { + RETRYABLE_FAILURE = 0, + PERMANENT_FAILURE = 1, + PENDING = 2, + RUNNING = 3, + SUCCEEDED = 4, + State_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + State_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool State_IsValid(int value); +const State State_MIN = RETRYABLE_FAILURE; +const State State_MAX = SUCCEEDED; +const int State_ARRAYSIZE = State_MAX + 1; + +const ::google::protobuf::EnumDescriptor* State_descriptor(); +inline const ::std::string& State_Name(State value) { + return ::google::protobuf::internal::NameOfEnum( + State_descriptor(), value); +} +inline bool State_Parse( + const ::std::string& name, State* value) { + return ::google::protobuf::internal::ParseNamedEnum( + State_descriptor(), name, value); +} +// =================================================================== + +class CreateTaskRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.CreateTaskRequest) */ { + public: + CreateTaskRequest(); + virtual ~CreateTaskRequest(); + + CreateTaskRequest(const CreateTaskRequest& from); + + inline CreateTaskRequest& operator=(const CreateTaskRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CreateTaskRequest(CreateTaskRequest&& from) noexcept + : CreateTaskRequest() { + *this = ::std::move(from); + } + + inline CreateTaskRequest& operator=(CreateTaskRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const CreateTaskRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CreateTaskRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateTaskRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(CreateTaskRequest* other); + friend void swap(CreateTaskRequest& a, CreateTaskRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CreateTaskRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + CreateTaskRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CreateTaskRequest& from); + void MergeFrom(const CreateTaskRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreateTaskRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string output_prefix = 3; + void clear_output_prefix(); + static const int kOutputPrefixFieldNumber = 3; + const ::std::string& output_prefix() const; + void set_output_prefix(const ::std::string& value); + #if LANG_CXX11 + void set_output_prefix(::std::string&& value); + #endif + void set_output_prefix(const char* value); + void set_output_prefix(const char* value, size_t size); + ::std::string* mutable_output_prefix(); + ::std::string* release_output_prefix(); + void set_allocated_output_prefix(::std::string* output_prefix); + + // .flyteidl.core.LiteralMap inputs = 1; + bool has_inputs() const; + void clear_inputs(); + static const int kInputsFieldNumber = 1; + const ::flyteidl::core::LiteralMap& inputs() const; + ::flyteidl::core::LiteralMap* release_inputs(); + ::flyteidl::core::LiteralMap* mutable_inputs(); + void set_allocated_inputs(::flyteidl::core::LiteralMap* inputs); + + // .flyteidl.core.TaskTemplate template = 2; + bool has_template_() const; + void clear_template_(); + static const int kTemplateFieldNumber = 2; + const ::flyteidl::core::TaskTemplate& template_() const; + ::flyteidl::core::TaskTemplate* release_template_(); + ::flyteidl::core::TaskTemplate* mutable_template_(); + void set_allocated_template_(::flyteidl::core::TaskTemplate* template_); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.CreateTaskRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr output_prefix_; + ::flyteidl::core::LiteralMap* inputs_; + ::flyteidl::core::TaskTemplate* template__; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; +}; +// ------------------------------------------------------------------- + +class CreateTaskResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.CreateTaskResponse) */ { + public: + CreateTaskResponse(); + virtual ~CreateTaskResponse(); + + CreateTaskResponse(const CreateTaskResponse& from); + + inline CreateTaskResponse& operator=(const CreateTaskResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CreateTaskResponse(CreateTaskResponse&& from) noexcept + : CreateTaskResponse() { + *this = ::std::move(from); + } + + inline CreateTaskResponse& operator=(CreateTaskResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const CreateTaskResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CreateTaskResponse* internal_default_instance() { + return reinterpret_cast( + &_CreateTaskResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(CreateTaskResponse* other); + friend void swap(CreateTaskResponse& a, CreateTaskResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CreateTaskResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + CreateTaskResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CreateTaskResponse& from); + void MergeFrom(const CreateTaskResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreateTaskResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // bytes resource_meta = 1; + void clear_resource_meta(); + static const int kResourceMetaFieldNumber = 1; + const ::std::string& resource_meta() const; + void set_resource_meta(const ::std::string& value); + #if LANG_CXX11 + void set_resource_meta(::std::string&& value); + #endif + void set_resource_meta(const char* value); + void set_resource_meta(const void* value, size_t size); + ::std::string* mutable_resource_meta(); + ::std::string* release_resource_meta(); + void set_allocated_resource_meta(::std::string* resource_meta); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.CreateTaskResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr resource_meta_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; +}; +// ------------------------------------------------------------------- + +class GetTaskRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.GetTaskRequest) */ { + public: + GetTaskRequest(); + virtual ~GetTaskRequest(); + + GetTaskRequest(const GetTaskRequest& from); + + inline GetTaskRequest& operator=(const GetTaskRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GetTaskRequest(GetTaskRequest&& from) noexcept + : GetTaskRequest() { + *this = ::std::move(from); + } + + inline GetTaskRequest& operator=(GetTaskRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const GetTaskRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetTaskRequest* internal_default_instance() { + return reinterpret_cast( + &_GetTaskRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(GetTaskRequest* other); + friend void swap(GetTaskRequest& a, GetTaskRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GetTaskRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + GetTaskRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const GetTaskRequest& from); + void MergeFrom(const GetTaskRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetTaskRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string task_type = 1; + void clear_task_type(); + static const int kTaskTypeFieldNumber = 1; + const ::std::string& task_type() const; + void set_task_type(const ::std::string& value); + #if LANG_CXX11 + void set_task_type(::std::string&& value); + #endif + void set_task_type(const char* value); + void set_task_type(const char* value, size_t size); + ::std::string* mutable_task_type(); + ::std::string* release_task_type(); + void set_allocated_task_type(::std::string* task_type); + + // bytes resource_meta = 2; + void clear_resource_meta(); + static const int kResourceMetaFieldNumber = 2; + const ::std::string& resource_meta() const; + void set_resource_meta(const ::std::string& value); + #if LANG_CXX11 + void set_resource_meta(::std::string&& value); + #endif + void set_resource_meta(const char* value); + void set_resource_meta(const void* value, size_t size); + ::std::string* mutable_resource_meta(); + ::std::string* release_resource_meta(); + void set_allocated_resource_meta(::std::string* resource_meta); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.GetTaskRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr task_type_; + ::google::protobuf::internal::ArenaStringPtr resource_meta_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; +}; +// ------------------------------------------------------------------- + +class GetTaskResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.GetTaskResponse) */ { + public: + GetTaskResponse(); + virtual ~GetTaskResponse(); + + GetTaskResponse(const GetTaskResponse& from); + + inline GetTaskResponse& operator=(const GetTaskResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GetTaskResponse(GetTaskResponse&& from) noexcept + : GetTaskResponse() { + *this = ::std::move(from); + } + + inline GetTaskResponse& operator=(GetTaskResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const GetTaskResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetTaskResponse* internal_default_instance() { + return reinterpret_cast( + &_GetTaskResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(GetTaskResponse* other); + friend void swap(GetTaskResponse& a, GetTaskResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GetTaskResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + GetTaskResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const GetTaskResponse& from); + void MergeFrom(const GetTaskResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetTaskResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.admin.Resource resource = 1; + bool has_resource() const; + void clear_resource(); + static const int kResourceFieldNumber = 1; + const ::flyteidl::admin::Resource& resource() const; + ::flyteidl::admin::Resource* release_resource(); + ::flyteidl::admin::Resource* mutable_resource(); + void set_allocated_resource(::flyteidl::admin::Resource* resource); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.GetTaskResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::admin::Resource* resource_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; +}; +// ------------------------------------------------------------------- + +class Resource final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Resource) */ { + public: + Resource(); + virtual ~Resource(); + + Resource(const Resource& from); + + inline Resource& operator=(const Resource& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Resource(Resource&& from) noexcept + : Resource() { + *this = ::std::move(from); + } + + inline Resource& operator=(Resource&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Resource& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Resource* internal_default_instance() { + return reinterpret_cast( + &_Resource_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(Resource* other); + friend void swap(Resource& a, Resource& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Resource* New() const final { + return CreateMaybeMessage(nullptr); + } + + Resource* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Resource& from); + void MergeFrom(const Resource& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Resource* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.LiteralMap outputs = 2; + bool has_outputs() const; + void clear_outputs(); + static const int kOutputsFieldNumber = 2; + const ::flyteidl::core::LiteralMap& outputs() const; + ::flyteidl::core::LiteralMap* release_outputs(); + ::flyteidl::core::LiteralMap* mutable_outputs(); + void set_allocated_outputs(::flyteidl::core::LiteralMap* outputs); + + // .flyteidl.admin.State state = 1; + void clear_state(); + static const int kStateFieldNumber = 1; + ::flyteidl::admin::State state() const; + void set_state(::flyteidl::admin::State value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Resource) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::LiteralMap* outputs_; + int state_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; +}; +// ------------------------------------------------------------------- + +class DeleteTaskRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.DeleteTaskRequest) */ { + public: + DeleteTaskRequest(); + virtual ~DeleteTaskRequest(); + + DeleteTaskRequest(const DeleteTaskRequest& from); + + inline DeleteTaskRequest& operator=(const DeleteTaskRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DeleteTaskRequest(DeleteTaskRequest&& from) noexcept + : DeleteTaskRequest() { + *this = ::std::move(from); + } + + inline DeleteTaskRequest& operator=(DeleteTaskRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const DeleteTaskRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DeleteTaskRequest* internal_default_instance() { + return reinterpret_cast( + &_DeleteTaskRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(DeleteTaskRequest* other); + friend void swap(DeleteTaskRequest& a, DeleteTaskRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DeleteTaskRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + DeleteTaskRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DeleteTaskRequest& from); + void MergeFrom(const DeleteTaskRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DeleteTaskRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string task_type = 1; + void clear_task_type(); + static const int kTaskTypeFieldNumber = 1; + const ::std::string& task_type() const; + void set_task_type(const ::std::string& value); + #if LANG_CXX11 + void set_task_type(::std::string&& value); + #endif + void set_task_type(const char* value); + void set_task_type(const char* value, size_t size); + ::std::string* mutable_task_type(); + ::std::string* release_task_type(); + void set_allocated_task_type(::std::string* task_type); + + // bytes resource_meta = 2; + void clear_resource_meta(); + static const int kResourceMetaFieldNumber = 2; + const ::std::string& resource_meta() const; + void set_resource_meta(const ::std::string& value); + #if LANG_CXX11 + void set_resource_meta(::std::string&& value); + #endif + void set_resource_meta(const char* value); + void set_resource_meta(const void* value, size_t size); + ::std::string* mutable_resource_meta(); + ::std::string* release_resource_meta(); + void set_allocated_resource_meta(::std::string* resource_meta); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.DeleteTaskRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr task_type_; + ::google::protobuf::internal::ArenaStringPtr resource_meta_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; +}; +// ------------------------------------------------------------------- + +class DeleteTaskResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.DeleteTaskResponse) */ { + public: + DeleteTaskResponse(); + virtual ~DeleteTaskResponse(); + + DeleteTaskResponse(const DeleteTaskResponse& from); + + inline DeleteTaskResponse& operator=(const DeleteTaskResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DeleteTaskResponse(DeleteTaskResponse&& from) noexcept + : DeleteTaskResponse() { + *this = ::std::move(from); + } + + inline DeleteTaskResponse& operator=(DeleteTaskResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const DeleteTaskResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DeleteTaskResponse* internal_default_instance() { + return reinterpret_cast( + &_DeleteTaskResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(DeleteTaskResponse* other); + friend void swap(DeleteTaskResponse& a, DeleteTaskResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DeleteTaskResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + DeleteTaskResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DeleteTaskResponse& from); + void MergeFrom(const DeleteTaskResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DeleteTaskResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.DeleteTaskResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// CreateTaskRequest + +// .flyteidl.core.LiteralMap inputs = 1; +inline bool CreateTaskRequest::has_inputs() const { + return this != internal_default_instance() && inputs_ != nullptr; +} +inline const ::flyteidl::core::LiteralMap& CreateTaskRequest::inputs() const { + const ::flyteidl::core::LiteralMap* p = inputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.CreateTaskRequest.inputs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* CreateTaskRequest::release_inputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.CreateTaskRequest.inputs) + + ::flyteidl::core::LiteralMap* temp = inputs_; + inputs_ = nullptr; + return temp; +} +inline ::flyteidl::core::LiteralMap* CreateTaskRequest::mutable_inputs() { + + if (inputs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); + inputs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateTaskRequest.inputs) + return inputs_; +} +inline void CreateTaskRequest::set_allocated_inputs(::flyteidl::core::LiteralMap* inputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(inputs_); + } + if (inputs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + inputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, inputs, submessage_arena); + } + + } else { + + } + inputs_ = inputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CreateTaskRequest.inputs) +} + +// .flyteidl.core.TaskTemplate template = 2; +inline bool CreateTaskRequest::has_template_() const { + return this != internal_default_instance() && template__ != nullptr; +} +inline const ::flyteidl::core::TaskTemplate& CreateTaskRequest::template_() const { + const ::flyteidl::core::TaskTemplate* p = template__; + // @@protoc_insertion_point(field_get:flyteidl.admin.CreateTaskRequest.template) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_TaskTemplate_default_instance_); +} +inline ::flyteidl::core::TaskTemplate* CreateTaskRequest::release_template_() { + // @@protoc_insertion_point(field_release:flyteidl.admin.CreateTaskRequest.template) + + ::flyteidl::core::TaskTemplate* temp = template__; + template__ = nullptr; + return temp; +} +inline ::flyteidl::core::TaskTemplate* CreateTaskRequest::mutable_template_() { + + if (template__ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::TaskTemplate>(GetArenaNoVirtual()); + template__ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateTaskRequest.template) + return template__; +} +inline void CreateTaskRequest::set_allocated_template_(::flyteidl::core::TaskTemplate* template_) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(template__); + } + if (template_) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + template_ = ::google::protobuf::internal::GetOwnedMessage( + message_arena, template_, submessage_arena); + } + + } else { + + } + template__ = template_; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CreateTaskRequest.template) +} + +// string output_prefix = 3; +inline void CreateTaskRequest::clear_output_prefix() { + output_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& CreateTaskRequest::output_prefix() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.CreateTaskRequest.output_prefix) + return output_prefix_.GetNoArena(); +} +inline void CreateTaskRequest::set_output_prefix(const ::std::string& value) { + + output_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.CreateTaskRequest.output_prefix) +} +#if LANG_CXX11 +inline void CreateTaskRequest::set_output_prefix(::std::string&& value) { + + output_prefix_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.CreateTaskRequest.output_prefix) +} +#endif +inline void CreateTaskRequest::set_output_prefix(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + output_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.CreateTaskRequest.output_prefix) +} +inline void CreateTaskRequest::set_output_prefix(const char* value, size_t size) { + + output_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.CreateTaskRequest.output_prefix) +} +inline ::std::string* CreateTaskRequest::mutable_output_prefix() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateTaskRequest.output_prefix) + return output_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CreateTaskRequest::release_output_prefix() { + // @@protoc_insertion_point(field_release:flyteidl.admin.CreateTaskRequest.output_prefix) + + return output_prefix_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CreateTaskRequest::set_allocated_output_prefix(::std::string* output_prefix) { + if (output_prefix != nullptr) { + + } else { + + } + output_prefix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), output_prefix); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CreateTaskRequest.output_prefix) +} + +// ------------------------------------------------------------------- + +// CreateTaskResponse + +// bytes resource_meta = 1; +inline void CreateTaskResponse::clear_resource_meta() { + resource_meta_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& CreateTaskResponse::resource_meta() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.CreateTaskResponse.resource_meta) + return resource_meta_.GetNoArena(); +} +inline void CreateTaskResponse::set_resource_meta(const ::std::string& value) { + + resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.CreateTaskResponse.resource_meta) +} +#if LANG_CXX11 +inline void CreateTaskResponse::set_resource_meta(::std::string&& value) { + + resource_meta_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.CreateTaskResponse.resource_meta) +} +#endif +inline void CreateTaskResponse::set_resource_meta(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.CreateTaskResponse.resource_meta) +} +inline void CreateTaskResponse::set_resource_meta(const void* value, size_t size) { + + resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.CreateTaskResponse.resource_meta) +} +inline ::std::string* CreateTaskResponse::mutable_resource_meta() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateTaskResponse.resource_meta) + return resource_meta_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CreateTaskResponse::release_resource_meta() { + // @@protoc_insertion_point(field_release:flyteidl.admin.CreateTaskResponse.resource_meta) + + return resource_meta_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CreateTaskResponse::set_allocated_resource_meta(::std::string* resource_meta) { + if (resource_meta != nullptr) { + + } else { + + } + resource_meta_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), resource_meta); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CreateTaskResponse.resource_meta) +} + +// ------------------------------------------------------------------- + +// GetTaskRequest + +// string task_type = 1; +inline void GetTaskRequest::clear_task_type() { + task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& GetTaskRequest::task_type() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskRequest.task_type) + return task_type_.GetNoArena(); +} +inline void GetTaskRequest::set_task_type(const ::std::string& value) { + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.GetTaskRequest.task_type) +} +#if LANG_CXX11 +inline void GetTaskRequest::set_task_type(::std::string&& value) { + + task_type_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.GetTaskRequest.task_type) +} +#endif +inline void GetTaskRequest::set_task_type(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.GetTaskRequest.task_type) +} +inline void GetTaskRequest::set_task_type(const char* value, size_t size) { + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.GetTaskRequest.task_type) +} +inline ::std::string* GetTaskRequest::mutable_task_type() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetTaskRequest.task_type) + return task_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* GetTaskRequest::release_task_type() { + // @@protoc_insertion_point(field_release:flyteidl.admin.GetTaskRequest.task_type) + + return task_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void GetTaskRequest::set_allocated_task_type(::std::string* task_type) { + if (task_type != nullptr) { + + } else { + + } + task_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), task_type); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetTaskRequest.task_type) +} + +// bytes resource_meta = 2; +inline void GetTaskRequest::clear_resource_meta() { + resource_meta_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& GetTaskRequest::resource_meta() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskRequest.resource_meta) + return resource_meta_.GetNoArena(); +} +inline void GetTaskRequest::set_resource_meta(const ::std::string& value) { + + resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.GetTaskRequest.resource_meta) +} +#if LANG_CXX11 +inline void GetTaskRequest::set_resource_meta(::std::string&& value) { + + resource_meta_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.GetTaskRequest.resource_meta) +} +#endif +inline void GetTaskRequest::set_resource_meta(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.GetTaskRequest.resource_meta) +} +inline void GetTaskRequest::set_resource_meta(const void* value, size_t size) { + + resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.GetTaskRequest.resource_meta) +} +inline ::std::string* GetTaskRequest::mutable_resource_meta() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetTaskRequest.resource_meta) + return resource_meta_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* GetTaskRequest::release_resource_meta() { + // @@protoc_insertion_point(field_release:flyteidl.admin.GetTaskRequest.resource_meta) + + return resource_meta_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void GetTaskRequest::set_allocated_resource_meta(::std::string* resource_meta) { + if (resource_meta != nullptr) { + + } else { + + } + resource_meta_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), resource_meta); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetTaskRequest.resource_meta) +} + +// ------------------------------------------------------------------- + +// GetTaskResponse + +// .flyteidl.admin.Resource resource = 1; +inline bool GetTaskResponse::has_resource() const { + return this != internal_default_instance() && resource_ != nullptr; +} +inline void GetTaskResponse::clear_resource() { + if (GetArenaNoVirtual() == nullptr && resource_ != nullptr) { + delete resource_; + } + resource_ = nullptr; +} +inline const ::flyteidl::admin::Resource& GetTaskResponse::resource() const { + const ::flyteidl::admin::Resource* p = resource_; + // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskResponse.resource) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_Resource_default_instance_); +} +inline ::flyteidl::admin::Resource* GetTaskResponse::release_resource() { + // @@protoc_insertion_point(field_release:flyteidl.admin.GetTaskResponse.resource) + + ::flyteidl::admin::Resource* temp = resource_; + resource_ = nullptr; + return temp; +} +inline ::flyteidl::admin::Resource* GetTaskResponse::mutable_resource() { + + if (resource_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::Resource>(GetArenaNoVirtual()); + resource_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetTaskResponse.resource) + return resource_; +} +inline void GetTaskResponse::set_allocated_resource(::flyteidl::admin::Resource* resource) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete resource_; + } + if (resource) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + resource = ::google::protobuf::internal::GetOwnedMessage( + message_arena, resource, submessage_arena); + } + + } else { + + } + resource_ = resource; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetTaskResponse.resource) +} + +// ------------------------------------------------------------------- + +// Resource + +// .flyteidl.admin.State state = 1; +inline void Resource::clear_state() { + state_ = 0; +} +inline ::flyteidl::admin::State Resource::state() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Resource.state) + return static_cast< ::flyteidl::admin::State >(state_); +} +inline void Resource::set_state(::flyteidl::admin::State value) { + + state_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.Resource.state) +} + +// .flyteidl.core.LiteralMap outputs = 2; +inline bool Resource::has_outputs() const { + return this != internal_default_instance() && outputs_ != nullptr; +} +inline const ::flyteidl::core::LiteralMap& Resource::outputs() const { + const ::flyteidl::core::LiteralMap* p = outputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.Resource.outputs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* Resource::release_outputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Resource.outputs) + + ::flyteidl::core::LiteralMap* temp = outputs_; + outputs_ = nullptr; + return temp; +} +inline ::flyteidl::core::LiteralMap* Resource::mutable_outputs() { + + if (outputs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); + outputs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Resource.outputs) + return outputs_; +} +inline void Resource::set_allocated_outputs(::flyteidl::core::LiteralMap* outputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(outputs_); + } + if (outputs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + outputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, outputs, submessage_arena); + } + + } else { + + } + outputs_ = outputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Resource.outputs) +} + +// ------------------------------------------------------------------- + +// DeleteTaskRequest + +// string task_type = 1; +inline void DeleteTaskRequest::clear_task_type() { + task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DeleteTaskRequest::task_type() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.DeleteTaskRequest.task_type) + return task_type_.GetNoArena(); +} +inline void DeleteTaskRequest::set_task_type(const ::std::string& value) { + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.DeleteTaskRequest.task_type) +} +#if LANG_CXX11 +inline void DeleteTaskRequest::set_task_type(::std::string&& value) { + + task_type_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.DeleteTaskRequest.task_type) +} +#endif +inline void DeleteTaskRequest::set_task_type(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.DeleteTaskRequest.task_type) +} +inline void DeleteTaskRequest::set_task_type(const char* value, size_t size) { + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.DeleteTaskRequest.task_type) +} +inline ::std::string* DeleteTaskRequest::mutable_task_type() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.DeleteTaskRequest.task_type) + return task_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DeleteTaskRequest::release_task_type() { + // @@protoc_insertion_point(field_release:flyteidl.admin.DeleteTaskRequest.task_type) + + return task_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DeleteTaskRequest::set_allocated_task_type(::std::string* task_type) { + if (task_type != nullptr) { + + } else { + + } + task_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), task_type); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DeleteTaskRequest.task_type) +} + +// bytes resource_meta = 2; +inline void DeleteTaskRequest::clear_resource_meta() { + resource_meta_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DeleteTaskRequest::resource_meta() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.DeleteTaskRequest.resource_meta) + return resource_meta_.GetNoArena(); +} +inline void DeleteTaskRequest::set_resource_meta(const ::std::string& value) { + + resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.DeleteTaskRequest.resource_meta) +} +#if LANG_CXX11 +inline void DeleteTaskRequest::set_resource_meta(::std::string&& value) { + + resource_meta_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.DeleteTaskRequest.resource_meta) +} +#endif +inline void DeleteTaskRequest::set_resource_meta(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.DeleteTaskRequest.resource_meta) +} +inline void DeleteTaskRequest::set_resource_meta(const void* value, size_t size) { + + resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.DeleteTaskRequest.resource_meta) +} +inline ::std::string* DeleteTaskRequest::mutable_resource_meta() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.DeleteTaskRequest.resource_meta) + return resource_meta_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DeleteTaskRequest::release_resource_meta() { + // @@protoc_insertion_point(field_release:flyteidl.admin.DeleteTaskRequest.resource_meta) + + return resource_meta_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DeleteTaskRequest::set_allocated_resource_meta(::std::string* resource_meta) { + if (resource_meta != nullptr) { + + } else { + + } + resource_meta_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), resource_meta); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DeleteTaskRequest.resource_meta) +} + +// ------------------------------------------------------------------- + +// DeleteTaskResponse + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::admin::State> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::admin::State>() { + return ::flyteidl::admin::State_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fagent_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/agent.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/agent.grpc.pb.cc new file mode 100644 index 00000000000..d3505f4ce8b --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/agent.grpc.pb.cc @@ -0,0 +1,169 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/service/agent.proto + +#include "flyteidl/service/agent.pb.h" +#include "flyteidl/service/agent.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace service { + +static const char* AsyncAgentService_method_names[] = { + "/flyteidl.service.AsyncAgentService/CreateTask", + "/flyteidl.service.AsyncAgentService/GetTask", + "/flyteidl.service.AsyncAgentService/DeleteTask", +}; + +std::unique_ptr< AsyncAgentService::Stub> AsyncAgentService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< AsyncAgentService::Stub> stub(new AsyncAgentService::Stub(channel)); + return stub; +} + +AsyncAgentService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_CreateTask_(AsyncAgentService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetTask_(AsyncAgentService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteTask_(AsyncAgentService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status AsyncAgentService::Stub::CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::flyteidl::admin::CreateTaskResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateTask_, context, request, response); +} + +void AsyncAgentService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, std::move(f)); +} + +void AsyncAgentService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::CreateTaskResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, std::move(f)); +} + +void AsyncAgentService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, reactor); +} + +void AsyncAgentService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::CreateTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::CreateTaskResponse>* AsyncAgentService::Stub::AsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::CreateTaskResponse>::Create(channel_.get(), cq, rpcmethod_CreateTask_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::CreateTaskResponse>* AsyncAgentService::Stub::PrepareAsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::CreateTaskResponse>::Create(channel_.get(), cq, rpcmethod_CreateTask_, context, request, false); +} + +::grpc::Status AsyncAgentService::Stub::GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::flyteidl::admin::GetTaskResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetTask_, context, request, response); +} + +void AsyncAgentService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, std::move(f)); +} + +void AsyncAgentService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetTaskResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, std::move(f)); +} + +void AsyncAgentService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, reactor); +} + +void AsyncAgentService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskResponse>* AsyncAgentService::Stub::AsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::GetTaskResponse>::Create(channel_.get(), cq, rpcmethod_GetTask_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskResponse>* AsyncAgentService::Stub::PrepareAsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::GetTaskResponse>::Create(channel_.get(), cq, rpcmethod_GetTask_, context, request, false); +} + +::grpc::Status AsyncAgentService::Stub::DeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::flyteidl::admin::DeleteTaskResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteTask_, context, request, response); +} + +void AsyncAgentService::Stub::experimental_async::DeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteTask_, context, request, response, std::move(f)); +} + +void AsyncAgentService::Stub::experimental_async::DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DeleteTaskResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteTask_, context, request, response, std::move(f)); +} + +void AsyncAgentService::Stub::experimental_async::DeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteTask_, context, request, response, reactor); +} + +void AsyncAgentService::Stub::experimental_async::DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DeleteTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteTask_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DeleteTaskResponse>* AsyncAgentService::Stub::AsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::DeleteTaskResponse>::Create(channel_.get(), cq, rpcmethod_DeleteTask_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DeleteTaskResponse>* AsyncAgentService::Stub::PrepareAsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::DeleteTaskResponse>::Create(channel_.get(), cq, rpcmethod_DeleteTask_, context, request, false); +} + +AsyncAgentService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + AsyncAgentService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AsyncAgentService::Service, ::flyteidl::admin::CreateTaskRequest, ::flyteidl::admin::CreateTaskResponse>( + std::mem_fn(&AsyncAgentService::Service::CreateTask), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AsyncAgentService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AsyncAgentService::Service, ::flyteidl::admin::GetTaskRequest, ::flyteidl::admin::GetTaskResponse>( + std::mem_fn(&AsyncAgentService::Service::GetTask), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AsyncAgentService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AsyncAgentService::Service, ::flyteidl::admin::DeleteTaskRequest, ::flyteidl::admin::DeleteTaskResponse>( + std::mem_fn(&AsyncAgentService::Service::DeleteTask), this))); +} + +AsyncAgentService::Service::~Service() { +} + +::grpc::Status AsyncAgentService::Service::CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AsyncAgentService::Service::GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AsyncAgentService::Service::DeleteTask(::grpc::ServerContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace flyteidl +} // namespace service + diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/agent.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/agent.grpc.pb.h new file mode 100644 index 00000000000..16b36b249a2 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/agent.grpc.pb.h @@ -0,0 +1,587 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/service/agent.proto +#ifndef GRPC_flyteidl_2fservice_2fagent_2eproto__INCLUDED +#define GRPC_flyteidl_2fservice_2fagent_2eproto__INCLUDED + +#include "flyteidl/service/agent.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace service { + +// AgentService defines an RPC Service that allows propeller to send the request to the agent server. +class AsyncAgentService final { + public: + static constexpr char const* service_full_name() { + return "flyteidl.service.AsyncAgentService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // Send a task create request to the agent server. + virtual ::grpc::Status CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::flyteidl::admin::CreateTaskResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::CreateTaskResponse>> AsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::CreateTaskResponse>>(AsyncCreateTaskRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::CreateTaskResponse>> PrepareAsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::CreateTaskResponse>>(PrepareAsyncCreateTaskRaw(context, request, cq)); + } + // Get job status. + virtual ::grpc::Status GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::flyteidl::admin::GetTaskResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskResponse>> AsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskResponse>>(AsyncGetTaskRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskResponse>> PrepareAsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskResponse>>(PrepareAsyncGetTaskRaw(context, request, cq)); + } + // Delete the task resource. + virtual ::grpc::Status DeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::flyteidl::admin::DeleteTaskResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DeleteTaskResponse>> AsyncDeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DeleteTaskResponse>>(AsyncDeleteTaskRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DeleteTaskResponse>> PrepareAsyncDeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DeleteTaskResponse>>(PrepareAsyncDeleteTaskRaw(context, request, cq)); + } + class experimental_async_interface { + public: + virtual ~experimental_async_interface() {} + // Send a task create request to the agent server. + virtual void CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response, std::function) = 0; + virtual void CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::CreateTaskResponse* response, std::function) = 0; + virtual void CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::CreateTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Get job status. + virtual void GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response, std::function) = 0; + virtual void GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetTaskResponse* response, std::function) = 0; + virtual void GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Delete the task resource. + virtual void DeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response, std::function) = 0; + virtual void DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DeleteTaskResponse* response, std::function) = 0; + virtual void DeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DeleteTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + }; + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::CreateTaskResponse>* AsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::CreateTaskResponse>* PrepareAsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskResponse>* AsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskResponse>* PrepareAsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DeleteTaskResponse>* AsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DeleteTaskResponse>* PrepareAsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); + ::grpc::Status CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::flyteidl::admin::CreateTaskResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::CreateTaskResponse>> AsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::CreateTaskResponse>>(AsyncCreateTaskRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::CreateTaskResponse>> PrepareAsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::CreateTaskResponse>>(PrepareAsyncCreateTaskRaw(context, request, cq)); + } + ::grpc::Status GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::flyteidl::admin::GetTaskResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskResponse>> AsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskResponse>>(AsyncGetTaskRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskResponse>> PrepareAsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskResponse>>(PrepareAsyncGetTaskRaw(context, request, cq)); + } + ::grpc::Status DeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::flyteidl::admin::DeleteTaskResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DeleteTaskResponse>> AsyncDeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DeleteTaskResponse>>(AsyncDeleteTaskRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DeleteTaskResponse>> PrepareAsyncDeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DeleteTaskResponse>>(PrepareAsyncDeleteTaskRaw(context, request, cq)); + } + class experimental_async final : + public StubInterface::experimental_async_interface { + public: + void CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response, std::function) override; + void CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::CreateTaskResponse* response, std::function) override; + void CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::CreateTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response, std::function) override; + void GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetTaskResponse* response, std::function) override; + void GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void DeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response, std::function) override; + void DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DeleteTaskResponse* response, std::function) override; + void DeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DeleteTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + private: + friend class Stub; + explicit experimental_async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class experimental_async_interface* experimental_async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class experimental_async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::CreateTaskResponse>* AsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::CreateTaskResponse>* PrepareAsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskResponse>* AsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskResponse>* PrepareAsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DeleteTaskResponse>* AsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DeleteTaskResponse>* PrepareAsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_CreateTask_; + const ::grpc::internal::RpcMethod rpcmethod_GetTask_; + const ::grpc::internal::RpcMethod rpcmethod_DeleteTask_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + // Send a task create request to the agent server. + virtual ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response); + // Get job status. + virtual ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response); + // Delete the task resource. + virtual ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response); + }; + template + class WithAsyncMethod_CreateTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_CreateTask() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_CreateTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateTask(::grpc::ServerContext* context, ::flyteidl::admin::CreateTaskRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::CreateTaskResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetTask() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_GetTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetTask(::grpc::ServerContext* context, ::flyteidl::admin::GetTaskRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::GetTaskResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_DeleteTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_DeleteTask() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_DeleteTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteTask(::grpc::ServerContext* context, ::flyteidl::admin::DeleteTaskRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::DeleteTaskResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_CreateTask > > AsyncService; + template + class ExperimentalWithCallbackMethod_CreateTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_CreateTask() { + ::grpc::Service::experimental().MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::CreateTaskRequest, ::flyteidl::admin::CreateTaskResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::CreateTaskRequest* request, + ::flyteidl::admin::CreateTaskResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->CreateTask(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_CreateTask( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::CreateTaskRequest, ::flyteidl::admin::CreateTaskResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::CreateTaskRequest, ::flyteidl::admin::CreateTaskResponse>*>( + ::grpc::Service::experimental().GetHandler(0)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_CreateTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_GetTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GetTask() { + ::grpc::Service::experimental().MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::GetTaskRequest, ::flyteidl::admin::GetTaskResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::GetTaskRequest* request, + ::flyteidl::admin::GetTaskResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetTask(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetTask( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::GetTaskRequest, ::flyteidl::admin::GetTaskResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::GetTaskRequest, ::flyteidl::admin::GetTaskResponse>*>( + ::grpc::Service::experimental().GetHandler(1)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_DeleteTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_DeleteTask() { + ::grpc::Service::experimental().MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::DeleteTaskRequest, ::flyteidl::admin::DeleteTaskResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::DeleteTaskRequest* request, + ::flyteidl::admin::DeleteTaskResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->DeleteTask(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_DeleteTask( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::DeleteTaskRequest, ::flyteidl::admin::DeleteTaskResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::DeleteTaskRequest, ::flyteidl::admin::DeleteTaskResponse>*>( + ::grpc::Service::experimental().GetHandler(2)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_DeleteTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void DeleteTask(::grpc::ServerContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + typedef ExperimentalWithCallbackMethod_CreateTask > > ExperimentalCallbackService; + template + class WithGenericMethod_CreateTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_CreateTask() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_CreateTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetTask() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_GetTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_DeleteTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_DeleteTask() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_DeleteTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_CreateTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_CreateTask() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_CreateTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateTask(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetTask() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_GetTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetTask(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_DeleteTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_DeleteTask() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_DeleteTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteTask(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class ExperimentalWithRawCallbackMethod_CreateTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_CreateTask() { + ::grpc::Service::experimental().MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->CreateTask(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_CreateTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void CreateTask(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_GetTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GetTask() { + ::grpc::Service::experimental().MarkMethodRawCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GetTask(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetTask(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_DeleteTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_DeleteTask() { + ::grpc::Service::experimental().MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->DeleteTask(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_DeleteTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void DeleteTask(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class WithStreamedUnaryMethod_CreateTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_CreateTask() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::CreateTaskRequest, ::flyteidl::admin::CreateTaskResponse>(std::bind(&WithStreamedUnaryMethod_CreateTask::StreamedCreateTask, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_CreateTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCreateTask(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::CreateTaskRequest,::flyteidl::admin::CreateTaskResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetTask() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::GetTaskRequest, ::flyteidl::admin::GetTaskResponse>(std::bind(&WithStreamedUnaryMethod_GetTask::StreamedGetTask, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetTask(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::GetTaskRequest,::flyteidl::admin::GetTaskResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_DeleteTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_DeleteTask() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::DeleteTaskRequest, ::flyteidl::admin::DeleteTaskResponse>(std::bind(&WithStreamedUnaryMethod_DeleteTask::StreamedDeleteTask, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_DeleteTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedDeleteTask(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::DeleteTaskRequest,::flyteidl::admin::DeleteTaskResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_CreateTask > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_CreateTask > > StreamedService; +}; + +} // namespace service +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fservice_2fagent_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/agent.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/agent.pb.cc new file mode 100644 index 00000000000..e4b6c0ebb19 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/agent.pb.cc @@ -0,0 +1,80 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/service/agent.proto + +#include "flyteidl/service/agent.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +namespace flyteidl { +namespace service { +} // namespace service +} // namespace flyteidl +void InitDefaults_flyteidl_2fservice_2fagent_2eproto() { +} + +constexpr ::google::protobuf::Metadata* file_level_metadata_flyteidl_2fservice_2fagent_2eproto = nullptr; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fservice_2fagent_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fservice_2fagent_2eproto = nullptr; +const ::google::protobuf::uint32 TableStruct_flyteidl_2fservice_2fagent_2eproto::offsets[1] = {}; +static constexpr ::google::protobuf::internal::MigrationSchema* schemas = nullptr; +static constexpr ::google::protobuf::Message* const* file_default_instances = nullptr; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fservice_2fagent_2eproto = { + {}, AddDescriptors_flyteidl_2fservice_2fagent_2eproto, "flyteidl/service/agent.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fservice_2fagent_2eproto::offsets, + file_level_metadata_flyteidl_2fservice_2fagent_2eproto, 0, file_level_enum_descriptors_flyteidl_2fservice_2fagent_2eproto, file_level_service_descriptors_flyteidl_2fservice_2fagent_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fservice_2fagent_2eproto[] = + "\n\034flyteidl/service/agent.proto\022\020flyteidl" + ".service\032\032flyteidl/admin/agent.proto2\217\002\n" + "\021AsyncAgentService\022U\n\nCreateTask\022!.flyte" + "idl.admin.CreateTaskRequest\032\".flyteidl.a" + "dmin.CreateTaskResponse\"\000\022L\n\007GetTask\022\036.f" + "lyteidl.admin.GetTaskRequest\032\037.flyteidl." + "admin.GetTaskResponse\"\000\022U\n\nDeleteTask\022!." + "flyteidl.admin.DeleteTaskRequest\032\".flyte" + "idl.admin.DeleteTaskResponse\"\000B9Z7github" + ".com/flyteorg/flyteidl/gen/pb-go/flyteid" + "l/serviceb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fservice_2fagent_2eproto = { + false, InitDefaults_flyteidl_2fservice_2fagent_2eproto, + descriptor_table_protodef_flyteidl_2fservice_2fagent_2eproto, + "flyteidl/service/agent.proto", &assign_descriptors_table_flyteidl_2fservice_2fagent_2eproto, 417, +}; + +void AddDescriptors_flyteidl_2fservice_2fagent_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + ::AddDescriptors_flyteidl_2fadmin_2fagent_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fservice_2fagent_2eproto, deps, 1); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fservice_2fagent_2eproto = []() { AddDescriptors_flyteidl_2fservice_2fagent_2eproto(); return true; }(); +namespace flyteidl { +namespace service { + +// @@protoc_insertion_point(namespace_scope) +} // namespace service +} // namespace flyteidl +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/agent.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/agent.pb.h new file mode 100644 index 00000000000..367d5b767e2 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/agent.pb.h @@ -0,0 +1,81 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/service/agent.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fservice_2fagent_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fservice_2fagent_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include "flyteidl/admin/agent.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fservice_2fagent_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fservice_2fagent_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[1] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fservice_2fagent_2eproto(); +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace service { + +// =================================================================== + + +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace service +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fservice_2fagent_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/agent_service.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/agent_service.grpc.pb.cc deleted file mode 100644 index 45705ad3d4a..00000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/service/agent_service.grpc.pb.cc +++ /dev/null @@ -1,169 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/service/agent_service.proto - -#include "flyteidl/service/agent_service.pb.h" -#include "flyteidl/service/agent_service.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace service { - -static const char* AgentService_method_names[] = { - "/flyteidl.service.AgentService/CreateTask", - "/flyteidl.service.AgentService/GetTask", - "/flyteidl.service.AgentService/DeleteTask", -}; - -std::unique_ptr< AgentService::Stub> AgentService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { - (void)options; - std::unique_ptr< AgentService::Stub> stub(new AgentService::Stub(channel)); - return stub; -} - -AgentService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) - : channel_(channel), rpcmethod_CreateTask_(AgentService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetTask_(AgentService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DeleteTask_(AgentService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - {} - -::grpc::Status AgentService::Stub::CreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::flyteidl::service::TaskCreateResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateTask_, context, request, response); -} - -void AgentService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, std::move(f)); -} - -void AgentService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskCreateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, std::move(f)); -} - -void AgentService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, reactor); -} - -void AgentService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskCreateResponse>* AgentService::Stub::AsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::TaskCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateTask_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskCreateResponse>* AgentService::Stub::PrepareAsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::TaskCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateTask_, context, request, false); -} - -::grpc::Status AgentService::Stub::GetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::flyteidl::service::TaskGetResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetTask_, context, request, response); -} - -void AgentService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, std::move(f)); -} - -void AgentService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskGetResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, std::move(f)); -} - -void AgentService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, reactor); -} - -void AgentService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskGetResponse>* AgentService::Stub::AsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::TaskGetResponse>::Create(channel_.get(), cq, rpcmethod_GetTask_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskGetResponse>* AgentService::Stub::PrepareAsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::TaskGetResponse>::Create(channel_.get(), cq, rpcmethod_GetTask_, context, request, false); -} - -::grpc::Status AgentService::Stub::DeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::flyteidl::service::TaskDeleteResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteTask_, context, request, response); -} - -void AgentService::Stub::experimental_async::DeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteTask_, context, request, response, std::move(f)); -} - -void AgentService::Stub::experimental_async::DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskDeleteResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteTask_, context, request, response, std::move(f)); -} - -void AgentService::Stub::experimental_async::DeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteTask_, context, request, response, reactor); -} - -void AgentService::Stub::experimental_async::DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteTask_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskDeleteResponse>* AgentService::Stub::AsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::TaskDeleteResponse>::Create(channel_.get(), cq, rpcmethod_DeleteTask_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskDeleteResponse>* AgentService::Stub::PrepareAsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::TaskDeleteResponse>::Create(channel_.get(), cq, rpcmethod_DeleteTask_, context, request, false); -} - -AgentService::Service::Service() { - AddMethod(new ::grpc::internal::RpcServiceMethod( - AgentService_method_names[0], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AgentService::Service, ::flyteidl::service::TaskCreateRequest, ::flyteidl::service::TaskCreateResponse>( - std::mem_fn(&AgentService::Service::CreateTask), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AgentService_method_names[1], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AgentService::Service, ::flyteidl::service::TaskGetRequest, ::flyteidl::service::TaskGetResponse>( - std::mem_fn(&AgentService::Service::GetTask), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AgentService_method_names[2], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AgentService::Service, ::flyteidl::service::TaskDeleteRequest, ::flyteidl::service::TaskDeleteResponse>( - std::mem_fn(&AgentService::Service::DeleteTask), this))); -} - -AgentService::Service::~Service() { -} - -::grpc::Status AgentService::Service::CreateTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AgentService::Service::GetTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AgentService::Service::DeleteTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - - -} // namespace flyteidl -} // namespace service - diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.grpc.pb.cc new file mode 100644 index 00000000000..be7a2ec520f --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.grpc.pb.cc @@ -0,0 +1,169 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/service/external_plugin_service.proto + +#include "flyteidl/service/external_plugin_service.pb.h" +#include "flyteidl/service/external_plugin_service.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace service { + +static const char* ExternalPluginService_method_names[] = { + "/flyteidl.service.ExternalPluginService/CreateTask", + "/flyteidl.service.ExternalPluginService/GetTask", + "/flyteidl.service.ExternalPluginService/DeleteTask", +}; + +std::unique_ptr< ExternalPluginService::Stub> ExternalPluginService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< ExternalPluginService::Stub> stub(new ExternalPluginService::Stub(channel)); + return stub; +} + +ExternalPluginService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_CreateTask_(ExternalPluginService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetTask_(ExternalPluginService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteTask_(ExternalPluginService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status ExternalPluginService::Stub::CreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::flyteidl::service::TaskCreateResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateTask_, context, request, response); +} + +void ExternalPluginService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, std::move(f)); +} + +void ExternalPluginService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskCreateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, std::move(f)); +} + +void ExternalPluginService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, reactor); +} + +void ExternalPluginService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskCreateResponse>* ExternalPluginService::Stub::AsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::TaskCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateTask_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskCreateResponse>* ExternalPluginService::Stub::PrepareAsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::TaskCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateTask_, context, request, false); +} + +::grpc::Status ExternalPluginService::Stub::GetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::flyteidl::service::TaskGetResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetTask_, context, request, response); +} + +void ExternalPluginService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, std::move(f)); +} + +void ExternalPluginService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskGetResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, std::move(f)); +} + +void ExternalPluginService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, reactor); +} + +void ExternalPluginService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskGetResponse>* ExternalPluginService::Stub::AsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::TaskGetResponse>::Create(channel_.get(), cq, rpcmethod_GetTask_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskGetResponse>* ExternalPluginService::Stub::PrepareAsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::TaskGetResponse>::Create(channel_.get(), cq, rpcmethod_GetTask_, context, request, false); +} + +::grpc::Status ExternalPluginService::Stub::DeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::flyteidl::service::TaskDeleteResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteTask_, context, request, response); +} + +void ExternalPluginService::Stub::experimental_async::DeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteTask_, context, request, response, std::move(f)); +} + +void ExternalPluginService::Stub::experimental_async::DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskDeleteResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteTask_, context, request, response, std::move(f)); +} + +void ExternalPluginService::Stub::experimental_async::DeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteTask_, context, request, response, reactor); +} + +void ExternalPluginService::Stub::experimental_async::DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteTask_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskDeleteResponse>* ExternalPluginService::Stub::AsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::TaskDeleteResponse>::Create(channel_.get(), cq, rpcmethod_DeleteTask_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskDeleteResponse>* ExternalPluginService::Stub::PrepareAsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::TaskDeleteResponse>::Create(channel_.get(), cq, rpcmethod_DeleteTask_, context, request, false); +} + +ExternalPluginService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + ExternalPluginService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ExternalPluginService::Service, ::flyteidl::service::TaskCreateRequest, ::flyteidl::service::TaskCreateResponse>( + std::mem_fn(&ExternalPluginService::Service::CreateTask), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ExternalPluginService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ExternalPluginService::Service, ::flyteidl::service::TaskGetRequest, ::flyteidl::service::TaskGetResponse>( + std::mem_fn(&ExternalPluginService::Service::GetTask), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ExternalPluginService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ExternalPluginService::Service, ::flyteidl::service::TaskDeleteRequest, ::flyteidl::service::TaskDeleteResponse>( + std::mem_fn(&ExternalPluginService::Service::DeleteTask), this))); +} + +ExternalPluginService::Service::~Service() { +} + +::grpc::Status ExternalPluginService::Service::CreateTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status ExternalPluginService::Service::GetTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status ExternalPluginService::Service::DeleteTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace flyteidl +} // namespace service + diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/agent_service.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.grpc.pb.h similarity index 98% rename from flyteidl/gen/pb-cpp/flyteidl/service/agent_service.grpc.pb.h rename to flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.grpc.pb.h index 939c85ed7b0..bd26ab1805d 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/service/agent_service.grpc.pb.h +++ b/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.grpc.pb.h @@ -1,10 +1,10 @@ // Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. -// source: flyteidl/service/agent_service.proto -#ifndef GRPC_flyteidl_2fservice_2fagent_5fservice_2eproto__INCLUDED -#define GRPC_flyteidl_2fservice_2fagent_5fservice_2eproto__INCLUDED +// source: flyteidl/service/external_plugin_service.proto +#ifndef GRPC_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto__INCLUDED +#define GRPC_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto__INCLUDED -#include "flyteidl/service/agent_service.pb.h" +#include "flyteidl/service/external_plugin_service.pb.h" #include #include @@ -40,16 +40,16 @@ class ServerContext; namespace flyteidl { namespace service { -// AgentService defines an RPC Service that allows propeller to send the request to the agent server. -class AgentService final { +// ExternalPluginService defines an RPC Service that allows propeller to send the request to the backend plugin server. +class ExternalPluginService final { public: static constexpr char const* service_full_name() { - return "flyteidl.service.AgentService"; + return "flyteidl.service.ExternalPluginService"; } class StubInterface { public: virtual ~StubInterface() {} - // Send a task create request to the agent server. + // Send a task create request to the backend plugin server. virtual ::grpc::Status CreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::flyteidl::service::TaskCreateResponse* response) = 0; std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskCreateResponse>> AsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskCreateResponse>>(AsyncCreateTaskRaw(context, request, cq)); @@ -76,7 +76,7 @@ class AgentService final { class experimental_async_interface { public: virtual ~experimental_async_interface() {} - // Send a task create request to the agent server. + // Send a task create request to the backend plugin server. virtual void CreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response, std::function) = 0; virtual void CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskCreateResponse* response, std::function) = 0; virtual void CreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; @@ -167,7 +167,7 @@ class AgentService final { public: Service(); virtual ~Service(); - // Send a task create request to the agent server. + // Send a task create request to the backend plugin server. virtual ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response); // Get job status. virtual ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response); @@ -584,4 +584,4 @@ class AgentService final { } // namespace flyteidl -#endif // GRPC_flyteidl_2fservice_2fagent_5fservice_2eproto__INCLUDED +#endif // GRPC_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/agent_service.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.pb.cc similarity index 92% rename from flyteidl/gen/pb-cpp/flyteidl/service/agent_service.pb.cc rename to flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.pb.cc index ed248cee2e2..f353dcdd01e 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/service/agent_service.pb.cc +++ b/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.pb.cc @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/service/agent_service.proto +// source: flyteidl/service/external_plugin_service.proto -#include "flyteidl/service/agent_service.pb.h" +#include "flyteidl/service/external_plugin_service.pb.h" #include @@ -46,7 +46,7 @@ class TaskDeleteResponseDefaultTypeInternal { } _TaskDeleteResponse_default_instance_; } // namespace service } // namespace flyteidl -static void InitDefaultsTaskCreateRequest_flyteidl_2fservice_2fagent_5fservice_2eproto() { +static void InitDefaultsTaskCreateRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -57,12 +57,12 @@ static void InitDefaultsTaskCreateRequest_flyteidl_2fservice_2fagent_5fservice_2 ::flyteidl::service::TaskCreateRequest::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<2> scc_info_TaskCreateRequest_flyteidl_2fservice_2fagent_5fservice_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTaskCreateRequest_flyteidl_2fservice_2fagent_5fservice_2eproto}, { +::google::protobuf::internal::SCCInfo<2> scc_info_TaskCreateRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTaskCreateRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto}, { &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, &scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto.base,}}; -static void InitDefaultsTaskCreateResponse_flyteidl_2fservice_2fagent_5fservice_2eproto() { +static void InitDefaultsTaskCreateResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -73,10 +73,10 @@ static void InitDefaultsTaskCreateResponse_flyteidl_2fservice_2fagent_5fservice_ ::flyteidl::service::TaskCreateResponse::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_TaskCreateResponse_flyteidl_2fservice_2fagent_5fservice_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskCreateResponse_flyteidl_2fservice_2fagent_5fservice_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_TaskCreateResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskCreateResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto}, {}}; -static void InitDefaultsTaskGetRequest_flyteidl_2fservice_2fagent_5fservice_2eproto() { +static void InitDefaultsTaskGetRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -87,10 +87,10 @@ static void InitDefaultsTaskGetRequest_flyteidl_2fservice_2fagent_5fservice_2epr ::flyteidl::service::TaskGetRequest::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_TaskGetRequest_flyteidl_2fservice_2fagent_5fservice_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskGetRequest_flyteidl_2fservice_2fagent_5fservice_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_TaskGetRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskGetRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto}, {}}; -static void InitDefaultsTaskGetResponse_flyteidl_2fservice_2fagent_5fservice_2eproto() { +static void InitDefaultsTaskGetResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -101,11 +101,11 @@ static void InitDefaultsTaskGetResponse_flyteidl_2fservice_2fagent_5fservice_2ep ::flyteidl::service::TaskGetResponse::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<1> scc_info_TaskGetResponse_flyteidl_2fservice_2fagent_5fservice_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTaskGetResponse_flyteidl_2fservice_2fagent_5fservice_2eproto}, { +::google::protobuf::internal::SCCInfo<1> scc_info_TaskGetResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTaskGetResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto}, { &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base,}}; -static void InitDefaultsTaskDeleteRequest_flyteidl_2fservice_2fagent_5fservice_2eproto() { +static void InitDefaultsTaskDeleteRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -116,10 +116,10 @@ static void InitDefaultsTaskDeleteRequest_flyteidl_2fservice_2fagent_5fservice_2 ::flyteidl::service::TaskDeleteRequest::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_TaskDeleteRequest_flyteidl_2fservice_2fagent_5fservice_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskDeleteRequest_flyteidl_2fservice_2fagent_5fservice_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_TaskDeleteRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskDeleteRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto}, {}}; -static void InitDefaultsTaskDeleteResponse_flyteidl_2fservice_2fagent_5fservice_2eproto() { +static void InitDefaultsTaskDeleteResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -130,23 +130,23 @@ static void InitDefaultsTaskDeleteResponse_flyteidl_2fservice_2fagent_5fservice_ ::flyteidl::service::TaskDeleteResponse::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_TaskDeleteResponse_flyteidl_2fservice_2fagent_5fservice_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskDeleteResponse_flyteidl_2fservice_2fagent_5fservice_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_TaskDeleteResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskDeleteResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto}, {}}; -void InitDefaults_flyteidl_2fservice_2fagent_5fservice_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_TaskCreateRequest_flyteidl_2fservice_2fagent_5fservice_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskCreateResponse_flyteidl_2fservice_2fagent_5fservice_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskGetRequest_flyteidl_2fservice_2fagent_5fservice_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskGetResponse_flyteidl_2fservice_2fagent_5fservice_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskDeleteRequest_flyteidl_2fservice_2fagent_5fservice_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskDeleteResponse_flyteidl_2fservice_2fagent_5fservice_2eproto.base); +void InitDefaults_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_TaskCreateRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskCreateResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskGetRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskGetResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskDeleteRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskDeleteResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); } -::google::protobuf::Metadata file_level_metadata_flyteidl_2fservice_2fagent_5fservice_2eproto[6]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fservice_2fagent_5fservice_2eproto[1]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fservice_2fagent_5fservice_2eproto = nullptr; +::google::protobuf::Metadata file_level_metadata_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[6]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[1]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = nullptr; -const ::google::protobuf::uint32 TableStruct_flyteidl_2fservice_2fagent_5fservice_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const ::google::protobuf::uint32 TableStruct_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskCreateRequest, _internal_metadata_), ~0u, // no _extensions_ @@ -206,62 +206,64 @@ static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::flyteidl::service::_TaskDeleteResponse_default_instance_), }; -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fservice_2fagent_5fservice_2eproto = { - {}, AddDescriptors_flyteidl_2fservice_2fagent_5fservice_2eproto, "flyteidl/service/agent_service.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fservice_2fagent_5fservice_2eproto::offsets, - file_level_metadata_flyteidl_2fservice_2fagent_5fservice_2eproto, 6, file_level_enum_descriptors_flyteidl_2fservice_2fagent_5fservice_2eproto, file_level_service_descriptors_flyteidl_2fservice_2fagent_5fservice_2eproto, +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = { + {}, AddDescriptors_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto, "flyteidl/service/external_plugin_service.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto::offsets, + file_level_metadata_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto, 6, file_level_enum_descriptors_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto, file_level_service_descriptors_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto, }; -const char descriptor_table_protodef_flyteidl_2fservice_2fagent_5fservice_2eproto[] = - "\n$flyteidl/service/agent_service.proto\022\020" - "flyteidl.service\032\034flyteidl/core/literals" - ".proto\032\031flyteidl/core/tasks.proto\032\035flyte" - "idl/core/interface.proto\"\204\001\n\021TaskCreateR" - "equest\022)\n\006inputs\030\001 \001(\0132\031.flyteidl.core.L" - "iteralMap\022-\n\010template\030\002 \001(\0132\033.flyteidl.c" - "ore.TaskTemplate\022\025\n\routput_prefix\030\003 \001(\t\"" - "$\n\022TaskCreateResponse\022\016\n\006job_id\030\001 \001(\t\"3\n" - "\016TaskGetRequest\022\021\n\ttask_type\030\001 \001(\t\022\016\n\006jo" - "b_id\030\002 \001(\t\"e\n\017TaskGetResponse\022&\n\005state\030\001" - " \001(\0162\027.flyteidl.service.State\022*\n\007outputs" - "\030\002 \001(\0132\031.flyteidl.core.LiteralMap\"6\n\021Tas" - "kDeleteRequest\022\021\n\ttask_type\030\001 \001(\t\022\016\n\006job" - "_id\030\002 \001(\t\"\024\n\022TaskDeleteResponse*^\n\005State" - "\022\025\n\021RETRYABLE_FAILURE\020\000\022\025\n\021PERMANENT_FAI" - "LURE\020\001\022\013\n\007PENDING\020\002\022\013\n\007RUNNING\020\003\022\r\n\tSUCC" - "EEDED\020\0042\226\002\n\014AgentService\022Y\n\nCreateTask\022#" - ".flyteidl.service.TaskCreateRequest\032$.fl" - "yteidl.service.TaskCreateResponse\"\000\022P\n\007G" - "etTask\022 .flyteidl.service.TaskGetRequest" - "\032!.flyteidl.service.TaskGetResponse\"\000\022Y\n" - "\nDeleteTask\022#.flyteidl.service.TaskDelet" - "eRequest\032$.flyteidl.service.TaskDeleteRe" - "sponse\"\000B9Z7github.com/flyteorg/flyteidl" - "/gen/pb-go/flyteidl/serviceb\006proto3" +const char descriptor_table_protodef_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[] = + "\n.flyteidl/service/external_plugin_servi" + "ce.proto\022\020flyteidl.service\032\034flyteidl/cor" + "e/literals.proto\032\031flyteidl/core/tasks.pr" + "oto\032\035flyteidl/core/interface.proto\"\210\001\n\021T" + "askCreateRequest\022)\n\006inputs\030\001 \001(\0132\031.flyte" + "idl.core.LiteralMap\022-\n\010template\030\002 \001(\0132\033." + "flyteidl.core.TaskTemplate\022\025\n\routput_pre" + "fix\030\003 \001(\t:\002\030\001\"(\n\022TaskCreateResponse\022\016\n\006j" + "ob_id\030\001 \001(\t:\002\030\001\"7\n\016TaskGetRequest\022\021\n\ttas" + "k_type\030\001 \001(\t\022\016\n\006job_id\030\002 \001(\t:\002\030\001\"i\n\017Task" + "GetResponse\022&\n\005state\030\001 \001(\0162\027.flyteidl.se" + "rvice.State\022*\n\007outputs\030\002 \001(\0132\031.flyteidl." + "core.LiteralMap:\002\030\001\":\n\021TaskDeleteRequest" + "\022\021\n\ttask_type\030\001 \001(\t\022\016\n\006job_id\030\002 \001(\t:\002\030\001\"" + "\030\n\022TaskDeleteResponse:\002\030\001*b\n\005State\022\025\n\021RE" + "TRYABLE_FAILURE\020\000\022\025\n\021PERMANENT_FAILURE\020\001" + "\022\013\n\007PENDING\020\002\022\013\n\007RUNNING\020\003\022\r\n\tSUCCEEDED\020" + "\004\032\002\030\0012\250\002\n\025ExternalPluginService\022\\\n\nCreat" + "eTask\022#.flyteidl.service.TaskCreateReque" + "st\032$.flyteidl.service.TaskCreateResponse" + "\"\003\210\002\001\022S\n\007GetTask\022 .flyteidl.service.Task" + "GetRequest\032!.flyteidl.service.TaskGetRes" + "ponse\"\003\210\002\001\022\\\n\nDeleteTask\022#.flyteidl.serv" + "ice.TaskDeleteRequest\032$.flyteidl.service" + ".TaskDeleteResponse\"\003\210\002\001B9Z7github.com/f" + "lyteorg/flyteidl/gen/pb-go/flyteidl/serv" + "iceb\006proto3" ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fservice_2fagent_5fservice_2eproto = { - false, InitDefaults_flyteidl_2fservice_2fagent_5fservice_2eproto, - descriptor_table_protodef_flyteidl_2fservice_2fagent_5fservice_2eproto, - "flyteidl/service/agent_service.proto", &assign_descriptors_table_flyteidl_2fservice_2fagent_5fservice_2eproto, 995, +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = { + false, InitDefaults_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto, + descriptor_table_protodef_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto, + "flyteidl/service/external_plugin_service.proto", &assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto, 1051, }; -void AddDescriptors_flyteidl_2fservice_2fagent_5fservice_2eproto() { +void AddDescriptors_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { static constexpr ::google::protobuf::internal::InitFunc deps[3] = { ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, ::AddDescriptors_flyteidl_2fcore_2ftasks_2eproto, ::AddDescriptors_flyteidl_2fcore_2finterface_2eproto, }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fservice_2fagent_5fservice_2eproto, deps, 3); + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto, deps, 3); } // Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fservice_2fagent_5fservice_2eproto = []() { AddDescriptors_flyteidl_2fservice_2fagent_5fservice_2eproto(); return true; }(); +static bool dynamic_init_dummy_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = []() { AddDescriptors_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto(); return true; }(); namespace flyteidl { namespace service { const ::google::protobuf::EnumDescriptor* State_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fservice_2fagent_5fservice_2eproto); - return file_level_enum_descriptors_flyteidl_2fservice_2fagent_5fservice_2eproto[0]; + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto); + return file_level_enum_descriptors_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[0]; } bool State_IsValid(int value) { switch (value) { @@ -345,7 +347,7 @@ TaskCreateRequest::TaskCreateRequest(const TaskCreateRequest& from) void TaskCreateRequest::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_TaskCreateRequest_flyteidl_2fservice_2fagent_5fservice_2eproto.base); + &scc_info_TaskCreateRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); output_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&inputs_, 0, static_cast( reinterpret_cast(&template__) - @@ -367,7 +369,7 @@ void TaskCreateRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } const TaskCreateRequest& TaskCreateRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskCreateRequest_flyteidl_2fservice_2fagent_5fservice_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_TaskCreateRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); return *internal_default_instance(); } @@ -716,8 +718,8 @@ void TaskCreateRequest::InternalSwap(TaskCreateRequest* other) { } ::google::protobuf::Metadata TaskCreateRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fagent_5fservice_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fagent_5fservice_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[kIndexInFileMessages]; } @@ -751,7 +753,7 @@ TaskCreateResponse::TaskCreateResponse(const TaskCreateResponse& from) void TaskCreateResponse::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_TaskCreateResponse_flyteidl_2fservice_2fagent_5fservice_2eproto.base); + &scc_info_TaskCreateResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); job_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -768,7 +770,7 @@ void TaskCreateResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } const TaskCreateResponse& TaskCreateResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskCreateResponse_flyteidl_2fservice_2fagent_5fservice_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_TaskCreateResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); return *internal_default_instance(); } @@ -1013,8 +1015,8 @@ void TaskCreateResponse::InternalSwap(TaskCreateResponse* other) { } ::google::protobuf::Metadata TaskCreateResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fagent_5fservice_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fagent_5fservice_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[kIndexInFileMessages]; } @@ -1053,7 +1055,7 @@ TaskGetRequest::TaskGetRequest(const TaskGetRequest& from) void TaskGetRequest::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_TaskGetRequest_flyteidl_2fservice_2fagent_5fservice_2eproto.base); + &scc_info_TaskGetRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); job_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -1072,7 +1074,7 @@ void TaskGetRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } const TaskGetRequest& TaskGetRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskGetRequest_flyteidl_2fservice_2fagent_5fservice_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_TaskGetRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); return *internal_default_instance(); } @@ -1383,8 +1385,8 @@ void TaskGetRequest::InternalSwap(TaskGetRequest* other) { } ::google::protobuf::Metadata TaskGetRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fagent_5fservice_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fagent_5fservice_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[kIndexInFileMessages]; } @@ -1434,7 +1436,7 @@ TaskGetResponse::TaskGetResponse(const TaskGetResponse& from) void TaskGetResponse::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_TaskGetResponse_flyteidl_2fservice_2fagent_5fservice_2eproto.base); + &scc_info_TaskGetResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); ::memset(&outputs_, 0, static_cast( reinterpret_cast(&state_) - reinterpret_cast(&outputs_)) + sizeof(state_)); @@ -1453,7 +1455,7 @@ void TaskGetResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } const TaskGetResponse& TaskGetResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskGetResponse_flyteidl_2fservice_2fagent_5fservice_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_TaskGetResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); return *internal_default_instance(); } @@ -1725,8 +1727,8 @@ void TaskGetResponse::InternalSwap(TaskGetResponse* other) { } ::google::protobuf::Metadata TaskGetResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fagent_5fservice_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fagent_5fservice_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[kIndexInFileMessages]; } @@ -1765,7 +1767,7 @@ TaskDeleteRequest::TaskDeleteRequest(const TaskDeleteRequest& from) void TaskDeleteRequest::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_TaskDeleteRequest_flyteidl_2fservice_2fagent_5fservice_2eproto.base); + &scc_info_TaskDeleteRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); job_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -1784,7 +1786,7 @@ void TaskDeleteRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } const TaskDeleteRequest& TaskDeleteRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskDeleteRequest_flyteidl_2fservice_2fagent_5fservice_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_TaskDeleteRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); return *internal_default_instance(); } @@ -2095,8 +2097,8 @@ void TaskDeleteRequest::InternalSwap(TaskDeleteRequest* other) { } ::google::protobuf::Metadata TaskDeleteRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fagent_5fservice_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fagent_5fservice_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[kIndexInFileMessages]; } @@ -2138,7 +2140,7 @@ void TaskDeleteResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } const TaskDeleteResponse& TaskDeleteResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskDeleteResponse_flyteidl_2fservice_2fagent_5fservice_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_TaskDeleteResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); return *internal_default_instance(); } @@ -2304,8 +2306,8 @@ void TaskDeleteResponse::InternalSwap(TaskDeleteResponse* other) { } ::google::protobuf::Metadata TaskDeleteResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fagent_5fservice_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fagent_5fservice_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[kIndexInFileMessages]; } diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/agent_service.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.pb.h similarity index 97% rename from flyteidl/gen/pb-cpp/flyteidl/service/agent_service.pb.h rename to flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.pb.h index e05d33c39ba..82d5616c5cb 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/service/agent_service.pb.h +++ b/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.pb.h @@ -1,8 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/service/agent_service.proto +// source: flyteidl/service/external_plugin_service.proto -#ifndef PROTOBUF_INCLUDED_flyteidl_2fservice_2fagent_5fservice_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fservice_2fagent_5fservice_2eproto +#ifndef PROTOBUF_INCLUDED_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto #include #include @@ -37,10 +37,10 @@ #include "flyteidl/core/interface.pb.h" // @@protoc_insertion_point(includes) #include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fservice_2fagent_5fservice_2eproto +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto // Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fservice_2fagent_5fservice_2eproto { +struct TableStruct_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto { static const ::google::protobuf::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::AuxillaryParseTableField aux[] @@ -51,7 +51,7 @@ struct TableStruct_flyteidl_2fservice_2fagent_5fservice_2eproto { static const ::google::protobuf::internal::SerializationTable serialization_table[]; static const ::google::protobuf::uint32 offsets[]; }; -void AddDescriptors_flyteidl_2fservice_2fagent_5fservice_2eproto(); +void AddDescriptors_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto(); namespace flyteidl { namespace service { class TaskCreateRequest; @@ -249,7 +249,7 @@ class TaskCreateRequest final : ::flyteidl::core::LiteralMap* inputs_; ::flyteidl::core::TaskTemplate* template__; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fservice_2fagent_5fservice_2eproto; + friend struct ::TableStruct_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto; }; // ------------------------------------------------------------------- @@ -369,7 +369,7 @@ class TaskCreateResponse final : ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::ArenaStringPtr job_id_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fservice_2fagent_5fservice_2eproto; + friend struct ::TableStruct_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto; }; // ------------------------------------------------------------------- @@ -504,7 +504,7 @@ class TaskGetRequest final : ::google::protobuf::internal::ArenaStringPtr task_type_; ::google::protobuf::internal::ArenaStringPtr job_id_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fservice_2fagent_5fservice_2eproto; + friend struct ::TableStruct_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto; }; // ------------------------------------------------------------------- @@ -626,7 +626,7 @@ class TaskGetResponse final : ::flyteidl::core::LiteralMap* outputs_; int state_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fservice_2fagent_5fservice_2eproto; + friend struct ::TableStruct_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto; }; // ------------------------------------------------------------------- @@ -761,7 +761,7 @@ class TaskDeleteRequest final : ::google::protobuf::internal::ArenaStringPtr task_type_; ::google::protobuf::internal::ArenaStringPtr job_id_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fservice_2fagent_5fservice_2eproto; + friend struct ::TableStruct_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto; }; // ------------------------------------------------------------------- @@ -866,7 +866,7 @@ class TaskDeleteResponse final : ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fservice_2fagent_5fservice_2eproto; + friend struct ::TableStruct_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto; }; // =================================================================== @@ -1400,4 +1400,4 @@ inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::service::State>() { // @@protoc_insertion_point(global_scope) #include -#endif // PROTOBUF_INCLUDED_flyteidl_2fservice_2fagent_5fservice_2eproto +#endif // PROTOBUF_INCLUDED_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto 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 00000000000..89448da472a --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go @@ -0,0 +1,428 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/agent.proto + +package admin + +import ( + fmt "fmt" + core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// The state of the execution is used to control its visibility in the UI/CLI. +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 +) + +var State_name = map[int32]string{ + 0: "RETRYABLE_FAILURE", + 1: "PERMANENT_FAILURE", + 2: "PENDING", + 3: "RUNNING", + 4: "SUCCEEDED", +} + +var State_value = map[string]int32{ + "RETRYABLE_FAILURE": 0, + "PERMANENT_FAILURE": 1, + "PENDING": 2, + "RUNNING": 3, + "SUCCEEDED": 4, +} + +func (x State) String() string { + return proto.EnumName(State_name, int32(x)) +} + +func (State) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_c434e52bb0028071, []int{0} +} + +// Represents a request structure to create task. +type CreateTaskRequest struct { + // 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"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateTaskRequest) Reset() { *m = CreateTaskRequest{} } +func (m *CreateTaskRequest) String() string { return proto.CompactTextString(m) } +func (*CreateTaskRequest) ProtoMessage() {} +func (*CreateTaskRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_c434e52bb0028071, []int{0} +} + +func (m *CreateTaskRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateTaskRequest.Unmarshal(m, b) +} +func (m *CreateTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateTaskRequest.Marshal(b, m, deterministic) +} +func (m *CreateTaskRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateTaskRequest.Merge(m, src) +} +func (m *CreateTaskRequest) XXX_Size() int { + return xxx_messageInfo_CreateTaskRequest.Size(m) +} +func (m *CreateTaskRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateTaskRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateTaskRequest proto.InternalMessageInfo + +func (m *CreateTaskRequest) GetInputs() *core.LiteralMap { + if m != nil { + return m.Inputs + } + return nil +} + +func (m *CreateTaskRequest) GetTemplate() *core.TaskTemplate { + if m != nil { + return m.Template + } + return nil +} + +func (m *CreateTaskRequest) GetOutputPrefix() string { + if m != nil { + return m.OutputPrefix + } + return "" +} + +// Represents a create response structure. +type CreateTaskResponse struct { + // Metadata 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"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateTaskResponse) Reset() { *m = CreateTaskResponse{} } +func (m *CreateTaskResponse) String() string { return proto.CompactTextString(m) } +func (*CreateTaskResponse) ProtoMessage() {} +func (*CreateTaskResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c434e52bb0028071, []int{1} +} + +func (m *CreateTaskResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateTaskResponse.Unmarshal(m, b) +} +func (m *CreateTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateTaskResponse.Marshal(b, m, deterministic) +} +func (m *CreateTaskResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateTaskResponse.Merge(m, src) +} +func (m *CreateTaskResponse) XXX_Size() int { + return xxx_messageInfo_CreateTaskResponse.Size(m) +} +func (m *CreateTaskResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CreateTaskResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateTaskResponse proto.InternalMessageInfo + +func (m *CreateTaskResponse) GetResourceMeta() []byte { + if m != nil { + return m.ResourceMeta + } + return nil +} + +// A message used to fetch a job resource from flyte agent server. +type GetTaskRequest struct { + // A predefined yet extensible Task type identifier. + 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"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetTaskRequest) Reset() { *m = GetTaskRequest{} } +func (m *GetTaskRequest) String() string { return proto.CompactTextString(m) } +func (*GetTaskRequest) ProtoMessage() {} +func (*GetTaskRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_c434e52bb0028071, []int{2} +} + +func (m *GetTaskRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetTaskRequest.Unmarshal(m, b) +} +func (m *GetTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetTaskRequest.Marshal(b, m, deterministic) +} +func (m *GetTaskRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetTaskRequest.Merge(m, src) +} +func (m *GetTaskRequest) XXX_Size() int { + return xxx_messageInfo_GetTaskRequest.Size(m) +} +func (m *GetTaskRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetTaskRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetTaskRequest proto.InternalMessageInfo + +func (m *GetTaskRequest) GetTaskType() string { + if m != nil { + return m.TaskType + } + return "" +} + +func (m *GetTaskRequest) GetResourceMeta() []byte { + if m != nil { + return m.ResourceMeta + } + return nil +} + +// Response to get an individual task resource. +type GetTaskResponse struct { + Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetTaskResponse) Reset() { *m = GetTaskResponse{} } +func (m *GetTaskResponse) String() string { return proto.CompactTextString(m) } +func (*GetTaskResponse) ProtoMessage() {} +func (*GetTaskResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c434e52bb0028071, []int{3} +} + +func (m *GetTaskResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetTaskResponse.Unmarshal(m, b) +} +func (m *GetTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetTaskResponse.Marshal(b, m, deterministic) +} +func (m *GetTaskResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetTaskResponse.Merge(m, src) +} +func (m *GetTaskResponse) XXX_Size() int { + return xxx_messageInfo_GetTaskResponse.Size(m) +} +func (m *GetTaskResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetTaskResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetTaskResponse proto.InternalMessageInfo + +func (m *GetTaskResponse) GetResource() *Resource { + if m != nil { + return m.Resource + } + return nil +} + +type Resource struct { + // 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.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"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Resource) Reset() { *m = Resource{} } +func (m *Resource) String() string { return proto.CompactTextString(m) } +func (*Resource) ProtoMessage() {} +func (*Resource) Descriptor() ([]byte, []int) { + return fileDescriptor_c434e52bb0028071, []int{4} +} + +func (m *Resource) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Resource.Unmarshal(m, b) +} +func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Resource.Marshal(b, m, deterministic) +} +func (m *Resource) XXX_Merge(src proto.Message) { + xxx_messageInfo_Resource.Merge(m, src) +} +func (m *Resource) XXX_Size() int { + return xxx_messageInfo_Resource.Size(m) +} +func (m *Resource) XXX_DiscardUnknown() { + xxx_messageInfo_Resource.DiscardUnknown(m) +} + +var xxx_messageInfo_Resource proto.InternalMessageInfo + +func (m *Resource) GetState() State { + if m != nil { + return m.State + } + return State_RETRYABLE_FAILURE +} + +func (m *Resource) GetOutputs() *core.LiteralMap { + if m != nil { + return m.Outputs + } + return nil +} + +// A message used to delete a task. +type DeleteTaskRequest struct { + // A predefined yet extensible Task type identifier. + 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"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteTaskRequest) Reset() { *m = DeleteTaskRequest{} } +func (m *DeleteTaskRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteTaskRequest) ProtoMessage() {} +func (*DeleteTaskRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_c434e52bb0028071, []int{5} +} + +func (m *DeleteTaskRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteTaskRequest.Unmarshal(m, b) +} +func (m *DeleteTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteTaskRequest.Marshal(b, m, deterministic) +} +func (m *DeleteTaskRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteTaskRequest.Merge(m, src) +} +func (m *DeleteTaskRequest) XXX_Size() int { + return xxx_messageInfo_DeleteTaskRequest.Size(m) +} +func (m *DeleteTaskRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteTaskRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteTaskRequest proto.InternalMessageInfo + +func (m *DeleteTaskRequest) GetTaskType() string { + if m != nil { + return m.TaskType + } + return "" +} + +func (m *DeleteTaskRequest) GetResourceMeta() []byte { + if m != nil { + return m.ResourceMeta + } + return nil +} + +// Response to delete a task. +type DeleteTaskResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteTaskResponse) Reset() { *m = DeleteTaskResponse{} } +func (m *DeleteTaskResponse) String() string { return proto.CompactTextString(m) } +func (*DeleteTaskResponse) ProtoMessage() {} +func (*DeleteTaskResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c434e52bb0028071, []int{6} +} + +func (m *DeleteTaskResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteTaskResponse.Unmarshal(m, b) +} +func (m *DeleteTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteTaskResponse.Marshal(b, m, deterministic) +} +func (m *DeleteTaskResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteTaskResponse.Merge(m, src) +} +func (m *DeleteTaskResponse) XXX_Size() int { + return xxx_messageInfo_DeleteTaskResponse.Size(m) +} +func (m *DeleteTaskResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteTaskResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteTaskResponse proto.InternalMessageInfo + +func init() { + proto.RegisterEnum("flyteidl.admin.State", State_name, State_value) + proto.RegisterType((*CreateTaskRequest)(nil), "flyteidl.admin.CreateTaskRequest") + proto.RegisterType((*CreateTaskResponse)(nil), "flyteidl.admin.CreateTaskResponse") + proto.RegisterType((*GetTaskRequest)(nil), "flyteidl.admin.GetTaskRequest") + proto.RegisterType((*GetTaskResponse)(nil), "flyteidl.admin.GetTaskResponse") + proto.RegisterType((*Resource)(nil), "flyteidl.admin.Resource") + proto.RegisterType((*DeleteTaskRequest)(nil), "flyteidl.admin.DeleteTaskRequest") + proto.RegisterType((*DeleteTaskResponse)(nil), "flyteidl.admin.DeleteTaskResponse") +} + +func init() { proto.RegisterFile("flyteidl/admin/agent.proto", fileDescriptor_c434e52bb0028071) } + +var fileDescriptor_c434e52bb0028071 = []byte{ + // 464 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x53, 0x4d, 0x6f, 0xda, 0x40, + 0x10, 0x2d, 0xa4, 0x49, 0x60, 0x42, 0x28, 0xac, 0x1a, 0x89, 0x90, 0x56, 0x8a, 0xdc, 0x4b, 0xd4, + 0xaa, 0xb6, 0x9a, 0xb4, 0x8a, 0x7a, 0x24, 0xe0, 0xa2, 0x48, 0x60, 0xa1, 0x8d, 0x39, 0xb4, 0x87, + 0xa2, 0x85, 0x0c, 0xae, 0x15, 0x63, 0x6f, 0xbd, 0x63, 0xa9, 0xfc, 0x9f, 0xfe, 0xd0, 0x6a, 0xfd, + 0x25, 0x1c, 0x45, 0xbd, 0xe4, 0xe8, 0xf7, 0x31, 0xfb, 0xf6, 0xcd, 0x1a, 0xfa, 0xeb, 0x60, 0x4b, + 0xe8, 0xdf, 0x07, 0x96, 0xb8, 0xdf, 0xf8, 0xa1, 0x25, 0x3c, 0x0c, 0xc9, 0x94, 0x71, 0x44, 0x11, + 0x6b, 0x17, 0x9c, 0x99, 0x72, 0xfd, 0x37, 0xa5, 0x76, 0x15, 0xc5, 0x68, 0x05, 0x3e, 0x61, 0x2c, + 0x02, 0x95, 0xa9, 0xfb, 0xa7, 0x55, 0x96, 0x84, 0x7a, 0x28, 0xa8, 0xb7, 0x55, 0xca, 0x0f, 0x09, + 0xe3, 0xb5, 0x58, 0x61, 0x46, 0x1b, 0x7f, 0x6b, 0xd0, 0x1d, 0xc6, 0x28, 0x08, 0x5d, 0xa1, 0x1e, + 0x38, 0xfe, 0x4e, 0x50, 0x11, 0xfb, 0x04, 0x07, 0x7e, 0x28, 0x13, 0x52, 0xbd, 0xda, 0x79, 0xed, + 0xe2, 0xe8, 0xf2, 0xd4, 0x2c, 0xe3, 0xe8, 0x29, 0xe6, 0x24, 0x3b, 0x7e, 0x2a, 0x24, 0xcf, 0x85, + 0xec, 0x1a, 0x1a, 0x84, 0x1b, 0x19, 0x08, 0xc2, 0x5e, 0x3d, 0x35, 0x9d, 0x3d, 0x32, 0xe9, 0x03, + 0xdc, 0x5c, 0xc2, 0x4b, 0x31, 0x7b, 0x07, 0xc7, 0x51, 0x42, 0x32, 0xa1, 0x85, 0x8c, 0x71, 0xed, + 0xff, 0xe9, 0xed, 0x9d, 0xd7, 0x2e, 0x9a, 0xbc, 0x95, 0x81, 0xb3, 0x14, 0x33, 0xbe, 0x02, 0xdb, + 0x4d, 0xa9, 0x64, 0x14, 0xaa, 0xd4, 0x1a, 0xa3, 0x8a, 0x92, 0x78, 0x85, 0x8b, 0x0d, 0x92, 0x48, + 0xd3, 0xb6, 0x78, 0xab, 0x00, 0xa7, 0x48, 0xc2, 0xe0, 0xd0, 0x1e, 0x23, 0xed, 0xde, 0xee, 0x0c, + 0x9a, 0xba, 0xa1, 0x05, 0x6d, 0x25, 0xa6, 0x96, 0x26, 0x6f, 0x68, 0xc0, 0xdd, 0xca, 0x27, 0x66, + 0xd6, 0x9f, 0x98, 0x39, 0x86, 0x57, 0xe5, 0xcc, 0x3c, 0xcb, 0x67, 0x68, 0x14, 0x92, 0xbc, 0xb4, + 0x9e, 0x59, 0xdd, 0xa1, 0xc9, 0x73, 0x9e, 0x97, 0x4a, 0x23, 0x80, 0x46, 0x81, 0xb2, 0x0f, 0xb0, + 0xaf, 0x48, 0xd7, 0xa7, 0xed, 0xed, 0xcb, 0x93, 0xc7, 0xf6, 0x3b, 0x4d, 0xf2, 0x4c, 0xc3, 0xae, + 0xe0, 0x30, 0x2b, 0x48, 0xe5, 0x6d, 0xff, 0x67, 0x45, 0x85, 0xd2, 0x98, 0x43, 0x77, 0x84, 0x01, + 0x56, 0x77, 0xfd, 0xfc, 0x36, 0x5e, 0x03, 0xdb, 0x1d, 0x9b, 0x15, 0xf2, 0xfe, 0x27, 0xec, 0xa7, + 0x89, 0xd9, 0x09, 0x74, 0xb9, 0xed, 0xf2, 0xef, 0x83, 0x9b, 0x89, 0xbd, 0xf8, 0x36, 0xb8, 0x9d, + 0xcc, 0xb9, 0xdd, 0x79, 0xa1, 0xe1, 0x99, 0xcd, 0xa7, 0x03, 0xc7, 0x76, 0xdc, 0x12, 0xae, 0xb1, + 0x23, 0x38, 0x9c, 0xd9, 0xce, 0xe8, 0xd6, 0x19, 0x77, 0xea, 0xfa, 0x83, 0xcf, 0x1d, 0x47, 0x7f, + 0xec, 0xb1, 0x63, 0x68, 0xde, 0xcd, 0x87, 0x43, 0xdb, 0x1e, 0xd9, 0xa3, 0xce, 0xcb, 0x9b, 0xeb, + 0x1f, 0x5f, 0x3c, 0x9f, 0x7e, 0x25, 0x4b, 0x73, 0x15, 0x6d, 0xac, 0xf4, 0xf2, 0x51, 0xec, 0x59, + 0xe5, 0x73, 0xf7, 0x30, 0xb4, 0xe4, 0xf2, 0xa3, 0x17, 0x59, 0xd5, 0xdf, 0x6c, 0x79, 0x90, 0xbe, + 0xfc, 0xab, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xf1, 0x09, 0x9f, 0xcb, 0x7f, 0x03, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.validate.go new file mode 100644 index 00000000000..feaef88ed20 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.validate.go @@ -0,0 +1,553 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/agent.proto + +package admin + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// define the regex for a UUID once up-front +var _agent_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on CreateTaskRequest with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *CreateTaskRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetInputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CreateTaskRequestValidationError{ + field: "Inputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetTemplate()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CreateTaskRequestValidationError{ + field: "Template", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for OutputPrefix + + return nil +} + +// CreateTaskRequestValidationError is the validation error returned by +// CreateTaskRequest.Validate if the designated constraints aren't met. +type CreateTaskRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CreateTaskRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CreateTaskRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CreateTaskRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CreateTaskRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CreateTaskRequestValidationError) ErrorName() string { + return "CreateTaskRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e CreateTaskRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCreateTaskRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CreateTaskRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CreateTaskRequestValidationError{} + +// Validate checks the field values on CreateTaskResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *CreateTaskResponse) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ResourceMeta + + return nil +} + +// CreateTaskResponseValidationError is the validation error returned by +// CreateTaskResponse.Validate if the designated constraints aren't met. +type CreateTaskResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CreateTaskResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CreateTaskResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CreateTaskResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CreateTaskResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CreateTaskResponseValidationError) ErrorName() string { + return "CreateTaskResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e CreateTaskResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCreateTaskResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CreateTaskResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CreateTaskResponseValidationError{} + +// Validate checks the field values on GetTaskRequest with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *GetTaskRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for TaskType + + // no validation rules for ResourceMeta + + return nil +} + +// GetTaskRequestValidationError is the validation error returned by +// GetTaskRequest.Validate if the designated constraints aren't met. +type GetTaskRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GetTaskRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GetTaskRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GetTaskRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GetTaskRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GetTaskRequestValidationError) ErrorName() string { return "GetTaskRequestValidationError" } + +// Error satisfies the builtin error interface +func (e GetTaskRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sGetTaskRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GetTaskRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GetTaskRequestValidationError{} + +// Validate checks the field values on GetTaskResponse with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *GetTaskResponse) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetResource()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GetTaskResponseValidationError{ + field: "Resource", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// GetTaskResponseValidationError is the validation error returned by +// GetTaskResponse.Validate if the designated constraints aren't met. +type GetTaskResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GetTaskResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GetTaskResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GetTaskResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GetTaskResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GetTaskResponseValidationError) ErrorName() string { return "GetTaskResponseValidationError" } + +// Error satisfies the builtin error interface +func (e GetTaskResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sGetTaskResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GetTaskResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GetTaskResponseValidationError{} + +// Validate checks the field values on Resource with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Resource) Validate() error { + if m == nil { + return nil + } + + // no validation rules for State + + if v, ok := interface{}(m.GetOutputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ResourceValidationError{ + field: "Outputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ResourceValidationError is the validation error returned by +// Resource.Validate if the designated constraints aren't met. +type ResourceValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ResourceValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ResourceValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ResourceValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ResourceValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ResourceValidationError) ErrorName() string { return "ResourceValidationError" } + +// Error satisfies the builtin error interface +func (e ResourceValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sResource.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ResourceValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ResourceValidationError{} + +// Validate checks the field values on DeleteTaskRequest with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *DeleteTaskRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for TaskType + + // no validation rules for ResourceMeta + + return nil +} + +// DeleteTaskRequestValidationError is the validation error returned by +// DeleteTaskRequest.Validate if the designated constraints aren't met. +type DeleteTaskRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DeleteTaskRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DeleteTaskRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DeleteTaskRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DeleteTaskRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DeleteTaskRequestValidationError) ErrorName() string { + return "DeleteTaskRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e DeleteTaskRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDeleteTaskRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DeleteTaskRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DeleteTaskRequestValidationError{} + +// Validate checks the field values on DeleteTaskResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *DeleteTaskResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// DeleteTaskResponseValidationError is the validation error returned by +// DeleteTaskResponse.Validate if the designated constraints aren't met. +type DeleteTaskResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DeleteTaskResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DeleteTaskResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DeleteTaskResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DeleteTaskResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DeleteTaskResponseValidationError) ErrorName() string { + return "DeleteTaskResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e DeleteTaskResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDeleteTaskResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DeleteTaskResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DeleteTaskResponseValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/agent.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/agent.swagger.json new file mode 100644 index 00000000000..64f4adef587 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/agent.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/agent.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} 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 00000000000..13122a90128 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go @@ -0,0 +1,204 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/service/agent.proto + +package service + +import ( + context "context" + fmt "fmt" + admin "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +func init() { proto.RegisterFile("flyteidl/service/agent.proto", fileDescriptor_f7d1dfd1fb77d2ef) } + +var fileDescriptor_f7d1dfd1fb77d2ef = []byte{ + // 212 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x49, 0xcb, 0xa9, 0x2c, + 0x49, 0xcd, 0x4c, 0xc9, 0xd1, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x4f, 0x4c, 0x4f, + 0xcd, 0x2b, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x80, 0xc9, 0xea, 0x41, 0x65, 0xa5, + 0xa4, 0xe0, 0xea, 0x13, 0x53, 0x72, 0x33, 0xf3, 0x90, 0x55, 0x1b, 0xf5, 0x33, 0x71, 0x09, 0x3a, + 0x16, 0x57, 0xe6, 0x25, 0x3b, 0x82, 0x04, 0x83, 0x21, 0x3a, 0x84, 0x42, 0xb9, 0xb8, 0x9c, 0x8b, + 0x52, 0x13, 0x4b, 0x52, 0x43, 0x12, 0x8b, 0xb3, 0x85, 0x14, 0xf5, 0xe0, 0x46, 0x82, 0x0d, 0xd0, + 0x43, 0xc8, 0x05, 0xa5, 0x16, 0x96, 0xa6, 0x16, 0x97, 0x48, 0x29, 0xe1, 0x53, 0x52, 0x5c, 0x90, + 0x9f, 0x57, 0x9c, 0xaa, 0xc4, 0x20, 0xe4, 0xc3, 0xc5, 0xee, 0x9e, 0x5a, 0x02, 0x36, 0x53, 0x0e, + 0x5d, 0x03, 0x54, 0x02, 0x66, 0xa0, 0x3c, 0x4e, 0x79, 0xb8, 0x69, 0xa1, 0x5c, 0x5c, 0x2e, 0xa9, + 0x39, 0xa9, 0xb8, 0x1c, 0x89, 0x90, 0xc3, 0xe9, 0x48, 0x64, 0x25, 0x30, 0x63, 0x9d, 0x2c, 0xa3, + 0xcc, 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0xc1, 0x3a, 0xf2, 0x8b, + 0xd2, 0xf5, 0xe1, 0x61, 0x98, 0x9e, 0x9a, 0xa7, 0x5f, 0x90, 0xa4, 0x9b, 0x9e, 0xaf, 0x8f, 0x1e, + 0x0d, 0x49, 0x6c, 0xe0, 0x30, 0x35, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x38, 0xbf, 0x55, 0xcc, + 0xa1, 0x01, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// AsyncAgentServiceClient is the client API for AsyncAgentService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type AsyncAgentServiceClient interface { + // Send a task create request to the agent server. + 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) +} + +type asyncAgentServiceClient struct { + cc *grpc.ClientConn +} + +func NewAsyncAgentServiceClient(cc *grpc.ClientConn) 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, "/flyteidl.service.AsyncAgentService/CreateTask", 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, "/flyteidl.service.AsyncAgentService/GetTask", 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, "/flyteidl.service.AsyncAgentService/DeleteTask", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// AsyncAgentServiceServer is the server API for AsyncAgentService service. +type AsyncAgentServiceServer interface { + // Send a task create request to the agent server. + 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) +} + +// UnimplementedAsyncAgentServiceServer can be embedded to have forward compatible implementations. +type UnimplementedAsyncAgentServiceServer struct { +} + +func (*UnimplementedAsyncAgentServiceServer) CreateTask(ctx context.Context, req *admin.CreateTaskRequest) (*admin.CreateTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateTask not implemented") +} +func (*UnimplementedAsyncAgentServiceServer) GetTask(ctx context.Context, req *admin.GetTaskRequest) (*admin.GetTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetTask not implemented") +} +func (*UnimplementedAsyncAgentServiceServer) DeleteTask(ctx context.Context, req *admin.DeleteTaskRequest) (*admin.DeleteTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteTask not implemented") +} + +func RegisterAsyncAgentServiceServer(s *grpc.Server, 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: "/flyteidl.service.AsyncAgentService/CreateTask", + } + 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: "/flyteidl.service.AsyncAgentService/GetTask", + } + 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: "/flyteidl.service.AsyncAgentService/DeleteTask", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AsyncAgentServiceServer).DeleteTask(ctx, req.(*admin.DeleteTaskRequest)) + } + return interceptor(ctx, in, info, handler) +} + +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, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "flyteidl/service/agent.proto", +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/agent.swagger.json b/flyteidl/gen/pb-go/flyteidl/service/agent.swagger.json new file mode 100644 index 00000000000..d92a9503fb9 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/agent.swagger.json @@ -0,0 +1,1168 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/service/agent.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "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." + } + } + }, + "adminCreateTaskResponse": { + "type": "object", + "properties": { + "resource_meta": { + "type": "string", + "format": "byte", + "description": "Metadata 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." + }, + "adminGetTaskResponse": { + "type": "object", + "properties": { + "resource": { + "$ref": "#/definitions/adminResource" + } + }, + "description": "Response to get an individual task resource." + }, + "adminResource": { + "type": "object", + "properties": { + "state": { + "$ref": "#/definitions/flyteidladminState", + "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. Agent service will create a\nStructured dataset pointing to the query result table.\n+optional" + } + } + }, + "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": { + "$ref": "#/definitions/coreKeyValuePair" + }, + "description": "Environment variables will be set as the container is starting up." + }, + "config": { + "type": "array", + "items": { + "$ref": "#/definitions/coreKeyValuePair" + }, + "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": { + "$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", + "format": "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." + }, + "coreEnumType": { + "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." + }, + "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." + }, + "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." + } + }, + "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." + }, + "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": { + "$ref": "#/definitions/protobufStruct", + "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." + }, + "coreKeyValuePair": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "required." + }, + "value": { + "type": "string", + "description": "+optional." + } + }, + "description": "A generic key value pair." + }, + "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)" + } + }, + "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": { + "$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/coreEnumType", + "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": { + "$ref": "#/definitions/protobufStruct", + "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." + }, + "corePrimitive": { + "type": "object", + "properties": { + "integer": { + "type": "string", + "format": "int64" + }, + "float_value": { + "type": "number", + "format": "double" + }, + "string_value": { + "type": "string" + }, + "boolean": { + "type": "boolean", + "format": "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": { + "$ref": "#/definitions/ResourcesResourceEntry" + }, + "description": "The desired set of resources requested. ResourceNames must be unique within the list." + }, + "limits": { + "type": "array", + "items": { + "$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/coreSchema" + }, + "none_type": { + "$ref": "#/definitions/coreVoid" + }, + "error": { + "$ref": "#/definitions/coreError" + }, + "generic": { + "$ref": "#/definitions/protobufStruct" + }, + "structured_dataset": { + "$ref": "#/definitions/coreStructuredDataset" + }, + "union": { + "$ref": "#/definitions/coreUnion" + } + } + }, + "coreSchema": { + "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." + }, + "coreSchemaType": { + "type": "object", + "properties": { + "columns": { + "type": "array", + "items": { + "$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": { + "$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": { + "$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": { + "$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", + "format": "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", + "format": "boolean" + }, + "cache_serializable": { + "type": "boolean", + "format": "boolean", + "title": "Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work" + }, + "generates_deck": { + "type": "boolean", + "format": "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." + } + }, + "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": { + "$ref": "#/definitions/protobufStruct", + "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." + }, + "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." + }, + "coreTypeAnnotation": { + "type": "object", + "properties": { + "annotations": { + "$ref": "#/definitions/protobufStruct", + "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" + } + }, + "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": { + "$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" + } + }, + "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." + }, + "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." + }, + "protobufListValue": { + "type": "object", + "properties": { + "values": { + "type": "array", + "items": { + "$ref": "#/definitions/protobufValue" + }, + "description": "Repeated field of dynamically typed values." + } + }, + "description": "`ListValue` is a wrapper around a repeated field of values.\n\nThe JSON representation for `ListValue` is JSON array." + }, + "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\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." + }, + "protobufStruct": { + "type": "object", + "properties": { + "fields": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/protobufValue" + }, + "description": "Unordered map of dynamically typed values." + } + }, + "description": "`Struct` represents a structured data value, consisting of fields\nwhich map to dynamically typed values. In some languages, `Struct`\nmight be supported by a native representation. For example, in\nscripting languages like JS a struct is represented as an\nobject. The details of that representation are described together\nwith the proto support for the language.\n\nThe JSON representation for `Struct` is JSON object." + }, + "protobufValue": { + "type": "object", + "properties": { + "null_value": { + "$ref": "#/definitions/protobufNullValue", + "description": "Represents a null value." + }, + "number_value": { + "type": "number", + "format": "double", + "description": "Represents a double value." + }, + "string_value": { + "type": "string", + "description": "Represents a string value." + }, + "bool_value": { + "type": "boolean", + "format": "boolean", + "description": "Represents a boolean value." + }, + "struct_value": { + "$ref": "#/definitions/protobufStruct", + "description": "Represents a structured value." + }, + "list_value": { + "$ref": "#/definitions/protobufListValue", + "description": "Represents a repeated `Value`." + } + }, + "description": "`Value` represents a dynamically typed value which can be either\nnull, a number, a string, a boolean, a recursive struct value, or a\nlist of values. A producer of value is expected to set one of that\nvariants, absence of any variant indicates an error.\n\nThe JSON representation for `Value` is JSON value." + } + } +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/agent_service.pb.go b/flyteidl/gen/pb-go/flyteidl/service/external_plugin_service.pb.go similarity index 65% rename from flyteidl/gen/pb-go/flyteidl/service/agent_service.pb.go rename to flyteidl/gen/pb-go/flyteidl/service/external_plugin_service.pb.go index d61d3b9253d..ad06a4df4e4 100644 --- a/flyteidl/gen/pb-go/flyteidl/service/agent_service.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/service/external_plugin_service.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/service/agent_service.proto +// source: flyteidl/service/external_plugin_service.proto package service @@ -26,8 +26,7 @@ var _ = math.Inf const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package // The state of the execution is used to control its visibility in the UI/CLI. -type State int32 - +type State int32 // Deprecated: Do not use. const ( State_RETRYABLE_FAILURE State = 0 State_PERMANENT_FAILURE State = 1 @@ -57,10 +56,12 @@ func (x State) String() string { } func (State) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_ee8a9b6d59cb7a89, []int{0} + return fileDescriptor_74cbdb08eef5b1d1, []int{0} } // Represents a request structure to create task. +// +// Deprecated: Do not use. type TaskCreateRequest struct { // The inputs required to start the execution. All required inputs must be // included in this map. If not required and not provided, defaults apply. @@ -79,7 +80,7 @@ func (m *TaskCreateRequest) Reset() { *m = TaskCreateRequest{} } func (m *TaskCreateRequest) String() string { return proto.CompactTextString(m) } func (*TaskCreateRequest) ProtoMessage() {} func (*TaskCreateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ee8a9b6d59cb7a89, []int{0} + return fileDescriptor_74cbdb08eef5b1d1, []int{0} } func (m *TaskCreateRequest) XXX_Unmarshal(b []byte) error { @@ -122,6 +123,8 @@ func (m *TaskCreateRequest) GetOutputPrefix() string { } // Represents a create response structure. +// +// Deprecated: Do not use. type TaskCreateResponse struct { JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -133,7 +136,7 @@ func (m *TaskCreateResponse) Reset() { *m = TaskCreateResponse{} } func (m *TaskCreateResponse) String() string { return proto.CompactTextString(m) } func (*TaskCreateResponse) ProtoMessage() {} func (*TaskCreateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ee8a9b6d59cb7a89, []int{1} + return fileDescriptor_74cbdb08eef5b1d1, []int{1} } func (m *TaskCreateResponse) XXX_Unmarshal(b []byte) error { @@ -161,7 +164,9 @@ func (m *TaskCreateResponse) GetJobId() string { return "" } -// A message used to fetch a job state from flyte agent server. +// A message used to fetch a job state from backend plugin server. +// +// Deprecated: Do not use. type TaskGetRequest struct { // A predefined yet extensible Task type identifier. TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` @@ -176,7 +181,7 @@ func (m *TaskGetRequest) Reset() { *m = TaskGetRequest{} } func (m *TaskGetRequest) String() string { return proto.CompactTextString(m) } func (*TaskGetRequest) ProtoMessage() {} func (*TaskGetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ee8a9b6d59cb7a89, []int{2} + return fileDescriptor_74cbdb08eef5b1d1, []int{2} } func (m *TaskGetRequest) XXX_Unmarshal(b []byte) error { @@ -212,10 +217,12 @@ func (m *TaskGetRequest) GetJobId() string { } // Response to get an individual task state. +// +// Deprecated: Do not use. type TaskGetResponse struct { // 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. Agent service will create a + // 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"` @@ -228,7 +235,7 @@ func (m *TaskGetResponse) Reset() { *m = TaskGetResponse{} } func (m *TaskGetResponse) String() string { return proto.CompactTextString(m) } func (*TaskGetResponse) ProtoMessage() {} func (*TaskGetResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ee8a9b6d59cb7a89, []int{3} + return fileDescriptor_74cbdb08eef5b1d1, []int{3} } func (m *TaskGetResponse) XXX_Unmarshal(b []byte) error { @@ -264,6 +271,8 @@ func (m *TaskGetResponse) GetOutputs() *core.LiteralMap { } // A message used to delete a task. +// +// Deprecated: Do not use. type TaskDeleteRequest struct { // A predefined yet extensible Task type identifier. TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` @@ -278,7 +287,7 @@ func (m *TaskDeleteRequest) Reset() { *m = TaskDeleteRequest{} } func (m *TaskDeleteRequest) String() string { return proto.CompactTextString(m) } func (*TaskDeleteRequest) ProtoMessage() {} func (*TaskDeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ee8a9b6d59cb7a89, []int{4} + return fileDescriptor_74cbdb08eef5b1d1, []int{4} } func (m *TaskDeleteRequest) XXX_Unmarshal(b []byte) error { @@ -314,6 +323,8 @@ func (m *TaskDeleteRequest) GetJobId() string { } // Response to delete a task. +// +// Deprecated: Do not use. type TaskDeleteResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -324,7 +335,7 @@ func (m *TaskDeleteResponse) Reset() { *m = TaskDeleteResponse{} } func (m *TaskDeleteResponse) String() string { return proto.CompactTextString(m) } func (*TaskDeleteResponse) ProtoMessage() {} func (*TaskDeleteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ee8a9b6d59cb7a89, []int{5} + return fileDescriptor_74cbdb08eef5b1d1, []int{5} } func (m *TaskDeleteResponse) XXX_Unmarshal(b []byte) error { @@ -356,44 +367,45 @@ func init() { } func init() { - proto.RegisterFile("flyteidl/service/agent_service.proto", fileDescriptor_ee8a9b6d59cb7a89) -} - -var fileDescriptor_ee8a9b6d59cb7a89 = []byte{ - // 516 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x4d, 0x6f, 0xda, 0x40, - 0x10, 0x0d, 0xa4, 0x40, 0x98, 0x7c, 0x94, 0xac, 0x1a, 0x95, 0x90, 0x56, 0xa2, 0x4e, 0x0e, 0x51, - 0xab, 0xd8, 0x2a, 0x39, 0x44, 0x3d, 0x12, 0x70, 0x11, 0x12, 0xb1, 0xd0, 0x02, 0x07, 0x7a, 0x28, - 0x32, 0x30, 0x50, 0x27, 0x0e, 0xbb, 0xf5, 0xae, 0xab, 0xf2, 0x47, 0xfa, 0x0b, 0xfa, 0x43, 0xab, - 0xf5, 0xda, 0x0e, 0x90, 0x96, 0x43, 0x8f, 0x3b, 0xf3, 0xe6, 0xcd, 0x9b, 0x37, 0x63, 0xc3, 0xc5, - 0xcc, 0x5f, 0x4a, 0xf4, 0xa6, 0xbe, 0x25, 0x30, 0xf8, 0xe1, 0x4d, 0xd0, 0x72, 0xe7, 0xb8, 0x90, - 0xa3, 0xf8, 0x65, 0xf2, 0x80, 0x49, 0x46, 0x4a, 0x09, 0xca, 0x8c, 0xe3, 0x95, 0x37, 0x69, 0xdd, - 0x84, 0x05, 0x68, 0xf9, 0x9e, 0xc4, 0xc0, 0xf5, 0x85, 0xc6, 0x57, 0x4e, 0xd7, 0xb3, 0xd2, 0x15, - 0x0f, 0x49, 0xea, 0xed, 0x7a, 0xca, 0x5b, 0x48, 0x0c, 0x66, 0x6e, 0xd2, 0xc9, 0xf8, 0x9d, 0x81, - 0xe3, 0xbe, 0x2b, 0x1e, 0x1a, 0x01, 0xba, 0x12, 0x29, 0x7e, 0x0f, 0x51, 0x48, 0xf2, 0x11, 0xf2, - 0xde, 0x82, 0x87, 0x52, 0x94, 0x33, 0xd5, 0xcc, 0xe5, 0x7e, 0xed, 0xd4, 0x4c, 0x05, 0x29, 0x16, - 0xb3, 0xa3, 0xdb, 0xdf, 0xb9, 0x9c, 0xc6, 0x40, 0x72, 0x03, 0x7b, 0x12, 0x1f, 0xb9, 0xef, 0x4a, - 0x2c, 0x67, 0xa3, 0xa2, 0xb3, 0x8d, 0x22, 0xd5, 0xa6, 0x1f, 0x43, 0x68, 0x0a, 0x26, 0xe7, 0x70, - 0xc8, 0x42, 0xc9, 0x43, 0x39, 0xe2, 0x01, 0xce, 0xbc, 0x9f, 0xe5, 0xdd, 0x6a, 0xe6, 0xb2, 0x48, - 0x0f, 0x74, 0xb0, 0x1b, 0xc5, 0x8c, 0x0f, 0x40, 0x56, 0x55, 0x0a, 0xce, 0x16, 0x02, 0xc9, 0x09, - 0xe4, 0xef, 0xd9, 0x78, 0xe4, 0x4d, 0x23, 0x99, 0x45, 0x9a, 0xbb, 0x67, 0xe3, 0xf6, 0xd4, 0x68, - 0xc2, 0x91, 0x02, 0xb7, 0x50, 0x26, 0xf3, 0x9c, 0x41, 0x51, 0x79, 0x32, 0x92, 0x4b, 0x8e, 0x31, - 0x76, 0x4f, 0x05, 0xfa, 0x4b, 0xbe, 0xca, 0x92, 0x5d, 0x65, 0x09, 0xe1, 0x65, 0xca, 0x12, 0xf7, - 0xbb, 0x82, 0x9c, 0x90, 0x6a, 0x40, 0x45, 0x71, 0x54, 0x7b, 0x6d, 0x6e, 0xae, 0xc9, 0xec, 0xa9, - 0x34, 0xd5, 0x28, 0x72, 0x0d, 0x05, 0x3d, 0x84, 0x88, 0x1d, 0xd9, 0x62, 0x63, 0x82, 0x34, 0x5a, - 0x7a, 0x1f, 0x4d, 0xf4, 0xf1, 0x69, 0x1f, 0xff, 0xa3, 0xff, 0x95, 0xb6, 0x2c, 0x21, 0xd2, 0x23, - 0xbc, 0xff, 0x0a, 0xb9, 0x48, 0x23, 0x39, 0x81, 0x63, 0x6a, 0xf7, 0xe9, 0xb0, 0x7e, 0xdb, 0xb1, - 0x47, 0x9f, 0xeb, 0xed, 0xce, 0x80, 0xda, 0xa5, 0x1d, 0x15, 0xee, 0xda, 0xf4, 0xae, 0xee, 0xd8, - 0x4e, 0x3f, 0x0d, 0x67, 0xc8, 0x3e, 0x14, 0xba, 0xb6, 0xd3, 0x6c, 0x3b, 0xad, 0x52, 0x56, 0x3d, - 0xe8, 0xc0, 0x71, 0xd4, 0x63, 0x97, 0x1c, 0x42, 0xb1, 0x37, 0x68, 0x34, 0x6c, 0xbb, 0x69, 0x37, - 0x4b, 0x2f, 0x6a, 0xbf, 0xb2, 0x70, 0x50, 0x57, 0x17, 0xdd, 0xd3, 0x8e, 0x90, 0x21, 0x80, 0xde, - 0x9a, 0x12, 0x43, 0xce, 0x9f, 0x5b, 0xf6, 0xec, 0xfa, 0x2a, 0x17, 0xdb, 0x41, 0x7a, 0x12, 0x63, - 0x87, 0x74, 0xa1, 0xd0, 0x42, 0x19, 0xf1, 0x56, 0xff, 0x5e, 0xf2, 0x74, 0x02, 0x95, 0x77, 0x5b, - 0x10, 0x29, 0xe3, 0x10, 0x40, 0xfb, 0xb5, 0x4d, 0xec, 0xda, 0x6a, 0xfe, 0x25, 0x76, 0xdd, 0x76, - 0x63, 0xe7, 0xf6, 0xd3, 0x97, 0x9b, 0xb9, 0x27, 0xbf, 0x85, 0x63, 0x73, 0xc2, 0x1e, 0xad, 0xa8, - 0x86, 0x05, 0x73, 0x2b, 0xfd, 0x3a, 0xe7, 0xb8, 0xb0, 0xf8, 0xf8, 0x6a, 0xce, 0xac, 0xcd, 0x3f, - 0xc4, 0x38, 0x1f, 0x7d, 0xaa, 0xd7, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x24, 0x72, 0xcc, 0xe3, - 0x3c, 0x04, 0x00, 0x00, + proto.RegisterFile("flyteidl/service/external_plugin_service.proto", fileDescriptor_74cbdb08eef5b1d1) +} + +var fileDescriptor_74cbdb08eef5b1d1 = []byte{ + // 540 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xc1, 0x6e, 0xda, 0x40, + 0x10, 0xad, 0x9d, 0x26, 0x84, 0x49, 0x93, 0x92, 0x95, 0x50, 0x1d, 0xd2, 0x4a, 0x94, 0xf4, 0x10, + 0x55, 0x8a, 0xad, 0x92, 0x43, 0xd4, 0xde, 0x08, 0xb8, 0x14, 0x95, 0x58, 0xc8, 0xc0, 0xa1, 0x55, + 0x24, 0xcb, 0x86, 0x81, 0x3a, 0x71, 0xec, 0xad, 0xbd, 0xae, 0xc2, 0x1f, 0xf4, 0x53, 0xf2, 0x99, + 0xd5, 0xee, 0xda, 0x0e, 0x90, 0x96, 0x43, 0x8f, 0x9e, 0x79, 0xf3, 0x66, 0xde, 0x9b, 0x59, 0x83, + 0x3e, 0x0b, 0x16, 0x0c, 0xfd, 0x69, 0x60, 0x24, 0x18, 0xff, 0xf2, 0x27, 0x68, 0xe0, 0x3d, 0xc3, + 0x38, 0x74, 0x03, 0x87, 0x06, 0xe9, 0xdc, 0x0f, 0x9d, 0x2c, 0xae, 0xd3, 0x38, 0x62, 0x11, 0xa9, + 0xe4, 0x78, 0x3d, 0x8b, 0xd7, 0x5e, 0x17, 0x0c, 0x93, 0x28, 0x46, 0x23, 0xf0, 0x19, 0xc6, 0x6e, + 0x90, 0x48, 0x7c, 0xed, 0x68, 0x35, 0xcb, 0xdc, 0xe4, 0x36, 0x4f, 0xbd, 0x59, 0x4d, 0xf9, 0x21, + 0xc3, 0x78, 0xe6, 0xe6, 0x9d, 0x1a, 0x0f, 0x0a, 0x1c, 0x8e, 0xdc, 0xe4, 0xb6, 0x1d, 0xa3, 0xcb, + 0xd0, 0xc6, 0x9f, 0x29, 0x26, 0x8c, 0x7c, 0x80, 0x1d, 0x3f, 0xa4, 0x29, 0x4b, 0x34, 0xa5, 0xae, + 0x9c, 0xee, 0x35, 0x8f, 0x0a, 0x01, 0x3a, 0x67, 0xd1, 0xfb, 0xb2, 0xfd, 0x95, 0x4b, 0xed, 0x0c, + 0x48, 0x2e, 0x60, 0x97, 0xe1, 0x1d, 0x0d, 0x5c, 0x86, 0x9a, 0x2a, 0x8a, 0x8e, 0xd7, 0x8a, 0x78, + 0x9b, 0x51, 0x06, 0xb1, 0x0b, 0x30, 0x39, 0x81, 0xfd, 0x28, 0x65, 0x34, 0x65, 0x0e, 0x8d, 0x71, + 0xe6, 0xdf, 0x6b, 0x5b, 0x75, 0xe5, 0xb4, 0x6c, 0xbf, 0x90, 0xc1, 0x81, 0x88, 0x7d, 0x52, 0x35, + 0xa5, 0x61, 0x00, 0x59, 0x9e, 0x34, 0xa1, 0x51, 0x98, 0x20, 0xa9, 0xc2, 0xce, 0x4d, 0xe4, 0x39, + 0xfe, 0x54, 0x8c, 0x5a, 0xb6, 0xb7, 0x6f, 0x22, 0xaf, 0x37, 0x15, 0x05, 0x5f, 0xe0, 0x80, 0x17, + 0x74, 0x91, 0xe5, 0xba, 0x8e, 0xa1, 0xcc, 0xbd, 0x71, 0xd8, 0x82, 0x62, 0x86, 0xdf, 0xe5, 0x81, + 0xd1, 0x82, 0x2e, 0x33, 0xa9, 0xeb, 0x4c, 0x0b, 0x78, 0x59, 0x30, 0x65, 0x7d, 0xcf, 0x60, 0x3b, + 0x61, 0x5c, 0x2c, 0xa7, 0x39, 0x68, 0xbe, 0xd2, 0xd7, 0x57, 0xa6, 0x0f, 0x79, 0xda, 0x96, 0x28, + 0x72, 0x0e, 0x25, 0x29, 0x28, 0xc9, 0xdc, 0xd9, 0x60, 0x69, 0x8e, 0x14, 0xad, 0xbf, 0xca, 0xfd, + 0x74, 0x30, 0xc0, 0xc7, 0xfd, 0xfc, 0xaf, 0x0e, 0x4d, 0x5a, 0x98, 0x93, 0x49, 0x29, 0x3c, 0xf3, + 0xde, 0x83, 0x6d, 0x31, 0x2f, 0xa9, 0xc2, 0xa1, 0x6d, 0x8e, 0xec, 0x6f, 0xad, 0xcb, 0xbe, 0xe9, + 0x7c, 0x6e, 0xf5, 0xfa, 0x63, 0xdb, 0xac, 0x3c, 0xe3, 0xe1, 0x81, 0x69, 0x5f, 0xb5, 0x2c, 0xd3, + 0x1a, 0x15, 0x61, 0x85, 0xec, 0x41, 0x69, 0x60, 0x5a, 0x9d, 0x9e, 0xd5, 0xad, 0xa8, 0xfc, 0xc3, + 0x1e, 0x5b, 0x16, 0xff, 0xd8, 0x22, 0xfb, 0x50, 0x1e, 0x8e, 0xdb, 0x6d, 0xd3, 0xec, 0x98, 0x9d, + 0xca, 0xf3, 0x9a, 0xaa, 0x29, 0xcd, 0x07, 0x15, 0xaa, 0x66, 0x76, 0xf7, 0x03, 0x71, 0xf6, 0x43, + 0x69, 0x15, 0xb9, 0x06, 0x90, 0x6b, 0xe5, 0xd3, 0x91, 0x93, 0xa7, 0x5e, 0x3e, 0x39, 0xd1, 0xda, + 0xbb, 0xcd, 0x20, 0x29, 0xad, 0xb1, 0xf5, 0x5b, 0x55, 0xc8, 0x10, 0x4a, 0x5d, 0x64, 0x82, 0xba, + 0xfe, 0xf7, 0xaa, 0xc7, 0x13, 0xa9, 0xbd, 0xdd, 0x80, 0x58, 0x26, 0xbd, 0x06, 0x90, 0x36, 0x6e, + 0x1a, 0x79, 0x65, 0x6b, 0xff, 0x1a, 0x79, 0x75, 0x1b, 0x82, 0xfd, 0xf2, 0xe3, 0xf7, 0x8b, 0xb9, + 0xcf, 0x7e, 0xa4, 0x9e, 0x3e, 0x89, 0xee, 0x0c, 0x51, 0x16, 0xc5, 0x73, 0xa3, 0x78, 0xcb, 0x73, + 0x0c, 0x0d, 0xea, 0x9d, 0xcd, 0x23, 0x63, 0xfd, 0xcf, 0xe2, 0xed, 0x88, 0x87, 0x7d, 0xfe, 0x27, + 0x00, 0x00, 0xff, 0xff, 0x1c, 0x25, 0x84, 0x2b, 0x74, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -404,11 +416,11 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// AgentServiceClient is the client API for AgentService service. +// ExternalPluginServiceClient is the client API for ExternalPluginService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type AgentServiceClient interface { - // Send a task create request to the agent server. +type ExternalPluginServiceClient interface { + // Send a task create request to the backend plugin server. CreateTask(ctx context.Context, in *TaskCreateRequest, opts ...grpc.CallOption) (*TaskCreateResponse, error) // Get job status. GetTask(ctx context.Context, in *TaskGetRequest, opts ...grpc.CallOption) (*TaskGetResponse, error) @@ -416,44 +428,47 @@ type AgentServiceClient interface { DeleteTask(ctx context.Context, in *TaskDeleteRequest, opts ...grpc.CallOption) (*TaskDeleteResponse, error) } -type agentServiceClient struct { +type externalPluginServiceClient struct { cc *grpc.ClientConn } -func NewAgentServiceClient(cc *grpc.ClientConn) AgentServiceClient { - return &agentServiceClient{cc} +func NewExternalPluginServiceClient(cc *grpc.ClientConn) ExternalPluginServiceClient { + return &externalPluginServiceClient{cc} } -func (c *agentServiceClient) CreateTask(ctx context.Context, in *TaskCreateRequest, opts ...grpc.CallOption) (*TaskCreateResponse, error) { +// 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, "/flyteidl.service.AgentService/CreateTask", in, out, opts...) + err := c.cc.Invoke(ctx, "/flyteidl.service.ExternalPluginService/CreateTask", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *agentServiceClient) GetTask(ctx context.Context, in *TaskGetRequest, opts ...grpc.CallOption) (*TaskGetResponse, error) { +// 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, "/flyteidl.service.AgentService/GetTask", in, out, opts...) + err := c.cc.Invoke(ctx, "/flyteidl.service.ExternalPluginService/GetTask", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *agentServiceClient) DeleteTask(ctx context.Context, in *TaskDeleteRequest, opts ...grpc.CallOption) (*TaskDeleteResponse, error) { +// 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, "/flyteidl.service.AgentService/DeleteTask", in, out, opts...) + err := c.cc.Invoke(ctx, "/flyteidl.service.ExternalPluginService/DeleteTask", in, out, opts...) if err != nil { return nil, err } return out, nil } -// AgentServiceServer is the server API for AgentService service. -type AgentServiceServer interface { - // Send a task create request to the agent server. +// ExternalPluginServiceServer is the server API for ExternalPluginService service. +type ExternalPluginServiceServer interface { + // Send a task create request to the backend plugin server. CreateTask(context.Context, *TaskCreateRequest) (*TaskCreateResponse, error) // Get job status. GetTask(context.Context, *TaskGetRequest) (*TaskGetResponse, error) @@ -461,95 +476,95 @@ type AgentServiceServer interface { DeleteTask(context.Context, *TaskDeleteRequest) (*TaskDeleteResponse, error) } -// UnimplementedAgentServiceServer can be embedded to have forward compatible implementations. -type UnimplementedAgentServiceServer struct { +// UnimplementedExternalPluginServiceServer can be embedded to have forward compatible implementations. +type UnimplementedExternalPluginServiceServer struct { } -func (*UnimplementedAgentServiceServer) CreateTask(ctx context.Context, req *TaskCreateRequest) (*TaskCreateResponse, error) { +func (*UnimplementedExternalPluginServiceServer) CreateTask(ctx context.Context, req *TaskCreateRequest) (*TaskCreateResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateTask not implemented") } -func (*UnimplementedAgentServiceServer) GetTask(ctx context.Context, req *TaskGetRequest) (*TaskGetResponse, error) { +func (*UnimplementedExternalPluginServiceServer) GetTask(ctx context.Context, req *TaskGetRequest) (*TaskGetResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTask not implemented") } -func (*UnimplementedAgentServiceServer) DeleteTask(ctx context.Context, req *TaskDeleteRequest) (*TaskDeleteResponse, error) { +func (*UnimplementedExternalPluginServiceServer) DeleteTask(ctx context.Context, req *TaskDeleteRequest) (*TaskDeleteResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteTask not implemented") } -func RegisterAgentServiceServer(s *grpc.Server, srv AgentServiceServer) { - s.RegisterService(&_AgentService_serviceDesc, srv) +func RegisterExternalPluginServiceServer(s *grpc.Server, srv ExternalPluginServiceServer) { + s.RegisterService(&_ExternalPluginService_serviceDesc, srv) } -func _AgentService_CreateTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +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.(AgentServiceServer).CreateTask(ctx, in) + return srv.(ExternalPluginServiceServer).CreateTask(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flyteidl.service.AgentService/CreateTask", + FullMethod: "/flyteidl.service.ExternalPluginService/CreateTask", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).CreateTask(ctx, req.(*TaskCreateRequest)) + return srv.(ExternalPluginServiceServer).CreateTask(ctx, req.(*TaskCreateRequest)) } return interceptor(ctx, in, info, handler) } -func _AgentService_GetTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +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.(AgentServiceServer).GetTask(ctx, in) + return srv.(ExternalPluginServiceServer).GetTask(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flyteidl.service.AgentService/GetTask", + FullMethod: "/flyteidl.service.ExternalPluginService/GetTask", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).GetTask(ctx, req.(*TaskGetRequest)) + return srv.(ExternalPluginServiceServer).GetTask(ctx, req.(*TaskGetRequest)) } return interceptor(ctx, in, info, handler) } -func _AgentService_DeleteTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +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.(AgentServiceServer).DeleteTask(ctx, in) + return srv.(ExternalPluginServiceServer).DeleteTask(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flyteidl.service.AgentService/DeleteTask", + FullMethod: "/flyteidl.service.ExternalPluginService/DeleteTask", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).DeleteTask(ctx, req.(*TaskDeleteRequest)) + return srv.(ExternalPluginServiceServer).DeleteTask(ctx, req.(*TaskDeleteRequest)) } return interceptor(ctx, in, info, handler) } -var _AgentService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "flyteidl.service.AgentService", - HandlerType: (*AgentServiceServer)(nil), +var _ExternalPluginService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "flyteidl.service.ExternalPluginService", + HandlerType: (*ExternalPluginServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateTask", - Handler: _AgentService_CreateTask_Handler, + Handler: _ExternalPluginService_CreateTask_Handler, }, { MethodName: "GetTask", - Handler: _AgentService_GetTask_Handler, + Handler: _ExternalPluginService_GetTask_Handler, }, { MethodName: "DeleteTask", - Handler: _AgentService_DeleteTask_Handler, + Handler: _ExternalPluginService_DeleteTask_Handler, }, }, Streams: []grpc.StreamDesc{}, - Metadata: "flyteidl/service/agent_service.proto", + Metadata: "flyteidl/service/external_plugin_service.proto", } diff --git a/flyteidl/gen/pb-go/flyteidl/service/agent_service.swagger.json b/flyteidl/gen/pb-go/flyteidl/service/external_plugin_service.swagger.json similarity index 99% rename from flyteidl/gen/pb-go/flyteidl/service/agent_service.swagger.json rename to flyteidl/gen/pb-go/flyteidl/service/external_plugin_service.swagger.json index 67245f99959..bb0e406339c 100644 --- a/flyteidl/gen/pb-go/flyteidl/service/agent_service.swagger.json +++ b/flyteidl/gen/pb-go/flyteidl/service/external_plugin_service.swagger.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "title": "flyteidl/service/agent_service.proto", + "title": "flyteidl/service/external_plugin_service.proto", "version": "version not set" }, "schemes": [ @@ -1049,6 +1049,18 @@ "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." }, + "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": { @@ -1124,18 +1136,6 @@ }, "description": "`Value` represents a dynamically typed value which can be either\nnull, a number, a string, a boolean, a recursive struct value, or a\nlist of values. A producer of value is expected to set one of that\nvariants, absence of any variant indicates an error.\n\nThe JSON representation for `Value` is JSON value." }, - "serviceState": { - "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." - }, "serviceTaskDeleteResponse": { "type": "object", "description": "Response to delete a task." @@ -1144,12 +1144,12 @@ "type": "object", "properties": { "state": { - "$ref": "#/definitions/serviceState", + "$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. Agent service will create a\nStructured dataset pointing to the query result table.\n+optional" + "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-java/flyteidl/admin/Agent.java b/flyteidl/gen/pb-java/flyteidl/admin/Agent.java new file mode 100644 index 00000000000..58c80118c42 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/Agent.java @@ -0,0 +1,5128 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/agent.proto + +package flyteidl.admin; + +public final class Agent { + private Agent() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * The state of the execution is used to control its visibility in the UI/CLI.
+   * 
+ * + * Protobuf enum {@code flyteidl.admin.State} + */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + * RETRYABLE_FAILURE = 0; + */ + RETRYABLE_FAILURE(0), + /** + * PERMANENT_FAILURE = 1; + */ + PERMANENT_FAILURE(1), + /** + * PENDING = 2; + */ + PENDING(2), + /** + * RUNNING = 3; + */ + RUNNING(3), + /** + * SUCCEEDED = 4; + */ + SUCCEEDED(4), + UNRECOGNIZED(-1), + ; + + /** + * RETRYABLE_FAILURE = 0; + */ + public static final int RETRYABLE_FAILURE_VALUE = 0; + /** + * PERMANENT_FAILURE = 1; + */ + public static final int PERMANENT_FAILURE_VALUE = 1; + /** + * PENDING = 2; + */ + public static final int PENDING_VALUE = 2; + /** + * RUNNING = 3; + */ + public static final int RUNNING_VALUE = 3; + /** + * SUCCEEDED = 4; + */ + public static final int SUCCEEDED_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + public static State forNumber(int value) { + switch (value) { + case 0: return RETRYABLE_FAILURE; + case 1: return PERMANENT_FAILURE; + case 2: return PENDING; + case 3: return RUNNING; + case 4: return SUCCEEDED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.admin.Agent.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.admin.State) + } + + public interface CreateTaskRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.CreateTaskRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * 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
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + boolean hasInputs(); + /** + *
+     * 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
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + flyteidl.core.Literals.LiteralMap getInputs(); + /** + *
+     * 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
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder(); + + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + boolean hasTemplate(); + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + flyteidl.core.Tasks.TaskTemplate getTemplate(); + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder(); + + /** + *
+     * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
+     * 
+ * + * string output_prefix = 3; + */ + java.lang.String getOutputPrefix(); + /** + *
+     * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
+     * 
+ * + * string output_prefix = 3; + */ + com.google.protobuf.ByteString + getOutputPrefixBytes(); + } + /** + *
+   * Represents a request structure to create task.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.CreateTaskRequest} + */ + public static final class CreateTaskRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.CreateTaskRequest) + CreateTaskRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateTaskRequest.newBuilder() to construct. + private CreateTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateTaskRequest() { + outputPrefix_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateTaskRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (inputs_ != null) { + subBuilder = inputs_.toBuilder(); + } + inputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputs_); + inputs_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Tasks.TaskTemplate.Builder subBuilder = null; + if (template_ != null) { + subBuilder = template_.toBuilder(); + } + template_ = input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(template_); + template_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + outputPrefix_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_CreateTaskRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_CreateTaskRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Agent.CreateTaskRequest.class, flyteidl.admin.Agent.CreateTaskRequest.Builder.class); + } + + public static final int INPUTS_FIELD_NUMBER = 1; + private flyteidl.core.Literals.LiteralMap inputs_; + /** + *
+     * 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
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public boolean hasInputs() { + return inputs_ != null; + } + /** + *
+     * 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
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public flyteidl.core.Literals.LiteralMap getInputs() { + return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; + } + /** + *
+     * 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
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { + return getInputs(); + } + + public static final int TEMPLATE_FIELD_NUMBER = 2; + private flyteidl.core.Tasks.TaskTemplate template_; + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public boolean hasTemplate() { + return template_ != null; + } + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public flyteidl.core.Tasks.TaskTemplate getTemplate() { + return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { + return getTemplate(); + } + + public static final int OUTPUT_PREFIX_FIELD_NUMBER = 3; + private volatile java.lang.Object outputPrefix_; + /** + *
+     * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
+     * 
+ * + * string output_prefix = 3; + */ + public java.lang.String getOutputPrefix() { + java.lang.Object ref = outputPrefix_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputPrefix_ = s; + return s; + } + } + /** + *
+     * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
+     * 
+ * + * string output_prefix = 3; + */ + public com.google.protobuf.ByteString + getOutputPrefixBytes() { + java.lang.Object ref = outputPrefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + outputPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (inputs_ != null) { + output.writeMessage(1, getInputs()); + } + if (template_ != null) { + output.writeMessage(2, getTemplate()); + } + if (!getOutputPrefixBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, outputPrefix_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInputs()); + } + if (template_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTemplate()); + } + if (!getOutputPrefixBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, outputPrefix_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Agent.CreateTaskRequest)) { + return super.equals(obj); + } + flyteidl.admin.Agent.CreateTaskRequest other = (flyteidl.admin.Agent.CreateTaskRequest) obj; + + if (hasInputs() != other.hasInputs()) return false; + if (hasInputs()) { + if (!getInputs() + .equals(other.getInputs())) return false; + } + if (hasTemplate() != other.hasTemplate()) return false; + if (hasTemplate()) { + if (!getTemplate() + .equals(other.getTemplate())) return false; + } + if (!getOutputPrefix() + .equals(other.getOutputPrefix())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInputs()) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputs().hashCode(); + } + if (hasTemplate()) { + hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getTemplate().hashCode(); + } + hash = (37 * hash) + OUTPUT_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getOutputPrefix().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Agent.CreateTaskRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.CreateTaskRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.CreateTaskRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.CreateTaskRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.CreateTaskRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.CreateTaskRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.CreateTaskRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.CreateTaskRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Agent.CreateTaskRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.CreateTaskRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Agent.CreateTaskRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.CreateTaskRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Agent.CreateTaskRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a request structure to create task.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.CreateTaskRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.CreateTaskRequest) + flyteidl.admin.Agent.CreateTaskRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_CreateTaskRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_CreateTaskRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Agent.CreateTaskRequest.class, flyteidl.admin.Agent.CreateTaskRequest.Builder.class); + } + + // Construct using flyteidl.admin.Agent.CreateTaskRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (inputsBuilder_ == null) { + inputs_ = null; + } else { + inputs_ = null; + inputsBuilder_ = null; + } + if (templateBuilder_ == null) { + template_ = null; + } else { + template_ = null; + templateBuilder_ = null; + } + outputPrefix_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_CreateTaskRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Agent.CreateTaskRequest getDefaultInstanceForType() { + return flyteidl.admin.Agent.CreateTaskRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Agent.CreateTaskRequest build() { + flyteidl.admin.Agent.CreateTaskRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Agent.CreateTaskRequest buildPartial() { + flyteidl.admin.Agent.CreateTaskRequest result = new flyteidl.admin.Agent.CreateTaskRequest(this); + if (inputsBuilder_ == null) { + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + if (templateBuilder_ == null) { + result.template_ = template_; + } else { + result.template_ = templateBuilder_.build(); + } + result.outputPrefix_ = outputPrefix_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Agent.CreateTaskRequest) { + return mergeFrom((flyteidl.admin.Agent.CreateTaskRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Agent.CreateTaskRequest other) { + if (other == flyteidl.admin.Agent.CreateTaskRequest.getDefaultInstance()) return this; + if (other.hasInputs()) { + mergeInputs(other.getInputs()); + } + if (other.hasTemplate()) { + mergeTemplate(other.getTemplate()); + } + if (!other.getOutputPrefix().isEmpty()) { + outputPrefix_ = other.outputPrefix_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Agent.CreateTaskRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Agent.CreateTaskRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Literals.LiteralMap inputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> inputsBuilder_; + /** + *
+       * 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
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public boolean hasInputs() { + return inputsBuilder_ != null || inputs_ != null; + } + /** + *
+       * 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
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public flyteidl.core.Literals.LiteralMap getInputs() { + if (inputsBuilder_ == null) { + return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; + } else { + return inputsBuilder_.getMessage(); + } + } + /** + *
+       * 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
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public Builder setInputs(flyteidl.core.Literals.LiteralMap value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputs_ = value; + onChanged(); + } else { + inputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * 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
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public Builder setInputs( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (inputsBuilder_ == null) { + inputs_ = builderForValue.build(); + onChanged(); + } else { + inputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * 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
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public Builder mergeInputs(flyteidl.core.Literals.LiteralMap value) { + if (inputsBuilder_ == null) { + if (inputs_ != null) { + inputs_ = + flyteidl.core.Literals.LiteralMap.newBuilder(inputs_).mergeFrom(value).buildPartial(); + } else { + inputs_ = value; + } + onChanged(); + } else { + inputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * 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
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = null; + onChanged(); + } else { + inputs_ = null; + inputsBuilder_ = null; + } + + return this; + } + /** + *
+       * 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
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public flyteidl.core.Literals.LiteralMap.Builder getInputsBuilder() { + + onChanged(); + return getInputsFieldBuilder().getBuilder(); + } + /** + *
+       * 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
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilder(); + } else { + return inputs_ == null ? + flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; + } + } + /** + *
+       * 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
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + getInputs(), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + + private flyteidl.core.Tasks.TaskTemplate template_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> templateBuilder_; + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public boolean hasTemplate() { + return templateBuilder_ != null || template_ != null; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public flyteidl.core.Tasks.TaskTemplate getTemplate() { + if (templateBuilder_ == null) { + return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } else { + return templateBuilder_.getMessage(); + } + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public Builder setTemplate(flyteidl.core.Tasks.TaskTemplate value) { + if (templateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + template_ = value; + onChanged(); + } else { + templateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public Builder setTemplate( + flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (templateBuilder_ == null) { + template_ = builderForValue.build(); + onChanged(); + } else { + templateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public Builder mergeTemplate(flyteidl.core.Tasks.TaskTemplate value) { + if (templateBuilder_ == null) { + if (template_ != null) { + template_ = + flyteidl.core.Tasks.TaskTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); + } else { + template_ = value; + } + onChanged(); + } else { + templateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public Builder clearTemplate() { + if (templateBuilder_ == null) { + template_ = null; + onChanged(); + } else { + template_ = null; + templateBuilder_ = null; + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder getTemplateBuilder() { + + onChanged(); + return getTemplateFieldBuilder().getBuilder(); + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { + if (templateBuilder_ != null) { + return templateBuilder_.getMessageOrBuilder(); + } else { + return template_ == null ? + flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> + getTemplateFieldBuilder() { + if (templateBuilder_ == null) { + templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( + getTemplate(), + getParentForChildren(), + isClean()); + template_ = null; + } + return templateBuilder_; + } + + private java.lang.Object outputPrefix_ = ""; + /** + *
+       * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
+       * 
+ * + * string output_prefix = 3; + */ + public java.lang.String getOutputPrefix() { + java.lang.Object ref = outputPrefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputPrefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
+       * 
+ * + * string output_prefix = 3; + */ + public com.google.protobuf.ByteString + getOutputPrefixBytes() { + java.lang.Object ref = outputPrefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + outputPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
+       * 
+ * + * string output_prefix = 3; + */ + public Builder setOutputPrefix( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + outputPrefix_ = value; + onChanged(); + return this; + } + /** + *
+       * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
+       * 
+ * + * string output_prefix = 3; + */ + public Builder clearOutputPrefix() { + + outputPrefix_ = getDefaultInstance().getOutputPrefix(); + onChanged(); + return this; + } + /** + *
+       * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
+       * 
+ * + * string output_prefix = 3; + */ + public Builder setOutputPrefixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + outputPrefix_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.CreateTaskRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.CreateTaskRequest) + private static final flyteidl.admin.Agent.CreateTaskRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Agent.CreateTaskRequest(); + } + + public static flyteidl.admin.Agent.CreateTaskRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTaskRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateTaskRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Agent.CreateTaskRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateTaskResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.CreateTaskResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).
+     * 
+ * + * bytes resource_meta = 1; + */ + com.google.protobuf.ByteString getResourceMeta(); + } + /** + *
+   * Represents a create response structure.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.CreateTaskResponse} + */ + public static final class CreateTaskResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.CreateTaskResponse) + CreateTaskResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateTaskResponse.newBuilder() to construct. + private CreateTaskResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateTaskResponse() { + resourceMeta_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateTaskResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + resourceMeta_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_CreateTaskResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_CreateTaskResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Agent.CreateTaskResponse.class, flyteidl.admin.Agent.CreateTaskResponse.Builder.class); + } + + public static final int RESOURCE_META_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString resourceMeta_; + /** + *
+     * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).
+     * 
+ * + * bytes resource_meta = 1; + */ + public com.google.protobuf.ByteString getResourceMeta() { + return resourceMeta_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!resourceMeta_.isEmpty()) { + output.writeBytes(1, resourceMeta_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!resourceMeta_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, resourceMeta_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Agent.CreateTaskResponse)) { + return super.equals(obj); + } + flyteidl.admin.Agent.CreateTaskResponse other = (flyteidl.admin.Agent.CreateTaskResponse) obj; + + if (!getResourceMeta() + .equals(other.getResourceMeta())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_META_FIELD_NUMBER; + hash = (53 * hash) + getResourceMeta().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Agent.CreateTaskResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.CreateTaskResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.CreateTaskResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.CreateTaskResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.CreateTaskResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.CreateTaskResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.CreateTaskResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.CreateTaskResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Agent.CreateTaskResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.CreateTaskResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Agent.CreateTaskResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.CreateTaskResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Agent.CreateTaskResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a create response structure.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.CreateTaskResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.CreateTaskResponse) + flyteidl.admin.Agent.CreateTaskResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_CreateTaskResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_CreateTaskResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Agent.CreateTaskResponse.class, flyteidl.admin.Agent.CreateTaskResponse.Builder.class); + } + + // Construct using flyteidl.admin.Agent.CreateTaskResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + resourceMeta_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_CreateTaskResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Agent.CreateTaskResponse getDefaultInstanceForType() { + return flyteidl.admin.Agent.CreateTaskResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Agent.CreateTaskResponse build() { + flyteidl.admin.Agent.CreateTaskResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Agent.CreateTaskResponse buildPartial() { + flyteidl.admin.Agent.CreateTaskResponse result = new flyteidl.admin.Agent.CreateTaskResponse(this); + result.resourceMeta_ = resourceMeta_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Agent.CreateTaskResponse) { + return mergeFrom((flyteidl.admin.Agent.CreateTaskResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Agent.CreateTaskResponse other) { + if (other == flyteidl.admin.Agent.CreateTaskResponse.getDefaultInstance()) return this; + if (other.getResourceMeta() != com.google.protobuf.ByteString.EMPTY) { + setResourceMeta(other.getResourceMeta()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Agent.CreateTaskResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Agent.CreateTaskResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString resourceMeta_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).
+       * 
+ * + * bytes resource_meta = 1; + */ + public com.google.protobuf.ByteString getResourceMeta() { + return resourceMeta_; + } + /** + *
+       * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).
+       * 
+ * + * bytes resource_meta = 1; + */ + public Builder setResourceMeta(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceMeta_ = value; + onChanged(); + return this; + } + /** + *
+       * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).
+       * 
+ * + * bytes resource_meta = 1; + */ + public Builder clearResourceMeta() { + + resourceMeta_ = getDefaultInstance().getResourceMeta(); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.CreateTaskResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.CreateTaskResponse) + private static final flyteidl.admin.Agent.CreateTaskResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Agent.CreateTaskResponse(); + } + + public static flyteidl.admin.Agent.CreateTaskResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTaskResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateTaskResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Agent.CreateTaskResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetTaskRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.GetTaskRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + java.lang.String getTaskType(); + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + com.google.protobuf.ByteString + getTaskTypeBytes(); + + /** + *
+     * Metadata about the resource to be pass to the agent.
+     * 
+ * + * bytes resource_meta = 2; + */ + com.google.protobuf.ByteString getResourceMeta(); + } + /** + *
+   * A message used to fetch a job resource from flyte agent server.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.GetTaskRequest} + */ + public static final class GetTaskRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.GetTaskRequest) + GetTaskRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetTaskRequest.newBuilder() to construct. + private GetTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetTaskRequest() { + taskType_ = ""; + resourceMeta_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetTaskRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + taskType_ = s; + break; + } + case 18: { + + resourceMeta_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_GetTaskRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_GetTaskRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Agent.GetTaskRequest.class, flyteidl.admin.Agent.GetTaskRequest.Builder.class); + } + + public static final int TASK_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object taskType_; + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + public java.lang.String getTaskType() { + java.lang.Object ref = taskType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskType_ = s; + return s; + } + } + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + public com.google.protobuf.ByteString + getTaskTypeBytes() { + java.lang.Object ref = taskType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + taskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_META_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString resourceMeta_; + /** + *
+     * Metadata about the resource to be pass to the agent.
+     * 
+ * + * bytes resource_meta = 2; + */ + public com.google.protobuf.ByteString getResourceMeta() { + return resourceMeta_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getTaskTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, taskType_); + } + if (!resourceMeta_.isEmpty()) { + output.writeBytes(2, resourceMeta_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTaskTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, taskType_); + } + if (!resourceMeta_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, resourceMeta_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Agent.GetTaskRequest)) { + return super.equals(obj); + } + flyteidl.admin.Agent.GetTaskRequest other = (flyteidl.admin.Agent.GetTaskRequest) obj; + + if (!getTaskType() + .equals(other.getTaskType())) return false; + if (!getResourceMeta() + .equals(other.getResourceMeta())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TASK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getTaskType().hashCode(); + hash = (37 * hash) + RESOURCE_META_FIELD_NUMBER; + hash = (53 * hash) + getResourceMeta().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Agent.GetTaskRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.GetTaskRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.GetTaskRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.GetTaskRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.GetTaskRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.GetTaskRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.GetTaskRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.GetTaskRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Agent.GetTaskRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.GetTaskRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Agent.GetTaskRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.GetTaskRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Agent.GetTaskRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A message used to fetch a job resource from flyte agent server.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.GetTaskRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.GetTaskRequest) + flyteidl.admin.Agent.GetTaskRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_GetTaskRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_GetTaskRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Agent.GetTaskRequest.class, flyteidl.admin.Agent.GetTaskRequest.Builder.class); + } + + // Construct using flyteidl.admin.Agent.GetTaskRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + taskType_ = ""; + + resourceMeta_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_GetTaskRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Agent.GetTaskRequest getDefaultInstanceForType() { + return flyteidl.admin.Agent.GetTaskRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Agent.GetTaskRequest build() { + flyteidl.admin.Agent.GetTaskRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Agent.GetTaskRequest buildPartial() { + flyteidl.admin.Agent.GetTaskRequest result = new flyteidl.admin.Agent.GetTaskRequest(this); + result.taskType_ = taskType_; + result.resourceMeta_ = resourceMeta_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Agent.GetTaskRequest) { + return mergeFrom((flyteidl.admin.Agent.GetTaskRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Agent.GetTaskRequest other) { + if (other == flyteidl.admin.Agent.GetTaskRequest.getDefaultInstance()) return this; + if (!other.getTaskType().isEmpty()) { + taskType_ = other.taskType_; + onChanged(); + } + if (other.getResourceMeta() != com.google.protobuf.ByteString.EMPTY) { + setResourceMeta(other.getResourceMeta()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Agent.GetTaskRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Agent.GetTaskRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object taskType_ = ""; + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public java.lang.String getTaskType() { + java.lang.Object ref = taskType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public com.google.protobuf.ByteString + getTaskTypeBytes() { + java.lang.Object ref = taskType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + taskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public Builder setTaskType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + taskType_ = value; + onChanged(); + return this; + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public Builder clearTaskType() { + + taskType_ = getDefaultInstance().getTaskType(); + onChanged(); + return this; + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public Builder setTaskTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + taskType_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString resourceMeta_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * Metadata about the resource to be pass to the agent.
+       * 
+ * + * bytes resource_meta = 2; + */ + public com.google.protobuf.ByteString getResourceMeta() { + return resourceMeta_; + } + /** + *
+       * Metadata about the resource to be pass to the agent.
+       * 
+ * + * bytes resource_meta = 2; + */ + public Builder setResourceMeta(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceMeta_ = value; + onChanged(); + return this; + } + /** + *
+       * Metadata about the resource to be pass to the agent.
+       * 
+ * + * bytes resource_meta = 2; + */ + public Builder clearResourceMeta() { + + resourceMeta_ = getDefaultInstance().getResourceMeta(); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.GetTaskRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.GetTaskRequest) + private static final flyteidl.admin.Agent.GetTaskRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Agent.GetTaskRequest(); + } + + public static flyteidl.admin.Agent.GetTaskRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTaskRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetTaskRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Agent.GetTaskRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetTaskResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.GetTaskResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.Resource resource = 1; + */ + boolean hasResource(); + /** + * .flyteidl.admin.Resource resource = 1; + */ + flyteidl.admin.Agent.Resource getResource(); + /** + * .flyteidl.admin.Resource resource = 1; + */ + flyteidl.admin.Agent.ResourceOrBuilder getResourceOrBuilder(); + } + /** + *
+   * Response to get an individual task resource.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.GetTaskResponse} + */ + public static final class GetTaskResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.GetTaskResponse) + GetTaskResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetTaskResponse.newBuilder() to construct. + private GetTaskResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetTaskResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetTaskResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.admin.Agent.Resource.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); + } + resource_ = input.readMessage(flyteidl.admin.Agent.Resource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_GetTaskResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_GetTaskResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Agent.GetTaskResponse.class, flyteidl.admin.Agent.GetTaskResponse.Builder.class); + } + + public static final int RESOURCE_FIELD_NUMBER = 1; + private flyteidl.admin.Agent.Resource resource_; + /** + * .flyteidl.admin.Resource resource = 1; + */ + public boolean hasResource() { + return resource_ != null; + } + /** + * .flyteidl.admin.Resource resource = 1; + */ + public flyteidl.admin.Agent.Resource getResource() { + return resource_ == null ? flyteidl.admin.Agent.Resource.getDefaultInstance() : resource_; + } + /** + * .flyteidl.admin.Resource resource = 1; + */ + public flyteidl.admin.Agent.ResourceOrBuilder getResourceOrBuilder() { + return getResource(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (resource_ != null) { + output.writeMessage(1, getResource()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resource_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getResource()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Agent.GetTaskResponse)) { + return super.equals(obj); + } + flyteidl.admin.Agent.GetTaskResponse other = (flyteidl.admin.Agent.GetTaskResponse) obj; + + if (hasResource() != other.hasResource()) return false; + if (hasResource()) { + if (!getResource() + .equals(other.getResource())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResource()) { + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Agent.GetTaskResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.GetTaskResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.GetTaskResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.GetTaskResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.GetTaskResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.GetTaskResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.GetTaskResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.GetTaskResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Agent.GetTaskResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.GetTaskResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Agent.GetTaskResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.GetTaskResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Agent.GetTaskResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Response to get an individual task resource.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.GetTaskResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.GetTaskResponse) + flyteidl.admin.Agent.GetTaskResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_GetTaskResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_GetTaskResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Agent.GetTaskResponse.class, flyteidl.admin.Agent.GetTaskResponse.Builder.class); + } + + // Construct using flyteidl.admin.Agent.GetTaskResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (resourceBuilder_ == null) { + resource_ = null; + } else { + resource_ = null; + resourceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_GetTaskResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Agent.GetTaskResponse getDefaultInstanceForType() { + return flyteidl.admin.Agent.GetTaskResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Agent.GetTaskResponse build() { + flyteidl.admin.Agent.GetTaskResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Agent.GetTaskResponse buildPartial() { + flyteidl.admin.Agent.GetTaskResponse result = new flyteidl.admin.Agent.GetTaskResponse(this); + if (resourceBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = resourceBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Agent.GetTaskResponse) { + return mergeFrom((flyteidl.admin.Agent.GetTaskResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Agent.GetTaskResponse other) { + if (other == flyteidl.admin.Agent.GetTaskResponse.getDefaultInstance()) return this; + if (other.hasResource()) { + mergeResource(other.getResource()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Agent.GetTaskResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Agent.GetTaskResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.Agent.Resource resource_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Agent.Resource, flyteidl.admin.Agent.Resource.Builder, flyteidl.admin.Agent.ResourceOrBuilder> resourceBuilder_; + /** + * .flyteidl.admin.Resource resource = 1; + */ + public boolean hasResource() { + return resourceBuilder_ != null || resource_ != null; + } + /** + * .flyteidl.admin.Resource resource = 1; + */ + public flyteidl.admin.Agent.Resource getResource() { + if (resourceBuilder_ == null) { + return resource_ == null ? flyteidl.admin.Agent.Resource.getDefaultInstance() : resource_; + } else { + return resourceBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.Resource resource = 1; + */ + public Builder setResource(flyteidl.admin.Agent.Resource value) { + if (resourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + resourceBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.Resource resource = 1; + */ + public Builder setResource( + flyteidl.admin.Agent.Resource.Builder builderForValue) { + if (resourceBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + resourceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.Resource resource = 1; + */ + public Builder mergeResource(flyteidl.admin.Agent.Resource value) { + if (resourceBuilder_ == null) { + if (resource_ != null) { + resource_ = + flyteidl.admin.Agent.Resource.newBuilder(resource_).mergeFrom(value).buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + resourceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.Resource resource = 1; + */ + public Builder clearResource() { + if (resourceBuilder_ == null) { + resource_ = null; + onChanged(); + } else { + resource_ = null; + resourceBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.Resource resource = 1; + */ + public flyteidl.admin.Agent.Resource.Builder getResourceBuilder() { + + onChanged(); + return getResourceFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.Resource resource = 1; + */ + public flyteidl.admin.Agent.ResourceOrBuilder getResourceOrBuilder() { + if (resourceBuilder_ != null) { + return resourceBuilder_.getMessageOrBuilder(); + } else { + return resource_ == null ? + flyteidl.admin.Agent.Resource.getDefaultInstance() : resource_; + } + } + /** + * .flyteidl.admin.Resource resource = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Agent.Resource, flyteidl.admin.Agent.Resource.Builder, flyteidl.admin.Agent.ResourceOrBuilder> + getResourceFieldBuilder() { + if (resourceBuilder_ == null) { + resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Agent.Resource, flyteidl.admin.Agent.Resource.Builder, flyteidl.admin.Agent.ResourceOrBuilder>( + getResource(), + getParentForChildren(), + isClean()); + resource_ = null; + } + return resourceBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.GetTaskResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.GetTaskResponse) + private static final flyteidl.admin.Agent.GetTaskResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Agent.GetTaskResponse(); + } + + public static flyteidl.admin.Agent.GetTaskResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTaskResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetTaskResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Agent.GetTaskResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResourceOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Resource) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The state of the execution is used to control its visibility in the UI/CLI.
+     * 
+ * + * .flyteidl.admin.State state = 1; + */ + int getStateValue(); + /** + *
+     * The state of the execution is used to control its visibility in the UI/CLI.
+     * 
+ * + * .flyteidl.admin.State state = 1; + */ + flyteidl.admin.Agent.State getState(); + + /** + *
+     * 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
+     * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + boolean hasOutputs(); + /** + *
+     * 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
+     * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + flyteidl.core.Literals.LiteralMap getOutputs(); + /** + *
+     * 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
+     * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getOutputsOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.admin.Resource} + */ + public static final class Resource extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Resource) + ResourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use Resource.newBuilder() to construct. + private Resource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Resource() { + state_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Resource( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 18: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (outputs_ != null) { + subBuilder = outputs_.toBuilder(); + } + outputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputs_); + outputs_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_Resource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_Resource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Agent.Resource.class, flyteidl.admin.Agent.Resource.Builder.class); + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_; + /** + *
+     * The state of the execution is used to control its visibility in the UI/CLI.
+     * 
+ * + * .flyteidl.admin.State state = 1; + */ + public int getStateValue() { + return state_; + } + /** + *
+     * The state of the execution is used to control its visibility in the UI/CLI.
+     * 
+ * + * .flyteidl.admin.State state = 1; + */ + public flyteidl.admin.Agent.State getState() { + @SuppressWarnings("deprecation") + flyteidl.admin.Agent.State result = flyteidl.admin.Agent.State.valueOf(state_); + return result == null ? flyteidl.admin.Agent.State.UNRECOGNIZED : result; + } + + public static final int OUTPUTS_FIELD_NUMBER = 2; + private flyteidl.core.Literals.LiteralMap outputs_; + /** + *
+     * 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
+     * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public boolean hasOutputs() { + return outputs_ != null; + } + /** + *
+     * 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
+     * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public flyteidl.core.Literals.LiteralMap getOutputs() { + return outputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : outputs_; + } + /** + *
+     * 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
+     * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getOutputsOrBuilder() { + return getOutputs(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != flyteidl.admin.Agent.State.RETRYABLE_FAILURE.getNumber()) { + output.writeEnum(1, state_); + } + if (outputs_ != null) { + output.writeMessage(2, getOutputs()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ != flyteidl.admin.Agent.State.RETRYABLE_FAILURE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); + } + if (outputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOutputs()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Agent.Resource)) { + return super.equals(obj); + } + flyteidl.admin.Agent.Resource other = (flyteidl.admin.Agent.Resource) obj; + + if (state_ != other.state_) return false; + if (hasOutputs() != other.hasOutputs()) return false; + if (hasOutputs()) { + if (!getOutputs() + .equals(other.getOutputs())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasOutputs()) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputs().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Agent.Resource parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.Resource parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.Resource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.Resource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.Resource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.Resource parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.Resource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.Resource parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Agent.Resource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.Resource parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Agent.Resource parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.Resource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Agent.Resource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.admin.Resource} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Resource) + flyteidl.admin.Agent.ResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_Resource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_Resource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Agent.Resource.class, flyteidl.admin.Agent.Resource.Builder.class); + } + + // Construct using flyteidl.admin.Agent.Resource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + state_ = 0; + + if (outputsBuilder_ == null) { + outputs_ = null; + } else { + outputs_ = null; + outputsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_Resource_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Agent.Resource getDefaultInstanceForType() { + return flyteidl.admin.Agent.Resource.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Agent.Resource build() { + flyteidl.admin.Agent.Resource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Agent.Resource buildPartial() { + flyteidl.admin.Agent.Resource result = new flyteidl.admin.Agent.Resource(this); + result.state_ = state_; + if (outputsBuilder_ == null) { + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Agent.Resource) { + return mergeFrom((flyteidl.admin.Agent.Resource)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Agent.Resource other) { + if (other == flyteidl.admin.Agent.Resource.getDefaultInstance()) return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasOutputs()) { + mergeOutputs(other.getOutputs()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Agent.Resource parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Agent.Resource) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int state_ = 0; + /** + *
+       * The state of the execution is used to control its visibility in the UI/CLI.
+       * 
+ * + * .flyteidl.admin.State state = 1; + */ + public int getStateValue() { + return state_; + } + /** + *
+       * The state of the execution is used to control its visibility in the UI/CLI.
+       * 
+ * + * .flyteidl.admin.State state = 1; + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + *
+       * The state of the execution is used to control its visibility in the UI/CLI.
+       * 
+ * + * .flyteidl.admin.State state = 1; + */ + public flyteidl.admin.Agent.State getState() { + @SuppressWarnings("deprecation") + flyteidl.admin.Agent.State result = flyteidl.admin.Agent.State.valueOf(state_); + return result == null ? flyteidl.admin.Agent.State.UNRECOGNIZED : result; + } + /** + *
+       * The state of the execution is used to control its visibility in the UI/CLI.
+       * 
+ * + * .flyteidl.admin.State state = 1; + */ + public Builder setState(flyteidl.admin.Agent.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * The state of the execution is used to control its visibility in the UI/CLI.
+       * 
+ * + * .flyteidl.admin.State state = 1; + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private flyteidl.core.Literals.LiteralMap outputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> outputsBuilder_; + /** + *
+       * 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
+       * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public boolean hasOutputs() { + return outputsBuilder_ != null || outputs_ != null; + } + /** + *
+       * 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
+       * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public flyteidl.core.Literals.LiteralMap getOutputs() { + if (outputsBuilder_ == null) { + return outputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : outputs_; + } else { + return outputsBuilder_.getMessage(); + } + } + /** + *
+       * 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
+       * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public Builder setOutputs(flyteidl.core.Literals.LiteralMap value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputs_ = value; + onChanged(); + } else { + outputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * 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
+       * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public Builder setOutputs( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (outputsBuilder_ == null) { + outputs_ = builderForValue.build(); + onChanged(); + } else { + outputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * 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
+       * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public Builder mergeOutputs(flyteidl.core.Literals.LiteralMap value) { + if (outputsBuilder_ == null) { + if (outputs_ != null) { + outputs_ = + flyteidl.core.Literals.LiteralMap.newBuilder(outputs_).mergeFrom(value).buildPartial(); + } else { + outputs_ = value; + } + onChanged(); + } else { + outputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * 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
+       * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = null; + onChanged(); + } else { + outputs_ = null; + outputsBuilder_ = null; + } + + return this; + } + /** + *
+       * 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
+       * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public flyteidl.core.Literals.LiteralMap.Builder getOutputsBuilder() { + + onChanged(); + return getOutputsFieldBuilder().getBuilder(); + } + /** + *
+       * 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
+       * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getOutputsOrBuilder() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilder(); + } else { + return outputs_ == null ? + flyteidl.core.Literals.LiteralMap.getDefaultInstance() : outputs_; + } + } + /** + *
+       * 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
+       * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + getOutputs(), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Resource) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Resource) + private static final flyteidl.admin.Agent.Resource DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Agent.Resource(); + } + + public static flyteidl.admin.Agent.Resource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Resource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Resource(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Agent.Resource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteTaskRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.DeleteTaskRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + java.lang.String getTaskType(); + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + com.google.protobuf.ByteString + getTaskTypeBytes(); + + /** + *
+     * Metadata about the resource to be pass to the agent.
+     * 
+ * + * bytes resource_meta = 2; + */ + com.google.protobuf.ByteString getResourceMeta(); + } + /** + *
+   * A message used to delete a task.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.DeleteTaskRequest} + */ + public static final class DeleteTaskRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.DeleteTaskRequest) + DeleteTaskRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteTaskRequest.newBuilder() to construct. + private DeleteTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteTaskRequest() { + taskType_ = ""; + resourceMeta_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteTaskRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + taskType_ = s; + break; + } + case 18: { + + resourceMeta_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_DeleteTaskRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_DeleteTaskRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Agent.DeleteTaskRequest.class, flyteidl.admin.Agent.DeleteTaskRequest.Builder.class); + } + + public static final int TASK_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object taskType_; + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + public java.lang.String getTaskType() { + java.lang.Object ref = taskType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskType_ = s; + return s; + } + } + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + public com.google.protobuf.ByteString + getTaskTypeBytes() { + java.lang.Object ref = taskType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + taskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_META_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString resourceMeta_; + /** + *
+     * Metadata about the resource to be pass to the agent.
+     * 
+ * + * bytes resource_meta = 2; + */ + public com.google.protobuf.ByteString getResourceMeta() { + return resourceMeta_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getTaskTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, taskType_); + } + if (!resourceMeta_.isEmpty()) { + output.writeBytes(2, resourceMeta_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTaskTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, taskType_); + } + if (!resourceMeta_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, resourceMeta_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Agent.DeleteTaskRequest)) { + return super.equals(obj); + } + flyteidl.admin.Agent.DeleteTaskRequest other = (flyteidl.admin.Agent.DeleteTaskRequest) obj; + + if (!getTaskType() + .equals(other.getTaskType())) return false; + if (!getResourceMeta() + .equals(other.getResourceMeta())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TASK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getTaskType().hashCode(); + hash = (37 * hash) + RESOURCE_META_FIELD_NUMBER; + hash = (53 * hash) + getResourceMeta().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Agent.DeleteTaskRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.DeleteTaskRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.DeleteTaskRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.DeleteTaskRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.DeleteTaskRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.DeleteTaskRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.DeleteTaskRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.DeleteTaskRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Agent.DeleteTaskRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.DeleteTaskRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Agent.DeleteTaskRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.DeleteTaskRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Agent.DeleteTaskRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A message used to delete a task.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.DeleteTaskRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.DeleteTaskRequest) + flyteidl.admin.Agent.DeleteTaskRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_DeleteTaskRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_DeleteTaskRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Agent.DeleteTaskRequest.class, flyteidl.admin.Agent.DeleteTaskRequest.Builder.class); + } + + // Construct using flyteidl.admin.Agent.DeleteTaskRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + taskType_ = ""; + + resourceMeta_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_DeleteTaskRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Agent.DeleteTaskRequest getDefaultInstanceForType() { + return flyteidl.admin.Agent.DeleteTaskRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Agent.DeleteTaskRequest build() { + flyteidl.admin.Agent.DeleteTaskRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Agent.DeleteTaskRequest buildPartial() { + flyteidl.admin.Agent.DeleteTaskRequest result = new flyteidl.admin.Agent.DeleteTaskRequest(this); + result.taskType_ = taskType_; + result.resourceMeta_ = resourceMeta_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Agent.DeleteTaskRequest) { + return mergeFrom((flyteidl.admin.Agent.DeleteTaskRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Agent.DeleteTaskRequest other) { + if (other == flyteidl.admin.Agent.DeleteTaskRequest.getDefaultInstance()) return this; + if (!other.getTaskType().isEmpty()) { + taskType_ = other.taskType_; + onChanged(); + } + if (other.getResourceMeta() != com.google.protobuf.ByteString.EMPTY) { + setResourceMeta(other.getResourceMeta()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Agent.DeleteTaskRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Agent.DeleteTaskRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object taskType_ = ""; + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public java.lang.String getTaskType() { + java.lang.Object ref = taskType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public com.google.protobuf.ByteString + getTaskTypeBytes() { + java.lang.Object ref = taskType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + taskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public Builder setTaskType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + taskType_ = value; + onChanged(); + return this; + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public Builder clearTaskType() { + + taskType_ = getDefaultInstance().getTaskType(); + onChanged(); + return this; + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public Builder setTaskTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + taskType_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString resourceMeta_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * Metadata about the resource to be pass to the agent.
+       * 
+ * + * bytes resource_meta = 2; + */ + public com.google.protobuf.ByteString getResourceMeta() { + return resourceMeta_; + } + /** + *
+       * Metadata about the resource to be pass to the agent.
+       * 
+ * + * bytes resource_meta = 2; + */ + public Builder setResourceMeta(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceMeta_ = value; + onChanged(); + return this; + } + /** + *
+       * Metadata about the resource to be pass to the agent.
+       * 
+ * + * bytes resource_meta = 2; + */ + public Builder clearResourceMeta() { + + resourceMeta_ = getDefaultInstance().getResourceMeta(); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.DeleteTaskRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.DeleteTaskRequest) + private static final flyteidl.admin.Agent.DeleteTaskRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Agent.DeleteTaskRequest(); + } + + public static flyteidl.admin.Agent.DeleteTaskRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTaskRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteTaskRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Agent.DeleteTaskRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteTaskResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.DeleteTaskResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Response to delete a task.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.DeleteTaskResponse} + */ + public static final class DeleteTaskResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.DeleteTaskResponse) + DeleteTaskResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteTaskResponse.newBuilder() to construct. + private DeleteTaskResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteTaskResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteTaskResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_DeleteTaskResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_DeleteTaskResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Agent.DeleteTaskResponse.class, flyteidl.admin.Agent.DeleteTaskResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Agent.DeleteTaskResponse)) { + return super.equals(obj); + } + flyteidl.admin.Agent.DeleteTaskResponse other = (flyteidl.admin.Agent.DeleteTaskResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Agent.DeleteTaskResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.DeleteTaskResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.DeleteTaskResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.DeleteTaskResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.DeleteTaskResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.DeleteTaskResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.DeleteTaskResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.DeleteTaskResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Agent.DeleteTaskResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.DeleteTaskResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Agent.DeleteTaskResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.DeleteTaskResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Agent.DeleteTaskResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Response to delete a task.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.DeleteTaskResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.DeleteTaskResponse) + flyteidl.admin.Agent.DeleteTaskResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_DeleteTaskResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_DeleteTaskResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Agent.DeleteTaskResponse.class, flyteidl.admin.Agent.DeleteTaskResponse.Builder.class); + } + + // Construct using flyteidl.admin.Agent.DeleteTaskResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_DeleteTaskResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Agent.DeleteTaskResponse getDefaultInstanceForType() { + return flyteidl.admin.Agent.DeleteTaskResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Agent.DeleteTaskResponse build() { + flyteidl.admin.Agent.DeleteTaskResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Agent.DeleteTaskResponse buildPartial() { + flyteidl.admin.Agent.DeleteTaskResponse result = new flyteidl.admin.Agent.DeleteTaskResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Agent.DeleteTaskResponse) { + return mergeFrom((flyteidl.admin.Agent.DeleteTaskResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Agent.DeleteTaskResponse other) { + if (other == flyteidl.admin.Agent.DeleteTaskResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Agent.DeleteTaskResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Agent.DeleteTaskResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.DeleteTaskResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.DeleteTaskResponse) + private static final flyteidl.admin.Agent.DeleteTaskResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Agent.DeleteTaskResponse(); + } + + public static flyteidl.admin.Agent.DeleteTaskResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTaskResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteTaskResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Agent.DeleteTaskResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_CreateTaskRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_CreateTaskRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_CreateTaskResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_CreateTaskResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_GetTaskRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_GetTaskRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_GetTaskResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_GetTaskResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Resource_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Resource_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_DeleteTaskRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_DeleteTaskRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_DeleteTaskResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_DeleteTaskResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\032flyteidl/admin/agent.proto\022\016flyteidl.a" + + "dmin\032\034flyteidl/core/literals.proto\032\031flyt" + + "eidl/core/tasks.proto\032\035flyteidl/core/int" + + "erface.proto\"\204\001\n\021CreateTaskRequest\022)\n\006in" + + "puts\030\001 \001(\0132\031.flyteidl.core.LiteralMap\022-\n" + + "\010template\030\002 \001(\0132\033.flyteidl.core.TaskTemp" + + "late\022\025\n\routput_prefix\030\003 \001(\t\"+\n\022CreateTas" + + "kResponse\022\025\n\rresource_meta\030\001 \001(\014\":\n\016GetT" + + "askRequest\022\021\n\ttask_type\030\001 \001(\t\022\025\n\rresourc" + + "e_meta\030\002 \001(\014\"=\n\017GetTaskResponse\022*\n\010resou" + + "rce\030\001 \001(\0132\030.flyteidl.admin.Resource\"\\\n\010R" + + "esource\022$\n\005state\030\001 \001(\0162\025.flyteidl.admin." + + "State\022*\n\007outputs\030\002 \001(\0132\031.flyteidl.core.L" + + "iteralMap\"=\n\021DeleteTaskRequest\022\021\n\ttask_t" + + "ype\030\001 \001(\t\022\025\n\rresource_meta\030\002 \001(\014\"\024\n\022Dele" + + "teTaskResponse*^\n\005State\022\025\n\021RETRYABLE_FAI" + + "LURE\020\000\022\025\n\021PERMANENT_FAILURE\020\001\022\013\n\007PENDING" + + "\020\002\022\013\n\007RUNNING\020\003\022\r\n\tSUCCEEDED\020\004B7Z5github" + + ".com/flyteorg/flyteidl/gen/pb-go/flyteid" + + "l/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Literals.getDescriptor(), + flyteidl.core.Tasks.getDescriptor(), + flyteidl.core.Interface.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_CreateTaskRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_CreateTaskRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_CreateTaskRequest_descriptor, + new java.lang.String[] { "Inputs", "Template", "OutputPrefix", }); + internal_static_flyteidl_admin_CreateTaskResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_CreateTaskResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_CreateTaskResponse_descriptor, + new java.lang.String[] { "ResourceMeta", }); + internal_static_flyteidl_admin_GetTaskRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_GetTaskRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_GetTaskRequest_descriptor, + new java.lang.String[] { "TaskType", "ResourceMeta", }); + internal_static_flyteidl_admin_GetTaskResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_GetTaskResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_GetTaskResponse_descriptor, + new java.lang.String[] { "Resource", }); + internal_static_flyteidl_admin_Resource_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_Resource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Resource_descriptor, + new java.lang.String[] { "State", "Outputs", }); + internal_static_flyteidl_admin_DeleteTaskRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_DeleteTaskRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_DeleteTaskRequest_descriptor, + new java.lang.String[] { "TaskType", "ResourceMeta", }); + internal_static_flyteidl_admin_DeleteTaskResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_DeleteTaskResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_DeleteTaskResponse_descriptor, + new java.lang.String[] { }); + flyteidl.core.Literals.getDescriptor(); + flyteidl.core.Tasks.getDescriptor(); + flyteidl.core.Interface.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/service/Agent.java b/flyteidl/gen/pb-java/flyteidl/service/Agent.java new file mode 100644 index 00000000000..592b30c6536 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/service/Agent.java @@ -0,0 +1,55 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/service/agent.proto + +package flyteidl.service; + +public final class Agent { + private Agent() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\034flyteidl/service/agent.proto\022\020flyteidl" + + ".service\032\032flyteidl/admin/agent.proto2\217\002\n" + + "\021AsyncAgentService\022U\n\nCreateTask\022!.flyte" + + "idl.admin.CreateTaskRequest\032\".flyteidl.a" + + "dmin.CreateTaskResponse\"\000\022L\n\007GetTask\022\036.f" + + "lyteidl.admin.GetTaskRequest\032\037.flyteidl." + + "admin.GetTaskResponse\"\000\022U\n\nDeleteTask\022!." + + "flyteidl.admin.DeleteTaskRequest\032\".flyte" + + "idl.admin.DeleteTaskResponse\"\000B9Z7github" + + ".com/flyteorg/flyteidl/gen/pb-go/flyteid" + + "l/serviceb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.admin.Agent.getDescriptor(), + }, assigner); + flyteidl.admin.Agent.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/service/AgentServiceOuterClass.java b/flyteidl/gen/pb-java/flyteidl/service/ExternalPluginServiceOuterClass.java similarity index 81% rename from flyteidl/gen/pb-java/flyteidl/service/AgentServiceOuterClass.java rename to flyteidl/gen/pb-java/flyteidl/service/ExternalPluginServiceOuterClass.java index cb06919e60e..0ab98005841 100644 --- a/flyteidl/gen/pb-java/flyteidl/service/AgentServiceOuterClass.java +++ b/flyteidl/gen/pb-java/flyteidl/service/ExternalPluginServiceOuterClass.java @@ -1,10 +1,10 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/service/agent_service.proto +// source: flyteidl/service/external_plugin_service.proto package flyteidl.service; -public final class AgentServiceOuterClass { - private AgentServiceOuterClass() {} +public final class ExternalPluginServiceOuterClass { + private ExternalPluginServiceOuterClass() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -117,7 +117,7 @@ public State findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return flyteidl.service.AgentServiceOuterClass.getDescriptor().getEnumTypes().get(0); + return flyteidl.service.ExternalPluginServiceOuterClass.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); @@ -143,7 +143,7 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:flyteidl.service.State) } - public interface TaskCreateRequestOrBuilder extends + @java.lang.Deprecated public interface TaskCreateRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:flyteidl.service.TaskCreateRequest) com.google.protobuf.MessageOrBuilder { @@ -228,7 +228,7 @@ public interface TaskCreateRequestOrBuilder extends * * Protobuf type {@code flyteidl.service.TaskCreateRequest} */ - public static final class TaskCreateRequest extends + @java.lang.Deprecated public static final class TaskCreateRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:flyteidl.service.TaskCreateRequest) TaskCreateRequestOrBuilder { @@ -318,15 +318,15 @@ private TaskCreateRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskCreateRequest_descriptor; + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskCreateRequest_fieldAccessorTable + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.service.AgentServiceOuterClass.TaskCreateRequest.class, flyteidl.service.AgentServiceOuterClass.TaskCreateRequest.Builder.class); + flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest.Builder.class); } public static final int INPUTS_FIELD_NUMBER = 1; @@ -496,10 +496,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.service.AgentServiceOuterClass.TaskCreateRequest)) { + if (!(obj instanceof flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest)) { return super.equals(obj); } - flyteidl.service.AgentServiceOuterClass.TaskCreateRequest other = (flyteidl.service.AgentServiceOuterClass.TaskCreateRequest) obj; + flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest other = (flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest) obj; if (hasInputs() != other.hasInputs()) return false; if (hasInputs()) { @@ -539,69 +539,69 @@ public int hashCode() { return hash; } - public static flyteidl.service.AgentServiceOuterClass.TaskCreateRequest parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.AgentServiceOuterClass.TaskCreateRequest parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.service.AgentServiceOuterClass.TaskCreateRequest parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.AgentServiceOuterClass.TaskCreateRequest parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.service.AgentServiceOuterClass.TaskCreateRequest parseFrom(byte[] data) + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.AgentServiceOuterClass.TaskCreateRequest parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.service.AgentServiceOuterClass.TaskCreateRequest parseFrom(java.io.InputStream input) + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.service.AgentServiceOuterClass.TaskCreateRequest parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.service.AgentServiceOuterClass.TaskCreateRequest parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.service.AgentServiceOuterClass.TaskCreateRequest parseDelimitedFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.service.AgentServiceOuterClass.TaskCreateRequest parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.service.AgentServiceOuterClass.TaskCreateRequest parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -614,7 +614,7 @@ public static flyteidl.service.AgentServiceOuterClass.TaskCreateRequest parseFro public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.service.AgentServiceOuterClass.TaskCreateRequest prototype) { + public static Builder newBuilder(flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -639,21 +639,21 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flyteidl.service.TaskCreateRequest) - flyteidl.service.AgentServiceOuterClass.TaskCreateRequestOrBuilder { + flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskCreateRequest_descriptor; + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskCreateRequest_fieldAccessorTable + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.service.AgentServiceOuterClass.TaskCreateRequest.class, flyteidl.service.AgentServiceOuterClass.TaskCreateRequest.Builder.class); + flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest.Builder.class); } - // Construct using flyteidl.service.AgentServiceOuterClass.TaskCreateRequest.newBuilder() + // Construct using flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -691,17 +691,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskCreateRequest_descriptor; + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateRequest_descriptor; } @java.lang.Override - public flyteidl.service.AgentServiceOuterClass.TaskCreateRequest getDefaultInstanceForType() { - return flyteidl.service.AgentServiceOuterClass.TaskCreateRequest.getDefaultInstance(); + public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest getDefaultInstanceForType() { + return flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest.getDefaultInstance(); } @java.lang.Override - public flyteidl.service.AgentServiceOuterClass.TaskCreateRequest build() { - flyteidl.service.AgentServiceOuterClass.TaskCreateRequest result = buildPartial(); + public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest build() { + flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -709,8 +709,8 @@ public flyteidl.service.AgentServiceOuterClass.TaskCreateRequest build() { } @java.lang.Override - public flyteidl.service.AgentServiceOuterClass.TaskCreateRequest buildPartial() { - flyteidl.service.AgentServiceOuterClass.TaskCreateRequest result = new flyteidl.service.AgentServiceOuterClass.TaskCreateRequest(this); + public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest buildPartial() { + flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest result = new flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest(this); if (inputsBuilder_ == null) { result.inputs_ = inputs_; } else { @@ -760,16 +760,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.service.AgentServiceOuterClass.TaskCreateRequest) { - return mergeFrom((flyteidl.service.AgentServiceOuterClass.TaskCreateRequest)other); + if (other instanceof flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest) { + return mergeFrom((flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.service.AgentServiceOuterClass.TaskCreateRequest other) { - if (other == flyteidl.service.AgentServiceOuterClass.TaskCreateRequest.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest other) { + if (other == flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest.getDefaultInstance()) return this; if (other.hasInputs()) { mergeInputs(other.getInputs()); } @@ -795,11 +795,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.service.AgentServiceOuterClass.TaskCreateRequest parsedMessage = null; + flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.AgentServiceOuterClass.TaskCreateRequest) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1238,12 +1238,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:flyteidl.service.TaskCreateRequest) - private static final flyteidl.service.AgentServiceOuterClass.TaskCreateRequest DEFAULT_INSTANCE; + private static final flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.service.AgentServiceOuterClass.TaskCreateRequest(); + DEFAULT_INSTANCE = new flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest(); } - public static flyteidl.service.AgentServiceOuterClass.TaskCreateRequest getDefaultInstance() { + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1268,13 +1268,13 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyteidl.service.AgentServiceOuterClass.TaskCreateRequest getDefaultInstanceForType() { + public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface TaskCreateResponseOrBuilder extends + @java.lang.Deprecated public interface TaskCreateResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:flyteidl.service.TaskCreateResponse) com.google.protobuf.MessageOrBuilder { @@ -1295,7 +1295,7 @@ public interface TaskCreateResponseOrBuilder extends * * Protobuf type {@code flyteidl.service.TaskCreateResponse} */ - public static final class TaskCreateResponse extends + @java.lang.Deprecated public static final class TaskCreateResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:flyteidl.service.TaskCreateResponse) TaskCreateResponseOrBuilder { @@ -1359,15 +1359,15 @@ private TaskCreateResponse( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskCreateResponse_descriptor; + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskCreateResponse_fieldAccessorTable + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.service.AgentServiceOuterClass.TaskCreateResponse.class, flyteidl.service.AgentServiceOuterClass.TaskCreateResponse.Builder.class); + flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse.Builder.class); } public static final int JOB_ID_FIELD_NUMBER = 1; @@ -1443,10 +1443,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.service.AgentServiceOuterClass.TaskCreateResponse)) { + if (!(obj instanceof flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse)) { return super.equals(obj); } - flyteidl.service.AgentServiceOuterClass.TaskCreateResponse other = (flyteidl.service.AgentServiceOuterClass.TaskCreateResponse) obj; + flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse other = (flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse) obj; if (!getJobId() .equals(other.getJobId())) return false; @@ -1468,69 +1468,69 @@ public int hashCode() { return hash; } - public static flyteidl.service.AgentServiceOuterClass.TaskCreateResponse parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.AgentServiceOuterClass.TaskCreateResponse parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.service.AgentServiceOuterClass.TaskCreateResponse parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.AgentServiceOuterClass.TaskCreateResponse parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.service.AgentServiceOuterClass.TaskCreateResponse parseFrom(byte[] data) + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.AgentServiceOuterClass.TaskCreateResponse parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.service.AgentServiceOuterClass.TaskCreateResponse parseFrom(java.io.InputStream input) + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.service.AgentServiceOuterClass.TaskCreateResponse parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.service.AgentServiceOuterClass.TaskCreateResponse parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.service.AgentServiceOuterClass.TaskCreateResponse parseDelimitedFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.service.AgentServiceOuterClass.TaskCreateResponse parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.service.AgentServiceOuterClass.TaskCreateResponse parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1543,7 +1543,7 @@ public static flyteidl.service.AgentServiceOuterClass.TaskCreateResponse parseFr public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.service.AgentServiceOuterClass.TaskCreateResponse prototype) { + public static Builder newBuilder(flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -1568,21 +1568,21 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flyteidl.service.TaskCreateResponse) - flyteidl.service.AgentServiceOuterClass.TaskCreateResponseOrBuilder { + flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskCreateResponse_descriptor; + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskCreateResponse_fieldAccessorTable + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.service.AgentServiceOuterClass.TaskCreateResponse.class, flyteidl.service.AgentServiceOuterClass.TaskCreateResponse.Builder.class); + flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse.Builder.class); } - // Construct using flyteidl.service.AgentServiceOuterClass.TaskCreateResponse.newBuilder() + // Construct using flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -1608,17 +1608,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskCreateResponse_descriptor; + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateResponse_descriptor; } @java.lang.Override - public flyteidl.service.AgentServiceOuterClass.TaskCreateResponse getDefaultInstanceForType() { - return flyteidl.service.AgentServiceOuterClass.TaskCreateResponse.getDefaultInstance(); + public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse getDefaultInstanceForType() { + return flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse.getDefaultInstance(); } @java.lang.Override - public flyteidl.service.AgentServiceOuterClass.TaskCreateResponse build() { - flyteidl.service.AgentServiceOuterClass.TaskCreateResponse result = buildPartial(); + public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse build() { + flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1626,8 +1626,8 @@ public flyteidl.service.AgentServiceOuterClass.TaskCreateResponse build() { } @java.lang.Override - public flyteidl.service.AgentServiceOuterClass.TaskCreateResponse buildPartial() { - flyteidl.service.AgentServiceOuterClass.TaskCreateResponse result = new flyteidl.service.AgentServiceOuterClass.TaskCreateResponse(this); + public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse buildPartial() { + flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse result = new flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse(this); result.jobId_ = jobId_; onBuilt(); return result; @@ -1667,16 +1667,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.service.AgentServiceOuterClass.TaskCreateResponse) { - return mergeFrom((flyteidl.service.AgentServiceOuterClass.TaskCreateResponse)other); + if (other instanceof flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse) { + return mergeFrom((flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.service.AgentServiceOuterClass.TaskCreateResponse other) { - if (other == flyteidl.service.AgentServiceOuterClass.TaskCreateResponse.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse other) { + if (other == flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse.getDefaultInstance()) return this; if (!other.getJobId().isEmpty()) { jobId_ = other.jobId_; onChanged(); @@ -1696,11 +1696,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.service.AgentServiceOuterClass.TaskCreateResponse parsedMessage = null; + flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.AgentServiceOuterClass.TaskCreateResponse) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1795,12 +1795,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:flyteidl.service.TaskCreateResponse) - private static final flyteidl.service.AgentServiceOuterClass.TaskCreateResponse DEFAULT_INSTANCE; + private static final flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.service.AgentServiceOuterClass.TaskCreateResponse(); + DEFAULT_INSTANCE = new flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse(); } - public static flyteidl.service.AgentServiceOuterClass.TaskCreateResponse getDefaultInstance() { + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1825,13 +1825,13 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyteidl.service.AgentServiceOuterClass.TaskCreateResponse getDefaultInstanceForType() { + public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface TaskGetRequestOrBuilder extends + @java.lang.Deprecated public interface TaskGetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:flyteidl.service.TaskGetRequest) com.google.protobuf.MessageOrBuilder { @@ -1873,12 +1873,12 @@ public interface TaskGetRequestOrBuilder extends } /** *
-   * A message used to fetch a job state from flyte agent server.
+   * A message used to fetch a job state from backend plugin server.
    * 
* * Protobuf type {@code flyteidl.service.TaskGetRequest} */ - public static final class TaskGetRequest extends + @java.lang.Deprecated public static final class TaskGetRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:flyteidl.service.TaskGetRequest) TaskGetRequestOrBuilder { @@ -1949,15 +1949,15 @@ private TaskGetRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskGetRequest_descriptor; + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskGetRequest_fieldAccessorTable + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.service.AgentServiceOuterClass.TaskGetRequest.class, flyteidl.service.AgentServiceOuterClass.TaskGetRequest.Builder.class); + flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest.Builder.class); } public static final int TASK_TYPE_FIELD_NUMBER = 1; @@ -2089,10 +2089,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.service.AgentServiceOuterClass.TaskGetRequest)) { + if (!(obj instanceof flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest)) { return super.equals(obj); } - flyteidl.service.AgentServiceOuterClass.TaskGetRequest other = (flyteidl.service.AgentServiceOuterClass.TaskGetRequest) obj; + flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest other = (flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest) obj; if (!getTaskType() .equals(other.getTaskType())) return false; @@ -2118,69 +2118,69 @@ public int hashCode() { return hash; } - public static flyteidl.service.AgentServiceOuterClass.TaskGetRequest parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.AgentServiceOuterClass.TaskGetRequest parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.service.AgentServiceOuterClass.TaskGetRequest parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.AgentServiceOuterClass.TaskGetRequest parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.service.AgentServiceOuterClass.TaskGetRequest parseFrom(byte[] data) + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.AgentServiceOuterClass.TaskGetRequest parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.service.AgentServiceOuterClass.TaskGetRequest parseFrom(java.io.InputStream input) + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.service.AgentServiceOuterClass.TaskGetRequest parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.service.AgentServiceOuterClass.TaskGetRequest parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.service.AgentServiceOuterClass.TaskGetRequest parseDelimitedFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.service.AgentServiceOuterClass.TaskGetRequest parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.service.AgentServiceOuterClass.TaskGetRequest parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2193,7 +2193,7 @@ public static flyteidl.service.AgentServiceOuterClass.TaskGetRequest parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.service.AgentServiceOuterClass.TaskGetRequest prototype) { + public static Builder newBuilder(flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -2210,7 +2210,7 @@ protected Builder newBuilderForType( } /** *
-     * A message used to fetch a job state from flyte agent server.
+     * A message used to fetch a job state from backend plugin server.
      * 
* * Protobuf type {@code flyteidl.service.TaskGetRequest} @@ -2218,21 +2218,21 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flyteidl.service.TaskGetRequest) - flyteidl.service.AgentServiceOuterClass.TaskGetRequestOrBuilder { + flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskGetRequest_descriptor; + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskGetRequest_fieldAccessorTable + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.service.AgentServiceOuterClass.TaskGetRequest.class, flyteidl.service.AgentServiceOuterClass.TaskGetRequest.Builder.class); + flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest.Builder.class); } - // Construct using flyteidl.service.AgentServiceOuterClass.TaskGetRequest.newBuilder() + // Construct using flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -2260,17 +2260,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskGetRequest_descriptor; + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetRequest_descriptor; } @java.lang.Override - public flyteidl.service.AgentServiceOuterClass.TaskGetRequest getDefaultInstanceForType() { - return flyteidl.service.AgentServiceOuterClass.TaskGetRequest.getDefaultInstance(); + public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest getDefaultInstanceForType() { + return flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest.getDefaultInstance(); } @java.lang.Override - public flyteidl.service.AgentServiceOuterClass.TaskGetRequest build() { - flyteidl.service.AgentServiceOuterClass.TaskGetRequest result = buildPartial(); + public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest build() { + flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2278,8 +2278,8 @@ public flyteidl.service.AgentServiceOuterClass.TaskGetRequest build() { } @java.lang.Override - public flyteidl.service.AgentServiceOuterClass.TaskGetRequest buildPartial() { - flyteidl.service.AgentServiceOuterClass.TaskGetRequest result = new flyteidl.service.AgentServiceOuterClass.TaskGetRequest(this); + public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest buildPartial() { + flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest result = new flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest(this); result.taskType_ = taskType_; result.jobId_ = jobId_; onBuilt(); @@ -2320,16 +2320,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.service.AgentServiceOuterClass.TaskGetRequest) { - return mergeFrom((flyteidl.service.AgentServiceOuterClass.TaskGetRequest)other); + if (other instanceof flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest) { + return mergeFrom((flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.service.AgentServiceOuterClass.TaskGetRequest other) { - if (other == flyteidl.service.AgentServiceOuterClass.TaskGetRequest.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest other) { + if (other == flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest.getDefaultInstance()) return this; if (!other.getTaskType().isEmpty()) { taskType_ = other.taskType_; onChanged(); @@ -2353,11 +2353,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.service.AgentServiceOuterClass.TaskGetRequest parsedMessage = null; + flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.AgentServiceOuterClass.TaskGetRequest) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2561,12 +2561,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:flyteidl.service.TaskGetRequest) - private static final flyteidl.service.AgentServiceOuterClass.TaskGetRequest DEFAULT_INSTANCE; + private static final flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.service.AgentServiceOuterClass.TaskGetRequest(); + DEFAULT_INSTANCE = new flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest(); } - public static flyteidl.service.AgentServiceOuterClass.TaskGetRequest getDefaultInstance() { + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -2591,13 +2591,13 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyteidl.service.AgentServiceOuterClass.TaskGetRequest getDefaultInstanceForType() { + public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface TaskGetResponseOrBuilder extends + @java.lang.Deprecated public interface TaskGetResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:flyteidl.service.TaskGetResponse) com.google.protobuf.MessageOrBuilder { @@ -2616,11 +2616,11 @@ public interface TaskGetResponseOrBuilder extends * * .flyteidl.service.State state = 1; */ - flyteidl.service.AgentServiceOuterClass.State getState(); + flyteidl.service.ExternalPluginServiceOuterClass.State getState(); /** *
-     * The outputs of the execution. It's typically used by sql task. Agent service will create a
+     * 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
      * 
@@ -2630,7 +2630,7 @@ public interface TaskGetResponseOrBuilder extends boolean hasOutputs(); /** *
-     * The outputs of the execution. It's typically used by sql task. Agent service will create a
+     * 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
      * 
@@ -2640,7 +2640,7 @@ public interface TaskGetResponseOrBuilder extends flyteidl.core.Literals.LiteralMap getOutputs(); /** *
-     * The outputs of the execution. It's typically used by sql task. Agent service will create a
+     * 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
      * 
@@ -2656,7 +2656,7 @@ public interface TaskGetResponseOrBuilder extends * * Protobuf type {@code flyteidl.service.TaskGetResponse} */ - public static final class TaskGetResponse extends + @java.lang.Deprecated public static final class TaskGetResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:flyteidl.service.TaskGetResponse) TaskGetResponseOrBuilder { @@ -2733,15 +2733,15 @@ private TaskGetResponse( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskGetResponse_descriptor; + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskGetResponse_fieldAccessorTable + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.service.AgentServiceOuterClass.TaskGetResponse.class, flyteidl.service.AgentServiceOuterClass.TaskGetResponse.Builder.class); + flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse.Builder.class); } public static final int STATE_FIELD_NUMBER = 1; @@ -2763,17 +2763,17 @@ public int getStateValue() { * * .flyteidl.service.State state = 1; */ - public flyteidl.service.AgentServiceOuterClass.State getState() { + public flyteidl.service.ExternalPluginServiceOuterClass.State getState() { @SuppressWarnings("deprecation") - flyteidl.service.AgentServiceOuterClass.State result = flyteidl.service.AgentServiceOuterClass.State.valueOf(state_); - return result == null ? flyteidl.service.AgentServiceOuterClass.State.UNRECOGNIZED : result; + flyteidl.service.ExternalPluginServiceOuterClass.State result = flyteidl.service.ExternalPluginServiceOuterClass.State.valueOf(state_); + return result == null ? flyteidl.service.ExternalPluginServiceOuterClass.State.UNRECOGNIZED : result; } public static final int OUTPUTS_FIELD_NUMBER = 2; private flyteidl.core.Literals.LiteralMap outputs_; /** *
-     * The outputs of the execution. It's typically used by sql task. Agent service will create a
+     * 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
      * 
@@ -2785,7 +2785,7 @@ public boolean hasOutputs() { } /** *
-     * The outputs of the execution. It's typically used by sql task. Agent service will create a
+     * 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
      * 
@@ -2797,7 +2797,7 @@ public flyteidl.core.Literals.LiteralMap getOutputs() { } /** *
-     * The outputs of the execution. It's typically used by sql task. Agent service will create a
+     * 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
      * 
@@ -2822,7 +2822,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ != flyteidl.service.AgentServiceOuterClass.State.RETRYABLE_FAILURE.getNumber()) { + if (state_ != flyteidl.service.ExternalPluginServiceOuterClass.State.RETRYABLE_FAILURE.getNumber()) { output.writeEnum(1, state_); } if (outputs_ != null) { @@ -2837,7 +2837,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ != flyteidl.service.AgentServiceOuterClass.State.RETRYABLE_FAILURE.getNumber()) { + if (state_ != flyteidl.service.ExternalPluginServiceOuterClass.State.RETRYABLE_FAILURE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, state_); } @@ -2855,10 +2855,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.service.AgentServiceOuterClass.TaskGetResponse)) { + if (!(obj instanceof flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse)) { return super.equals(obj); } - flyteidl.service.AgentServiceOuterClass.TaskGetResponse other = (flyteidl.service.AgentServiceOuterClass.TaskGetResponse) obj; + flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse other = (flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse) obj; if (state_ != other.state_) return false; if (hasOutputs() != other.hasOutputs()) return false; @@ -2888,69 +2888,69 @@ public int hashCode() { return hash; } - public static flyteidl.service.AgentServiceOuterClass.TaskGetResponse parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.AgentServiceOuterClass.TaskGetResponse parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.service.AgentServiceOuterClass.TaskGetResponse parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.AgentServiceOuterClass.TaskGetResponse parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.service.AgentServiceOuterClass.TaskGetResponse parseFrom(byte[] data) + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.AgentServiceOuterClass.TaskGetResponse parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.service.AgentServiceOuterClass.TaskGetResponse parseFrom(java.io.InputStream input) + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.service.AgentServiceOuterClass.TaskGetResponse parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.service.AgentServiceOuterClass.TaskGetResponse parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.service.AgentServiceOuterClass.TaskGetResponse parseDelimitedFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.service.AgentServiceOuterClass.TaskGetResponse parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.service.AgentServiceOuterClass.TaskGetResponse parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2963,7 +2963,7 @@ public static flyteidl.service.AgentServiceOuterClass.TaskGetResponse parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.service.AgentServiceOuterClass.TaskGetResponse prototype) { + public static Builder newBuilder(flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -2988,21 +2988,21 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flyteidl.service.TaskGetResponse) - flyteidl.service.AgentServiceOuterClass.TaskGetResponseOrBuilder { + flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskGetResponse_descriptor; + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskGetResponse_fieldAccessorTable + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.service.AgentServiceOuterClass.TaskGetResponse.class, flyteidl.service.AgentServiceOuterClass.TaskGetResponse.Builder.class); + flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse.Builder.class); } - // Construct using flyteidl.service.AgentServiceOuterClass.TaskGetResponse.newBuilder() + // Construct using flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -3034,17 +3034,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskGetResponse_descriptor; + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetResponse_descriptor; } @java.lang.Override - public flyteidl.service.AgentServiceOuterClass.TaskGetResponse getDefaultInstanceForType() { - return flyteidl.service.AgentServiceOuterClass.TaskGetResponse.getDefaultInstance(); + public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse getDefaultInstanceForType() { + return flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse.getDefaultInstance(); } @java.lang.Override - public flyteidl.service.AgentServiceOuterClass.TaskGetResponse build() { - flyteidl.service.AgentServiceOuterClass.TaskGetResponse result = buildPartial(); + public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse build() { + flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3052,8 +3052,8 @@ public flyteidl.service.AgentServiceOuterClass.TaskGetResponse build() { } @java.lang.Override - public flyteidl.service.AgentServiceOuterClass.TaskGetResponse buildPartial() { - flyteidl.service.AgentServiceOuterClass.TaskGetResponse result = new flyteidl.service.AgentServiceOuterClass.TaskGetResponse(this); + public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse buildPartial() { + flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse result = new flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse(this); result.state_ = state_; if (outputsBuilder_ == null) { result.outputs_ = outputs_; @@ -3098,16 +3098,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.service.AgentServiceOuterClass.TaskGetResponse) { - return mergeFrom((flyteidl.service.AgentServiceOuterClass.TaskGetResponse)other); + if (other instanceof flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse) { + return mergeFrom((flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.service.AgentServiceOuterClass.TaskGetResponse other) { - if (other == flyteidl.service.AgentServiceOuterClass.TaskGetResponse.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse other) { + if (other == flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse.getDefaultInstance()) return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -3129,11 +3129,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.service.AgentServiceOuterClass.TaskGetResponse parsedMessage = null; + flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.AgentServiceOuterClass.TaskGetResponse) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3173,10 +3173,10 @@ public Builder setStateValue(int value) { * * .flyteidl.service.State state = 1; */ - public flyteidl.service.AgentServiceOuterClass.State getState() { + public flyteidl.service.ExternalPluginServiceOuterClass.State getState() { @SuppressWarnings("deprecation") - flyteidl.service.AgentServiceOuterClass.State result = flyteidl.service.AgentServiceOuterClass.State.valueOf(state_); - return result == null ? flyteidl.service.AgentServiceOuterClass.State.UNRECOGNIZED : result; + flyteidl.service.ExternalPluginServiceOuterClass.State result = flyteidl.service.ExternalPluginServiceOuterClass.State.valueOf(state_); + return result == null ? flyteidl.service.ExternalPluginServiceOuterClass.State.UNRECOGNIZED : result; } /** *
@@ -3185,7 +3185,7 @@ public flyteidl.service.AgentServiceOuterClass.State getState() {
        *
        * .flyteidl.service.State state = 1;
        */
-      public Builder setState(flyteidl.service.AgentServiceOuterClass.State value) {
+      public Builder setState(flyteidl.service.ExternalPluginServiceOuterClass.State value) {
         if (value == null) {
           throw new NullPointerException();
         }
@@ -3213,7 +3213,7 @@ public Builder clearState() {
           flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> outputsBuilder_;
       /**
        * 
-       * The outputs of the execution. It's typically used by sql task. Agent service will create a
+       * 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
        * 
@@ -3225,7 +3225,7 @@ public boolean hasOutputs() { } /** *
-       * The outputs of the execution. It's typically used by sql task. Agent service will create a
+       * 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
        * 
@@ -3241,7 +3241,7 @@ public flyteidl.core.Literals.LiteralMap getOutputs() { } /** *
-       * The outputs of the execution. It's typically used by sql task. Agent service will create a
+       * 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
        * 
@@ -3263,7 +3263,7 @@ public Builder setOutputs(flyteidl.core.Literals.LiteralMap value) { } /** *
-       * The outputs of the execution. It's typically used by sql task. Agent service will create a
+       * 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
        * 
@@ -3283,7 +3283,7 @@ public Builder setOutputs( } /** *
-       * The outputs of the execution. It's typically used by sql task. Agent service will create a
+       * 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
        * 
@@ -3307,7 +3307,7 @@ public Builder mergeOutputs(flyteidl.core.Literals.LiteralMap value) { } /** *
-       * The outputs of the execution. It's typically used by sql task. Agent service will create a
+       * 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
        * 
@@ -3327,7 +3327,7 @@ public Builder clearOutputs() { } /** *
-       * The outputs of the execution. It's typically used by sql task. Agent service will create a
+       * 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
        * 
@@ -3341,7 +3341,7 @@ public flyteidl.core.Literals.LiteralMap.Builder getOutputsBuilder() { } /** *
-       * The outputs of the execution. It's typically used by sql task. Agent service will create a
+       * 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
        * 
@@ -3358,7 +3358,7 @@ public flyteidl.core.Literals.LiteralMapOrBuilder getOutputsOrBuilder() { } /** *
-       * The outputs of the execution. It's typically used by sql task. Agent service will create a
+       * 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
        * 
@@ -3395,12 +3395,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:flyteidl.service.TaskGetResponse) - private static final flyteidl.service.AgentServiceOuterClass.TaskGetResponse DEFAULT_INSTANCE; + private static final flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.service.AgentServiceOuterClass.TaskGetResponse(); + DEFAULT_INSTANCE = new flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse(); } - public static flyteidl.service.AgentServiceOuterClass.TaskGetResponse getDefaultInstance() { + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -3425,13 +3425,13 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyteidl.service.AgentServiceOuterClass.TaskGetResponse getDefaultInstanceForType() { + public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface TaskDeleteRequestOrBuilder extends + @java.lang.Deprecated public interface TaskDeleteRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:flyteidl.service.TaskDeleteRequest) com.google.protobuf.MessageOrBuilder { @@ -3478,7 +3478,7 @@ public interface TaskDeleteRequestOrBuilder extends * * Protobuf type {@code flyteidl.service.TaskDeleteRequest} */ - public static final class TaskDeleteRequest extends + @java.lang.Deprecated public static final class TaskDeleteRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:flyteidl.service.TaskDeleteRequest) TaskDeleteRequestOrBuilder { @@ -3549,15 +3549,15 @@ private TaskDeleteRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskDeleteRequest_descriptor; + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskDeleteRequest_fieldAccessorTable + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest.class, flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest.Builder.class); + flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest.Builder.class); } public static final int TASK_TYPE_FIELD_NUMBER = 1; @@ -3689,10 +3689,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest)) { + if (!(obj instanceof flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest)) { return super.equals(obj); } - flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest other = (flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest) obj; + flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest other = (flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest) obj; if (!getTaskType() .equals(other.getTaskType())) return false; @@ -3718,69 +3718,69 @@ public int hashCode() { return hash; } - public static flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest parseFrom(byte[] data) + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest parseFrom(java.io.InputStream input) + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest parseDelimitedFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -3793,7 +3793,7 @@ public static flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest parseFro public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest prototype) { + public static Builder newBuilder(flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -3818,21 +3818,21 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flyteidl.service.TaskDeleteRequest) - flyteidl.service.AgentServiceOuterClass.TaskDeleteRequestOrBuilder { + flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskDeleteRequest_descriptor; + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskDeleteRequest_fieldAccessorTable + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest.class, flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest.Builder.class); + flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest.Builder.class); } - // Construct using flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest.newBuilder() + // Construct using flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -3860,17 +3860,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskDeleteRequest_descriptor; + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteRequest_descriptor; } @java.lang.Override - public flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest getDefaultInstanceForType() { - return flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest.getDefaultInstance(); + public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest getDefaultInstanceForType() { + return flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest.getDefaultInstance(); } @java.lang.Override - public flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest build() { - flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest result = buildPartial(); + public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest build() { + flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3878,8 +3878,8 @@ public flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest build() { } @java.lang.Override - public flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest buildPartial() { - flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest result = new flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest(this); + public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest buildPartial() { + flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest result = new flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest(this); result.taskType_ = taskType_; result.jobId_ = jobId_; onBuilt(); @@ -3920,16 +3920,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest) { - return mergeFrom((flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest)other); + if (other instanceof flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest) { + return mergeFrom((flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest other) { - if (other == flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest other) { + if (other == flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest.getDefaultInstance()) return this; if (!other.getTaskType().isEmpty()) { taskType_ = other.taskType_; onChanged(); @@ -3953,11 +3953,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest parsedMessage = null; + flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4161,12 +4161,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:flyteidl.service.TaskDeleteRequest) - private static final flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest DEFAULT_INSTANCE; + private static final flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest(); + DEFAULT_INSTANCE = new flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest(); } - public static flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest getDefaultInstance() { + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -4191,13 +4191,13 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest getDefaultInstanceForType() { + public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface TaskDeleteResponseOrBuilder extends + @java.lang.Deprecated public interface TaskDeleteResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:flyteidl.service.TaskDeleteResponse) com.google.protobuf.MessageOrBuilder { } @@ -4208,7 +4208,7 @@ public interface TaskDeleteResponseOrBuilder extends * * Protobuf type {@code flyteidl.service.TaskDeleteResponse} */ - public static final class TaskDeleteResponse extends + @java.lang.Deprecated public static final class TaskDeleteResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:flyteidl.service.TaskDeleteResponse) TaskDeleteResponseOrBuilder { @@ -4264,15 +4264,15 @@ private TaskDeleteResponse( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskDeleteResponse_descriptor; + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskDeleteResponse_fieldAccessorTable + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse.class, flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse.Builder.class); + flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse.Builder.class); } private byte memoizedIsInitialized = -1; @@ -4308,10 +4308,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse)) { + if (!(obj instanceof flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse)) { return super.equals(obj); } - flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse other = (flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse) obj; + flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse other = (flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -4329,69 +4329,69 @@ public int hashCode() { return hash; } - public static flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse parseFrom(byte[] data) + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse parseFrom(java.io.InputStream input) + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse parseDelimitedFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse parseFrom( + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -4404,7 +4404,7 @@ public static flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse parseFr public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse prototype) { + public static Builder newBuilder(flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -4429,21 +4429,21 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flyteidl.service.TaskDeleteResponse) - flyteidl.service.AgentServiceOuterClass.TaskDeleteResponseOrBuilder { + flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskDeleteResponse_descriptor; + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskDeleteResponse_fieldAccessorTable + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse.class, flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse.Builder.class); + flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse.Builder.class); } - // Construct using flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse.newBuilder() + // Construct using flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -4467,17 +4467,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskDeleteResponse_descriptor; + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteResponse_descriptor; } @java.lang.Override - public flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse getDefaultInstanceForType() { - return flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse.getDefaultInstance(); + public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse getDefaultInstanceForType() { + return flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse.getDefaultInstance(); } @java.lang.Override - public flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse build() { - flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse result = buildPartial(); + public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse build() { + flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4485,8 +4485,8 @@ public flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse build() { } @java.lang.Override - public flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse buildPartial() { - flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse result = new flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse(this); + public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse buildPartial() { + flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse result = new flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse(this); onBuilt(); return result; } @@ -4525,16 +4525,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse) { - return mergeFrom((flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse)other); + if (other instanceof flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse) { + return mergeFrom((flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse other) { - if (other == flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse other) { + if (other == flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -4550,11 +4550,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse parsedMessage = null; + flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4580,12 +4580,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:flyteidl.service.TaskDeleteResponse) - private static final flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse DEFAULT_INSTANCE; + private static final flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse(); + DEFAULT_INSTANCE = new flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse(); } - public static flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse getDefaultInstance() { + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -4610,7 +4610,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse getDefaultInstanceForType() { + public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -4655,31 +4655,33 @@ public flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse getDefaultInst descriptor; static { java.lang.String[] descriptorData = { - "\n$flyteidl/service/agent_service.proto\022\020" + - "flyteidl.service\032\034flyteidl/core/literals" + - ".proto\032\031flyteidl/core/tasks.proto\032\035flyte" + - "idl/core/interface.proto\"\204\001\n\021TaskCreateR" + - "equest\022)\n\006inputs\030\001 \001(\0132\031.flyteidl.core.L" + - "iteralMap\022-\n\010template\030\002 \001(\0132\033.flyteidl.c" + - "ore.TaskTemplate\022\025\n\routput_prefix\030\003 \001(\t\"" + - "$\n\022TaskCreateResponse\022\016\n\006job_id\030\001 \001(\t\"3\n" + - "\016TaskGetRequest\022\021\n\ttask_type\030\001 \001(\t\022\016\n\006jo" + - "b_id\030\002 \001(\t\"e\n\017TaskGetResponse\022&\n\005state\030\001" + - " \001(\0162\027.flyteidl.service.State\022*\n\007outputs" + - "\030\002 \001(\0132\031.flyteidl.core.LiteralMap\"6\n\021Tas" + - "kDeleteRequest\022\021\n\ttask_type\030\001 \001(\t\022\016\n\006job" + - "_id\030\002 \001(\t\"\024\n\022TaskDeleteResponse*^\n\005State" + - "\022\025\n\021RETRYABLE_FAILURE\020\000\022\025\n\021PERMANENT_FAI" + - "LURE\020\001\022\013\n\007PENDING\020\002\022\013\n\007RUNNING\020\003\022\r\n\tSUCC" + - "EEDED\020\0042\226\002\n\014AgentService\022Y\n\nCreateTask\022#" + - ".flyteidl.service.TaskCreateRequest\032$.fl" + - "yteidl.service.TaskCreateResponse\"\000\022P\n\007G" + - "etTask\022 .flyteidl.service.TaskGetRequest" + - "\032!.flyteidl.service.TaskGetResponse\"\000\022Y\n" + - "\nDeleteTask\022#.flyteidl.service.TaskDelet" + - "eRequest\032$.flyteidl.service.TaskDeleteRe" + - "sponse\"\000B9Z7github.com/flyteorg/flyteidl" + - "/gen/pb-go/flyteidl/serviceb\006proto3" + "\n.flyteidl/service/external_plugin_servi" + + "ce.proto\022\020flyteidl.service\032\034flyteidl/cor" + + "e/literals.proto\032\031flyteidl/core/tasks.pr" + + "oto\032\035flyteidl/core/interface.proto\"\210\001\n\021T" + + "askCreateRequest\022)\n\006inputs\030\001 \001(\0132\031.flyte" + + "idl.core.LiteralMap\022-\n\010template\030\002 \001(\0132\033." + + "flyteidl.core.TaskTemplate\022\025\n\routput_pre" + + "fix\030\003 \001(\t:\002\030\001\"(\n\022TaskCreateResponse\022\016\n\006j" + + "ob_id\030\001 \001(\t:\002\030\001\"7\n\016TaskGetRequest\022\021\n\ttas" + + "k_type\030\001 \001(\t\022\016\n\006job_id\030\002 \001(\t:\002\030\001\"i\n\017Task" + + "GetResponse\022&\n\005state\030\001 \001(\0162\027.flyteidl.se" + + "rvice.State\022*\n\007outputs\030\002 \001(\0132\031.flyteidl." + + "core.LiteralMap:\002\030\001\":\n\021TaskDeleteRequest" + + "\022\021\n\ttask_type\030\001 \001(\t\022\016\n\006job_id\030\002 \001(\t:\002\030\001\"" + + "\030\n\022TaskDeleteResponse:\002\030\001*b\n\005State\022\025\n\021RE" + + "TRYABLE_FAILURE\020\000\022\025\n\021PERMANENT_FAILURE\020\001" + + "\022\013\n\007PENDING\020\002\022\013\n\007RUNNING\020\003\022\r\n\tSUCCEEDED\020" + + "\004\032\002\030\0012\250\002\n\025ExternalPluginService\022\\\n\nCreat" + + "eTask\022#.flyteidl.service.TaskCreateReque" + + "st\032$.flyteidl.service.TaskCreateResponse" + + "\"\003\210\002\001\022S\n\007GetTask\022 .flyteidl.service.Task" + + "GetRequest\032!.flyteidl.service.TaskGetRes" + + "ponse\"\003\210\002\001\022\\\n\nDeleteTask\022#.flyteidl.serv" + + "ice.TaskDeleteRequest\032$.flyteidl.service" + + ".TaskDeleteResponse\"\003\210\002\001B9Z7github.com/f" + + "lyteorg/flyteidl/gen/pb-go/flyteidl/serv" + + "iceb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/flyteidl/gen/pb-js/flyteidl.d.ts b/flyteidl/gen/pb-js/flyteidl.d.ts index 4ddd78e3804..d746cc6fe16 100644 --- a/flyteidl/gen/pb-js/flyteidl.d.ts +++ b/flyteidl/gen/pb-js/flyteidl.d.ts @@ -7497,6 +7497,403 @@ export namespace flyteidl { /** Namespace admin. */ namespace admin { + /** State enum. */ + enum State { + RETRYABLE_FAILURE = 0, + PERMANENT_FAILURE = 1, + PENDING = 2, + RUNNING = 3, + SUCCEEDED = 4 + } + + /** 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); + } + + /** 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; + + /** + * 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 GetTaskRequest. */ + interface IGetTaskRequest { + + /** GetTaskRequest taskType */ + taskType?: (string|null); + + /** GetTaskRequest resourceMeta */ + resourceMeta?: (Uint8Array|null); + } + + /** Represents a GetTaskRequest. */ + class GetTaskRequest implements IGetTaskRequest { + + /** + * Constructs a new GetTaskRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IGetTaskRequest); + + /** GetTaskRequest taskType. */ + public taskType: string; + + /** GetTaskRequest resourceMeta. */ + public resourceMeta: Uint8Array; + + /** + * 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); + } + + /** 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); + + /** + * 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 taskType */ + taskType?: (string|null); + + /** DeleteTaskRequest resourceMeta */ + resourceMeta?: (Uint8Array|null); + } + + /** Represents a DeleteTaskRequest. */ + class DeleteTaskRequest implements IDeleteTaskRequest { + + /** + * Constructs a new DeleteTaskRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IDeleteTaskRequest); + + /** DeleteTaskRequest taskType. */ + public taskType: string; + + /** DeleteTaskRequest resourceMeta. */ + public resourceMeta: Uint8Array; + + /** + * 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 a ClusterAssignment. */ interface IClusterAssignment { @@ -18775,11 +19172,11 @@ export namespace flyteidl { type GetExecutionMetricsCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowExecutionGetMetricsResponse) => void; } - /** Represents an AgentService */ - class AgentService extends $protobuf.rpc.Service { + /** Represents an AsyncAgentService */ + class AsyncAgentService extends $protobuf.rpc.Service { /** - * Constructs a new AgentService 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 @@ -18787,1448 +19184,1535 @@ export namespace flyteidl { constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates new AgentService service using the specified rpc implementation. + * 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): AgentService; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AsyncAgentService; /** * Calls CreateTask. - * @param request TaskCreateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TaskCreateResponse + * @param request CreateTaskRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CreateTaskResponse */ - public createTask(request: flyteidl.service.ITaskCreateRequest, callback: flyteidl.service.AgentService.CreateTaskCallback): void; + public createTask(request: flyteidl.admin.ICreateTaskRequest, callback: flyteidl.service.AsyncAgentService.CreateTaskCallback): void; /** * Calls CreateTask. - * @param request TaskCreateRequest message or plain object + * @param request CreateTaskRequest message or plain object * @returns Promise */ - public createTask(request: flyteidl.service.ITaskCreateRequest): Promise; + public createTask(request: flyteidl.admin.ICreateTaskRequest): Promise; /** * Calls GetTask. - * @param request TaskGetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TaskGetResponse + * @param request GetTaskRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GetTaskResponse */ - public getTask(request: flyteidl.service.ITaskGetRequest, callback: flyteidl.service.AgentService.GetTaskCallback): void; + public getTask(request: flyteidl.admin.IGetTaskRequest, callback: flyteidl.service.AsyncAgentService.GetTaskCallback): void; /** * Calls GetTask. - * @param request TaskGetRequest message or plain object + * @param request GetTaskRequest message or plain object * @returns Promise */ - public getTask(request: flyteidl.service.ITaskGetRequest): Promise; + public getTask(request: flyteidl.admin.IGetTaskRequest): Promise; /** * Calls DeleteTask. - * @param request TaskDeleteRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TaskDeleteResponse + * @param request DeleteTaskRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DeleteTaskResponse */ - public deleteTask(request: flyteidl.service.ITaskDeleteRequest, callback: flyteidl.service.AgentService.DeleteTaskCallback): void; + public deleteTask(request: flyteidl.admin.IDeleteTaskRequest, callback: flyteidl.service.AsyncAgentService.DeleteTaskCallback): void; /** * Calls DeleteTask. - * @param request TaskDeleteRequest message or plain object + * @param request DeleteTaskRequest message or plain object * @returns Promise */ - public deleteTask(request: flyteidl.service.ITaskDeleteRequest): Promise; + public deleteTask(request: flyteidl.admin.IDeleteTaskRequest): Promise; } - namespace AgentService { + namespace AsyncAgentService { /** - * Callback as used by {@link flyteidl.service.AgentService#createTask}. + * Callback as used by {@link flyteidl.service.AsyncAgentService#createTask}. * @param error Error, if any - * @param [response] TaskCreateResponse + * @param [response] CreateTaskResponse */ - type CreateTaskCallback = (error: (Error|null), response?: flyteidl.service.TaskCreateResponse) => void; + type CreateTaskCallback = (error: (Error|null), response?: flyteidl.admin.CreateTaskResponse) => void; /** - * Callback as used by {@link flyteidl.service.AgentService#getTask}. + * Callback as used by {@link flyteidl.service.AsyncAgentService#getTask}. * @param error Error, if any - * @param [response] TaskGetResponse + * @param [response] GetTaskResponse */ - type GetTaskCallback = (error: (Error|null), response?: flyteidl.service.TaskGetResponse) => void; + type GetTaskCallback = (error: (Error|null), response?: flyteidl.admin.GetTaskResponse) => void; /** - * Callback as used by {@link flyteidl.service.AgentService#deleteTask}. + * Callback as used by {@link flyteidl.service.AsyncAgentService#deleteTask}. * @param error Error, if any - * @param [response] TaskDeleteResponse + * @param [response] DeleteTaskResponse */ - 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 + type DeleteTaskCallback = (error: (Error|null), response?: flyteidl.admin.DeleteTaskResponse) => void; } - /** 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); + /** Properties of a OAuth2MetadataRequest. */ + interface IOAuth2MetadataRequest { } - /** Represents a TaskCreateRequest. */ - class TaskCreateRequest implements ITaskCreateRequest { + /** Represents a OAuth2MetadataRequest. */ + class OAuth2MetadataRequest implements IOAuth2MetadataRequest { /** - * Constructs a new TaskCreateRequest. + * Constructs a new OAuth2MetadataRequest. * @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; + constructor(properties?: flyteidl.service.IOAuth2MetadataRequest); /** - * Creates a new TaskCreateRequest instance using the specified properties. + * Creates a new OAuth2MetadataRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TaskCreateRequest instance + * @returns OAuth2MetadataRequest instance */ - public static create(properties?: flyteidl.service.ITaskCreateRequest): flyteidl.service.TaskCreateRequest; + public static create(properties?: flyteidl.service.IOAuth2MetadataRequest): flyteidl.service.OAuth2MetadataRequest; /** - * Encodes the specified TaskCreateRequest message. Does not implicitly {@link flyteidl.service.TaskCreateRequest.verify|verify} messages. - * @param message TaskCreateRequest message or plain object to encode + * 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.ITaskCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.IOAuth2MetadataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TaskCreateRequest message from the specified reader or buffer. + * 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 TaskCreateRequest + * @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.TaskCreateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.OAuth2MetadataRequest; /** - * Verifies a TaskCreateRequest message. + * 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 TaskCreateResponse. */ - interface ITaskCreateResponse { - - /** TaskCreateResponse jobId */ - jobId?: (string|null); - } + /** Properties of a OAuth2MetadataResponse. */ + interface IOAuth2MetadataResponse { - /** Represents a TaskCreateResponse. */ - class TaskCreateResponse implements ITaskCreateResponse { + /** OAuth2MetadataResponse issuer */ + issuer?: (string|null); - /** - * Constructs a new TaskCreateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.ITaskCreateResponse); + /** OAuth2MetadataResponse authorizationEndpoint */ + authorizationEndpoint?: (string|null); - /** TaskCreateResponse jobId. */ - public jobId: string; + /** OAuth2MetadataResponse tokenEndpoint */ + tokenEndpoint?: (string|null); - /** - * 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; + /** OAuth2MetadataResponse responseTypesSupported */ + responseTypesSupported?: (string[]|null); - /** - * 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; + /** OAuth2MetadataResponse scopesSupported */ + scopesSupported?: (string[]|null); - /** - * 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; + /** OAuth2MetadataResponse tokenEndpointAuthMethodsSupported */ + tokenEndpointAuthMethodsSupported?: (string[]|null); - /** - * 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); - } + /** OAuth2MetadataResponse jwksUri */ + jwksUri?: (string|null); - /** Properties of a TaskGetRequest. */ - interface ITaskGetRequest { + /** OAuth2MetadataResponse codeChallengeMethodsSupported */ + codeChallengeMethodsSupported?: (string[]|null); - /** TaskGetRequest taskType */ - taskType?: (string|null); + /** OAuth2MetadataResponse grantTypesSupported */ + grantTypesSupported?: (string[]|null); - /** TaskGetRequest jobId */ - jobId?: (string|null); + /** OAuth2MetadataResponse deviceAuthorizationEndpoint */ + deviceAuthorizationEndpoint?: (string|null); } - /** Represents a TaskGetRequest. */ - class TaskGetRequest implements ITaskGetRequest { + /** Represents a OAuth2MetadataResponse. */ + class OAuth2MetadataResponse implements IOAuth2MetadataResponse { /** - * Constructs a new TaskGetRequest. + * Constructs a new OAuth2MetadataResponse. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.service.ITaskGetRequest); + constructor(properties?: flyteidl.service.IOAuth2MetadataResponse); - /** TaskGetRequest taskType. */ - public taskType: string; + /** OAuth2MetadataResponse issuer. */ + public issuer: string; - /** TaskGetRequest jobId. */ - public jobId: 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 TaskGetRequest instance using the specified properties. + * Creates a new OAuth2MetadataResponse instance using the specified properties. * @param [properties] Properties to set - * @returns TaskGetRequest instance + * @returns OAuth2MetadataResponse instance */ - public static create(properties?: flyteidl.service.ITaskGetRequest): flyteidl.service.TaskGetRequest; + public static create(properties?: flyteidl.service.IOAuth2MetadataResponse): flyteidl.service.OAuth2MetadataResponse; /** - * Encodes the specified TaskGetRequest message. Does not implicitly {@link flyteidl.service.TaskGetRequest.verify|verify} messages. - * @param message TaskGetRequest message or plain object to encode + * 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.ITaskGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.IOAuth2MetadataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TaskGetRequest message from the specified reader or buffer. + * 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 TaskGetRequest + * @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.TaskGetRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.OAuth2MetadataResponse; /** - * Verifies a TaskGetRequest message. + * 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 TaskGetResponse. */ - interface ITaskGetResponse { - - /** TaskGetResponse state */ - state?: (flyteidl.service.State|null); - - /** TaskGetResponse outputs */ - outputs?: (flyteidl.core.ILiteralMap|null); + /** Properties of a PublicClientAuthConfigRequest. */ + interface IPublicClientAuthConfigRequest { } - /** Represents a TaskGetResponse. */ - class TaskGetResponse implements ITaskGetResponse { + /** Represents a PublicClientAuthConfigRequest. */ + class PublicClientAuthConfigRequest implements IPublicClientAuthConfigRequest { /** - * Constructs a new TaskGetResponse. + * Constructs a new PublicClientAuthConfigRequest. * @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); + constructor(properties?: flyteidl.service.IPublicClientAuthConfigRequest); /** - * Creates a new TaskGetResponse instance using the specified properties. + * Creates a new PublicClientAuthConfigRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TaskGetResponse instance + * @returns PublicClientAuthConfigRequest instance */ - public static create(properties?: flyteidl.service.ITaskGetResponse): flyteidl.service.TaskGetResponse; + public static create(properties?: flyteidl.service.IPublicClientAuthConfigRequest): flyteidl.service.PublicClientAuthConfigRequest; /** - * Encodes the specified TaskGetResponse message. Does not implicitly {@link flyteidl.service.TaskGetResponse.verify|verify} messages. - * @param message TaskGetResponse message or plain object to encode + * 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.ITaskGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.IPublicClientAuthConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TaskGetResponse message from the specified reader or buffer. + * 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 TaskGetResponse + * @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.TaskGetResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.PublicClientAuthConfigRequest; /** - * Verifies a TaskGetResponse message. + * 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 TaskDeleteRequest. */ - interface ITaskDeleteRequest { + /** Properties of a PublicClientAuthConfigResponse. */ + interface IPublicClientAuthConfigResponse { - /** TaskDeleteRequest taskType */ - taskType?: (string|null); + /** PublicClientAuthConfigResponse clientId */ + clientId?: (string|null); - /** TaskDeleteRequest jobId */ - jobId?: (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 TaskDeleteRequest. */ - class TaskDeleteRequest implements ITaskDeleteRequest { + /** Represents a PublicClientAuthConfigResponse. */ + class PublicClientAuthConfigResponse implements IPublicClientAuthConfigResponse { /** - * Constructs a new TaskDeleteRequest. + * Constructs a new PublicClientAuthConfigResponse. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.service.ITaskDeleteRequest); + constructor(properties?: flyteidl.service.IPublicClientAuthConfigResponse); - /** TaskDeleteRequest taskType. */ - public taskType: string; + /** PublicClientAuthConfigResponse clientId. */ + public clientId: string; - /** TaskDeleteRequest jobId. */ - public jobId: 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 TaskDeleteRequest instance using the specified properties. + * Creates a new PublicClientAuthConfigResponse instance using the specified properties. * @param [properties] Properties to set - * @returns TaskDeleteRequest instance + * @returns PublicClientAuthConfigResponse instance */ - public static create(properties?: flyteidl.service.ITaskDeleteRequest): flyteidl.service.TaskDeleteRequest; + public static create(properties?: flyteidl.service.IPublicClientAuthConfigResponse): flyteidl.service.PublicClientAuthConfigResponse; /** - * Encodes the specified TaskDeleteRequest message. Does not implicitly {@link flyteidl.service.TaskDeleteRequest.verify|verify} messages. - * @param message TaskDeleteRequest message or plain object to encode + * 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.ITaskDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.IPublicClientAuthConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TaskDeleteRequest message from the specified reader or buffer. + * 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 TaskDeleteRequest + * @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.TaskDeleteRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.PublicClientAuthConfigResponse; /** - * Verifies a TaskDeleteRequest message. + * 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); } - /** Properties of a TaskDeleteResponse. */ - interface ITaskDeleteResponse { - } + /** Represents an AuthMetadataService */ + class AuthMetadataService extends $protobuf.rpc.Service { - /** Represents a TaskDeleteResponse. */ - class TaskDeleteResponse implements ITaskDeleteResponse { + /** + * 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); /** - * Constructs a new TaskDeleteResponse. - * @param [properties] Properties to set + * 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. */ - constructor(properties?: flyteidl.service.ITaskDeleteResponse); + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AuthMetadataService; /** - * Creates a new TaskDeleteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskDeleteResponse instance + * Calls GetOAuth2Metadata. + * @param request OAuth2MetadataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and OAuth2MetadataResponse */ - public static create(properties?: flyteidl.service.ITaskDeleteResponse): flyteidl.service.TaskDeleteResponse; + public getOAuth2Metadata(request: flyteidl.service.IOAuth2MetadataRequest, callback: flyteidl.service.AuthMetadataService.GetOAuth2MetadataCallback): void; /** - * 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 + * Calls GetOAuth2Metadata. + * @param request OAuth2MetadataRequest message or plain object + * @returns Promise */ - public static encode(message: flyteidl.service.ITaskDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public getOAuth2Metadata(request: flyteidl.service.IOAuth2MetadataRequest): Promise; /** - * 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 + * Calls GetPublicClientConfig. + * @param request PublicClientAuthConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and PublicClientAuthConfigResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskDeleteResponse; + public getPublicClientConfig(request: flyteidl.service.IPublicClientAuthConfigRequest, callback: flyteidl.service.AuthMetadataService.GetPublicClientConfigCallback): void; /** - * Verifies a TaskDeleteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls GetPublicClientConfig. + * @param request PublicClientAuthConfigRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public getPublicClientConfig(request: flyteidl.service.IPublicClientAuthConfigRequest): Promise; } - /** Properties of a OAuth2MetadataRequest. */ - interface IOAuth2MetadataRequest { + 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; } - /** Represents a OAuth2MetadataRequest. */ - class OAuth2MetadataRequest implements IOAuth2MetadataRequest { + /** 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 OAuth2MetadataRequest. + * Constructs a new CreateUploadLocationResponse. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.service.IOAuth2MetadataRequest); + 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 OAuth2MetadataRequest instance using the specified properties. + * Creates a new CreateUploadLocationResponse instance using the specified properties. * @param [properties] Properties to set - * @returns OAuth2MetadataRequest instance + * @returns CreateUploadLocationResponse instance */ - public static create(properties?: flyteidl.service.IOAuth2MetadataRequest): flyteidl.service.OAuth2MetadataRequest; + public static create(properties?: flyteidl.service.ICreateUploadLocationResponse): flyteidl.service.CreateUploadLocationResponse; /** - * Encodes the specified OAuth2MetadataRequest message. Does not implicitly {@link flyteidl.service.OAuth2MetadataRequest.verify|verify} messages. - * @param message OAuth2MetadataRequest message or plain object to encode + * 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.IOAuth2MetadataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.ICreateUploadLocationResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a OAuth2MetadataRequest message from the specified reader or buffer. + * 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 OAuth2MetadataRequest + * @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.OAuth2MetadataRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateUploadLocationResponse; /** - * Verifies a OAuth2MetadataRequest message. + * 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 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); + /** Properties of a CreateUploadLocationRequest. */ + interface ICreateUploadLocationRequest { - /** OAuth2MetadataResponse tokenEndpointAuthMethodsSupported */ - tokenEndpointAuthMethodsSupported?: (string[]|null); + /** CreateUploadLocationRequest project */ + project?: (string|null); - /** OAuth2MetadataResponse jwksUri */ - jwksUri?: (string|null); + /** CreateUploadLocationRequest domain */ + domain?: (string|null); - /** OAuth2MetadataResponse codeChallengeMethodsSupported */ - codeChallengeMethodsSupported?: (string[]|null); + /** CreateUploadLocationRequest filename */ + filename?: (string|null); - /** OAuth2MetadataResponse grantTypesSupported */ - grantTypesSupported?: (string[]|null); + /** CreateUploadLocationRequest expiresIn */ + expiresIn?: (google.protobuf.IDuration|null); - /** OAuth2MetadataResponse deviceAuthorizationEndpoint */ - deviceAuthorizationEndpoint?: (string|null); + /** CreateUploadLocationRequest contentMd5 */ + contentMd5?: (Uint8Array|null); } - /** Represents a OAuth2MetadataResponse. */ - class OAuth2MetadataResponse implements IOAuth2MetadataResponse { + /** Represents a CreateUploadLocationRequest. */ + class CreateUploadLocationRequest implements ICreateUploadLocationRequest { /** - * Constructs a new OAuth2MetadataResponse. + * Constructs a new CreateUploadLocationRequest. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.service.IOAuth2MetadataResponse); + constructor(properties?: flyteidl.service.ICreateUploadLocationRequest); - /** OAuth2MetadataResponse issuer. */ - public issuer: string; + /** CreateUploadLocationRequest project. */ + public project: string; - /** OAuth2MetadataResponse authorizationEndpoint. */ - public authorizationEndpoint: string; + /** CreateUploadLocationRequest domain. */ + public domain: string; - /** OAuth2MetadataResponse tokenEndpoint. */ - public tokenEndpoint: string; + /** CreateUploadLocationRequest filename. */ + public filename: string; - /** OAuth2MetadataResponse responseTypesSupported. */ - public responseTypesSupported: string[]; + /** CreateUploadLocationRequest expiresIn. */ + public expiresIn?: (google.protobuf.IDuration|null); - /** 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; + /** CreateUploadLocationRequest contentMd5. */ + public contentMd5: Uint8Array; /** - * Creates a new OAuth2MetadataResponse instance using the specified properties. + * Creates a new CreateUploadLocationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns OAuth2MetadataResponse instance + * @returns CreateUploadLocationRequest instance */ - public static create(properties?: flyteidl.service.IOAuth2MetadataResponse): flyteidl.service.OAuth2MetadataResponse; + public static create(properties?: flyteidl.service.ICreateUploadLocationRequest): flyteidl.service.CreateUploadLocationRequest; /** - * Encodes the specified OAuth2MetadataResponse message. Does not implicitly {@link flyteidl.service.OAuth2MetadataResponse.verify|verify} messages. - * @param message OAuth2MetadataResponse message or plain object to encode + * 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.IOAuth2MetadataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.ICreateUploadLocationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a OAuth2MetadataResponse message from the specified reader or buffer. + * 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 OAuth2MetadataResponse + * @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.OAuth2MetadataResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateUploadLocationRequest; /** - * Verifies a OAuth2MetadataResponse message. + * 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 PublicClientAuthConfigRequest. */ - interface IPublicClientAuthConfigRequest { + /** Properties of a CreateDownloadLocationRequest. */ + interface ICreateDownloadLocationRequest { + + /** CreateDownloadLocationRequest nativeUrl */ + nativeUrl?: (string|null); + + /** CreateDownloadLocationRequest expiresIn */ + expiresIn?: (google.protobuf.IDuration|null); } - /** Represents a PublicClientAuthConfigRequest. */ - class PublicClientAuthConfigRequest implements IPublicClientAuthConfigRequest { + /** Represents a CreateDownloadLocationRequest. */ + class CreateDownloadLocationRequest implements ICreateDownloadLocationRequest { /** - * Constructs a new PublicClientAuthConfigRequest. + * Constructs a new CreateDownloadLocationRequest. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.service.IPublicClientAuthConfigRequest); + constructor(properties?: flyteidl.service.ICreateDownloadLocationRequest); + + /** CreateDownloadLocationRequest nativeUrl. */ + public nativeUrl: string; + + /** CreateDownloadLocationRequest expiresIn. */ + public expiresIn?: (google.protobuf.IDuration|null); /** - * Creates a new PublicClientAuthConfigRequest instance using the specified properties. + * Creates a new CreateDownloadLocationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PublicClientAuthConfigRequest instance + * @returns CreateDownloadLocationRequest instance */ - public static create(properties?: flyteidl.service.IPublicClientAuthConfigRequest): flyteidl.service.PublicClientAuthConfigRequest; + public static create(properties?: flyteidl.service.ICreateDownloadLocationRequest): flyteidl.service.CreateDownloadLocationRequest; /** - * Encodes the specified PublicClientAuthConfigRequest message. Does not implicitly {@link flyteidl.service.PublicClientAuthConfigRequest.verify|verify} messages. - * @param message PublicClientAuthConfigRequest message or plain object to encode + * 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.IPublicClientAuthConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.ICreateDownloadLocationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PublicClientAuthConfigRequest message from the specified reader or buffer. + * 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 PublicClientAuthConfigRequest + * @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.PublicClientAuthConfigRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateDownloadLocationRequest; /** - * Verifies a PublicClientAuthConfigRequest message. + * 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 PublicClientAuthConfigResponse. */ - interface IPublicClientAuthConfigResponse { - - /** PublicClientAuthConfigResponse clientId */ - clientId?: (string|null); - - /** PublicClientAuthConfigResponse redirectUri */ - redirectUri?: (string|null); - - /** PublicClientAuthConfigResponse scopes */ - scopes?: (string[]|null); - - /** PublicClientAuthConfigResponse authorizationMetadataKey */ - authorizationMetadataKey?: (string|null); + /** Properties of a CreateDownloadLocationResponse. */ + interface ICreateDownloadLocationResponse { - /** PublicClientAuthConfigResponse serviceHttpEndpoint */ - serviceHttpEndpoint?: (string|null); + /** CreateDownloadLocationResponse signedUrl */ + signedUrl?: (string|null); - /** PublicClientAuthConfigResponse audience */ - audience?: (string|null); + /** CreateDownloadLocationResponse expiresAt */ + expiresAt?: (google.protobuf.ITimestamp|null); } - /** Represents a PublicClientAuthConfigResponse. */ - class PublicClientAuthConfigResponse implements IPublicClientAuthConfigResponse { + /** Represents a CreateDownloadLocationResponse. */ + class CreateDownloadLocationResponse implements ICreateDownloadLocationResponse { /** - * Constructs a new PublicClientAuthConfigResponse. + * Constructs a new CreateDownloadLocationResponse. * @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; + constructor(properties?: flyteidl.service.ICreateDownloadLocationResponse); - /** PublicClientAuthConfigResponse serviceHttpEndpoint. */ - public serviceHttpEndpoint: string; + /** CreateDownloadLocationResponse signedUrl. */ + public signedUrl: string; - /** PublicClientAuthConfigResponse audience. */ - public audience: string; + /** CreateDownloadLocationResponse expiresAt. */ + public expiresAt?: (google.protobuf.ITimestamp|null); /** - * Creates a new PublicClientAuthConfigResponse instance using the specified properties. + * Creates a new CreateDownloadLocationResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PublicClientAuthConfigResponse instance + * @returns CreateDownloadLocationResponse instance */ - public static create(properties?: flyteidl.service.IPublicClientAuthConfigResponse): flyteidl.service.PublicClientAuthConfigResponse; + public static create(properties?: flyteidl.service.ICreateDownloadLocationResponse): flyteidl.service.CreateDownloadLocationResponse; /** - * Encodes the specified PublicClientAuthConfigResponse message. Does not implicitly {@link flyteidl.service.PublicClientAuthConfigResponse.verify|verify} messages. - * @param message PublicClientAuthConfigResponse message or plain object to encode + * 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.IPublicClientAuthConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.ICreateDownloadLocationResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PublicClientAuthConfigResponse message from the specified reader or buffer. + * 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 PublicClientAuthConfigResponse + * @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.PublicClientAuthConfigResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateDownloadLocationResponse; /** - * Verifies a PublicClientAuthConfigResponse message. + * 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); } - /** Represents an AuthMetadataService */ - class AuthMetadataService extends $protobuf.rpc.Service { + /** ArtifactType enum. */ + enum ArtifactType { + ARTIFACT_TYPE_UNDEFINED = 0, + ARTIFACT_TYPE_DECK = 1 + } - /** - * 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); + /** Properties of a CreateDownloadLinkRequest. */ + interface ICreateDownloadLinkRequest { - /** - * 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; + /** CreateDownloadLinkRequest artifactType */ + artifactType?: (flyteidl.service.ArtifactType|null); - /** - * 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; + /** CreateDownloadLinkRequest expiresIn */ + expiresIn?: (google.protobuf.IDuration|null); + + /** CreateDownloadLinkRequest nodeExecutionId */ + nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); + } + + /** Represents a CreateDownloadLinkRequest. */ + class CreateDownloadLinkRequest implements ICreateDownloadLinkRequest { /** - * Calls GetOAuth2Metadata. - * @param request OAuth2MetadataRequest message or plain object - * @returns Promise + * Constructs a new CreateDownloadLinkRequest. + * @param [properties] Properties to set */ - public getOAuth2Metadata(request: flyteidl.service.IOAuth2MetadataRequest): Promise; + 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"; /** - * Calls GetPublicClientConfig. - * @param request PublicClientAuthConfigRequest message or plain object - * @param callback Node-style callback called with the error, if any, and PublicClientAuthConfigResponse + * Creates a new CreateDownloadLinkRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateDownloadLinkRequest instance */ - public getPublicClientConfig(request: flyteidl.service.IPublicClientAuthConfigRequest, callback: flyteidl.service.AuthMetadataService.GetPublicClientConfigCallback): void; + public static create(properties?: flyteidl.service.ICreateDownloadLinkRequest): flyteidl.service.CreateDownloadLinkRequest; /** - * Calls GetPublicClientConfig. - * @param request PublicClientAuthConfigRequest message or plain object - * @returns Promise + * 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 getPublicClientConfig(request: flyteidl.service.IPublicClientAuthConfigRequest): Promise; - } - - namespace AuthMetadataService { + public static encode(message: flyteidl.service.ICreateDownloadLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link flyteidl.service.AuthMetadataService#getOAuth2Metadata}. - * @param error Error, if any - * @param [response] OAuth2MetadataResponse + * 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 */ - type GetOAuth2MetadataCallback = (error: (Error|null), response?: flyteidl.service.OAuth2MetadataResponse) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateDownloadLinkRequest; /** - * Callback as used by {@link flyteidl.service.AuthMetadataService#getPublicClientConfig}. - * @param error Error, if any - * @param [response] PublicClientAuthConfigResponse + * Verifies a CreateDownloadLinkRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type GetPublicClientConfigCallback = (error: (Error|null), response?: flyteidl.service.PublicClientAuthConfigResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a CreateUploadLocationResponse. */ - interface ICreateUploadLocationResponse { - - /** CreateUploadLocationResponse signedUrl */ - signedUrl?: (string|null); + /** Properties of a CreateDownloadLinkResponse. */ + interface ICreateDownloadLinkResponse { - /** CreateUploadLocationResponse nativeUrl */ - nativeUrl?: (string|null); + /** CreateDownloadLinkResponse signedUrl */ + signedUrl?: (string[]|null); - /** CreateUploadLocationResponse expiresAt */ + /** CreateDownloadLinkResponse expiresAt */ expiresAt?: (google.protobuf.ITimestamp|null); + + /** CreateDownloadLinkResponse preSignedUrls */ + preSignedUrls?: (flyteidl.service.IPreSignedURLs|null); } - /** Represents a CreateUploadLocationResponse. */ - class CreateUploadLocationResponse implements ICreateUploadLocationResponse { + /** Represents a CreateDownloadLinkResponse. */ + class CreateDownloadLinkResponse implements ICreateDownloadLinkResponse { /** - * Constructs a new CreateUploadLocationResponse. + * Constructs a new CreateDownloadLinkResponse. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.service.ICreateUploadLocationResponse); - - /** CreateUploadLocationResponse signedUrl. */ - public signedUrl: string; + constructor(properties?: flyteidl.service.ICreateDownloadLinkResponse); - /** CreateUploadLocationResponse nativeUrl. */ - public nativeUrl: string; + /** CreateDownloadLinkResponse signedUrl. */ + public signedUrl: string[]; - /** CreateUploadLocationResponse expiresAt. */ + /** CreateDownloadLinkResponse expiresAt. */ public expiresAt?: (google.protobuf.ITimestamp|null); + /** CreateDownloadLinkResponse preSignedUrls. */ + public preSignedUrls?: (flyteidl.service.IPreSignedURLs|null); + /** - * Creates a new CreateUploadLocationResponse instance using the specified properties. + * Creates a new CreateDownloadLinkResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateUploadLocationResponse instance + * @returns CreateDownloadLinkResponse instance */ - public static create(properties?: flyteidl.service.ICreateUploadLocationResponse): flyteidl.service.CreateUploadLocationResponse; + public static create(properties?: flyteidl.service.ICreateDownloadLinkResponse): flyteidl.service.CreateDownloadLinkResponse; /** - * Encodes the specified CreateUploadLocationResponse message. Does not implicitly {@link flyteidl.service.CreateUploadLocationResponse.verify|verify} messages. - * @param message CreateUploadLocationResponse message or plain object to encode + * 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.ICreateUploadLocationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.ICreateDownloadLinkResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateUploadLocationResponse message from the specified reader or buffer. + * 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 CreateUploadLocationResponse + * @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.CreateUploadLocationResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateDownloadLinkResponse; /** - * Verifies a CreateUploadLocationResponse message. + * 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 CreateUploadLocationRequest. */ - interface ICreateUploadLocationRequest { - - /** CreateUploadLocationRequest project */ - project?: (string|null); - - /** CreateUploadLocationRequest domain */ - domain?: (string|null); - - /** CreateUploadLocationRequest filename */ - filename?: (string|null); + /** Properties of a PreSignedURLs. */ + interface IPreSignedURLs { - /** CreateUploadLocationRequest expiresIn */ - expiresIn?: (google.protobuf.IDuration|null); + /** PreSignedURLs signedUrl */ + signedUrl?: (string[]|null); - /** CreateUploadLocationRequest contentMd5 */ - contentMd5?: (Uint8Array|null); + /** PreSignedURLs expiresAt */ + expiresAt?: (google.protobuf.ITimestamp|null); } - /** Represents a CreateUploadLocationRequest. */ - class CreateUploadLocationRequest implements ICreateUploadLocationRequest { + /** Represents a PreSignedURLs. */ + class PreSignedURLs implements IPreSignedURLs { /** - * Constructs a new CreateUploadLocationRequest. + * Constructs a new PreSignedURLs. * @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; + constructor(properties?: flyteidl.service.IPreSignedURLs); - /** CreateUploadLocationRequest expiresIn. */ - public expiresIn?: (google.protobuf.IDuration|null); + /** PreSignedURLs signedUrl. */ + public signedUrl: string[]; - /** CreateUploadLocationRequest contentMd5. */ - public contentMd5: Uint8Array; + /** PreSignedURLs expiresAt. */ + public expiresAt?: (google.protobuf.ITimestamp|null); /** - * Creates a new CreateUploadLocationRequest instance using the specified properties. + * Creates a new PreSignedURLs instance using the specified properties. * @param [properties] Properties to set - * @returns CreateUploadLocationRequest instance + * @returns PreSignedURLs instance */ - public static create(properties?: flyteidl.service.ICreateUploadLocationRequest): flyteidl.service.CreateUploadLocationRequest; + public static create(properties?: flyteidl.service.IPreSignedURLs): flyteidl.service.PreSignedURLs; /** - * Encodes the specified CreateUploadLocationRequest message. Does not implicitly {@link flyteidl.service.CreateUploadLocationRequest.verify|verify} messages. - * @param message CreateUploadLocationRequest message or plain object to encode + * 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.ICreateUploadLocationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.IPreSignedURLs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateUploadLocationRequest message from the specified reader or buffer. + * 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 CreateUploadLocationRequest + * @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.CreateUploadLocationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.PreSignedURLs; /** - * Verifies a CreateUploadLocationRequest message. + * 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 CreateDownloadLocationRequest. */ - interface ICreateDownloadLocationRequest { - - /** CreateDownloadLocationRequest nativeUrl */ - nativeUrl?: (string|null); + /** Properties of a GetDataRequest. */ + interface IGetDataRequest { - /** CreateDownloadLocationRequest expiresIn */ - expiresIn?: (google.protobuf.IDuration|null); + /** GetDataRequest flyteUrl */ + flyteUrl?: (string|null); } - /** Represents a CreateDownloadLocationRequest. */ - class CreateDownloadLocationRequest implements ICreateDownloadLocationRequest { + /** Represents a GetDataRequest. */ + class GetDataRequest implements IGetDataRequest { /** - * Constructs a new CreateDownloadLocationRequest. + * Constructs a new GetDataRequest. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.service.ICreateDownloadLocationRequest); - - /** CreateDownloadLocationRequest nativeUrl. */ - public nativeUrl: string; + constructor(properties?: flyteidl.service.IGetDataRequest); - /** CreateDownloadLocationRequest expiresIn. */ - public expiresIn?: (google.protobuf.IDuration|null); + /** GetDataRequest flyteUrl. */ + public flyteUrl: string; /** - * Creates a new CreateDownloadLocationRequest instance using the specified properties. + * Creates a new GetDataRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateDownloadLocationRequest instance + * @returns GetDataRequest instance */ - public static create(properties?: flyteidl.service.ICreateDownloadLocationRequest): flyteidl.service.CreateDownloadLocationRequest; + public static create(properties?: flyteidl.service.IGetDataRequest): flyteidl.service.GetDataRequest; /** - * Encodes the specified CreateDownloadLocationRequest message. Does not implicitly {@link flyteidl.service.CreateDownloadLocationRequest.verify|verify} messages. - * @param message CreateDownloadLocationRequest message or plain object to encode + * 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.ICreateDownloadLocationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.IGetDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateDownloadLocationRequest message from the specified reader or buffer. + * 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 CreateDownloadLocationRequest + * @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.CreateDownloadLocationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.GetDataRequest; /** - * Verifies a CreateDownloadLocationRequest message. + * 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 CreateDownloadLocationResponse. */ - interface ICreateDownloadLocationResponse { + /** Properties of a GetDataResponse. */ + interface IGetDataResponse { - /** CreateDownloadLocationResponse signedUrl */ - signedUrl?: (string|null); + /** GetDataResponse literalMap */ + literalMap?: (flyteidl.core.ILiteralMap|null); - /** CreateDownloadLocationResponse expiresAt */ - expiresAt?: (google.protobuf.ITimestamp|null); + /** GetDataResponse preSignedUrls */ + preSignedUrls?: (flyteidl.service.IPreSignedURLs|null); + + /** GetDataResponse literal */ + literal?: (flyteidl.core.ILiteral|null); } - /** Represents a CreateDownloadLocationResponse. */ - class CreateDownloadLocationResponse implements ICreateDownloadLocationResponse { + /** Represents a GetDataResponse. */ + class GetDataResponse implements IGetDataResponse { /** - * Constructs a new CreateDownloadLocationResponse. + * Constructs a new GetDataResponse. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.service.ICreateDownloadLocationResponse); + constructor(properties?: flyteidl.service.IGetDataResponse); - /** CreateDownloadLocationResponse signedUrl. */ - public signedUrl: string; + /** GetDataResponse literalMap. */ + public literalMap?: (flyteidl.core.ILiteralMap|null); - /** CreateDownloadLocationResponse expiresAt. */ - public expiresAt?: (google.protobuf.ITimestamp|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 CreateDownloadLocationResponse instance using the specified properties. + * Creates a new GetDataResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateDownloadLocationResponse instance + * @returns GetDataResponse instance */ - public static create(properties?: flyteidl.service.ICreateDownloadLocationResponse): flyteidl.service.CreateDownloadLocationResponse; + public static create(properties?: flyteidl.service.IGetDataResponse): flyteidl.service.GetDataResponse; /** - * Encodes the specified CreateDownloadLocationResponse message. Does not implicitly {@link flyteidl.service.CreateDownloadLocationResponse.verify|verify} messages. - * @param message CreateDownloadLocationResponse message or plain object to encode + * 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.ICreateDownloadLocationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.IGetDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateDownloadLocationResponse message from the specified reader or buffer. + * 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 CreateDownloadLocationResponse + * @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.CreateDownloadLocationResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.GetDataResponse; /** - * Verifies a CreateDownloadLocationResponse message. + * 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); } - /** 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 { + /** Represents a DataProxyService */ + class DataProxyService extends $protobuf.rpc.Service { /** - * Constructs a new CreateDownloadLinkRequest. - * @param [properties] Properties to set + * 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(properties?: flyteidl.service.ICreateDownloadLinkRequest); - - /** CreateDownloadLinkRequest artifactType. */ - public artifactType: flyteidl.service.ArtifactType; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** CreateDownloadLinkRequest expiresIn. */ - public expiresIn?: (google.protobuf.IDuration|null); + /** + * 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; - /** CreateDownloadLinkRequest nodeExecutionId. */ - public nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); + /** + * 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; - /** CreateDownloadLinkRequest source. */ - public source?: "nodeExecutionId"; + /** + * Calls CreateUploadLocation. + * @param request CreateUploadLocationRequest message or plain object + * @returns Promise + */ + public createUploadLocation(request: flyteidl.service.ICreateUploadLocationRequest): Promise; /** - * Creates a new CreateDownloadLinkRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateDownloadLinkRequest instance + * Calls CreateDownloadLocation. + * @param request CreateDownloadLocationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CreateDownloadLocationResponse */ - public static create(properties?: flyteidl.service.ICreateDownloadLinkRequest): flyteidl.service.CreateDownloadLinkRequest; + public createDownloadLocation(request: flyteidl.service.ICreateDownloadLocationRequest, callback: flyteidl.service.DataProxyService.CreateDownloadLocationCallback): void; /** - * 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 + * Calls CreateDownloadLocation. + * @param request CreateDownloadLocationRequest message or plain object + * @returns Promise */ - public static encode(message: flyteidl.service.ICreateDownloadLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createDownloadLocation(request: flyteidl.service.ICreateDownloadLocationRequest): Promise; /** - * 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 + * Calls CreateDownloadLink. + * @param request CreateDownloadLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CreateDownloadLinkResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateDownloadLinkRequest; + public createDownloadLink(request: flyteidl.service.ICreateDownloadLinkRequest, callback: flyteidl.service.DataProxyService.CreateDownloadLinkCallback): void; /** - * Verifies a CreateDownloadLinkRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls CreateDownloadLink. + * @param request CreateDownloadLinkRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + 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; } - /** Properties of a CreateDownloadLinkResponse. */ - interface ICreateDownloadLinkResponse { + namespace DataProxyService { - /** CreateDownloadLinkResponse signedUrl */ - signedUrl?: (string[]|null); + /** + * 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; - /** CreateDownloadLinkResponse expiresAt */ - expiresAt?: (google.protobuf.ITimestamp|null); + /** + * 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; - /** CreateDownloadLinkResponse preSignedUrls */ - preSignedUrls?: (flyteidl.service.IPreSignedURLs|null); + /** + * 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 a CreateDownloadLinkResponse. */ - class CreateDownloadLinkResponse implements ICreateDownloadLinkResponse { + /** Represents an ExternalPluginService */ + class ExternalPluginService extends $protobuf.rpc.Service { /** - * Constructs a new CreateDownloadLinkResponse. + * 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.ICreateDownloadLinkResponse); + constructor(properties?: flyteidl.service.ITaskCreateRequest); - /** CreateDownloadLinkResponse signedUrl. */ - public signedUrl: string[]; + /** TaskCreateRequest inputs. */ + public inputs?: (flyteidl.core.ILiteralMap|null); - /** CreateDownloadLinkResponse expiresAt. */ - public expiresAt?: (google.protobuf.ITimestamp|null); + /** TaskCreateRequest template. */ + public template?: (flyteidl.core.ITaskTemplate|null); - /** CreateDownloadLinkResponse preSignedUrls. */ - public preSignedUrls?: (flyteidl.service.IPreSignedURLs|null); + /** TaskCreateRequest outputPrefix. */ + public outputPrefix: string; /** - * Creates a new CreateDownloadLinkResponse instance using the specified properties. + * Creates a new TaskCreateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateDownloadLinkResponse instance + * @returns TaskCreateRequest instance */ - public static create(properties?: flyteidl.service.ICreateDownloadLinkResponse): flyteidl.service.CreateDownloadLinkResponse; + public static create(properties?: flyteidl.service.ITaskCreateRequest): flyteidl.service.TaskCreateRequest; /** - * Encodes the specified CreateDownloadLinkResponse message. Does not implicitly {@link flyteidl.service.CreateDownloadLinkResponse.verify|verify} messages. - * @param message CreateDownloadLinkResponse message or plain object to encode + * 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.ICreateDownloadLinkResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.ITaskCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateDownloadLinkResponse message from the specified reader or buffer. + * 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 CreateDownloadLinkResponse + * @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.CreateDownloadLinkResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskCreateRequest; /** - * Verifies a CreateDownloadLinkResponse message. + * 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 PreSignedURLs. */ - interface IPreSignedURLs { - - /** PreSignedURLs signedUrl */ - signedUrl?: (string[]|null); + /** Properties of a TaskCreateResponse. */ + interface ITaskCreateResponse { - /** PreSignedURLs expiresAt */ - expiresAt?: (google.protobuf.ITimestamp|null); + /** TaskCreateResponse jobId */ + jobId?: (string|null); } - /** Represents a PreSignedURLs. */ - class PreSignedURLs implements IPreSignedURLs { + /** Represents a TaskCreateResponse. */ + class TaskCreateResponse implements ITaskCreateResponse { /** - * Constructs a new PreSignedURLs. + * Constructs a new TaskCreateResponse. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.service.IPreSignedURLs); - - /** PreSignedURLs signedUrl. */ - public signedUrl: string[]; + constructor(properties?: flyteidl.service.ITaskCreateResponse); - /** PreSignedURLs expiresAt. */ - public expiresAt?: (google.protobuf.ITimestamp|null); + /** TaskCreateResponse jobId. */ + public jobId: string; /** - * Creates a new PreSignedURLs instance using the specified properties. + * Creates a new TaskCreateResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PreSignedURLs instance + * @returns TaskCreateResponse instance */ - public static create(properties?: flyteidl.service.IPreSignedURLs): flyteidl.service.PreSignedURLs; + public static create(properties?: flyteidl.service.ITaskCreateResponse): flyteidl.service.TaskCreateResponse; - /** - * Encodes the specified PreSignedURLs message. Does not implicitly {@link flyteidl.service.PreSignedURLs.verify|verify} messages. - * @param message PreSignedURLs message or plain object to encode + /** + * 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.IPreSignedURLs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.ITaskCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PreSignedURLs message from the specified reader or buffer. + * 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 PreSignedURLs + * @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.PreSignedURLs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskCreateResponse; /** - * Verifies a PreSignedURLs message. + * 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 GetDataRequest. */ - interface IGetDataRequest { + /** Properties of a TaskGetRequest. */ + interface ITaskGetRequest { - /** GetDataRequest flyteUrl */ - flyteUrl?: (string|null); + /** TaskGetRequest taskType */ + taskType?: (string|null); + + /** TaskGetRequest jobId */ + jobId?: (string|null); } - /** Represents a GetDataRequest. */ - class GetDataRequest implements IGetDataRequest { + /** Represents a TaskGetRequest. */ + class TaskGetRequest implements ITaskGetRequest { /** - * Constructs a new GetDataRequest. + * Constructs a new TaskGetRequest. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.service.IGetDataRequest); + constructor(properties?: flyteidl.service.ITaskGetRequest); - /** GetDataRequest flyteUrl. */ - public flyteUrl: string; + /** TaskGetRequest taskType. */ + public taskType: string; + + /** TaskGetRequest jobId. */ + public jobId: string; /** - * Creates a new GetDataRequest instance using the specified properties. + * Creates a new TaskGetRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetDataRequest instance + * @returns TaskGetRequest instance */ - public static create(properties?: flyteidl.service.IGetDataRequest): flyteidl.service.GetDataRequest; + public static create(properties?: flyteidl.service.ITaskGetRequest): flyteidl.service.TaskGetRequest; /** - * Encodes the specified GetDataRequest message. Does not implicitly {@link flyteidl.service.GetDataRequest.verify|verify} messages. - * @param message GetDataRequest message or plain object to encode + * 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.IGetDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.ITaskGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetDataRequest message from the specified reader or buffer. + * 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 GetDataRequest + * @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.GetDataRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskGetRequest; /** - * Verifies a GetDataRequest message. + * 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 GetDataResponse. */ - interface IGetDataResponse { - - /** GetDataResponse literalMap */ - literalMap?: (flyteidl.core.ILiteralMap|null); + /** Properties of a TaskGetResponse. */ + interface ITaskGetResponse { - /** GetDataResponse preSignedUrls */ - preSignedUrls?: (flyteidl.service.IPreSignedURLs|null); + /** TaskGetResponse state */ + state?: (flyteidl.service.State|null); - /** GetDataResponse literal */ - literal?: (flyteidl.core.ILiteral|null); + /** TaskGetResponse outputs */ + outputs?: (flyteidl.core.ILiteralMap|null); } - /** Represents a GetDataResponse. */ - class GetDataResponse implements IGetDataResponse { + /** Represents a TaskGetResponse. */ + class TaskGetResponse implements ITaskGetResponse { /** - * Constructs a new GetDataResponse. + * Constructs a new TaskGetResponse. * @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); + constructor(properties?: flyteidl.service.ITaskGetResponse); - /** GetDataResponse literal. */ - public literal?: (flyteidl.core.ILiteral|null); + /** TaskGetResponse state. */ + public state: flyteidl.service.State; - /** GetDataResponse data. */ - public data?: ("literalMap"|"preSignedUrls"|"literal"); + /** TaskGetResponse outputs. */ + public outputs?: (flyteidl.core.ILiteralMap|null); /** - * Creates a new GetDataResponse instance using the specified properties. + * Creates a new TaskGetResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetDataResponse instance + * @returns TaskGetResponse instance */ - public static create(properties?: flyteidl.service.IGetDataResponse): flyteidl.service.GetDataResponse; + public static create(properties?: flyteidl.service.ITaskGetResponse): flyteidl.service.TaskGetResponse; /** - * Encodes the specified GetDataResponse message. Does not implicitly {@link flyteidl.service.GetDataResponse.verify|verify} messages. - * @param message GetDataResponse message or plain object to encode + * 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.IGetDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.ITaskGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetDataResponse message from the specified reader or buffer. + * 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 GetDataResponse + * @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.GetDataResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskGetResponse; /** - * Verifies a GetDataResponse message. + * 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); } - /** Represents a DataProxyService */ - class DataProxyService extends $protobuf.rpc.Service { + /** Properties of a TaskDeleteRequest. */ + interface ITaskDeleteRequest { - /** - * 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); + /** TaskDeleteRequest taskType */ + taskType?: (string|null); - /** - * 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; + /** TaskDeleteRequest jobId */ + jobId?: (string|null); + } - /** - * 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; + /** Represents a TaskDeleteRequest. */ + class TaskDeleteRequest implements ITaskDeleteRequest { /** - * Calls CreateUploadLocation. - * @param request CreateUploadLocationRequest message or plain object - * @returns Promise + * Constructs a new TaskDeleteRequest. + * @param [properties] Properties to set */ - public createUploadLocation(request: flyteidl.service.ICreateUploadLocationRequest): Promise; + constructor(properties?: flyteidl.service.ITaskDeleteRequest); - /** - * 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; + /** TaskDeleteRequest taskType. */ + public taskType: string; - /** - * Calls CreateDownloadLocation. - * @param request CreateDownloadLocationRequest message or plain object - * @returns Promise - */ - public createDownloadLocation(request: flyteidl.service.ICreateDownloadLocationRequest): Promise; + /** TaskDeleteRequest jobId. */ + public jobId: string; /** - * Calls CreateDownloadLink. - * @param request CreateDownloadLinkRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CreateDownloadLinkResponse + * Creates a new TaskDeleteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskDeleteRequest instance */ - public createDownloadLink(request: flyteidl.service.ICreateDownloadLinkRequest, callback: flyteidl.service.DataProxyService.CreateDownloadLinkCallback): void; + public static create(properties?: flyteidl.service.ITaskDeleteRequest): flyteidl.service.TaskDeleteRequest; /** - * Calls CreateDownloadLink. - * @param request CreateDownloadLinkRequest message or plain object - * @returns Promise + * 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 createDownloadLink(request: flyteidl.service.ICreateDownloadLinkRequest): Promise; + public static encode(message: flyteidl.service.ITaskDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetData. - * @param request GetDataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GetDataResponse + * 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 getData(request: flyteidl.service.IGetDataRequest, callback: flyteidl.service.DataProxyService.GetDataCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskDeleteRequest; /** - * Calls GetData. - * @param request GetDataRequest message or plain object - * @returns Promise + * Verifies a TaskDeleteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public getData(request: flyteidl.service.IGetDataRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); } - namespace DataProxyService { + /** Properties of a TaskDeleteResponse. */ + interface ITaskDeleteResponse { + } + + /** Represents a TaskDeleteResponse. */ + class TaskDeleteResponse implements ITaskDeleteResponse { /** - * Callback as used by {@link flyteidl.service.DataProxyService#createUploadLocation}. - * @param error Error, if any - * @param [response] CreateUploadLocationResponse + * Constructs a new TaskDeleteResponse. + * @param [properties] Properties to set */ - type CreateUploadLocationCallback = (error: (Error|null), response?: flyteidl.service.CreateUploadLocationResponse) => void; + constructor(properties?: flyteidl.service.ITaskDeleteResponse); /** - * Callback as used by {@link flyteidl.service.DataProxyService#createDownloadLocation}. - * @param error Error, if any - * @param [response] CreateDownloadLocationResponse + * Creates a new TaskDeleteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskDeleteResponse instance */ - type CreateDownloadLocationCallback = (error: (Error|null), response?: flyteidl.service.CreateDownloadLocationResponse) => void; + public static create(properties?: flyteidl.service.ITaskDeleteResponse): flyteidl.service.TaskDeleteResponse; /** - * Callback as used by {@link flyteidl.service.DataProxyService#createDownloadLink}. - * @param error Error, if any - * @param [response] CreateDownloadLinkResponse + * 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 */ - type CreateDownloadLinkCallback = (error: (Error|null), response?: flyteidl.service.CreateDownloadLinkResponse) => void; + public static encode(message: flyteidl.service.ITaskDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link flyteidl.service.DataProxyService#getData}. - * @param error Error, if any - * @param [response] GetDataResponse + * 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 */ - type GetDataCallback = (error: (Error|null), response?: flyteidl.service.GetDataResponse) => void; + 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. */ diff --git a/flyteidl/gen/pb-js/flyteidl.js b/flyteidl/gen/pb-js/flyteidl.js index c90890eac39..f5294563116 100644 --- a/flyteidl/gen/pb-js/flyteidl.js +++ b/flyteidl/gen/pb-js/flyteidl.js @@ -18283,24 +18283,46 @@ */ var admin = {}; - admin.ClusterAssignment = (function() { + /** + * 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.CreateTaskRequest = (function() { /** - * Properties of a ClusterAssignment. + * Properties of a CreateTaskRequest. * @memberof flyteidl.admin - * @interface IClusterAssignment - * @property {string|null} [clusterPoolName] ClusterAssignment clusterPoolName + * @interface ICreateTaskRequest + * @property {flyteidl.core.ILiteralMap|null} [inputs] CreateTaskRequest inputs + * @property {flyteidl.core.ITaskTemplate|null} [template] CreateTaskRequest template + * @property {string|null} [outputPrefix] CreateTaskRequest outputPrefix */ /** - * Constructs a new ClusterAssignment. + * Constructs a new CreateTaskRequest. * @memberof flyteidl.admin - * @classdesc Represents a ClusterAssignment. - * @implements IClusterAssignment + * @classdesc Represents a CreateTaskRequest. + * @implements ICreateTaskRequest * @constructor - * @param {flyteidl.admin.IClusterAssignment=} [properties] Properties to set + * @param {flyteidl.admin.ICreateTaskRequest=} [properties] Properties to set */ - function ClusterAssignment(properties) { + function CreateTaskRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18308,62 +18330,88 @@ } /** - * ClusterAssignment clusterPoolName. - * @member {string} clusterPoolName - * @memberof flyteidl.admin.ClusterAssignment + * CreateTaskRequest inputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} inputs + * @memberof flyteidl.admin.CreateTaskRequest * @instance */ - ClusterAssignment.prototype.clusterPoolName = ""; + CreateTaskRequest.prototype.inputs = null; /** - * Creates a new ClusterAssignment instance using the specified properties. + * 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 = ""; + + /** + * Creates a new CreateTaskRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.ClusterAssignment + * @memberof flyteidl.admin.CreateTaskRequest * @static - * @param {flyteidl.admin.IClusterAssignment=} [properties] Properties to set - * @returns {flyteidl.admin.ClusterAssignment} ClusterAssignment instance + * @param {flyteidl.admin.ICreateTaskRequest=} [properties] Properties to set + * @returns {flyteidl.admin.CreateTaskRequest} CreateTaskRequest instance */ - ClusterAssignment.create = function create(properties) { - return new ClusterAssignment(properties); + CreateTaskRequest.create = function create(properties) { + return new CreateTaskRequest(properties); }; /** - * Encodes the specified ClusterAssignment message. Does not implicitly {@link flyteidl.admin.ClusterAssignment.verify|verify} messages. + * Encodes the specified CreateTaskRequest message. Does not implicitly {@link flyteidl.admin.CreateTaskRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ClusterAssignment + * @memberof flyteidl.admin.CreateTaskRequest * @static - * @param {flyteidl.admin.IClusterAssignment} message ClusterAssignment message or plain object to encode + * @param {flyteidl.admin.ICreateTaskRequest} message CreateTaskRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClusterAssignment.encode = function encode(message, writer) { + CreateTaskRequest.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); + 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 ClusterAssignment message from the specified reader or buffer. + * Decodes a CreateTaskRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ClusterAssignment + * @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.ClusterAssignment} ClusterAssignment + * @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 */ - ClusterAssignment.decode = function decode(reader, length) { + 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.ClusterAssignment(); + 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.clusterPoolName = reader.string(); + message.outputPrefix = reader.string(); break; default: reader.skipType(tag & 7); @@ -18374,45 +18422,53 @@ }; /** - * Verifies a ClusterAssignment message. + * Verifies a CreateTaskRequest message. * @function verify - * @memberof flyteidl.admin.ClusterAssignment + * @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 */ - ClusterAssignment.verify = function verify(message) { + CreateTaskRequest.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"; + 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 ClusterAssignment; + return CreateTaskRequest; })(); - admin.NamedEntityIdentifier = (function() { + admin.CreateTaskResponse = (function() { /** - * Properties of a NamedEntityIdentifier. + * Properties of a CreateTaskResponse. * @memberof flyteidl.admin - * @interface INamedEntityIdentifier - * @property {string|null} [project] NamedEntityIdentifier project - * @property {string|null} [domain] NamedEntityIdentifier domain - * @property {string|null} [name] NamedEntityIdentifier name + * @interface ICreateTaskResponse + * @property {Uint8Array|null} [resourceMeta] CreateTaskResponse resourceMeta */ /** - * Constructs a new NamedEntityIdentifier. + * Constructs a new CreateTaskResponse. * @memberof flyteidl.admin - * @classdesc Represents a NamedEntityIdentifier. - * @implements INamedEntityIdentifier + * @classdesc Represents a CreateTaskResponse. + * @implements ICreateTaskResponse * @constructor - * @param {flyteidl.admin.INamedEntityIdentifier=} [properties] Properties to set + * @param {flyteidl.admin.ICreateTaskResponse=} [properties] Properties to set */ - function NamedEntityIdentifier(properties) { + function CreateTaskResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18420,88 +18476,62 @@ } /** - * 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 + * CreateTaskResponse resourceMeta. + * @member {Uint8Array} resourceMeta + * @memberof flyteidl.admin.CreateTaskResponse * @instance */ - NamedEntityIdentifier.prototype.name = ""; + CreateTaskResponse.prototype.resourceMeta = $util.newBuffer([]); /** - * Creates a new NamedEntityIdentifier instance using the specified properties. + * Creates a new CreateTaskResponse instance using the specified properties. * @function create - * @memberof flyteidl.admin.NamedEntityIdentifier + * @memberof flyteidl.admin.CreateTaskResponse * @static - * @param {flyteidl.admin.INamedEntityIdentifier=} [properties] Properties to set - * @returns {flyteidl.admin.NamedEntityIdentifier} NamedEntityIdentifier instance + * @param {flyteidl.admin.ICreateTaskResponse=} [properties] Properties to set + * @returns {flyteidl.admin.CreateTaskResponse} CreateTaskResponse instance */ - NamedEntityIdentifier.create = function create(properties) { - return new NamedEntityIdentifier(properties); + CreateTaskResponse.create = function create(properties) { + return new CreateTaskResponse(properties); }; /** - * Encodes the specified NamedEntityIdentifier message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifier.verify|verify} messages. + * Encodes the specified CreateTaskResponse message. Does not implicitly {@link flyteidl.admin.CreateTaskResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.NamedEntityIdentifier + * @memberof flyteidl.admin.CreateTaskResponse * @static - * @param {flyteidl.admin.INamedEntityIdentifier} message NamedEntityIdentifier message or plain object to encode + * @param {flyteidl.admin.ICreateTaskResponse} message CreateTaskResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NamedEntityIdentifier.encode = function encode(message, writer) { + CreateTaskResponse.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.resourceMeta != null && message.hasOwnProperty("resourceMeta")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.resourceMeta); return writer; }; /** - * Decodes a NamedEntityIdentifier message from the specified reader or buffer. + * Decodes a CreateTaskResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.NamedEntityIdentifier + * @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.NamedEntityIdentifier} NamedEntityIdentifier + * @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 */ - NamedEntityIdentifier.decode = function decode(reader, length) { + 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.NamedEntityIdentifier(); + 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.project = reader.string(); - break; - case 2: - message.domain = reader.string(); - break; - case 3: - message.name = reader.string(); + message.resourceMeta = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -18512,66 +18542,44 @@ }; /** - * Verifies a NamedEntityIdentifier message. + * Verifies a CreateTaskResponse message. * @function verify - * @memberof flyteidl.admin.NamedEntityIdentifier + * @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 */ - NamedEntityIdentifier.verify = function verify(message) { + CreateTaskResponse.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.resourceMeta != null && message.hasOwnProperty("resourceMeta")) + if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) + return "resourceMeta: buffer 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; + return CreateTaskResponse; })(); - admin.NamedEntityMetadata = (function() { + admin.GetTaskRequest = (function() { /** - * Properties of a NamedEntityMetadata. + * Properties of a GetTaskRequest. * @memberof flyteidl.admin - * @interface INamedEntityMetadata - * @property {string|null} [description] NamedEntityMetadata description - * @property {flyteidl.admin.NamedEntityState|null} [state] NamedEntityMetadata state + * @interface IGetTaskRequest + * @property {string|null} [taskType] GetTaskRequest taskType + * @property {Uint8Array|null} [resourceMeta] GetTaskRequest resourceMeta */ /** - * Constructs a new NamedEntityMetadata. + * Constructs a new GetTaskRequest. * @memberof flyteidl.admin - * @classdesc Represents a NamedEntityMetadata. - * @implements INamedEntityMetadata + * @classdesc Represents a GetTaskRequest. + * @implements IGetTaskRequest * @constructor - * @param {flyteidl.admin.INamedEntityMetadata=} [properties] Properties to set + * @param {flyteidl.admin.IGetTaskRequest=} [properties] Properties to set */ - function NamedEntityMetadata(properties) { + function GetTaskRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18579,75 +18587,75 @@ } /** - * NamedEntityMetadata description. - * @member {string} description - * @memberof flyteidl.admin.NamedEntityMetadata + * GetTaskRequest taskType. + * @member {string} taskType + * @memberof flyteidl.admin.GetTaskRequest * @instance */ - NamedEntityMetadata.prototype.description = ""; + GetTaskRequest.prototype.taskType = ""; /** - * NamedEntityMetadata state. - * @member {flyteidl.admin.NamedEntityState} state - * @memberof flyteidl.admin.NamedEntityMetadata + * GetTaskRequest resourceMeta. + * @member {Uint8Array} resourceMeta + * @memberof flyteidl.admin.GetTaskRequest * @instance */ - NamedEntityMetadata.prototype.state = 0; + GetTaskRequest.prototype.resourceMeta = $util.newBuffer([]); /** - * Creates a new NamedEntityMetadata instance using the specified properties. + * Creates a new GetTaskRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.NamedEntityMetadata + * @memberof flyteidl.admin.GetTaskRequest * @static - * @param {flyteidl.admin.INamedEntityMetadata=} [properties] Properties to set - * @returns {flyteidl.admin.NamedEntityMetadata} NamedEntityMetadata instance + * @param {flyteidl.admin.IGetTaskRequest=} [properties] Properties to set + * @returns {flyteidl.admin.GetTaskRequest} GetTaskRequest instance */ - NamedEntityMetadata.create = function create(properties) { - return new NamedEntityMetadata(properties); + GetTaskRequest.create = function create(properties) { + return new GetTaskRequest(properties); }; /** - * Encodes the specified NamedEntityMetadata message. Does not implicitly {@link flyteidl.admin.NamedEntityMetadata.verify|verify} messages. + * Encodes the specified GetTaskRequest message. Does not implicitly {@link flyteidl.admin.GetTaskRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.NamedEntityMetadata + * @memberof flyteidl.admin.GetTaskRequest * @static - * @param {flyteidl.admin.INamedEntityMetadata} message NamedEntityMetadata message or plain object to encode + * @param {flyteidl.admin.IGetTaskRequest} message GetTaskRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NamedEntityMetadata.encode = function encode(message, writer) { + GetTaskRequest.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); + 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); return writer; }; /** - * Decodes a NamedEntityMetadata message from the specified reader or buffer. + * Decodes a GetTaskRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.NamedEntityMetadata + * @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.NamedEntityMetadata} NamedEntityMetadata + * @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 */ - NamedEntityMetadata.decode = function decode(reader, length) { + 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.NamedEntityMetadata(); + 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.description = reader.string(); + message.taskType = reader.string(); break; case 2: - message.state = reader.int32(); + message.resourceMeta = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -18658,54 +18666,46 @@ }; /** - * Verifies a NamedEntityMetadata message. + * Verifies a GetTaskRequest message. * @function verify - * @memberof flyteidl.admin.NamedEntityMetadata + * @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 */ - NamedEntityMetadata.verify = function verify(message) { + GetTaskRequest.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; - } + 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"; return null; }; - return NamedEntityMetadata; + return GetTaskRequest; })(); - admin.NamedEntity = (function() { + admin.GetTaskResponse = (function() { /** - * Properties of a NamedEntity. + * Properties of a GetTaskResponse. * @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 + * @interface IGetTaskResponse + * @property {flyteidl.admin.IResource|null} [resource] GetTaskResponse resource */ /** - * Constructs a new NamedEntity. + * Constructs a new GetTaskResponse. * @memberof flyteidl.admin - * @classdesc Represents a NamedEntity. - * @implements INamedEntity + * @classdesc Represents a GetTaskResponse. + * @implements IGetTaskResponse * @constructor - * @param {flyteidl.admin.INamedEntity=} [properties] Properties to set + * @param {flyteidl.admin.IGetTaskResponse=} [properties] Properties to set */ - function NamedEntity(properties) { + function GetTaskResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18713,88 +18713,62 @@ } /** - * 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 + * GetTaskResponse resource. + * @member {flyteidl.admin.IResource|null|undefined} resource + * @memberof flyteidl.admin.GetTaskResponse * @instance */ - NamedEntity.prototype.metadata = null; + GetTaskResponse.prototype.resource = null; /** - * Creates a new NamedEntity instance using the specified properties. + * Creates a new GetTaskResponse instance using the specified properties. * @function create - * @memberof flyteidl.admin.NamedEntity + * @memberof flyteidl.admin.GetTaskResponse * @static - * @param {flyteidl.admin.INamedEntity=} [properties] Properties to set - * @returns {flyteidl.admin.NamedEntity} NamedEntity instance + * @param {flyteidl.admin.IGetTaskResponse=} [properties] Properties to set + * @returns {flyteidl.admin.GetTaskResponse} GetTaskResponse instance */ - NamedEntity.create = function create(properties) { - return new NamedEntity(properties); + GetTaskResponse.create = function create(properties) { + return new GetTaskResponse(properties); }; /** - * Encodes the specified NamedEntity message. Does not implicitly {@link flyteidl.admin.NamedEntity.verify|verify} messages. + * Encodes the specified GetTaskResponse message. Does not implicitly {@link flyteidl.admin.GetTaskResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.NamedEntity + * @memberof flyteidl.admin.GetTaskResponse * @static - * @param {flyteidl.admin.INamedEntity} message NamedEntity message or plain object to encode + * @param {flyteidl.admin.IGetTaskResponse} message GetTaskResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NamedEntity.encode = function encode(message, writer) { + GetTaskResponse.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(); + 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 NamedEntity message from the specified reader or buffer. + * Decodes a GetTaskResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.NamedEntity + * @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.NamedEntity} NamedEntity + * @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 */ - NamedEntity.decode = function decode(reader, length) { + 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.NamedEntity(); + 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.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()); + message.resource = $root.flyteidl.admin.Resource.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -18805,62 +18779,46 @@ }; /** - * Verifies a NamedEntity message. + * Verifies a GetTaskResponse message. * @function verify - * @memberof flyteidl.admin.NamedEntity + * @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 */ - NamedEntity.verify = function verify(message) { + GetTaskResponse.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 (message.resource != null && message.hasOwnProperty("resource")) { + var error = $root.flyteidl.admin.Resource.verify(message.resource); if (error) - return "metadata." + error; + return "resource." + error; } return null; }; - return NamedEntity; + return GetTaskResponse; })(); - admin.Sort = (function() { + admin.Resource = (function() { /** - * Properties of a Sort. + * Properties of a Resource. * @memberof flyteidl.admin - * @interface ISort - * @property {string|null} [key] Sort key - * @property {flyteidl.admin.Sort.Direction|null} [direction] Sort direction + * @interface IResource + * @property {flyteidl.admin.State|null} [state] Resource state + * @property {flyteidl.core.ILiteralMap|null} [outputs] Resource outputs */ /** - * Constructs a new Sort. + * Constructs a new Resource. * @memberof flyteidl.admin - * @classdesc Represents a Sort. - * @implements ISort + * @classdesc Represents a Resource. + * @implements IResource * @constructor - * @param {flyteidl.admin.ISort=} [properties] Properties to set + * @param {flyteidl.admin.IResource=} [properties] Properties to set */ - function Sort(properties) { + function Resource(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18868,75 +18826,75 @@ } /** - * Sort key. - * @member {string} key - * @memberof flyteidl.admin.Sort + * Resource state. + * @member {flyteidl.admin.State} state + * @memberof flyteidl.admin.Resource * @instance */ - Sort.prototype.key = ""; + Resource.prototype.state = 0; /** - * Sort direction. - * @member {flyteidl.admin.Sort.Direction} direction - * @memberof flyteidl.admin.Sort + * Resource outputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} outputs + * @memberof flyteidl.admin.Resource * @instance */ - Sort.prototype.direction = 0; + Resource.prototype.outputs = null; /** - * Creates a new Sort instance using the specified properties. + * Creates a new Resource instance using the specified properties. * @function create - * @memberof flyteidl.admin.Sort + * @memberof flyteidl.admin.Resource * @static - * @param {flyteidl.admin.ISort=} [properties] Properties to set - * @returns {flyteidl.admin.Sort} Sort instance + * @param {flyteidl.admin.IResource=} [properties] Properties to set + * @returns {flyteidl.admin.Resource} Resource instance */ - Sort.create = function create(properties) { - return new Sort(properties); + Resource.create = function create(properties) { + return new Resource(properties); }; /** - * Encodes the specified Sort message. Does not implicitly {@link flyteidl.admin.Sort.verify|verify} messages. + * Encodes the specified Resource message. Does not implicitly {@link flyteidl.admin.Resource.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.Sort + * @memberof flyteidl.admin.Resource * @static - * @param {flyteidl.admin.ISort} message Sort message or plain object to encode + * @param {flyteidl.admin.IResource} message Resource message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Sort.encode = function encode(message, writer) { + Resource.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); + 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 Sort message from the specified reader or buffer. + * Decodes a Resource message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.Sort + * @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.Sort} Sort + * @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 */ - Sort.decode = function decode(reader, length) { + 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.Sort(); + 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.key = reader.string(); + message.state = reader.int32(); break; case 2: - message.direction = reader.int32(); + message.outputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -18947,70 +18905,57 @@ }; /** - * Verifies a Sort message. + * Verifies a Resource message. * @function verify - * @memberof flyteidl.admin.Sort + * @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 */ - Sort.verify = function verify(message) { + Resource.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) { + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { default: - return "direction: enum value expected"; + 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; }; - /** - * 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; + return Resource; })(); - admin.NamedEntityIdentifierListRequest = (function() { + admin.DeleteTaskRequest = (function() { /** - * Properties of a NamedEntityIdentifierListRequest. + * Properties of a DeleteTaskRequest. * @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 + * @interface IDeleteTaskRequest + * @property {string|null} [taskType] DeleteTaskRequest taskType + * @property {Uint8Array|null} [resourceMeta] DeleteTaskRequest resourceMeta */ /** - * Constructs a new NamedEntityIdentifierListRequest. + * Constructs a new DeleteTaskRequest. * @memberof flyteidl.admin - * @classdesc Represents a NamedEntityIdentifierListRequest. - * @implements INamedEntityIdentifierListRequest + * @classdesc Represents a DeleteTaskRequest. + * @implements IDeleteTaskRequest * @constructor - * @param {flyteidl.admin.INamedEntityIdentifierListRequest=} [properties] Properties to set + * @param {flyteidl.admin.IDeleteTaskRequest=} [properties] Properties to set */ - function NamedEntityIdentifierListRequest(properties) { + function DeleteTaskRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19018,127 +18963,75 @@ } /** - * 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 + * DeleteTaskRequest taskType. + * @member {string} taskType + * @memberof flyteidl.admin.DeleteTaskRequest * @instance */ - NamedEntityIdentifierListRequest.prototype.sortBy = null; + DeleteTaskRequest.prototype.taskType = ""; /** - * NamedEntityIdentifierListRequest filters. - * @member {string} filters - * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * DeleteTaskRequest resourceMeta. + * @member {Uint8Array} resourceMeta + * @memberof flyteidl.admin.DeleteTaskRequest * @instance */ - NamedEntityIdentifierListRequest.prototype.filters = ""; + DeleteTaskRequest.prototype.resourceMeta = $util.newBuffer([]); /** - * Creates a new NamedEntityIdentifierListRequest instance using the specified properties. + * Creates a new DeleteTaskRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @memberof flyteidl.admin.DeleteTaskRequest * @static - * @param {flyteidl.admin.INamedEntityIdentifierListRequest=} [properties] Properties to set - * @returns {flyteidl.admin.NamedEntityIdentifierListRequest} NamedEntityIdentifierListRequest instance + * @param {flyteidl.admin.IDeleteTaskRequest=} [properties] Properties to set + * @returns {flyteidl.admin.DeleteTaskRequest} DeleteTaskRequest instance */ - NamedEntityIdentifierListRequest.create = function create(properties) { - return new NamedEntityIdentifierListRequest(properties); + DeleteTaskRequest.create = function create(properties) { + return new DeleteTaskRequest(properties); }; /** - * Encodes the specified NamedEntityIdentifierListRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifierListRequest.verify|verify} messages. + * Encodes the specified DeleteTaskRequest message. Does not implicitly {@link flyteidl.admin.DeleteTaskRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @memberof flyteidl.admin.DeleteTaskRequest * @static - * @param {flyteidl.admin.INamedEntityIdentifierListRequest} message NamedEntityIdentifierListRequest message or plain object to encode + * @param {flyteidl.admin.IDeleteTaskRequest} message DeleteTaskRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NamedEntityIdentifierListRequest.encode = function encode(message, writer) { + DeleteTaskRequest.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.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); return writer; }; /** - * Decodes a NamedEntityIdentifierListRequest message from the specified reader or buffer. + * Decodes a DeleteTaskRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @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.NamedEntityIdentifierListRequest} NamedEntityIdentifierListRequest + * @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 */ - NamedEntityIdentifierListRequest.decode = function decode(reader, length) { + 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.NamedEntityIdentifierListRequest(); + 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.project = reader.string(); + message.taskType = 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(); + message.resourceMeta = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -19149,66 +19042,45 @@ }; /** - * Verifies a NamedEntityIdentifierListRequest message. + * Verifies a DeleteTaskRequest message. * @function verify - * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @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 */ - NamedEntityIdentifierListRequest.verify = function verify(message) { + DeleteTaskRequest.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.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"; return null; }; - return NamedEntityIdentifierListRequest; + return DeleteTaskRequest; })(); - admin.NamedEntityListRequest = (function() { + admin.DeleteTaskResponse = (function() { /** - * Properties of a NamedEntityListRequest. + * Properties of a DeleteTaskResponse. * @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 + * @interface IDeleteTaskResponse */ /** - * Constructs a new NamedEntityListRequest. + * Constructs a new DeleteTaskResponse. * @memberof flyteidl.admin - * @classdesc Represents a NamedEntityListRequest. - * @implements INamedEntityListRequest + * @classdesc Represents a DeleteTaskResponse. + * @implements IDeleteTaskResponse * @constructor - * @param {flyteidl.admin.INamedEntityListRequest=} [properties] Properties to set + * @param {flyteidl.admin.IDeleteTaskResponse=} [properties] Properties to set */ - function NamedEntityListRequest(properties) { + function DeleteTaskResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19216,141 +19088,50 @@ } /** - * 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 = ""; - - /** - * Creates a new NamedEntityListRequest instance using the specified properties. + * Creates a new DeleteTaskResponse instance using the specified properties. * @function create - * @memberof flyteidl.admin.NamedEntityListRequest + * @memberof flyteidl.admin.DeleteTaskResponse * @static - * @param {flyteidl.admin.INamedEntityListRequest=} [properties] Properties to set - * @returns {flyteidl.admin.NamedEntityListRequest} NamedEntityListRequest instance + * @param {flyteidl.admin.IDeleteTaskResponse=} [properties] Properties to set + * @returns {flyteidl.admin.DeleteTaskResponse} DeleteTaskResponse instance */ - NamedEntityListRequest.create = function create(properties) { - return new NamedEntityListRequest(properties); + DeleteTaskResponse.create = function create(properties) { + return new DeleteTaskResponse(properties); }; /** - * Encodes the specified NamedEntityListRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityListRequest.verify|verify} messages. + * Encodes the specified DeleteTaskResponse message. Does not implicitly {@link flyteidl.admin.DeleteTaskResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.NamedEntityListRequest + * @memberof flyteidl.admin.DeleteTaskResponse * @static - * @param {flyteidl.admin.INamedEntityListRequest} message NamedEntityListRequest message or plain object to encode + * @param {flyteidl.admin.IDeleteTaskResponse} message DeleteTaskResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NamedEntityListRequest.encode = function encode(message, writer) { + DeleteTaskResponse.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); return writer; }; /** - * Decodes a NamedEntityListRequest message from the specified reader or buffer. + * Decodes a DeleteTaskResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.NamedEntityListRequest + * @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.NamedEntityListRequest} NamedEntityListRequest + * @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 */ - NamedEntityListRequest.decode = function decode(reader, length) { + 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.NamedEntityListRequest(); + 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) { - 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; default: reader.skipType(tag & 7); break; @@ -19360,73 +19141,40 @@ }; /** - * Verifies a NamedEntityListRequest message. + * Verifies a DeleteTaskResponse message. * @function verify - * @memberof flyteidl.admin.NamedEntityListRequest + * @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 */ - NamedEntityListRequest.verify = function verify(message) { + DeleteTaskResponse.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"; return null; }; - return NamedEntityListRequest; + return DeleteTaskResponse; })(); - admin.NamedEntityIdentifierList = (function() { + admin.ClusterAssignment = (function() { /** - * Properties of a NamedEntityIdentifierList. + * Properties of a ClusterAssignment. * @memberof flyteidl.admin - * @interface INamedEntityIdentifierList - * @property {Array.|null} [entities] NamedEntityIdentifierList entities - * @property {string|null} [token] NamedEntityIdentifierList token + * @interface IClusterAssignment + * @property {string|null} [clusterPoolName] ClusterAssignment clusterPoolName */ /** - * Constructs a new NamedEntityIdentifierList. + * Constructs a new ClusterAssignment. * @memberof flyteidl.admin - * @classdesc Represents a NamedEntityIdentifierList. - * @implements INamedEntityIdentifierList + * @classdesc Represents a ClusterAssignment. + * @implements IClusterAssignment * @constructor - * @param {flyteidl.admin.INamedEntityIdentifierList=} [properties] Properties to set + * @param {flyteidl.admin.IClusterAssignment=} [properties] Properties to set */ - function NamedEntityIdentifierList(properties) { - this.entities = []; + function ClusterAssignment(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19434,78 +19182,62 @@ } /** - * NamedEntityIdentifierList entities. - * @member {Array.} entities - * @memberof flyteidl.admin.NamedEntityIdentifierList - * @instance - */ - NamedEntityIdentifierList.prototype.entities = $util.emptyArray; - - /** - * NamedEntityIdentifierList token. - * @member {string} token - * @memberof flyteidl.admin.NamedEntityIdentifierList + * ClusterAssignment clusterPoolName. + * @member {string} clusterPoolName + * @memberof flyteidl.admin.ClusterAssignment * @instance */ - NamedEntityIdentifierList.prototype.token = ""; + ClusterAssignment.prototype.clusterPoolName = ""; /** - * Creates a new NamedEntityIdentifierList instance using the specified properties. + * Creates a new ClusterAssignment instance using the specified properties. * @function create - * @memberof flyteidl.admin.NamedEntityIdentifierList + * @memberof flyteidl.admin.ClusterAssignment * @static - * @param {flyteidl.admin.INamedEntityIdentifierList=} [properties] Properties to set - * @returns {flyteidl.admin.NamedEntityIdentifierList} NamedEntityIdentifierList instance + * @param {flyteidl.admin.IClusterAssignment=} [properties] Properties to set + * @returns {flyteidl.admin.ClusterAssignment} ClusterAssignment instance */ - NamedEntityIdentifierList.create = function create(properties) { - return new NamedEntityIdentifierList(properties); + ClusterAssignment.create = function create(properties) { + return new ClusterAssignment(properties); }; /** - * Encodes the specified NamedEntityIdentifierList message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifierList.verify|verify} messages. + * Encodes the specified ClusterAssignment message. Does not implicitly {@link flyteidl.admin.ClusterAssignment.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.NamedEntityIdentifierList + * @memberof flyteidl.admin.ClusterAssignment * @static - * @param {flyteidl.admin.INamedEntityIdentifierList} message NamedEntityIdentifierList message or plain object to encode + * @param {flyteidl.admin.IClusterAssignment} message ClusterAssignment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NamedEntityIdentifierList.encode = function encode(message, writer) { + ClusterAssignment.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); + if (message.clusterPoolName != null && message.hasOwnProperty("clusterPoolName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterPoolName); return writer; }; /** - * Decodes a NamedEntityIdentifierList message from the specified reader or buffer. + * Decodes a ClusterAssignment message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.NamedEntityIdentifierList + * @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.NamedEntityIdentifierList} NamedEntityIdentifierList + * @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 */ - NamedEntityIdentifierList.decode = function decode(reader, length) { + 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.NamedEntityIdentifierList(); + 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 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(); + case 3: + message.clusterPoolName = reader.string(); break; default: reader.skipType(tag & 7); @@ -19516,54 +19248,45 @@ }; /** - * Verifies a NamedEntityIdentifierList message. + * Verifies a ClusterAssignment message. * @function verify - * @memberof flyteidl.admin.NamedEntityIdentifierList + * @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 */ - NamedEntityIdentifierList.verify = function verify(message) { + ClusterAssignment.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"; + if (message.clusterPoolName != null && message.hasOwnProperty("clusterPoolName")) + if (!$util.isString(message.clusterPoolName)) + return "clusterPoolName: string expected"; return null; }; - return NamedEntityIdentifierList; + return ClusterAssignment; })(); - admin.NamedEntityList = (function() { + admin.NamedEntityIdentifier = (function() { /** - * Properties of a NamedEntityList. + * Properties of a NamedEntityIdentifier. * @memberof flyteidl.admin - * @interface INamedEntityList - * @property {Array.|null} [entities] NamedEntityList entities - * @property {string|null} [token] NamedEntityList token + * @interface INamedEntityIdentifier + * @property {string|null} [project] NamedEntityIdentifier project + * @property {string|null} [domain] NamedEntityIdentifier domain + * @property {string|null} [name] NamedEntityIdentifier name */ /** - * Constructs a new NamedEntityList. + * Constructs a new NamedEntityIdentifier. * @memberof flyteidl.admin - * @classdesc Represents a NamedEntityList. - * @implements INamedEntityList + * @classdesc Represents a NamedEntityIdentifier. + * @implements INamedEntityIdentifier * @constructor - * @param {flyteidl.admin.INamedEntityList=} [properties] Properties to set + * @param {flyteidl.admin.INamedEntityIdentifier=} [properties] Properties to set */ - function NamedEntityList(properties) { - this.entities = []; + function NamedEntityIdentifier(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19571,78 +19294,88 @@ } /** - * NamedEntityList entities. - * @member {Array.} entities - * @memberof flyteidl.admin.NamedEntityList + * NamedEntityIdentifier project. + * @member {string} project + * @memberof flyteidl.admin.NamedEntityIdentifier * @instance */ - NamedEntityList.prototype.entities = $util.emptyArray; + NamedEntityIdentifier.prototype.project = ""; /** - * NamedEntityList token. - * @member {string} token - * @memberof flyteidl.admin.NamedEntityList + * NamedEntityIdentifier domain. + * @member {string} domain + * @memberof flyteidl.admin.NamedEntityIdentifier * @instance */ - NamedEntityList.prototype.token = ""; + NamedEntityIdentifier.prototype.domain = ""; /** - * Creates a new NamedEntityList instance using the specified properties. + * NamedEntityIdentifier name. + * @member {string} name + * @memberof flyteidl.admin.NamedEntityIdentifier + * @instance + */ + NamedEntityIdentifier.prototype.name = ""; + + /** + * Creates a new NamedEntityIdentifier instance using the specified properties. * @function create - * @memberof flyteidl.admin.NamedEntityList + * @memberof flyteidl.admin.NamedEntityIdentifier * @static - * @param {flyteidl.admin.INamedEntityList=} [properties] Properties to set - * @returns {flyteidl.admin.NamedEntityList} NamedEntityList instance + * @param {flyteidl.admin.INamedEntityIdentifier=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntityIdentifier} NamedEntityIdentifier instance */ - NamedEntityList.create = function create(properties) { - return new NamedEntityList(properties); + NamedEntityIdentifier.create = function create(properties) { + return new NamedEntityIdentifier(properties); }; /** - * Encodes the specified NamedEntityList message. Does not implicitly {@link flyteidl.admin.NamedEntityList.verify|verify} messages. + * Encodes the specified NamedEntityIdentifier message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifier.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.NamedEntityList + * @memberof flyteidl.admin.NamedEntityIdentifier * @static - * @param {flyteidl.admin.INamedEntityList} message NamedEntityList message or plain object to encode + * @param {flyteidl.admin.INamedEntityIdentifier} message NamedEntityIdentifier message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NamedEntityList.encode = function encode(message, writer) { + NamedEntityIdentifier.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); + 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); return writer; }; /** - * Decodes a NamedEntityList message from the specified reader or buffer. + * Decodes a NamedEntityIdentifier message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.NamedEntityList + * @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.NamedEntityList} NamedEntityList + * @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 */ - NamedEntityList.decode = function decode(reader, length) { + 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.NamedEntityList(); + 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: - if (!(message.entities && message.entities.length)) - message.entities = []; - message.entities.push($root.flyteidl.admin.NamedEntity.decode(reader, reader.uint32())); + message.project = reader.string(); break; case 2: - message.token = reader.string(); + message.domain = reader.string(); + break; + case 3: + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -19653,53 +19386,66 @@ }; /** - * Verifies a NamedEntityList message. + * Verifies a NamedEntityIdentifier message. * @function verify - * @memberof flyteidl.admin.NamedEntityList + * @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 */ - NamedEntityList.verify = function verify(message) { + NamedEntityIdentifier.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"; + 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"; return null; }; - return NamedEntityList; + return NamedEntityIdentifier; })(); - admin.NamedEntityGetRequest = (function() { + /** + * 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 NamedEntityGetRequest. + * Properties of a NamedEntityMetadata. * @memberof flyteidl.admin - * @interface INamedEntityGetRequest - * @property {flyteidl.core.ResourceType|null} [resourceType] NamedEntityGetRequest resourceType - * @property {flyteidl.admin.INamedEntityIdentifier|null} [id] NamedEntityGetRequest id + * @interface INamedEntityMetadata + * @property {string|null} [description] NamedEntityMetadata description + * @property {flyteidl.admin.NamedEntityState|null} [state] NamedEntityMetadata state */ /** - * Constructs a new NamedEntityGetRequest. + * Constructs a new NamedEntityMetadata. * @memberof flyteidl.admin - * @classdesc Represents a NamedEntityGetRequest. - * @implements INamedEntityGetRequest + * @classdesc Represents a NamedEntityMetadata. + * @implements INamedEntityMetadata * @constructor - * @param {flyteidl.admin.INamedEntityGetRequest=} [properties] Properties to set + * @param {flyteidl.admin.INamedEntityMetadata=} [properties] Properties to set */ - function NamedEntityGetRequest(properties) { + function NamedEntityMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19707,75 +19453,75 @@ } /** - * NamedEntityGetRequest resourceType. - * @member {flyteidl.core.ResourceType} resourceType - * @memberof flyteidl.admin.NamedEntityGetRequest + * NamedEntityMetadata description. + * @member {string} description + * @memberof flyteidl.admin.NamedEntityMetadata * @instance */ - NamedEntityGetRequest.prototype.resourceType = 0; + NamedEntityMetadata.prototype.description = ""; /** - * NamedEntityGetRequest id. - * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id - * @memberof flyteidl.admin.NamedEntityGetRequest + * NamedEntityMetadata state. + * @member {flyteidl.admin.NamedEntityState} state + * @memberof flyteidl.admin.NamedEntityMetadata * @instance */ - NamedEntityGetRequest.prototype.id = null; + NamedEntityMetadata.prototype.state = 0; /** - * Creates a new NamedEntityGetRequest instance using the specified properties. + * Creates a new NamedEntityMetadata instance using the specified properties. * @function create - * @memberof flyteidl.admin.NamedEntityGetRequest + * @memberof flyteidl.admin.NamedEntityMetadata * @static - * @param {flyteidl.admin.INamedEntityGetRequest=} [properties] Properties to set - * @returns {flyteidl.admin.NamedEntityGetRequest} NamedEntityGetRequest instance + * @param {flyteidl.admin.INamedEntityMetadata=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntityMetadata} NamedEntityMetadata instance */ - NamedEntityGetRequest.create = function create(properties) { - return new NamedEntityGetRequest(properties); + NamedEntityMetadata.create = function create(properties) { + return new NamedEntityMetadata(properties); }; /** - * Encodes the specified NamedEntityGetRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityGetRequest.verify|verify} messages. + * Encodes the specified NamedEntityMetadata message. Does not implicitly {@link flyteidl.admin.NamedEntityMetadata.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.NamedEntityGetRequest + * @memberof flyteidl.admin.NamedEntityMetadata * @static - * @param {flyteidl.admin.INamedEntityGetRequest} message NamedEntityGetRequest message or plain object to encode + * @param {flyteidl.admin.INamedEntityMetadata} message NamedEntityMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NamedEntityGetRequest.encode = function encode(message, writer) { + NamedEntityMetadata.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.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 NamedEntityGetRequest message from the specified reader or buffer. + * Decodes a NamedEntityMetadata message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.NamedEntityGetRequest + * @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.NamedEntityGetRequest} NamedEntityGetRequest + * @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 */ - NamedEntityGetRequest.decode = function decode(reader, length) { + 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.NamedEntityGetRequest(); + 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.resourceType = reader.int32(); + message.description = reader.string(); break; case 2: - message.id = $root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32()); + message.state = reader.int32(); break; default: reader.skipType(tag & 7); @@ -19786,58 +19532,54 @@ }; /** - * Verifies a NamedEntityGetRequest message. + * Verifies a NamedEntityMetadata message. * @function verify - * @memberof flyteidl.admin.NamedEntityGetRequest + * @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 */ - NamedEntityGetRequest.verify = function verify(message) { + NamedEntityMetadata.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: + 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: - 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; + return NamedEntityMetadata; })(); - admin.NamedEntityUpdateRequest = (function() { + admin.NamedEntity = (function() { /** - * Properties of a NamedEntityUpdateRequest. + * Properties of a NamedEntity. * @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 + * @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 NamedEntityUpdateRequest. + * Constructs a new NamedEntity. * @memberof flyteidl.admin - * @classdesc Represents a NamedEntityUpdateRequest. - * @implements INamedEntityUpdateRequest + * @classdesc Represents a NamedEntity. + * @implements INamedEntity * @constructor - * @param {flyteidl.admin.INamedEntityUpdateRequest=} [properties] Properties to set + * @param {flyteidl.admin.INamedEntity=} [properties] Properties to set */ - function NamedEntityUpdateRequest(properties) { + function NamedEntity(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19845,51 +19587,51 @@ } /** - * NamedEntityUpdateRequest resourceType. + * NamedEntity resourceType. * @member {flyteidl.core.ResourceType} resourceType - * @memberof flyteidl.admin.NamedEntityUpdateRequest + * @memberof flyteidl.admin.NamedEntity * @instance */ - NamedEntityUpdateRequest.prototype.resourceType = 0; + NamedEntity.prototype.resourceType = 0; /** - * NamedEntityUpdateRequest id. + * NamedEntity id. * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id - * @memberof flyteidl.admin.NamedEntityUpdateRequest + * @memberof flyteidl.admin.NamedEntity * @instance */ - NamedEntityUpdateRequest.prototype.id = null; + NamedEntity.prototype.id = null; /** - * NamedEntityUpdateRequest metadata. + * NamedEntity metadata. * @member {flyteidl.admin.INamedEntityMetadata|null|undefined} metadata - * @memberof flyteidl.admin.NamedEntityUpdateRequest + * @memberof flyteidl.admin.NamedEntity * @instance */ - NamedEntityUpdateRequest.prototype.metadata = null; + NamedEntity.prototype.metadata = null; /** - * Creates a new NamedEntityUpdateRequest instance using the specified properties. + * Creates a new NamedEntity instance using the specified properties. * @function create - * @memberof flyteidl.admin.NamedEntityUpdateRequest + * @memberof flyteidl.admin.NamedEntity * @static - * @param {flyteidl.admin.INamedEntityUpdateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.NamedEntityUpdateRequest} NamedEntityUpdateRequest instance + * @param {flyteidl.admin.INamedEntity=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntity} NamedEntity instance */ - NamedEntityUpdateRequest.create = function create(properties) { - return new NamedEntityUpdateRequest(properties); + NamedEntity.create = function create(properties) { + return new NamedEntity(properties); }; /** - * Encodes the specified NamedEntityUpdateRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityUpdateRequest.verify|verify} messages. + * Encodes the specified NamedEntity message. Does not implicitly {@link flyteidl.admin.NamedEntity.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.NamedEntityUpdateRequest + * @memberof flyteidl.admin.NamedEntity * @static - * @param {flyteidl.admin.INamedEntityUpdateRequest} message NamedEntityUpdateRequest message or plain object to encode + * @param {flyteidl.admin.INamedEntity} message NamedEntity message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NamedEntityUpdateRequest.encode = function encode(message, writer) { + NamedEntity.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.resourceType != null && message.hasOwnProperty("resourceType")) @@ -19902,20 +19644,20 @@ }; /** - * Decodes a NamedEntityUpdateRequest message from the specified reader or buffer. + * Decodes a NamedEntity message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.NamedEntityUpdateRequest + * @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.NamedEntityUpdateRequest} NamedEntityUpdateRequest + * @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 */ - NamedEntityUpdateRequest.decode = function decode(reader, length) { + 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.NamedEntityUpdateRequest(); + 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) { @@ -19937,14 +19679,14 @@ }; /** - * Verifies a NamedEntityUpdateRequest message. + * Verifies a NamedEntity message. * @function verify - * @memberof flyteidl.admin.NamedEntityUpdateRequest + * @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 */ - NamedEntityUpdateRequest.verify = function verify(message) { + NamedEntity.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.resourceType != null && message.hasOwnProperty("resourceType")) @@ -19971,26 +19713,28 @@ return null; }; - return NamedEntityUpdateRequest; + return NamedEntity; })(); - admin.NamedEntityUpdateResponse = (function() { + admin.Sort = (function() { /** - * Properties of a NamedEntityUpdateResponse. + * Properties of a Sort. * @memberof flyteidl.admin - * @interface INamedEntityUpdateResponse + * @interface ISort + * @property {string|null} [key] Sort key + * @property {flyteidl.admin.Sort.Direction|null} [direction] Sort direction */ /** - * Constructs a new NamedEntityUpdateResponse. + * Constructs a new Sort. * @memberof flyteidl.admin - * @classdesc Represents a NamedEntityUpdateResponse. - * @implements INamedEntityUpdateResponse + * @classdesc Represents a Sort. + * @implements ISort * @constructor - * @param {flyteidl.admin.INamedEntityUpdateResponse=} [properties] Properties to set + * @param {flyteidl.admin.ISort=} [properties] Properties to set */ - function NamedEntityUpdateResponse(properties) { + function Sort(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19998,50 +19742,76 @@ } /** - * Creates a new NamedEntityUpdateResponse instance using the specified properties. + * 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.NamedEntityUpdateResponse + * @memberof flyteidl.admin.Sort * @static - * @param {flyteidl.admin.INamedEntityUpdateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.NamedEntityUpdateResponse} NamedEntityUpdateResponse instance + * @param {flyteidl.admin.ISort=} [properties] Properties to set + * @returns {flyteidl.admin.Sort} Sort instance */ - NamedEntityUpdateResponse.create = function create(properties) { - return new NamedEntityUpdateResponse(properties); + Sort.create = function create(properties) { + return new Sort(properties); }; /** - * Encodes the specified NamedEntityUpdateResponse message. Does not implicitly {@link flyteidl.admin.NamedEntityUpdateResponse.verify|verify} messages. + * Encodes the specified Sort message. Does not implicitly {@link flyteidl.admin.Sort.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.NamedEntityUpdateResponse + * @memberof flyteidl.admin.Sort * @static - * @param {flyteidl.admin.INamedEntityUpdateResponse} message NamedEntityUpdateResponse message or plain object to encode + * @param {flyteidl.admin.ISort} message Sort message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NamedEntityUpdateResponse.encode = function encode(message, 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 NamedEntityUpdateResponse message from the specified reader or buffer. + * Decodes a Sort message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.NamedEntityUpdateResponse + * @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.NamedEntityUpdateResponse} NamedEntityUpdateResponse + * @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 */ - NamedEntityUpdateResponse.decode = function decode(reader, length) { + 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.NamedEntityUpdateResponse(); + 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; @@ -20051,40 +19821,70 @@ }; /** - * Verifies a NamedEntityUpdateResponse message. + * Verifies a Sort message. * @function verify - * @memberof flyteidl.admin.NamedEntityUpdateResponse + * @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 */ - NamedEntityUpdateResponse.verify = function verify(message) { + 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; }; - return NamedEntityUpdateResponse; + /** + * 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.ObjectGetRequest = (function() { + admin.NamedEntityIdentifierListRequest = (function() { /** - * Properties of an ObjectGetRequest. + * Properties of a NamedEntityIdentifierListRequest. * @memberof flyteidl.admin - * @interface IObjectGetRequest - * @property {flyteidl.core.IIdentifier|null} [id] ObjectGetRequest id + * @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 */ /** - * Constructs a new ObjectGetRequest. + * Constructs a new NamedEntityIdentifierListRequest. * @memberof flyteidl.admin - * @classdesc Represents an ObjectGetRequest. - * @implements IObjectGetRequest + * @classdesc Represents a NamedEntityIdentifierListRequest. + * @implements INamedEntityIdentifierListRequest * @constructor - * @param {flyteidl.admin.IObjectGetRequest=} [properties] Properties to set + * @param {flyteidl.admin.INamedEntityIdentifierListRequest=} [properties] Properties to set */ - function ObjectGetRequest(properties) { + function NamedEntityIdentifierListRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20092,62 +19892,127 @@ } /** - * ObjectGetRequest id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.admin.ObjectGetRequest + * NamedEntityIdentifierListRequest project. + * @member {string} project + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest * @instance */ - ObjectGetRequest.prototype.id = null; + NamedEntityIdentifierListRequest.prototype.project = ""; /** - * 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 + * NamedEntityIdentifierListRequest domain. + * @member {string} domain + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @instance */ - ObjectGetRequest.create = function create(properties) { - return new ObjectGetRequest(properties); - }; + NamedEntityIdentifierListRequest.prototype.domain = ""; /** - * 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) { + * 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 = ""; + + /** + * 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.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + 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); return writer; }; /** - * Decodes an ObjectGetRequest message from the specified reader or buffer. + * Decodes a NamedEntityIdentifierListRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ObjectGetRequest + * @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.ObjectGetRequest} ObjectGetRequest + * @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 */ - ObjectGetRequest.decode = function decode(reader, length) { + 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.ObjectGetRequest(); + 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.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + 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; default: reader.skipType(tag & 7); @@ -20158,49 +20023,66 @@ }; /** - * Verifies an ObjectGetRequest message. + * Verifies a NamedEntityIdentifierListRequest message. * @function verify - * @memberof flyteidl.admin.ObjectGetRequest + * @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 */ - ObjectGetRequest.verify = function verify(message) { + NamedEntityIdentifierListRequest.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 (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 "id." + error; + return "sortBy." + error; } + if (message.filters != null && message.hasOwnProperty("filters")) + if (!$util.isString(message.filters)) + return "filters: string expected"; return null; }; - return ObjectGetRequest; + return NamedEntityIdentifierListRequest; })(); - admin.ResourceListRequest = (function() { + admin.NamedEntityListRequest = (function() { /** - * Properties of a ResourceListRequest. + * Properties of a NamedEntityListRequest. * @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 + * @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 */ /** - * Constructs a new ResourceListRequest. + * Constructs a new NamedEntityListRequest. * @memberof flyteidl.admin - * @classdesc Represents a ResourceListRequest. - * @implements IResourceListRequest + * @classdesc Represents a NamedEntityListRequest. + * @implements INamedEntityListRequest * @constructor - * @param {flyteidl.admin.IResourceListRequest=} [properties] Properties to set + * @param {flyteidl.admin.INamedEntityListRequest=} [properties] Properties to set */ - function ResourceListRequest(properties) { + function NamedEntityListRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20208,115 +20090,141 @@ } /** - * ResourceListRequest id. - * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id - * @memberof flyteidl.admin.ResourceListRequest + * NamedEntityListRequest resourceType. + * @member {flyteidl.core.ResourceType} resourceType + * @memberof flyteidl.admin.NamedEntityListRequest * @instance */ - ResourceListRequest.prototype.id = null; + NamedEntityListRequest.prototype.resourceType = 0; /** - * ResourceListRequest limit. + * 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.ResourceListRequest + * @memberof flyteidl.admin.NamedEntityListRequest * @instance */ - ResourceListRequest.prototype.limit = 0; + NamedEntityListRequest.prototype.limit = 0; /** - * ResourceListRequest token. + * NamedEntityListRequest token. * @member {string} token - * @memberof flyteidl.admin.ResourceListRequest + * @memberof flyteidl.admin.NamedEntityListRequest * @instance */ - ResourceListRequest.prototype.token = ""; + NamedEntityListRequest.prototype.token = ""; /** - * ResourceListRequest filters. - * @member {string} filters - * @memberof flyteidl.admin.ResourceListRequest + * NamedEntityListRequest sortBy. + * @member {flyteidl.admin.ISort|null|undefined} sortBy + * @memberof flyteidl.admin.NamedEntityListRequest * @instance */ - ResourceListRequest.prototype.filters = ""; + NamedEntityListRequest.prototype.sortBy = null; /** - * ResourceListRequest sortBy. - * @member {flyteidl.admin.ISort|null|undefined} sortBy - * @memberof flyteidl.admin.ResourceListRequest + * NamedEntityListRequest filters. + * @member {string} filters + * @memberof flyteidl.admin.NamedEntityListRequest * @instance */ - ResourceListRequest.prototype.sortBy = null; + NamedEntityListRequest.prototype.filters = ""; /** - * Creates a new ResourceListRequest instance using the specified properties. + * Creates a new NamedEntityListRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.ResourceListRequest + * @memberof flyteidl.admin.NamedEntityListRequest * @static - * @param {flyteidl.admin.IResourceListRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ResourceListRequest} ResourceListRequest instance + * @param {flyteidl.admin.INamedEntityListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntityListRequest} NamedEntityListRequest instance */ - ResourceListRequest.create = function create(properties) { - return new ResourceListRequest(properties); + NamedEntityListRequest.create = function create(properties) { + return new NamedEntityListRequest(properties); }; /** - * Encodes the specified ResourceListRequest message. Does not implicitly {@link flyteidl.admin.ResourceListRequest.verify|verify} messages. + * Encodes the specified NamedEntityListRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityListRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ResourceListRequest + * @memberof flyteidl.admin.NamedEntityListRequest * @static - * @param {flyteidl.admin.IResourceListRequest} message ResourceListRequest message or plain object to encode + * @param {flyteidl.admin.INamedEntityListRequest} message NamedEntityListRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResourceListRequest.encode = function encode(message, writer) { + NamedEntityListRequest.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.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 2, wireType 0 =*/16).uint32(message.limit); + writer.uint32(/* id 4, wireType 0 =*/32).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); + 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 5, wireType 2 =*/42).fork()).ldelim(); + $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); return writer; }; /** - * Decodes a ResourceListRequest message from the specified reader or buffer. + * Decodes a NamedEntityListRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ResourceListRequest + * @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.ResourceListRequest} ResourceListRequest + * @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 */ - ResourceListRequest.decode = function decode(reader, length) { + 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.ResourceListRequest(); + 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.id = $root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32()); + message.resourceType = reader.int32(); break; case 2: - message.limit = reader.uint32(); + message.project = reader.string(); break; case 3: - message.token = reader.string(); + message.domain = reader.string(); break; case 4: - message.filters = reader.string(); + 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; default: reader.skipType(tag & 7); break; @@ -20326,60 +20234,73 @@ }; /** - * Verifies a ResourceListRequest message. + * Verifies a NamedEntityListRequest message. * @function verify - * @memberof flyteidl.admin.ResourceListRequest + * @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 */ - ResourceListRequest.verify = function verify(message) { + NamedEntityListRequest.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.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.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.filters != null && message.hasOwnProperty("filters")) + if (!$util.isString(message.filters)) + return "filters: string expected"; return null; }; - return ResourceListRequest; + return NamedEntityListRequest; })(); - admin.EmailNotification = (function() { + admin.NamedEntityIdentifierList = (function() { /** - * Properties of an EmailNotification. + * Properties of a NamedEntityIdentifierList. * @memberof flyteidl.admin - * @interface IEmailNotification - * @property {Array.|null} [recipientsEmail] EmailNotification recipientsEmail + * @interface INamedEntityIdentifierList + * @property {Array.|null} [entities] NamedEntityIdentifierList entities + * @property {string|null} [token] NamedEntityIdentifierList token */ /** - * Constructs a new EmailNotification. + * Constructs a new NamedEntityIdentifierList. * @memberof flyteidl.admin - * @classdesc Represents an EmailNotification. - * @implements IEmailNotification + * @classdesc Represents a NamedEntityIdentifierList. + * @implements INamedEntityIdentifierList * @constructor - * @param {flyteidl.admin.IEmailNotification=} [properties] Properties to set + * @param {flyteidl.admin.INamedEntityIdentifierList=} [properties] Properties to set */ - function EmailNotification(properties) { - this.recipientsEmail = []; + function NamedEntityIdentifierList(properties) { + this.entities = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20387,65 +20308,78 @@ } /** - * EmailNotification recipientsEmail. - * @member {Array.} recipientsEmail - * @memberof flyteidl.admin.EmailNotification + * NamedEntityIdentifierList entities. + * @member {Array.} entities + * @memberof flyteidl.admin.NamedEntityIdentifierList * @instance */ - EmailNotification.prototype.recipientsEmail = $util.emptyArray; + NamedEntityIdentifierList.prototype.entities = $util.emptyArray; /** - * Creates a new EmailNotification instance using the specified properties. + * 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.EmailNotification + * @memberof flyteidl.admin.NamedEntityIdentifierList * @static - * @param {flyteidl.admin.IEmailNotification=} [properties] Properties to set - * @returns {flyteidl.admin.EmailNotification} EmailNotification instance + * @param {flyteidl.admin.INamedEntityIdentifierList=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntityIdentifierList} NamedEntityIdentifierList instance */ - EmailNotification.create = function create(properties) { - return new EmailNotification(properties); + NamedEntityIdentifierList.create = function create(properties) { + return new NamedEntityIdentifierList(properties); }; /** - * Encodes the specified EmailNotification message. Does not implicitly {@link flyteidl.admin.EmailNotification.verify|verify} messages. + * Encodes the specified NamedEntityIdentifierList message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifierList.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.EmailNotification + * @memberof flyteidl.admin.NamedEntityIdentifierList * @static - * @param {flyteidl.admin.IEmailNotification} message EmailNotification message or plain object to encode + * @param {flyteidl.admin.INamedEntityIdentifierList} message NamedEntityIdentifierList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EmailNotification.encode = function encode(message, writer) { + NamedEntityIdentifierList.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.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 an EmailNotification message from the specified reader or buffer. + * Decodes a NamedEntityIdentifierList message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.EmailNotification + * @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.EmailNotification} EmailNotification + * @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 */ - EmailNotification.decode = function decode(reader, length) { + 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.EmailNotification(); + 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.recipientsEmail && message.recipientsEmail.length)) - message.recipientsEmail = []; - message.recipientsEmail.push(reader.string()); + 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); @@ -20456,48 +20390,54 @@ }; /** - * Verifies an EmailNotification message. + * Verifies a NamedEntityIdentifierList message. * @function verify - * @memberof flyteidl.admin.EmailNotification + * @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 */ - EmailNotification.verify = function verify(message) { + NamedEntityIdentifierList.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.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 EmailNotification; + return NamedEntityIdentifierList; })(); - admin.PagerDutyNotification = (function() { + admin.NamedEntityList = (function() { /** - * Properties of a PagerDutyNotification. + * Properties of a NamedEntityList. * @memberof flyteidl.admin - * @interface IPagerDutyNotification - * @property {Array.|null} [recipientsEmail] PagerDutyNotification recipientsEmail + * @interface INamedEntityList + * @property {Array.|null} [entities] NamedEntityList entities + * @property {string|null} [token] NamedEntityList token */ /** - * Constructs a new PagerDutyNotification. + * Constructs a new NamedEntityList. * @memberof flyteidl.admin - * @classdesc Represents a PagerDutyNotification. - * @implements IPagerDutyNotification + * @classdesc Represents a NamedEntityList. + * @implements INamedEntityList * @constructor - * @param {flyteidl.admin.IPagerDutyNotification=} [properties] Properties to set + * @param {flyteidl.admin.INamedEntityList=} [properties] Properties to set */ - function PagerDutyNotification(properties) { - this.recipientsEmail = []; + function NamedEntityList(properties) { + this.entities = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20505,65 +20445,78 @@ } /** - * PagerDutyNotification recipientsEmail. - * @member {Array.} recipientsEmail - * @memberof flyteidl.admin.PagerDutyNotification + * NamedEntityList entities. + * @member {Array.} entities + * @memberof flyteidl.admin.NamedEntityList * @instance */ - PagerDutyNotification.prototype.recipientsEmail = $util.emptyArray; + NamedEntityList.prototype.entities = $util.emptyArray; /** - * Creates a new PagerDutyNotification instance using the specified properties. + * 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.PagerDutyNotification + * @memberof flyteidl.admin.NamedEntityList * @static - * @param {flyteidl.admin.IPagerDutyNotification=} [properties] Properties to set - * @returns {flyteidl.admin.PagerDutyNotification} PagerDutyNotification instance + * @param {flyteidl.admin.INamedEntityList=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntityList} NamedEntityList instance */ - PagerDutyNotification.create = function create(properties) { - return new PagerDutyNotification(properties); + NamedEntityList.create = function create(properties) { + return new NamedEntityList(properties); }; /** - * Encodes the specified PagerDutyNotification message. Does not implicitly {@link flyteidl.admin.PagerDutyNotification.verify|verify} messages. + * Encodes the specified NamedEntityList message. Does not implicitly {@link flyteidl.admin.NamedEntityList.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.PagerDutyNotification + * @memberof flyteidl.admin.NamedEntityList * @static - * @param {flyteidl.admin.IPagerDutyNotification} message PagerDutyNotification message or plain object to encode + * @param {flyteidl.admin.INamedEntityList} message NamedEntityList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PagerDutyNotification.encode = function encode(message, writer) { + NamedEntityList.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.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 PagerDutyNotification message from the specified reader or buffer. + * Decodes a NamedEntityList message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.PagerDutyNotification + * @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.PagerDutyNotification} PagerDutyNotification + * @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 */ - PagerDutyNotification.decode = function decode(reader, length) { + 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.PagerDutyNotification(); + 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.recipientsEmail && message.recipientsEmail.length)) - message.recipientsEmail = []; - message.recipientsEmail.push(reader.string()); + 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); @@ -20574,48 +20527,53 @@ }; /** - * Verifies a PagerDutyNotification message. + * Verifies a NamedEntityList message. * @function verify - * @memberof flyteidl.admin.PagerDutyNotification + * @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 */ - PagerDutyNotification.verify = function verify(message) { + NamedEntityList.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; + 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.SlackNotification = (function() { + admin.NamedEntityGetRequest = (function() { /** - * Properties of a SlackNotification. + * Properties of a NamedEntityGetRequest. * @memberof flyteidl.admin - * @interface ISlackNotification - * @property {Array.|null} [recipientsEmail] SlackNotification recipientsEmail + * @interface INamedEntityGetRequest + * @property {flyteidl.core.ResourceType|null} [resourceType] NamedEntityGetRequest resourceType + * @property {flyteidl.admin.INamedEntityIdentifier|null} [id] NamedEntityGetRequest id */ /** - * Constructs a new SlackNotification. + * Constructs a new NamedEntityGetRequest. * @memberof flyteidl.admin - * @classdesc Represents a SlackNotification. - * @implements ISlackNotification + * @classdesc Represents a NamedEntityGetRequest. + * @implements INamedEntityGetRequest * @constructor - * @param {flyteidl.admin.ISlackNotification=} [properties] Properties to set + * @param {flyteidl.admin.INamedEntityGetRequest=} [properties] Properties to set */ - function SlackNotification(properties) { - this.recipientsEmail = []; + function NamedEntityGetRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20623,65 +20581,75 @@ } /** - * SlackNotification recipientsEmail. - * @member {Array.} recipientsEmail - * @memberof flyteidl.admin.SlackNotification + * NamedEntityGetRequest resourceType. + * @member {flyteidl.core.ResourceType} resourceType + * @memberof flyteidl.admin.NamedEntityGetRequest * @instance */ - SlackNotification.prototype.recipientsEmail = $util.emptyArray; + NamedEntityGetRequest.prototype.resourceType = 0; /** - * Creates a new SlackNotification instance using the specified properties. + * 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.SlackNotification + * @memberof flyteidl.admin.NamedEntityGetRequest * @static - * @param {flyteidl.admin.ISlackNotification=} [properties] Properties to set - * @returns {flyteidl.admin.SlackNotification} SlackNotification instance + * @param {flyteidl.admin.INamedEntityGetRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntityGetRequest} NamedEntityGetRequest instance */ - SlackNotification.create = function create(properties) { - return new SlackNotification(properties); + NamedEntityGetRequest.create = function create(properties) { + return new NamedEntityGetRequest(properties); }; /** - * Encodes the specified SlackNotification message. Does not implicitly {@link flyteidl.admin.SlackNotification.verify|verify} messages. + * Encodes the specified NamedEntityGetRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityGetRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.SlackNotification + * @memberof flyteidl.admin.NamedEntityGetRequest * @static - * @param {flyteidl.admin.ISlackNotification} message SlackNotification message or plain object to encode + * @param {flyteidl.admin.INamedEntityGetRequest} message NamedEntityGetRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SlackNotification.encode = function encode(message, writer) { + NamedEntityGetRequest.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.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 SlackNotification message from the specified reader or buffer. + * Decodes a NamedEntityGetRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.SlackNotification + * @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.SlackNotification} SlackNotification + * @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 */ - SlackNotification.decode = function decode(reader, length) { + 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.SlackNotification(); + 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: - if (!(message.recipientsEmail && message.recipientsEmail.length)) - message.recipientsEmail = []; - message.recipientsEmail.push(reader.string()); + message.resourceType = reader.int32(); + break; + case 2: + message.id = $root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -20692,51 +20660,58 @@ }; /** - * Verifies a SlackNotification message. + * Verifies a NamedEntityGetRequest message. * @function verify - * @memberof flyteidl.admin.SlackNotification + * @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 */ - SlackNotification.verify = function verify(message) { + NamedEntityGetRequest.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.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 SlackNotification; + return NamedEntityGetRequest; })(); - admin.Notification = (function() { + admin.NamedEntityUpdateRequest = (function() { /** - * Properties of a Notification. + * Properties of a NamedEntityUpdateRequest. * @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 + * @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 Notification. + * Constructs a new NamedEntityUpdateRequest. * @memberof flyteidl.admin - * @classdesc Represents a Notification. - * @implements INotification + * @classdesc Represents a NamedEntityUpdateRequest. + * @implements INamedEntityUpdateRequest * @constructor - * @param {flyteidl.admin.INotification=} [properties] Properties to set + * @param {flyteidl.admin.INamedEntityUpdateRequest=} [properties] Properties to set */ - function Notification(properties) { - this.phases = []; + function NamedEntityUpdateRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20744,126 +20719,88 @@ } /** - * 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 + * NamedEntityUpdateRequest resourceType. + * @member {flyteidl.core.ResourceType} resourceType + * @memberof flyteidl.admin.NamedEntityUpdateRequest * @instance */ - Notification.prototype.pagerDuty = null; + NamedEntityUpdateRequest.prototype.resourceType = 0; /** - * Notification slack. - * @member {flyteidl.admin.ISlackNotification|null|undefined} slack - * @memberof flyteidl.admin.Notification + * NamedEntityUpdateRequest id. + * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id + * @memberof flyteidl.admin.NamedEntityUpdateRequest * @instance */ - Notification.prototype.slack = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + NamedEntityUpdateRequest.prototype.id = null; /** - * Notification type. - * @member {"email"|"pagerDuty"|"slack"|undefined} type - * @memberof flyteidl.admin.Notification + * NamedEntityUpdateRequest metadata. + * @member {flyteidl.admin.INamedEntityMetadata|null|undefined} metadata + * @memberof flyteidl.admin.NamedEntityUpdateRequest * @instance */ - Object.defineProperty(Notification.prototype, "type", { - get: $util.oneOfGetter($oneOfFields = ["email", "pagerDuty", "slack"]), - set: $util.oneOfSetter($oneOfFields) - }); + NamedEntityUpdateRequest.prototype.metadata = null; /** - * Creates a new Notification instance using the specified properties. + * Creates a new NamedEntityUpdateRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.Notification + * @memberof flyteidl.admin.NamedEntityUpdateRequest * @static - * @param {flyteidl.admin.INotification=} [properties] Properties to set - * @returns {flyteidl.admin.Notification} Notification instance + * @param {flyteidl.admin.INamedEntityUpdateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntityUpdateRequest} NamedEntityUpdateRequest instance */ - Notification.create = function create(properties) { - return new Notification(properties); + NamedEntityUpdateRequest.create = function create(properties) { + return new NamedEntityUpdateRequest(properties); }; /** - * Encodes the specified Notification message. Does not implicitly {@link flyteidl.admin.Notification.verify|verify} messages. + * Encodes the specified NamedEntityUpdateRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityUpdateRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.Notification + * @memberof flyteidl.admin.NamedEntityUpdateRequest * @static - * @param {flyteidl.admin.INotification} message Notification message or plain object to encode + * @param {flyteidl.admin.INamedEntityUpdateRequest} message NamedEntityUpdateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Notification.encode = function encode(message, writer) { + NamedEntityUpdateRequest.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(); + 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 Notification message from the specified reader or buffer. + * Decodes a NamedEntityUpdateRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.Notification + * @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.Notification} Notification + * @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 */ - Notification.decode = function decode(reader, length) { + 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.Notification(); + 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: - 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()); + message.resourceType = reader.int32(); break; case 2: - message.email = $root.flyteidl.admin.EmailNotification.decode(reader, reader.uint32()); + message.id = $root.flyteidl.admin.NamedEntityIdentifier.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()); + message.metadata = $root.flyteidl.admin.NamedEntityMetadata.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -20874,90 +20811,60 @@ }; /** - * Verifies a Notification message. + * Verifies a NamedEntityUpdateRequest message. * @function verify - * @memberof flyteidl.admin.Notification + * @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 */ - Notification.verify = function verify(message) { + NamedEntityUpdateRequest.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.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.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; - } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.flyteidl.admin.NamedEntityMetadata.verify(message.metadata); + if (error) + return "metadata." + error; } return null; }; - return Notification; + return NamedEntityUpdateRequest; })(); - admin.UrlBlob = (function() { + admin.NamedEntityUpdateResponse = (function() { /** - * Properties of an UrlBlob. + * Properties of a NamedEntityUpdateResponse. * @memberof flyteidl.admin - * @interface IUrlBlob - * @property {string|null} [url] UrlBlob url - * @property {Long|null} [bytes] UrlBlob bytes + * @interface INamedEntityUpdateResponse */ /** - * Constructs a new UrlBlob. + * Constructs a new NamedEntityUpdateResponse. * @memberof flyteidl.admin - * @classdesc Represents an UrlBlob. - * @implements IUrlBlob + * @classdesc Represents a NamedEntityUpdateResponse. + * @implements INamedEntityUpdateResponse * @constructor - * @param {flyteidl.admin.IUrlBlob=} [properties] Properties to set + * @param {flyteidl.admin.INamedEntityUpdateResponse=} [properties] Properties to set */ - function UrlBlob(properties) { + function NamedEntityUpdateResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20965,76 +20872,50 @@ } /** - * 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. + * Creates a new NamedEntityUpdateResponse instance using the specified properties. * @function create - * @memberof flyteidl.admin.UrlBlob + * @memberof flyteidl.admin.NamedEntityUpdateResponse * @static - * @param {flyteidl.admin.IUrlBlob=} [properties] Properties to set - * @returns {flyteidl.admin.UrlBlob} UrlBlob instance + * @param {flyteidl.admin.INamedEntityUpdateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntityUpdateResponse} NamedEntityUpdateResponse instance */ - UrlBlob.create = function create(properties) { - return new UrlBlob(properties); + NamedEntityUpdateResponse.create = function create(properties) { + return new NamedEntityUpdateResponse(properties); }; /** - * Encodes the specified UrlBlob message. Does not implicitly {@link flyteidl.admin.UrlBlob.verify|verify} messages. + * Encodes the specified NamedEntityUpdateResponse message. Does not implicitly {@link flyteidl.admin.NamedEntityUpdateResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.UrlBlob + * @memberof flyteidl.admin.NamedEntityUpdateResponse * @static - * @param {flyteidl.admin.IUrlBlob} message UrlBlob message or plain object to encode + * @param {flyteidl.admin.INamedEntityUpdateResponse} message NamedEntityUpdateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UrlBlob.encode = function encode(message, writer) { + NamedEntityUpdateResponse.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. + * Decodes a NamedEntityUpdateResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.UrlBlob + * @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.UrlBlob} UrlBlob + * @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 */ - UrlBlob.decode = function decode(reader, length) { + 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.UrlBlob(); + 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) { - case 1: - message.url = reader.string(); - break; - case 2: - message.bytes = reader.int64(); - break; default: reader.skipType(tag & 7); break; @@ -21044,47 +20925,40 @@ }; /** - * Verifies an UrlBlob message. + * Verifies a NamedEntityUpdateResponse message. * @function verify - * @memberof flyteidl.admin.UrlBlob + * @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 */ - UrlBlob.verify = function verify(message) { + NamedEntityUpdateResponse.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; + return NamedEntityUpdateResponse; })(); - admin.Labels = (function() { + admin.ObjectGetRequest = (function() { /** - * Properties of a Labels. + * Properties of an ObjectGetRequest. * @memberof flyteidl.admin - * @interface ILabels - * @property {Object.|null} [values] Labels values + * @interface IObjectGetRequest + * @property {flyteidl.core.IIdentifier|null} [id] ObjectGetRequest id */ /** - * Constructs a new Labels. + * Constructs a new ObjectGetRequest. * @memberof flyteidl.admin - * @classdesc Represents a Labels. - * @implements ILabels + * @classdesc Represents an ObjectGetRequest. + * @implements IObjectGetRequest * @constructor - * @param {flyteidl.admin.ILabels=} [properties] Properties to set + * @param {flyteidl.admin.IObjectGetRequest=} [properties] Properties to set */ - function Labels(properties) { - this.values = {}; + function ObjectGetRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21092,68 +20966,62 @@ } /** - * Labels values. - * @member {Object.} values - * @memberof flyteidl.admin.Labels + * ObjectGetRequest id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.ObjectGetRequest * @instance */ - Labels.prototype.values = $util.emptyObject; + ObjectGetRequest.prototype.id = null; /** - * Creates a new Labels instance using the specified properties. + * Creates a new ObjectGetRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.Labels + * @memberof flyteidl.admin.ObjectGetRequest * @static - * @param {flyteidl.admin.ILabels=} [properties] Properties to set - * @returns {flyteidl.admin.Labels} Labels instance + * @param {flyteidl.admin.IObjectGetRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ObjectGetRequest} ObjectGetRequest instance */ - Labels.create = function create(properties) { - return new Labels(properties); + ObjectGetRequest.create = function create(properties) { + return new ObjectGetRequest(properties); }; /** - * Encodes the specified Labels message. Does not implicitly {@link flyteidl.admin.Labels.verify|verify} messages. + * Encodes the specified ObjectGetRequest message. Does not implicitly {@link flyteidl.admin.ObjectGetRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.Labels + * @memberof flyteidl.admin.ObjectGetRequest * @static - * @param {flyteidl.admin.ILabels} message Labels message or plain object to encode + * @param {flyteidl.admin.IObjectGetRequest} message ObjectGetRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Labels.encode = function encode(message, writer) { + ObjectGetRequest.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(); + 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 Labels message from the specified reader or buffer. + * Decodes an ObjectGetRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.Labels + * @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.Labels} Labels + * @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 */ - Labels.decode = function decode(reader, length) { + 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.Labels(), key; + 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: - reader.skip().pos++; - if (message.values === $util.emptyObject) - message.values = {}; - key = reader.string(); - reader.pos++; - message.values[key] = reader.string(); + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -21164,49 +21032,49 @@ }; /** - * Verifies a Labels message. + * Verifies an ObjectGetRequest message. * @function verify - * @memberof flyteidl.admin.Labels + * @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 */ - Labels.verify = function verify(message) { + ObjectGetRequest.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"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; } return null; }; - return Labels; + return ObjectGetRequest; })(); - admin.Annotations = (function() { + admin.ResourceListRequest = (function() { /** - * Properties of an Annotations. + * Properties of a ResourceListRequest. * @memberof flyteidl.admin - * @interface IAnnotations - * @property {Object.|null} [values] Annotations values + * @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 Annotations. + * Constructs a new ResourceListRequest. * @memberof flyteidl.admin - * @classdesc Represents an Annotations. - * @implements IAnnotations + * @classdesc Represents a ResourceListRequest. + * @implements IResourceListRequest * @constructor - * @param {flyteidl.admin.IAnnotations=} [properties] Properties to set + * @param {flyteidl.admin.IResourceListRequest=} [properties] Properties to set */ - function Annotations(properties) { - this.values = {}; + function ResourceListRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21214,68 +21082,114 @@ } /** - * Annotations values. - * @member {Object.} values - * @memberof flyteidl.admin.Annotations + * ResourceListRequest id. + * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id + * @memberof flyteidl.admin.ResourceListRequest * @instance */ - Annotations.prototype.values = $util.emptyObject; + ResourceListRequest.prototype.id = null; /** - * Creates a new Annotations instance using the specified properties. + * 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.Annotations + * @memberof flyteidl.admin.ResourceListRequest * @static - * @param {flyteidl.admin.IAnnotations=} [properties] Properties to set - * @returns {flyteidl.admin.Annotations} Annotations instance + * @param {flyteidl.admin.IResourceListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ResourceListRequest} ResourceListRequest instance */ - Annotations.create = function create(properties) { - return new Annotations(properties); + ResourceListRequest.create = function create(properties) { + return new ResourceListRequest(properties); }; /** - * Encodes the specified Annotations message. Does not implicitly {@link flyteidl.admin.Annotations.verify|verify} messages. + * Encodes the specified ResourceListRequest message. Does not implicitly {@link flyteidl.admin.ResourceListRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.Annotations + * @memberof flyteidl.admin.ResourceListRequest * @static - * @param {flyteidl.admin.IAnnotations} message Annotations message or plain object to encode + * @param {flyteidl.admin.IResourceListRequest} message ResourceListRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Annotations.encode = function encode(message, writer) { + ResourceListRequest.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(); + 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 an Annotations message from the specified reader or buffer. + * Decodes a ResourceListRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.Annotations + * @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.Annotations} Annotations + * @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 */ - Annotations.decode = function decode(reader, length) { + 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.Annotations(), key; + 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: - reader.skip().pos++; - if (message.values === $util.emptyObject) - message.values = {}; - key = reader.string(); - reader.pos++; - message.values[key] = reader.string(); + 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); @@ -21286,49 +21200,60 @@ }; /** - * Verifies an Annotations message. + * Verifies a ResourceListRequest message. * @function verify - * @memberof flyteidl.admin.Annotations + * @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 */ - Annotations.verify = function verify(message) { + ResourceListRequest.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"; + 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 Annotations; + return ResourceListRequest; })(); - admin.Envs = (function() { + admin.EmailNotification = (function() { /** - * Properties of an Envs. + * Properties of an EmailNotification. * @memberof flyteidl.admin - * @interface IEnvs - * @property {Array.|null} [values] Envs values + * @interface IEmailNotification + * @property {Array.|null} [recipientsEmail] EmailNotification recipientsEmail */ /** - * Constructs a new Envs. + * Constructs a new EmailNotification. * @memberof flyteidl.admin - * @classdesc Represents an Envs. - * @implements IEnvs + * @classdesc Represents an EmailNotification. + * @implements IEmailNotification * @constructor - * @param {flyteidl.admin.IEnvs=} [properties] Properties to set + * @param {flyteidl.admin.IEmailNotification=} [properties] Properties to set */ - function Envs(properties) { - this.values = []; + function EmailNotification(properties) { + this.recipientsEmail = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21336,65 +21261,65 @@ } /** - * Envs values. - * @member {Array.} values - * @memberof flyteidl.admin.Envs + * EmailNotification recipientsEmail. + * @member {Array.} recipientsEmail + * @memberof flyteidl.admin.EmailNotification * @instance */ - Envs.prototype.values = $util.emptyArray; + EmailNotification.prototype.recipientsEmail = $util.emptyArray; /** - * Creates a new Envs instance using the specified properties. + * Creates a new EmailNotification instance using the specified properties. * @function create - * @memberof flyteidl.admin.Envs + * @memberof flyteidl.admin.EmailNotification * @static - * @param {flyteidl.admin.IEnvs=} [properties] Properties to set - * @returns {flyteidl.admin.Envs} Envs instance + * @param {flyteidl.admin.IEmailNotification=} [properties] Properties to set + * @returns {flyteidl.admin.EmailNotification} EmailNotification instance */ - Envs.create = function create(properties) { - return new Envs(properties); + EmailNotification.create = function create(properties) { + return new EmailNotification(properties); }; /** - * Encodes the specified Envs message. Does not implicitly {@link flyteidl.admin.Envs.verify|verify} messages. + * Encodes the specified EmailNotification message. Does not implicitly {@link flyteidl.admin.EmailNotification.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.Envs + * @memberof flyteidl.admin.EmailNotification * @static - * @param {flyteidl.admin.IEnvs} message Envs message or plain object to encode + * @param {flyteidl.admin.IEmailNotification} message EmailNotification message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Envs.encode = function encode(message, writer) { + EmailNotification.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(); + 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 Envs message from the specified reader or buffer. + * Decodes an EmailNotification message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.Envs + * @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.Envs} Envs + * @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 */ - Envs.decode = function decode(reader, length) { + 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.Envs(); + 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.values && message.values.length)) - message.values = []; - message.values.push($root.flyteidl.core.KeyValuePair.decode(reader, reader.uint32())); + if (!(message.recipientsEmail && message.recipientsEmail.length)) + message.recipientsEmail = []; + message.recipientsEmail.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -21405,50 +21330,48 @@ }; /** - * Verifies an Envs message. + * Verifies an EmailNotification message. * @function verify - * @memberof flyteidl.admin.Envs + * @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 */ - Envs.verify = function verify(message) { + EmailNotification.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; - } + 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 Envs; + return EmailNotification; })(); - admin.AuthRole = (function() { + admin.PagerDutyNotification = (function() { /** - * Properties of an AuthRole. + * Properties of a PagerDutyNotification. * @memberof flyteidl.admin - * @interface IAuthRole - * @property {string|null} [assumableIamRole] AuthRole assumableIamRole - * @property {string|null} [kubernetesServiceAccount] AuthRole kubernetesServiceAccount + * @interface IPagerDutyNotification + * @property {Array.|null} [recipientsEmail] PagerDutyNotification recipientsEmail */ /** - * Constructs a new AuthRole. + * Constructs a new PagerDutyNotification. * @memberof flyteidl.admin - * @classdesc Represents an AuthRole. - * @implements IAuthRole + * @classdesc Represents a PagerDutyNotification. + * @implements IPagerDutyNotification * @constructor - * @param {flyteidl.admin.IAuthRole=} [properties] Properties to set + * @param {flyteidl.admin.IPagerDutyNotification=} [properties] Properties to set */ - function AuthRole(properties) { + function PagerDutyNotification(properties) { + this.recipientsEmail = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21456,75 +21379,65 @@ } /** - * AuthRole assumableIamRole. - * @member {string} assumableIamRole - * @memberof flyteidl.admin.AuthRole - * @instance - */ - AuthRole.prototype.assumableIamRole = ""; - - /** - * AuthRole kubernetesServiceAccount. - * @member {string} kubernetesServiceAccount - * @memberof flyteidl.admin.AuthRole + * PagerDutyNotification recipientsEmail. + * @member {Array.} recipientsEmail + * @memberof flyteidl.admin.PagerDutyNotification * @instance */ - AuthRole.prototype.kubernetesServiceAccount = ""; + PagerDutyNotification.prototype.recipientsEmail = $util.emptyArray; /** - * Creates a new AuthRole instance using the specified properties. + * Creates a new PagerDutyNotification instance using the specified properties. * @function create - * @memberof flyteidl.admin.AuthRole + * @memberof flyteidl.admin.PagerDutyNotification * @static - * @param {flyteidl.admin.IAuthRole=} [properties] Properties to set - * @returns {flyteidl.admin.AuthRole} AuthRole instance + * @param {flyteidl.admin.IPagerDutyNotification=} [properties] Properties to set + * @returns {flyteidl.admin.PagerDutyNotification} PagerDutyNotification instance */ - AuthRole.create = function create(properties) { - return new AuthRole(properties); + PagerDutyNotification.create = function create(properties) { + return new PagerDutyNotification(properties); }; /** - * Encodes the specified AuthRole message. Does not implicitly {@link flyteidl.admin.AuthRole.verify|verify} messages. + * Encodes the specified PagerDutyNotification message. Does not implicitly {@link flyteidl.admin.PagerDutyNotification.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.AuthRole + * @memberof flyteidl.admin.PagerDutyNotification * @static - * @param {flyteidl.admin.IAuthRole} message AuthRole message or plain object to encode + * @param {flyteidl.admin.IPagerDutyNotification} message PagerDutyNotification message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AuthRole.encode = function encode(message, writer) { + PagerDutyNotification.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); + 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 AuthRole message from the specified reader or buffer. + * Decodes a PagerDutyNotification message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.AuthRole + * @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.AuthRole} AuthRole + * @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 */ - AuthRole.decode = function decode(reader, length) { + 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.AuthRole(); + 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: - message.assumableIamRole = reader.string(); - break; - case 2: - message.kubernetesServiceAccount = reader.string(); + if (!(message.recipientsEmail && message.recipientsEmail.length)) + message.recipientsEmail = []; + message.recipientsEmail.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -21535,46 +21448,48 @@ }; /** - * Verifies an AuthRole message. + * Verifies a PagerDutyNotification message. * @function verify - * @memberof flyteidl.admin.AuthRole + * @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 */ - AuthRole.verify = function verify(message) { + PagerDutyNotification.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"; + 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 AuthRole; + return PagerDutyNotification; })(); - admin.RawOutputDataConfig = (function() { + admin.SlackNotification = (function() { /** - * Properties of a RawOutputDataConfig. + * Properties of a SlackNotification. * @memberof flyteidl.admin - * @interface IRawOutputDataConfig - * @property {string|null} [outputLocationPrefix] RawOutputDataConfig outputLocationPrefix + * @interface ISlackNotification + * @property {Array.|null} [recipientsEmail] SlackNotification recipientsEmail */ /** - * Constructs a new RawOutputDataConfig. + * Constructs a new SlackNotification. * @memberof flyteidl.admin - * @classdesc Represents a RawOutputDataConfig. - * @implements IRawOutputDataConfig + * @classdesc Represents a SlackNotification. + * @implements ISlackNotification * @constructor - * @param {flyteidl.admin.IRawOutputDataConfig=} [properties] Properties to set + * @param {flyteidl.admin.ISlackNotification=} [properties] Properties to set */ - function RawOutputDataConfig(properties) { + function SlackNotification(properties) { + this.recipientsEmail = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21582,62 +21497,65 @@ } /** - * RawOutputDataConfig outputLocationPrefix. - * @member {string} outputLocationPrefix - * @memberof flyteidl.admin.RawOutputDataConfig + * SlackNotification recipientsEmail. + * @member {Array.} recipientsEmail + * @memberof flyteidl.admin.SlackNotification * @instance */ - RawOutputDataConfig.prototype.outputLocationPrefix = ""; + SlackNotification.prototype.recipientsEmail = $util.emptyArray; /** - * Creates a new RawOutputDataConfig instance using the specified properties. + * Creates a new SlackNotification instance using the specified properties. * @function create - * @memberof flyteidl.admin.RawOutputDataConfig + * @memberof flyteidl.admin.SlackNotification * @static - * @param {flyteidl.admin.IRawOutputDataConfig=} [properties] Properties to set - * @returns {flyteidl.admin.RawOutputDataConfig} RawOutputDataConfig instance + * @param {flyteidl.admin.ISlackNotification=} [properties] Properties to set + * @returns {flyteidl.admin.SlackNotification} SlackNotification instance */ - RawOutputDataConfig.create = function create(properties) { - return new RawOutputDataConfig(properties); + SlackNotification.create = function create(properties) { + return new SlackNotification(properties); }; /** - * Encodes the specified RawOutputDataConfig message. Does not implicitly {@link flyteidl.admin.RawOutputDataConfig.verify|verify} messages. + * Encodes the specified SlackNotification message. Does not implicitly {@link flyteidl.admin.SlackNotification.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.RawOutputDataConfig + * @memberof flyteidl.admin.SlackNotification * @static - * @param {flyteidl.admin.IRawOutputDataConfig} message RawOutputDataConfig message or plain object to encode + * @param {flyteidl.admin.ISlackNotification} message SlackNotification message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RawOutputDataConfig.encode = function encode(message, writer) { + SlackNotification.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); + 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 RawOutputDataConfig message from the specified reader or buffer. + * Decodes a SlackNotification message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.RawOutputDataConfig + * @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.RawOutputDataConfig} RawOutputDataConfig + * @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 */ - RawOutputDataConfig.decode = function decode(reader, length) { + 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.RawOutputDataConfig(); + 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: - message.outputLocationPrefix = reader.string(); + if (!(message.recipientsEmail && message.recipientsEmail.length)) + message.recipientsEmail = []; + message.recipientsEmail.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -21648,45 +21566,51 @@ }; /** - * Verifies a RawOutputDataConfig message. + * Verifies a SlackNotification message. * @function verify - * @memberof flyteidl.admin.RawOutputDataConfig + * @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 */ - RawOutputDataConfig.verify = function verify(message) { + SlackNotification.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"; + 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 RawOutputDataConfig; + return SlackNotification; })(); - admin.FlyteURLs = (function() { + admin.Notification = (function() { /** - * Properties of a FlyteURLs. + * Properties of a Notification. * @memberof flyteidl.admin - * @interface IFlyteURLs - * @property {string|null} [inputs] FlyteURLs inputs - * @property {string|null} [outputs] FlyteURLs outputs - * @property {string|null} [deck] FlyteURLs deck + * @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 FlyteURLs. + * Constructs a new Notification. * @memberof flyteidl.admin - * @classdesc Represents a FlyteURLs. - * @implements IFlyteURLs + * @classdesc Represents a Notification. + * @implements INotification * @constructor - * @param {flyteidl.admin.IFlyteURLs=} [properties] Properties to set + * @param {flyteidl.admin.INotification=} [properties] Properties to set */ - function FlyteURLs(properties) { + function Notification(properties) { + this.phases = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21694,88 +21618,126 @@ } /** - * FlyteURLs inputs. - * @member {string} inputs - * @memberof flyteidl.admin.FlyteURLs + * Notification phases. + * @member {Array.} phases + * @memberof flyteidl.admin.Notification * @instance */ - FlyteURLs.prototype.inputs = ""; + Notification.prototype.phases = $util.emptyArray; /** - * FlyteURLs outputs. - * @member {string} outputs - * @memberof flyteidl.admin.FlyteURLs + * Notification email. + * @member {flyteidl.admin.IEmailNotification|null|undefined} email + * @memberof flyteidl.admin.Notification * @instance */ - FlyteURLs.prototype.outputs = ""; + Notification.prototype.email = null; /** - * FlyteURLs deck. - * @member {string} deck - * @memberof flyteidl.admin.FlyteURLs + * Notification pagerDuty. + * @member {flyteidl.admin.IPagerDutyNotification|null|undefined} pagerDuty + * @memberof flyteidl.admin.Notification * @instance */ - FlyteURLs.prototype.deck = ""; + Notification.prototype.pagerDuty = null; /** - * Creates a new FlyteURLs instance using the specified properties. + * 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.FlyteURLs + * @memberof flyteidl.admin.Notification * @static - * @param {flyteidl.admin.IFlyteURLs=} [properties] Properties to set - * @returns {flyteidl.admin.FlyteURLs} FlyteURLs instance + * @param {flyteidl.admin.INotification=} [properties] Properties to set + * @returns {flyteidl.admin.Notification} Notification instance */ - FlyteURLs.create = function create(properties) { - return new FlyteURLs(properties); + Notification.create = function create(properties) { + return new Notification(properties); }; /** - * Encodes the specified FlyteURLs message. Does not implicitly {@link flyteidl.admin.FlyteURLs.verify|verify} messages. + * Encodes the specified Notification message. Does not implicitly {@link flyteidl.admin.Notification.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.FlyteURLs + * @memberof flyteidl.admin.Notification * @static - * @param {flyteidl.admin.IFlyteURLs} message FlyteURLs message or plain object to encode + * @param {flyteidl.admin.INotification} message Notification message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FlyteURLs.encode = function encode(message, writer) { + Notification.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); + 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 FlyteURLs message from the specified reader or buffer. + * Decodes a Notification message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.FlyteURLs + * @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.FlyteURLs} FlyteURLs + * @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 */ - FlyteURLs.decode = function decode(reader, length) { + 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.FlyteURLs(); + 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: - message.inputs = reader.string(); + 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.outputs = reader.string(); + message.email = $root.flyteidl.admin.EmailNotification.decode(reader, reader.uint32()); break; case 3: - message.deck = reader.string(); + 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); @@ -21786,54 +21748,90 @@ }; /** - * Verifies a FlyteURLs message. + * Verifies a Notification message. * @function verify - * @memberof flyteidl.admin.FlyteURLs + * @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 */ - FlyteURLs.verify = function verify(message) { + Notification.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"; + 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 FlyteURLs; + return Notification; })(); - admin.DescriptionEntity = (function() { + admin.UrlBlob = (function() { /** - * Properties of a DescriptionEntity. + * Properties of an UrlBlob. * @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 + * @interface IUrlBlob + * @property {string|null} [url] UrlBlob url + * @property {Long|null} [bytes] UrlBlob bytes */ /** - * Constructs a new DescriptionEntity. + * Constructs a new UrlBlob. * @memberof flyteidl.admin - * @classdesc Represents a DescriptionEntity. - * @implements IDescriptionEntity + * @classdesc Represents an UrlBlob. + * @implements IUrlBlob * @constructor - * @param {flyteidl.admin.IDescriptionEntity=} [properties] Properties to set + * @param {flyteidl.admin.IUrlBlob=} [properties] Properties to set */ - function DescriptionEntity(properties) { - this.tags = []; + function UrlBlob(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21841,117 +21839,75 @@ } /** - * 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 + * UrlBlob url. + * @member {string} url + * @memberof flyteidl.admin.UrlBlob * @instance */ - DescriptionEntity.prototype.sourceCode = null; + UrlBlob.prototype.url = ""; /** - * DescriptionEntity tags. - * @member {Array.} tags - * @memberof flyteidl.admin.DescriptionEntity + * UrlBlob bytes. + * @member {Long} bytes + * @memberof flyteidl.admin.UrlBlob * @instance */ - DescriptionEntity.prototype.tags = $util.emptyArray; + UrlBlob.prototype.bytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new DescriptionEntity instance using the specified properties. + * Creates a new UrlBlob instance using the specified properties. * @function create - * @memberof flyteidl.admin.DescriptionEntity + * @memberof flyteidl.admin.UrlBlob * @static - * @param {flyteidl.admin.IDescriptionEntity=} [properties] Properties to set - * @returns {flyteidl.admin.DescriptionEntity} DescriptionEntity instance + * @param {flyteidl.admin.IUrlBlob=} [properties] Properties to set + * @returns {flyteidl.admin.UrlBlob} UrlBlob instance */ - DescriptionEntity.create = function create(properties) { - return new DescriptionEntity(properties); + UrlBlob.create = function create(properties) { + return new UrlBlob(properties); }; /** - * Encodes the specified DescriptionEntity message. Does not implicitly {@link flyteidl.admin.DescriptionEntity.verify|verify} messages. + * Encodes the specified UrlBlob message. Does not implicitly {@link flyteidl.admin.UrlBlob.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.DescriptionEntity + * @memberof flyteidl.admin.UrlBlob * @static - * @param {flyteidl.admin.IDescriptionEntity} message DescriptionEntity message or plain object to encode + * @param {flyteidl.admin.IUrlBlob} message UrlBlob message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DescriptionEntity.encode = function encode(message, writer) { + UrlBlob.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]); + 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 a DescriptionEntity message from the specified reader or buffer. + * Decodes an UrlBlob message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.DescriptionEntity + * @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.DescriptionEntity} DescriptionEntity + * @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 */ - DescriptionEntity.decode = function decode(reader, length) { + 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.DescriptionEntity(); + 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.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + message.url = reader.string(); 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()); + message.bytes = reader.int64(); break; default: reader.skipType(tag & 7); @@ -21962,86 +21918,47 @@ }; /** - * Verifies a DescriptionEntity message. + * Verifies an UrlBlob message. * @function verify - * @memberof flyteidl.admin.DescriptionEntity + * @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 */ - DescriptionEntity.verify = function verify(message) { + UrlBlob.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"; - } + 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 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; + return UrlBlob; })(); - admin.Description = (function() { + admin.Labels = (function() { /** - * Properties of a Description. + * Properties of a Labels. * @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 + * @interface ILabels + * @property {Object.|null} [values] Labels values */ /** - * Constructs a new Description. + * Constructs a new Labels. * @memberof flyteidl.admin - * @classdesc Represents a Description. - * @implements IDescription + * @classdesc Represents a Labels. + * @implements ILabels * @constructor - * @param {flyteidl.admin.IDescription=} [properties] Properties to set + * @param {flyteidl.admin.ILabels=} [properties] Properties to set */ - function Description(properties) { + function Labels(properties) { + this.values = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22049,115 +21966,68 @@ } /** - * 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 + * Labels values. + * @member {Object.} values + * @memberof flyteidl.admin.Labels * @instance */ - Object.defineProperty(Description.prototype, "content", { - get: $util.oneOfGetter($oneOfFields = ["value", "uri"]), - set: $util.oneOfSetter($oneOfFields) - }); + Labels.prototype.values = $util.emptyObject; /** - * Creates a new Description instance using the specified properties. + * Creates a new Labels instance using the specified properties. * @function create - * @memberof flyteidl.admin.Description + * @memberof flyteidl.admin.Labels * @static - * @param {flyteidl.admin.IDescription=} [properties] Properties to set - * @returns {flyteidl.admin.Description} Description instance + * @param {flyteidl.admin.ILabels=} [properties] Properties to set + * @returns {flyteidl.admin.Labels} Labels instance */ - Description.create = function create(properties) { - return new Description(properties); + Labels.create = function create(properties) { + return new Labels(properties); }; /** - * Encodes the specified Description message. Does not implicitly {@link flyteidl.admin.Description.verify|verify} messages. + * Encodes the specified Labels message. Does not implicitly {@link flyteidl.admin.Labels.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.Description + * @memberof flyteidl.admin.Labels * @static - * @param {flyteidl.admin.IDescription} message Description message or plain object to encode + * @param {flyteidl.admin.ILabels} message Labels message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Description.encode = function encode(message, writer) { + Labels.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); + 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 Description message from the specified reader or buffer. + * Decodes a Labels message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.Description + * @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.Description} Description + * @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 */ - Description.decode = function decode(reader, length) { + 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.Description(); + 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: - 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(); + 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); @@ -22168,66 +22038,49 @@ }; /** - * Verifies a Description message. + * Verifies a Labels message. * @function verify - * @memberof flyteidl.admin.Description + * @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 */ - Description.verify = function verify(message) { + Labels.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.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"; } - 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; + return Labels; })(); - admin.SourceCode = (function() { + admin.Annotations = (function() { /** - * Properties of a SourceCode. + * Properties of an Annotations. * @memberof flyteidl.admin - * @interface ISourceCode - * @property {string|null} [link] SourceCode link + * @interface IAnnotations + * @property {Object.|null} [values] Annotations values */ /** - * Constructs a new SourceCode. + * Constructs a new Annotations. * @memberof flyteidl.admin - * @classdesc Represents a SourceCode. - * @implements ISourceCode + * @classdesc Represents an Annotations. + * @implements IAnnotations * @constructor - * @param {flyteidl.admin.ISourceCode=} [properties] Properties to set + * @param {flyteidl.admin.IAnnotations=} [properties] Properties to set */ - function SourceCode(properties) { + function Annotations(properties) { + this.values = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22235,62 +22088,68 @@ } /** - * SourceCode link. - * @member {string} link - * @memberof flyteidl.admin.SourceCode + * Annotations values. + * @member {Object.} values + * @memberof flyteidl.admin.Annotations * @instance */ - SourceCode.prototype.link = ""; + Annotations.prototype.values = $util.emptyObject; /** - * Creates a new SourceCode instance using the specified properties. + * Creates a new Annotations instance using the specified properties. * @function create - * @memberof flyteidl.admin.SourceCode + * @memberof flyteidl.admin.Annotations * @static - * @param {flyteidl.admin.ISourceCode=} [properties] Properties to set - * @returns {flyteidl.admin.SourceCode} SourceCode instance + * @param {flyteidl.admin.IAnnotations=} [properties] Properties to set + * @returns {flyteidl.admin.Annotations} Annotations instance */ - SourceCode.create = function create(properties) { - return new SourceCode(properties); + Annotations.create = function create(properties) { + return new Annotations(properties); }; /** - * Encodes the specified SourceCode message. Does not implicitly {@link flyteidl.admin.SourceCode.verify|verify} messages. + * Encodes the specified Annotations message. Does not implicitly {@link flyteidl.admin.Annotations.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.SourceCode + * @memberof flyteidl.admin.Annotations * @static - * @param {flyteidl.admin.ISourceCode} message SourceCode message or plain object to encode + * @param {flyteidl.admin.IAnnotations} message Annotations message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SourceCode.encode = function encode(message, writer) { + Annotations.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); + 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 SourceCode message from the specified reader or buffer. + * Decodes an Annotations message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.SourceCode + * @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.SourceCode} SourceCode + * @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 */ - SourceCode.decode = function decode(reader, length) { + 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.SourceCode(); + 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: - message.link = reader.string(); + 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); @@ -22301,45 +22160,49 @@ }; /** - * Verifies a SourceCode message. + * Verifies an Annotations message. * @function verify - * @memberof flyteidl.admin.SourceCode + * @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 */ - SourceCode.verify = function verify(message) { + Annotations.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"; + 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 SourceCode; + return Annotations; })(); - admin.DescriptionEntityList = (function() { + admin.Envs = (function() { /** - * Properties of a DescriptionEntityList. + * Properties of an Envs. * @memberof flyteidl.admin - * @interface IDescriptionEntityList - * @property {Array.|null} [descriptionEntities] DescriptionEntityList descriptionEntities - * @property {string|null} [token] DescriptionEntityList token + * @interface IEnvs + * @property {Array.|null} [values] Envs values */ /** - * Constructs a new DescriptionEntityList. + * Constructs a new Envs. * @memberof flyteidl.admin - * @classdesc Represents a DescriptionEntityList. - * @implements IDescriptionEntityList + * @classdesc Represents an Envs. + * @implements IEnvs * @constructor - * @param {flyteidl.admin.IDescriptionEntityList=} [properties] Properties to set + * @param {flyteidl.admin.IEnvs=} [properties] Properties to set */ - function DescriptionEntityList(properties) { - this.descriptionEntities = []; + function Envs(properties) { + this.values = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22347,78 +22210,65 @@ } /** - * DescriptionEntityList descriptionEntities. - * @member {Array.} descriptionEntities - * @memberof flyteidl.admin.DescriptionEntityList - * @instance - */ - DescriptionEntityList.prototype.descriptionEntities = $util.emptyArray; - - /** - * DescriptionEntityList token. - * @member {string} token - * @memberof flyteidl.admin.DescriptionEntityList + * Envs values. + * @member {Array.} values + * @memberof flyteidl.admin.Envs * @instance */ - DescriptionEntityList.prototype.token = ""; + Envs.prototype.values = $util.emptyArray; /** - * Creates a new DescriptionEntityList instance using the specified properties. + * Creates a new Envs instance using the specified properties. * @function create - * @memberof flyteidl.admin.DescriptionEntityList + * @memberof flyteidl.admin.Envs * @static - * @param {flyteidl.admin.IDescriptionEntityList=} [properties] Properties to set - * @returns {flyteidl.admin.DescriptionEntityList} DescriptionEntityList instance + * @param {flyteidl.admin.IEnvs=} [properties] Properties to set + * @returns {flyteidl.admin.Envs} Envs instance */ - DescriptionEntityList.create = function create(properties) { - return new DescriptionEntityList(properties); + Envs.create = function create(properties) { + return new Envs(properties); }; /** - * Encodes the specified DescriptionEntityList message. Does not implicitly {@link flyteidl.admin.DescriptionEntityList.verify|verify} messages. + * Encodes the specified Envs message. Does not implicitly {@link flyteidl.admin.Envs.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.DescriptionEntityList + * @memberof flyteidl.admin.Envs * @static - * @param {flyteidl.admin.IDescriptionEntityList} message DescriptionEntityList message or plain object to encode + * @param {flyteidl.admin.IEnvs} message Envs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DescriptionEntityList.encode = function encode(message, writer) { + Envs.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); + 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 a DescriptionEntityList message from the specified reader or buffer. + * Decodes an Envs message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.DescriptionEntityList + * @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.DescriptionEntityList} DescriptionEntityList + * @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 */ - DescriptionEntityList.decode = function decode(reader, length) { + 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.DescriptionEntityList(); + 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.descriptionEntities && message.descriptionEntities.length)) - message.descriptionEntities = []; - message.descriptionEntities.push($root.flyteidl.admin.DescriptionEntity.decode(reader, reader.uint32())); - break; - case 2: - message.token = reader.string(); + 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); @@ -22429,57 +22279,50 @@ }; /** - * Verifies a DescriptionEntityList message. + * Verifies an Envs message. * @function verify - * @memberof flyteidl.admin.DescriptionEntityList + * @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 */ - DescriptionEntityList.verify = function verify(message) { + Envs.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 (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 "descriptionEntities." + error; + return "values." + error; } } - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; return null; }; - return DescriptionEntityList; + return Envs; })(); - admin.DescriptionEntityListRequest = (function() { + admin.AuthRole = (function() { /** - * Properties of a DescriptionEntityListRequest. + * Properties of an AuthRole. * @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 + * @interface IAuthRole + * @property {string|null} [assumableIamRole] AuthRole assumableIamRole + * @property {string|null} [kubernetesServiceAccount] AuthRole kubernetesServiceAccount */ /** - * Constructs a new DescriptionEntityListRequest. + * Constructs a new AuthRole. * @memberof flyteidl.admin - * @classdesc Represents a DescriptionEntityListRequest. - * @implements IDescriptionEntityListRequest + * @classdesc Represents an AuthRole. + * @implements IAuthRole * @constructor - * @param {flyteidl.admin.IDescriptionEntityListRequest=} [properties] Properties to set + * @param {flyteidl.admin.IAuthRole=} [properties] Properties to set */ - function DescriptionEntityListRequest(properties) { + function AuthRole(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22487,127 +22330,75 @@ } /** - * 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 + * AuthRole assumableIamRole. + * @member {string} assumableIamRole + * @memberof flyteidl.admin.AuthRole * @instance */ - DescriptionEntityListRequest.prototype.filters = ""; + AuthRole.prototype.assumableIamRole = ""; /** - * DescriptionEntityListRequest sortBy. - * @member {flyteidl.admin.ISort|null|undefined} sortBy - * @memberof flyteidl.admin.DescriptionEntityListRequest + * AuthRole kubernetesServiceAccount. + * @member {string} kubernetesServiceAccount + * @memberof flyteidl.admin.AuthRole * @instance */ - DescriptionEntityListRequest.prototype.sortBy = null; + AuthRole.prototype.kubernetesServiceAccount = ""; /** - * Creates a new DescriptionEntityListRequest instance using the specified properties. + * Creates a new AuthRole instance using the specified properties. * @function create - * @memberof flyteidl.admin.DescriptionEntityListRequest + * @memberof flyteidl.admin.AuthRole * @static - * @param {flyteidl.admin.IDescriptionEntityListRequest=} [properties] Properties to set - * @returns {flyteidl.admin.DescriptionEntityListRequest} DescriptionEntityListRequest instance + * @param {flyteidl.admin.IAuthRole=} [properties] Properties to set + * @returns {flyteidl.admin.AuthRole} AuthRole instance */ - DescriptionEntityListRequest.create = function create(properties) { - return new DescriptionEntityListRequest(properties); + AuthRole.create = function create(properties) { + return new AuthRole(properties); }; /** - * Encodes the specified DescriptionEntityListRequest message. Does not implicitly {@link flyteidl.admin.DescriptionEntityListRequest.verify|verify} messages. + * Encodes the specified AuthRole message. Does not implicitly {@link flyteidl.admin.AuthRole.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.DescriptionEntityListRequest + * @memberof flyteidl.admin.AuthRole * @static - * @param {flyteidl.admin.IDescriptionEntityListRequest} message DescriptionEntityListRequest message or plain object to encode + * @param {flyteidl.admin.IAuthRole} message AuthRole message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DescriptionEntityListRequest.encode = function encode(message, writer) { + AuthRole.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(); + 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 a DescriptionEntityListRequest message from the specified reader or buffer. + * Decodes an AuthRole message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.DescriptionEntityListRequest + * @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.DescriptionEntityListRequest} DescriptionEntityListRequest + * @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 */ - DescriptionEntityListRequest.decode = function decode(reader, length) { + 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.DescriptionEntityListRequest(); + 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.resourceType = reader.int32(); + message.assumableIamRole = reader.string(); 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()); + message.kubernetesServiceAccount = reader.string(); break; default: reader.skipType(tag & 7); @@ -22618,70 +22409,46 @@ }; /** - * Verifies a DescriptionEntityListRequest message. + * Verifies an AuthRole message. * @function verify - * @memberof flyteidl.admin.DescriptionEntityListRequest + * @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 */ - DescriptionEntityListRequest.verify = function verify(message) { + AuthRole.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; - } + 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 DescriptionEntityListRequest; + return AuthRole; })(); - admin.EventErrorAlreadyInTerminalState = (function() { + admin.RawOutputDataConfig = (function() { /** - * Properties of an EventErrorAlreadyInTerminalState. + * Properties of a RawOutputDataConfig. * @memberof flyteidl.admin - * @interface IEventErrorAlreadyInTerminalState - * @property {string|null} [currentPhase] EventErrorAlreadyInTerminalState currentPhase + * @interface IRawOutputDataConfig + * @property {string|null} [outputLocationPrefix] RawOutputDataConfig outputLocationPrefix */ /** - * Constructs a new EventErrorAlreadyInTerminalState. + * Constructs a new RawOutputDataConfig. * @memberof flyteidl.admin - * @classdesc Represents an EventErrorAlreadyInTerminalState. - * @implements IEventErrorAlreadyInTerminalState + * @classdesc Represents a RawOutputDataConfig. + * @implements IRawOutputDataConfig * @constructor - * @param {flyteidl.admin.IEventErrorAlreadyInTerminalState=} [properties] Properties to set + * @param {flyteidl.admin.IRawOutputDataConfig=} [properties] Properties to set */ - function EventErrorAlreadyInTerminalState(properties) { + function RawOutputDataConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22689,62 +22456,62 @@ } /** - * EventErrorAlreadyInTerminalState currentPhase. - * @member {string} currentPhase - * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState + * RawOutputDataConfig outputLocationPrefix. + * @member {string} outputLocationPrefix + * @memberof flyteidl.admin.RawOutputDataConfig * @instance */ - EventErrorAlreadyInTerminalState.prototype.currentPhase = ""; + RawOutputDataConfig.prototype.outputLocationPrefix = ""; /** - * Creates a new EventErrorAlreadyInTerminalState instance using the specified properties. + * Creates a new RawOutputDataConfig instance using the specified properties. * @function create - * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState + * @memberof flyteidl.admin.RawOutputDataConfig * @static - * @param {flyteidl.admin.IEventErrorAlreadyInTerminalState=} [properties] Properties to set - * @returns {flyteidl.admin.EventErrorAlreadyInTerminalState} EventErrorAlreadyInTerminalState instance + * @param {flyteidl.admin.IRawOutputDataConfig=} [properties] Properties to set + * @returns {flyteidl.admin.RawOutputDataConfig} RawOutputDataConfig instance */ - EventErrorAlreadyInTerminalState.create = function create(properties) { - return new EventErrorAlreadyInTerminalState(properties); + RawOutputDataConfig.create = function create(properties) { + return new RawOutputDataConfig(properties); }; /** - * Encodes the specified EventErrorAlreadyInTerminalState message. Does not implicitly {@link flyteidl.admin.EventErrorAlreadyInTerminalState.verify|verify} messages. + * Encodes the specified RawOutputDataConfig message. Does not implicitly {@link flyteidl.admin.RawOutputDataConfig.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState + * @memberof flyteidl.admin.RawOutputDataConfig * @static - * @param {flyteidl.admin.IEventErrorAlreadyInTerminalState} message EventErrorAlreadyInTerminalState message or plain object to encode + * @param {flyteidl.admin.IRawOutputDataConfig} message RawOutputDataConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EventErrorAlreadyInTerminalState.encode = function encode(message, writer) { + RawOutputDataConfig.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); + if (message.outputLocationPrefix != null && message.hasOwnProperty("outputLocationPrefix")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.outputLocationPrefix); return writer; }; /** - * Decodes an EventErrorAlreadyInTerminalState message from the specified reader or buffer. + * Decodes a RawOutputDataConfig message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState + * @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.EventErrorAlreadyInTerminalState} EventErrorAlreadyInTerminalState + * @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 */ - EventErrorAlreadyInTerminalState.decode = function decode(reader, length) { + 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.EventErrorAlreadyInTerminalState(); + 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.currentPhase = reader.string(); + message.outputLocationPrefix = reader.string(); break; default: reader.skipType(tag & 7); @@ -22755,43 +22522,45 @@ }; /** - * Verifies an EventErrorAlreadyInTerminalState message. + * Verifies a RawOutputDataConfig message. * @function verify - * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState + * @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 */ - EventErrorAlreadyInTerminalState.verify = function verify(message) { + RawOutputDataConfig.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"; + if (message.outputLocationPrefix != null && message.hasOwnProperty("outputLocationPrefix")) + if (!$util.isString(message.outputLocationPrefix)) + return "outputLocationPrefix: string expected"; return null; }; - return EventErrorAlreadyInTerminalState; + return RawOutputDataConfig; })(); - admin.EventErrorIncompatibleCluster = (function() { + admin.FlyteURLs = (function() { /** - * Properties of an EventErrorIncompatibleCluster. + * Properties of a FlyteURLs. * @memberof flyteidl.admin - * @interface IEventErrorIncompatibleCluster - * @property {string|null} [cluster] EventErrorIncompatibleCluster cluster + * @interface IFlyteURLs + * @property {string|null} [inputs] FlyteURLs inputs + * @property {string|null} [outputs] FlyteURLs outputs + * @property {string|null} [deck] FlyteURLs deck */ /** - * Constructs a new EventErrorIncompatibleCluster. + * Constructs a new FlyteURLs. * @memberof flyteidl.admin - * @classdesc Represents an EventErrorIncompatibleCluster. - * @implements IEventErrorIncompatibleCluster + * @classdesc Represents a FlyteURLs. + * @implements IFlyteURLs * @constructor - * @param {flyteidl.admin.IEventErrorIncompatibleCluster=} [properties] Properties to set + * @param {flyteidl.admin.IFlyteURLs=} [properties] Properties to set */ - function EventErrorIncompatibleCluster(properties) { + function FlyteURLs(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22799,62 +22568,88 @@ } /** - * EventErrorIncompatibleCluster cluster. - * @member {string} cluster - * @memberof flyteidl.admin.EventErrorIncompatibleCluster + * FlyteURLs inputs. + * @member {string} inputs + * @memberof flyteidl.admin.FlyteURLs * @instance */ - EventErrorIncompatibleCluster.prototype.cluster = ""; + FlyteURLs.prototype.inputs = ""; /** - * Creates a new EventErrorIncompatibleCluster instance using the specified properties. + * 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.EventErrorIncompatibleCluster + * @memberof flyteidl.admin.FlyteURLs * @static - * @param {flyteidl.admin.IEventErrorIncompatibleCluster=} [properties] Properties to set - * @returns {flyteidl.admin.EventErrorIncompatibleCluster} EventErrorIncompatibleCluster instance + * @param {flyteidl.admin.IFlyteURLs=} [properties] Properties to set + * @returns {flyteidl.admin.FlyteURLs} FlyteURLs instance */ - EventErrorIncompatibleCluster.create = function create(properties) { - return new EventErrorIncompatibleCluster(properties); + FlyteURLs.create = function create(properties) { + return new FlyteURLs(properties); }; /** - * Encodes the specified EventErrorIncompatibleCluster message. Does not implicitly {@link flyteidl.admin.EventErrorIncompatibleCluster.verify|verify} messages. + * Encodes the specified FlyteURLs message. Does not implicitly {@link flyteidl.admin.FlyteURLs.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.EventErrorIncompatibleCluster + * @memberof flyteidl.admin.FlyteURLs * @static - * @param {flyteidl.admin.IEventErrorIncompatibleCluster} message EventErrorIncompatibleCluster message or plain object to encode + * @param {flyteidl.admin.IFlyteURLs} message FlyteURLs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EventErrorIncompatibleCluster.encode = function encode(message, writer) { + FlyteURLs.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); + 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 an EventErrorIncompatibleCluster message from the specified reader or buffer. + * Decodes a FlyteURLs message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.EventErrorIncompatibleCluster + * @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.EventErrorIncompatibleCluster} EventErrorIncompatibleCluster + * @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 */ - EventErrorIncompatibleCluster.decode = function decode(reader, length) { + 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.EventErrorIncompatibleCluster(); + 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.cluster = reader.string(); + message.inputs = reader.string(); + break; + case 2: + message.outputs = reader.string(); + break; + case 3: + message.deck = reader.string(); break; default: reader.skipType(tag & 7); @@ -22865,44 +22660,54 @@ }; /** - * Verifies an EventErrorIncompatibleCluster message. + * Verifies a FlyteURLs message. * @function verify - * @memberof flyteidl.admin.EventErrorIncompatibleCluster + * @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 */ - EventErrorIncompatibleCluster.verify = function verify(message) { + FlyteURLs.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"; + 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 EventErrorIncompatibleCluster; + return FlyteURLs; })(); - admin.EventFailureReason = (function() { + admin.DescriptionEntity = (function() { /** - * Properties of an EventFailureReason. + * Properties of a DescriptionEntity. * @memberof flyteidl.admin - * @interface IEventFailureReason - * @property {flyteidl.admin.IEventErrorAlreadyInTerminalState|null} [alreadyInTerminalState] EventFailureReason alreadyInTerminalState - * @property {flyteidl.admin.IEventErrorIncompatibleCluster|null} [incompatibleCluster] EventFailureReason incompatibleCluster + * @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 EventFailureReason. + * Constructs a new DescriptionEntity. * @memberof flyteidl.admin - * @classdesc Represents an EventFailureReason. - * @implements IEventFailureReason + * @classdesc Represents a DescriptionEntity. + * @implements IDescriptionEntity * @constructor - * @param {flyteidl.admin.IEventFailureReason=} [properties] Properties to set + * @param {flyteidl.admin.IDescriptionEntity=} [properties] Properties to set */ - function EventFailureReason(properties) { + function DescriptionEntity(properties) { + this.tags = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22910,89 +22715,117 @@ } /** - * EventFailureReason alreadyInTerminalState. - * @member {flyteidl.admin.IEventErrorAlreadyInTerminalState|null|undefined} alreadyInTerminalState - * @memberof flyteidl.admin.EventFailureReason + * DescriptionEntity id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.DescriptionEntity * @instance */ - EventFailureReason.prototype.alreadyInTerminalState = null; + DescriptionEntity.prototype.id = null; /** - * EventFailureReason incompatibleCluster. - * @member {flyteidl.admin.IEventErrorIncompatibleCluster|null|undefined} incompatibleCluster - * @memberof flyteidl.admin.EventFailureReason + * DescriptionEntity shortDescription. + * @member {string} shortDescription + * @memberof flyteidl.admin.DescriptionEntity * @instance */ - EventFailureReason.prototype.incompatibleCluster = null; + DescriptionEntity.prototype.shortDescription = ""; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * DescriptionEntity longDescription. + * @member {flyteidl.admin.IDescription|null|undefined} longDescription + * @memberof flyteidl.admin.DescriptionEntity + * @instance + */ + DescriptionEntity.prototype.longDescription = null; /** - * EventFailureReason reason. - * @member {"alreadyInTerminalState"|"incompatibleCluster"|undefined} reason - * @memberof flyteidl.admin.EventFailureReason + * DescriptionEntity sourceCode. + * @member {flyteidl.admin.ISourceCode|null|undefined} sourceCode + * @memberof flyteidl.admin.DescriptionEntity * @instance */ - Object.defineProperty(EventFailureReason.prototype, "reason", { - get: $util.oneOfGetter($oneOfFields = ["alreadyInTerminalState", "incompatibleCluster"]), - set: $util.oneOfSetter($oneOfFields) - }); + DescriptionEntity.prototype.sourceCode = null; /** - * Creates a new EventFailureReason instance using the specified properties. + * 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.EventFailureReason + * @memberof flyteidl.admin.DescriptionEntity * @static - * @param {flyteidl.admin.IEventFailureReason=} [properties] Properties to set - * @returns {flyteidl.admin.EventFailureReason} EventFailureReason instance + * @param {flyteidl.admin.IDescriptionEntity=} [properties] Properties to set + * @returns {flyteidl.admin.DescriptionEntity} DescriptionEntity instance */ - EventFailureReason.create = function create(properties) { - return new EventFailureReason(properties); + DescriptionEntity.create = function create(properties) { + return new DescriptionEntity(properties); }; /** - * Encodes the specified EventFailureReason message. Does not implicitly {@link flyteidl.admin.EventFailureReason.verify|verify} messages. + * Encodes the specified DescriptionEntity message. Does not implicitly {@link flyteidl.admin.DescriptionEntity.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.EventFailureReason + * @memberof flyteidl.admin.DescriptionEntity * @static - * @param {flyteidl.admin.IEventFailureReason} message EventFailureReason message or plain object to encode + * @param {flyteidl.admin.IDescriptionEntity} message DescriptionEntity message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EventFailureReason.encode = function encode(message, writer) { + DescriptionEntity.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(); + 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 an EventFailureReason message from the specified reader or buffer. + * Decodes a DescriptionEntity message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.EventFailureReason + * @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.EventFailureReason} EventFailureReason + * @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 */ - EventFailureReason.decode = function decode(reader, length) { + 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.EventFailureReason(); + 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.alreadyInTerminalState = $root.flyteidl.admin.EventErrorAlreadyInTerminalState.decode(reader, reader.uint32()); + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); break; case 2: - message.incompatibleCluster = $root.flyteidl.admin.EventErrorIncompatibleCluster.decode(reader, reader.uint32()); + 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); @@ -23003,60 +22836,86 @@ }; /** - * Verifies an EventFailureReason message. + * Verifies a DescriptionEntity message. * @function verify - * @memberof flyteidl.admin.EventFailureReason + * @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 */ - EventFailureReason.verify = function verify(message) { + DescriptionEntity.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.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + 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; - } + 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 EventFailureReason; + return DescriptionEntity; })(); - admin.WorkflowExecutionEventRequest = (function() { + /** + * 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 WorkflowExecutionEventRequest. + * Properties of a Description. * @memberof flyteidl.admin - * @interface IWorkflowExecutionEventRequest - * @property {string|null} [requestId] WorkflowExecutionEventRequest requestId - * @property {flyteidl.event.IWorkflowExecutionEvent|null} [event] WorkflowExecutionEventRequest event + * @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 WorkflowExecutionEventRequest. + * Constructs a new Description. * @memberof flyteidl.admin - * @classdesc Represents a WorkflowExecutionEventRequest. - * @implements IWorkflowExecutionEventRequest + * @classdesc Represents a Description. + * @implements IDescription * @constructor - * @param {flyteidl.admin.IWorkflowExecutionEventRequest=} [properties] Properties to set + * @param {flyteidl.admin.IDescription=} [properties] Properties to set */ - function WorkflowExecutionEventRequest(properties) { + function Description(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23064,75 +22923,115 @@ } /** - * WorkflowExecutionEventRequest requestId. - * @member {string} requestId - * @memberof flyteidl.admin.WorkflowExecutionEventRequest + * Description value. + * @member {string} value + * @memberof flyteidl.admin.Description * @instance */ - WorkflowExecutionEventRequest.prototype.requestId = ""; + Description.prototype.value = ""; /** - * WorkflowExecutionEventRequest event. - * @member {flyteidl.event.IWorkflowExecutionEvent|null|undefined} event - * @memberof flyteidl.admin.WorkflowExecutionEventRequest + * Description uri. + * @member {string} uri + * @memberof flyteidl.admin.Description * @instance */ - WorkflowExecutionEventRequest.prototype.event = null; + Description.prototype.uri = ""; /** - * 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 + * Description format. + * @member {flyteidl.admin.DescriptionFormat} format + * @memberof flyteidl.admin.Description + * @instance */ - WorkflowExecutionEventRequest.create = function create(properties) { - return new WorkflowExecutionEventRequest(properties); - }; + Description.prototype.format = 0; /** - * 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 + * Description iconLink. + * @member {string} iconLink + * @memberof flyteidl.admin.Description + * @instance */ - WorkflowExecutionEventRequest.encode = function encode(message, writer) { + 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.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(); + 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 WorkflowExecutionEventRequest message from the specified reader or buffer. + * Decodes a Description message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.WorkflowExecutionEventRequest + * @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.WorkflowExecutionEventRequest} WorkflowExecutionEventRequest + * @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 */ - WorkflowExecutionEventRequest.decode = function decode(reader, length) { + 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.WorkflowExecutionEventRequest(); + 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.requestId = reader.string(); + message.value = reader.string(); break; case 2: - message.event = $root.flyteidl.event.WorkflowExecutionEvent.decode(reader, reader.uint32()); + message.uri = reader.string(); + break; + case 3: + message.format = reader.int32(); + break; + case 4: + message.iconLink = reader.string(); break; default: reader.skipType(tag & 7); @@ -23143,47 +23042,66 @@ }; /** - * Verifies a WorkflowExecutionEventRequest message. + * Verifies a Description message. * @function verify - * @memberof flyteidl.admin.WorkflowExecutionEventRequest + * @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 */ - WorkflowExecutionEventRequest.verify = function verify(message) { + Description.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; + 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 WorkflowExecutionEventRequest; + return Description; })(); - admin.WorkflowExecutionEventResponse = (function() { + admin.SourceCode = (function() { /** - * Properties of a WorkflowExecutionEventResponse. + * Properties of a SourceCode. * @memberof flyteidl.admin - * @interface IWorkflowExecutionEventResponse + * @interface ISourceCode + * @property {string|null} [link] SourceCode link */ /** - * Constructs a new WorkflowExecutionEventResponse. + * Constructs a new SourceCode. * @memberof flyteidl.admin - * @classdesc Represents a WorkflowExecutionEventResponse. - * @implements IWorkflowExecutionEventResponse + * @classdesc Represents a SourceCode. + * @implements ISourceCode * @constructor - * @param {flyteidl.admin.IWorkflowExecutionEventResponse=} [properties] Properties to set + * @param {flyteidl.admin.ISourceCode=} [properties] Properties to set */ - function WorkflowExecutionEventResponse(properties) { + function SourceCode(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23191,50 +23109,63 @@ } /** - * Creates a new WorkflowExecutionEventResponse instance using the specified properties. + * 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.WorkflowExecutionEventResponse + * @memberof flyteidl.admin.SourceCode * @static - * @param {flyteidl.admin.IWorkflowExecutionEventResponse=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowExecutionEventResponse} WorkflowExecutionEventResponse instance + * @param {flyteidl.admin.ISourceCode=} [properties] Properties to set + * @returns {flyteidl.admin.SourceCode} SourceCode instance */ - WorkflowExecutionEventResponse.create = function create(properties) { - return new WorkflowExecutionEventResponse(properties); + SourceCode.create = function create(properties) { + return new SourceCode(properties); }; /** - * Encodes the specified WorkflowExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionEventResponse.verify|verify} messages. + * Encodes the specified SourceCode message. Does not implicitly {@link flyteidl.admin.SourceCode.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.WorkflowExecutionEventResponse + * @memberof flyteidl.admin.SourceCode * @static - * @param {flyteidl.admin.IWorkflowExecutionEventResponse} message WorkflowExecutionEventResponse message or plain object to encode + * @param {flyteidl.admin.ISourceCode} message SourceCode message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkflowExecutionEventResponse.encode = function encode(message, 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 WorkflowExecutionEventResponse message from the specified reader or buffer. + * Decodes a SourceCode message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.WorkflowExecutionEventResponse + * @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.WorkflowExecutionEventResponse} WorkflowExecutionEventResponse + * @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 */ - WorkflowExecutionEventResponse.decode = function decode(reader, length) { + 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.WorkflowExecutionEventResponse(); + 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; @@ -23244,41 +23175,45 @@ }; /** - * Verifies a WorkflowExecutionEventResponse message. + * Verifies a SourceCode message. * @function verify - * @memberof flyteidl.admin.WorkflowExecutionEventResponse + * @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 */ - WorkflowExecutionEventResponse.verify = function verify(message) { + 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 WorkflowExecutionEventResponse; + return SourceCode; })(); - admin.NodeExecutionEventRequest = (function() { + admin.DescriptionEntityList = (function() { /** - * Properties of a NodeExecutionEventRequest. + * Properties of a DescriptionEntityList. * @memberof flyteidl.admin - * @interface INodeExecutionEventRequest - * @property {string|null} [requestId] NodeExecutionEventRequest requestId - * @property {flyteidl.event.INodeExecutionEvent|null} [event] NodeExecutionEventRequest event + * @interface IDescriptionEntityList + * @property {Array.|null} [descriptionEntities] DescriptionEntityList descriptionEntities + * @property {string|null} [token] DescriptionEntityList token */ /** - * Constructs a new NodeExecutionEventRequest. + * Constructs a new DescriptionEntityList. * @memberof flyteidl.admin - * @classdesc Represents a NodeExecutionEventRequest. - * @implements INodeExecutionEventRequest + * @classdesc Represents a DescriptionEntityList. + * @implements IDescriptionEntityList * @constructor - * @param {flyteidl.admin.INodeExecutionEventRequest=} [properties] Properties to set + * @param {flyteidl.admin.IDescriptionEntityList=} [properties] Properties to set */ - function NodeExecutionEventRequest(properties) { + function DescriptionEntityList(properties) { + this.descriptionEntities = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23286,75 +23221,78 @@ } /** - * NodeExecutionEventRequest requestId. - * @member {string} requestId - * @memberof flyteidl.admin.NodeExecutionEventRequest + * DescriptionEntityList descriptionEntities. + * @member {Array.} descriptionEntities + * @memberof flyteidl.admin.DescriptionEntityList * @instance */ - NodeExecutionEventRequest.prototype.requestId = ""; + DescriptionEntityList.prototype.descriptionEntities = $util.emptyArray; /** - * NodeExecutionEventRequest event. - * @member {flyteidl.event.INodeExecutionEvent|null|undefined} event - * @memberof flyteidl.admin.NodeExecutionEventRequest + * DescriptionEntityList token. + * @member {string} token + * @memberof flyteidl.admin.DescriptionEntityList * @instance */ - NodeExecutionEventRequest.prototype.event = null; + DescriptionEntityList.prototype.token = ""; /** - * Creates a new NodeExecutionEventRequest instance using the specified properties. + * Creates a new DescriptionEntityList instance using the specified properties. * @function create - * @memberof flyteidl.admin.NodeExecutionEventRequest + * @memberof flyteidl.admin.DescriptionEntityList * @static - * @param {flyteidl.admin.INodeExecutionEventRequest=} [properties] Properties to set - * @returns {flyteidl.admin.NodeExecutionEventRequest} NodeExecutionEventRequest instance + * @param {flyteidl.admin.IDescriptionEntityList=} [properties] Properties to set + * @returns {flyteidl.admin.DescriptionEntityList} DescriptionEntityList instance */ - NodeExecutionEventRequest.create = function create(properties) { - return new NodeExecutionEventRequest(properties); + DescriptionEntityList.create = function create(properties) { + return new DescriptionEntityList(properties); }; /** - * Encodes the specified NodeExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionEventRequest.verify|verify} messages. + * Encodes the specified DescriptionEntityList message. Does not implicitly {@link flyteidl.admin.DescriptionEntityList.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.NodeExecutionEventRequest + * @memberof flyteidl.admin.DescriptionEntityList * @static - * @param {flyteidl.admin.INodeExecutionEventRequest} message NodeExecutionEventRequest message or plain object to encode + * @param {flyteidl.admin.IDescriptionEntityList} message DescriptionEntityList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeExecutionEventRequest.encode = function encode(message, writer) { + DescriptionEntityList.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(); + 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 NodeExecutionEventRequest message from the specified reader or buffer. + * Decodes a DescriptionEntityList message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.NodeExecutionEventRequest + * @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.NodeExecutionEventRequest} NodeExecutionEventRequest + * @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 */ - NodeExecutionEventRequest.decode = function decode(reader, length) { + 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.NodeExecutionEventRequest(); + 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: - message.requestId = reader.string(); + if (!(message.descriptionEntities && message.descriptionEntities.length)) + message.descriptionEntities = []; + message.descriptionEntities.push($root.flyteidl.admin.DescriptionEntity.decode(reader, reader.uint32())); break; case 2: - message.event = $root.flyteidl.event.NodeExecutionEvent.decode(reader, reader.uint32()); + message.token = reader.string(); break; default: reader.skipType(tag & 7); @@ -23365,47 +23303,57 @@ }; /** - * Verifies a NodeExecutionEventRequest message. + * Verifies a DescriptionEntityList message. * @function verify - * @memberof flyteidl.admin.NodeExecutionEventRequest + * @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 */ - NodeExecutionEventRequest.verify = function verify(message) { + DescriptionEntityList.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; + 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 NodeExecutionEventRequest; + return DescriptionEntityList; })(); - admin.NodeExecutionEventResponse = (function() { + admin.DescriptionEntityListRequest = (function() { /** - * Properties of a NodeExecutionEventResponse. + * Properties of a DescriptionEntityListRequest. * @memberof flyteidl.admin - * @interface INodeExecutionEventResponse + * @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 NodeExecutionEventResponse. + * Constructs a new DescriptionEntityListRequest. * @memberof flyteidl.admin - * @classdesc Represents a NodeExecutionEventResponse. - * @implements INodeExecutionEventResponse + * @classdesc Represents a DescriptionEntityListRequest. + * @implements IDescriptionEntityListRequest * @constructor - * @param {flyteidl.admin.INodeExecutionEventResponse=} [properties] Properties to set + * @param {flyteidl.admin.IDescriptionEntityListRequest=} [properties] Properties to set */ - function NodeExecutionEventResponse(properties) { + function DescriptionEntityListRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23413,50 +23361,128 @@ } /** - * Creates a new NodeExecutionEventResponse instance using the specified properties. + * 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.NodeExecutionEventResponse + * @memberof flyteidl.admin.DescriptionEntityListRequest * @static - * @param {flyteidl.admin.INodeExecutionEventResponse=} [properties] Properties to set - * @returns {flyteidl.admin.NodeExecutionEventResponse} NodeExecutionEventResponse instance + * @param {flyteidl.admin.IDescriptionEntityListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.DescriptionEntityListRequest} DescriptionEntityListRequest instance */ - NodeExecutionEventResponse.create = function create(properties) { - return new NodeExecutionEventResponse(properties); + DescriptionEntityListRequest.create = function create(properties) { + return new DescriptionEntityListRequest(properties); }; /** - * Encodes the specified NodeExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.NodeExecutionEventResponse.verify|verify} messages. + * Encodes the specified DescriptionEntityListRequest message. Does not implicitly {@link flyteidl.admin.DescriptionEntityListRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.NodeExecutionEventResponse + * @memberof flyteidl.admin.DescriptionEntityListRequest * @static - * @param {flyteidl.admin.INodeExecutionEventResponse} message NodeExecutionEventResponse message or plain object to encode + * @param {flyteidl.admin.IDescriptionEntityListRequest} message DescriptionEntityListRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeExecutionEventResponse.encode = function encode(message, 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 NodeExecutionEventResponse message from the specified reader or buffer. + * Decodes a DescriptionEntityListRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.NodeExecutionEventResponse + * @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.NodeExecutionEventResponse} NodeExecutionEventResponse + * @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 */ - NodeExecutionEventResponse.decode = function decode(reader, length) { + 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.NodeExecutionEventResponse(); + 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; @@ -23466,41 +23492,70 @@ }; /** - * Verifies a NodeExecutionEventResponse message. + * Verifies a DescriptionEntityListRequest message. * @function verify - * @memberof flyteidl.admin.NodeExecutionEventResponse + * @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 */ - NodeExecutionEventResponse.verify = function verify(message) { + 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 NodeExecutionEventResponse; + return DescriptionEntityListRequest; })(); - admin.TaskExecutionEventRequest = (function() { + admin.EventErrorAlreadyInTerminalState = (function() { /** - * Properties of a TaskExecutionEventRequest. + * Properties of an EventErrorAlreadyInTerminalState. * @memberof flyteidl.admin - * @interface ITaskExecutionEventRequest - * @property {string|null} [requestId] TaskExecutionEventRequest requestId - * @property {flyteidl.event.ITaskExecutionEvent|null} [event] TaskExecutionEventRequest event + * @interface IEventErrorAlreadyInTerminalState + * @property {string|null} [currentPhase] EventErrorAlreadyInTerminalState currentPhase */ /** - * Constructs a new TaskExecutionEventRequest. + * Constructs a new EventErrorAlreadyInTerminalState. * @memberof flyteidl.admin - * @classdesc Represents a TaskExecutionEventRequest. - * @implements ITaskExecutionEventRequest + * @classdesc Represents an EventErrorAlreadyInTerminalState. + * @implements IEventErrorAlreadyInTerminalState * @constructor - * @param {flyteidl.admin.ITaskExecutionEventRequest=} [properties] Properties to set + * @param {flyteidl.admin.IEventErrorAlreadyInTerminalState=} [properties] Properties to set */ - function TaskExecutionEventRequest(properties) { + function EventErrorAlreadyInTerminalState(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23508,75 +23563,62 @@ } /** - * 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 + * EventErrorAlreadyInTerminalState currentPhase. + * @member {string} currentPhase + * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState * @instance */ - TaskExecutionEventRequest.prototype.event = null; + EventErrorAlreadyInTerminalState.prototype.currentPhase = ""; /** - * Creates a new TaskExecutionEventRequest instance using the specified properties. + * Creates a new EventErrorAlreadyInTerminalState instance using the specified properties. * @function create - * @memberof flyteidl.admin.TaskExecutionEventRequest + * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState * @static - * @param {flyteidl.admin.ITaskExecutionEventRequest=} [properties] Properties to set - * @returns {flyteidl.admin.TaskExecutionEventRequest} TaskExecutionEventRequest instance + * @param {flyteidl.admin.IEventErrorAlreadyInTerminalState=} [properties] Properties to set + * @returns {flyteidl.admin.EventErrorAlreadyInTerminalState} EventErrorAlreadyInTerminalState instance */ - TaskExecutionEventRequest.create = function create(properties) { - return new TaskExecutionEventRequest(properties); + EventErrorAlreadyInTerminalState.create = function create(properties) { + return new EventErrorAlreadyInTerminalState(properties); }; /** - * Encodes the specified TaskExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionEventRequest.verify|verify} messages. + * Encodes the specified EventErrorAlreadyInTerminalState message. Does not implicitly {@link flyteidl.admin.EventErrorAlreadyInTerminalState.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.TaskExecutionEventRequest + * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState * @static - * @param {flyteidl.admin.ITaskExecutionEventRequest} message TaskExecutionEventRequest message or plain object to encode + * @param {flyteidl.admin.IEventErrorAlreadyInTerminalState} message EventErrorAlreadyInTerminalState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskExecutionEventRequest.encode = function encode(message, writer) { + EventErrorAlreadyInTerminalState.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(); + if (message.currentPhase != null && message.hasOwnProperty("currentPhase")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.currentPhase); return writer; }; /** - * Decodes a TaskExecutionEventRequest message from the specified reader or buffer. + * Decodes an EventErrorAlreadyInTerminalState message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.TaskExecutionEventRequest + * @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.TaskExecutionEventRequest} TaskExecutionEventRequest + * @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 */ - TaskExecutionEventRequest.decode = function decode(reader, length) { + 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.TaskExecutionEventRequest(); + 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.requestId = reader.string(); - break; - case 2: - message.event = $root.flyteidl.event.TaskExecutionEvent.decode(reader, reader.uint32()); + message.currentPhase = reader.string(); break; default: reader.skipType(tag & 7); @@ -23587,47 +23629,43 @@ }; /** - * Verifies a TaskExecutionEventRequest message. + * Verifies an EventErrorAlreadyInTerminalState message. * @function verify - * @memberof flyteidl.admin.TaskExecutionEventRequest + * @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 */ - TaskExecutionEventRequest.verify = function verify(message) { + EventErrorAlreadyInTerminalState.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; - } + if (message.currentPhase != null && message.hasOwnProperty("currentPhase")) + if (!$util.isString(message.currentPhase)) + return "currentPhase: string expected"; return null; }; - return TaskExecutionEventRequest; + return EventErrorAlreadyInTerminalState; })(); - admin.TaskExecutionEventResponse = (function() { + admin.EventErrorIncompatibleCluster = (function() { /** - * Properties of a TaskExecutionEventResponse. + * Properties of an EventErrorIncompatibleCluster. * @memberof flyteidl.admin - * @interface ITaskExecutionEventResponse + * @interface IEventErrorIncompatibleCluster + * @property {string|null} [cluster] EventErrorIncompatibleCluster cluster */ /** - * Constructs a new TaskExecutionEventResponse. + * Constructs a new EventErrorIncompatibleCluster. * @memberof flyteidl.admin - * @classdesc Represents a TaskExecutionEventResponse. - * @implements ITaskExecutionEventResponse + * @classdesc Represents an EventErrorIncompatibleCluster. + * @implements IEventErrorIncompatibleCluster * @constructor - * @param {flyteidl.admin.ITaskExecutionEventResponse=} [properties] Properties to set + * @param {flyteidl.admin.IEventErrorIncompatibleCluster=} [properties] Properties to set */ - function TaskExecutionEventResponse(properties) { + function EventErrorIncompatibleCluster(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23635,50 +23673,63 @@ } /** - * Creates a new TaskExecutionEventResponse instance using the specified properties. + * 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.TaskExecutionEventResponse + * @memberof flyteidl.admin.EventErrorIncompatibleCluster * @static - * @param {flyteidl.admin.ITaskExecutionEventResponse=} [properties] Properties to set - * @returns {flyteidl.admin.TaskExecutionEventResponse} TaskExecutionEventResponse instance + * @param {flyteidl.admin.IEventErrorIncompatibleCluster=} [properties] Properties to set + * @returns {flyteidl.admin.EventErrorIncompatibleCluster} EventErrorIncompatibleCluster instance */ - TaskExecutionEventResponse.create = function create(properties) { - return new TaskExecutionEventResponse(properties); + EventErrorIncompatibleCluster.create = function create(properties) { + return new EventErrorIncompatibleCluster(properties); }; /** - * Encodes the specified TaskExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.TaskExecutionEventResponse.verify|verify} messages. + * Encodes the specified EventErrorIncompatibleCluster message. Does not implicitly {@link flyteidl.admin.EventErrorIncompatibleCluster.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.TaskExecutionEventResponse + * @memberof flyteidl.admin.EventErrorIncompatibleCluster * @static - * @param {flyteidl.admin.ITaskExecutionEventResponse} message TaskExecutionEventResponse message or plain object to encode + * @param {flyteidl.admin.IEventErrorIncompatibleCluster} message EventErrorIncompatibleCluster message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskExecutionEventResponse.encode = function encode(message, 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 a TaskExecutionEventResponse message from the specified reader or buffer. + * Decodes an EventErrorIncompatibleCluster message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.TaskExecutionEventResponse + * @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.TaskExecutionEventResponse} TaskExecutionEventResponse + * @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 */ - TaskExecutionEventResponse.decode = function decode(reader, length) { + 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.TaskExecutionEventResponse(); + 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; @@ -23688,44 +23739,44 @@ }; /** - * Verifies a TaskExecutionEventResponse message. + * Verifies an EventErrorIncompatibleCluster message. * @function verify - * @memberof flyteidl.admin.TaskExecutionEventResponse + * @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 */ - TaskExecutionEventResponse.verify = function verify(message) { + 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 TaskExecutionEventResponse; + return EventErrorIncompatibleCluster; })(); - admin.ExecutionCreateRequest = (function() { + admin.EventFailureReason = (function() { /** - * Properties of an ExecutionCreateRequest. + * Properties of an EventFailureReason. * @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 + * @interface IEventFailureReason + * @property {flyteidl.admin.IEventErrorAlreadyInTerminalState|null} [alreadyInTerminalState] EventFailureReason alreadyInTerminalState + * @property {flyteidl.admin.IEventErrorIncompatibleCluster|null} [incompatibleCluster] EventFailureReason incompatibleCluster */ /** - * Constructs a new ExecutionCreateRequest. + * Constructs a new EventFailureReason. * @memberof flyteidl.admin - * @classdesc Represents an ExecutionCreateRequest. - * @implements IExecutionCreateRequest + * @classdesc Represents an EventFailureReason. + * @implements IEventFailureReason * @constructor - * @param {flyteidl.admin.IExecutionCreateRequest=} [properties] Properties to set + * @param {flyteidl.admin.IEventFailureReason=} [properties] Properties to set */ - function ExecutionCreateRequest(properties) { + function EventFailureReason(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23733,114 +23784,89 @@ } /** - * ExecutionCreateRequest project. - * @member {string} project - * @memberof flyteidl.admin.ExecutionCreateRequest - * @instance - */ - ExecutionCreateRequest.prototype.project = ""; - - /** - * ExecutionCreateRequest domain. - * @member {string} domain - * @memberof flyteidl.admin.ExecutionCreateRequest + * EventFailureReason alreadyInTerminalState. + * @member {flyteidl.admin.IEventErrorAlreadyInTerminalState|null|undefined} alreadyInTerminalState + * @memberof flyteidl.admin.EventFailureReason * @instance */ - ExecutionCreateRequest.prototype.domain = ""; + EventFailureReason.prototype.alreadyInTerminalState = null; /** - * ExecutionCreateRequest name. - * @member {string} name - * @memberof flyteidl.admin.ExecutionCreateRequest + * EventFailureReason incompatibleCluster. + * @member {flyteidl.admin.IEventErrorIncompatibleCluster|null|undefined} incompatibleCluster + * @memberof flyteidl.admin.EventFailureReason * @instance */ - ExecutionCreateRequest.prototype.name = ""; + EventFailureReason.prototype.incompatibleCluster = null; - /** - * ExecutionCreateRequest spec. - * @member {flyteidl.admin.IExecutionSpec|null|undefined} spec - * @memberof flyteidl.admin.ExecutionCreateRequest - * @instance - */ - ExecutionCreateRequest.prototype.spec = null; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * ExecutionCreateRequest inputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} inputs - * @memberof flyteidl.admin.ExecutionCreateRequest + * EventFailureReason reason. + * @member {"alreadyInTerminalState"|"incompatibleCluster"|undefined} reason + * @memberof flyteidl.admin.EventFailureReason * @instance */ - ExecutionCreateRequest.prototype.inputs = null; + Object.defineProperty(EventFailureReason.prototype, "reason", { + get: $util.oneOfGetter($oneOfFields = ["alreadyInTerminalState", "incompatibleCluster"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new ExecutionCreateRequest instance using the specified properties. + * Creates a new EventFailureReason instance using the specified properties. * @function create - * @memberof flyteidl.admin.ExecutionCreateRequest + * @memberof flyteidl.admin.EventFailureReason * @static - * @param {flyteidl.admin.IExecutionCreateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionCreateRequest} ExecutionCreateRequest instance + * @param {flyteidl.admin.IEventFailureReason=} [properties] Properties to set + * @returns {flyteidl.admin.EventFailureReason} EventFailureReason instance */ - ExecutionCreateRequest.create = function create(properties) { - return new ExecutionCreateRequest(properties); + EventFailureReason.create = function create(properties) { + return new EventFailureReason(properties); }; /** - * Encodes the specified ExecutionCreateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionCreateRequest.verify|verify} messages. + * Encodes the specified EventFailureReason message. Does not implicitly {@link flyteidl.admin.EventFailureReason.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ExecutionCreateRequest + * @memberof flyteidl.admin.EventFailureReason * @static - * @param {flyteidl.admin.IExecutionCreateRequest} message ExecutionCreateRequest message or plain object to encode + * @param {flyteidl.admin.IEventFailureReason} message EventFailureReason message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecutionCreateRequest.encode = function encode(message, writer) { + EventFailureReason.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.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 ExecutionCreateRequest message from the specified reader or buffer. + * Decodes an EventFailureReason message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ExecutionCreateRequest + * @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.ExecutionCreateRequest} ExecutionCreateRequest + * @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 */ - ExecutionCreateRequest.decode = function decode(reader, length) { + 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.ExecutionCreateRequest(); + 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.project = reader.string(); + message.alreadyInTerminalState = $root.flyteidl.admin.EventErrorAlreadyInTerminalState.decode(reader, reader.uint32()); 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()); + message.incompatibleCluster = $root.flyteidl.admin.EventErrorIncompatibleCluster.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -23851,61 +23877,60 @@ }; /** - * Verifies an ExecutionCreateRequest message. + * Verifies an EventFailureReason message. * @function verify - * @memberof flyteidl.admin.ExecutionCreateRequest + * @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 */ - ExecutionCreateRequest.verify = function verify(message) { + EventFailureReason.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; + 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 ExecutionCreateRequest; + return EventFailureReason; })(); - admin.ExecutionRelaunchRequest = (function() { + admin.WorkflowExecutionEventRequest = (function() { /** - * Properties of an ExecutionRelaunchRequest. + * Properties of a WorkflowExecutionEventRequest. * @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 + * @interface IWorkflowExecutionEventRequest + * @property {string|null} [requestId] WorkflowExecutionEventRequest requestId + * @property {flyteidl.event.IWorkflowExecutionEvent|null} [event] WorkflowExecutionEventRequest event */ /** - * Constructs a new ExecutionRelaunchRequest. + * Constructs a new WorkflowExecutionEventRequest. * @memberof flyteidl.admin - * @classdesc Represents an ExecutionRelaunchRequest. - * @implements IExecutionRelaunchRequest + * @classdesc Represents a WorkflowExecutionEventRequest. + * @implements IWorkflowExecutionEventRequest * @constructor - * @param {flyteidl.admin.IExecutionRelaunchRequest=} [properties] Properties to set + * @param {flyteidl.admin.IWorkflowExecutionEventRequest=} [properties] Properties to set */ - function ExecutionRelaunchRequest(properties) { + function WorkflowExecutionEventRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23913,88 +23938,75 @@ } /** - * 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 + * WorkflowExecutionEventRequest requestId. + * @member {string} requestId + * @memberof flyteidl.admin.WorkflowExecutionEventRequest * @instance */ - ExecutionRelaunchRequest.prototype.name = ""; + WorkflowExecutionEventRequest.prototype.requestId = ""; /** - * ExecutionRelaunchRequest overwriteCache. - * @member {boolean} overwriteCache - * @memberof flyteidl.admin.ExecutionRelaunchRequest + * WorkflowExecutionEventRequest event. + * @member {flyteidl.event.IWorkflowExecutionEvent|null|undefined} event + * @memberof flyteidl.admin.WorkflowExecutionEventRequest * @instance */ - ExecutionRelaunchRequest.prototype.overwriteCache = false; + WorkflowExecutionEventRequest.prototype.event = null; /** - * Creates a new ExecutionRelaunchRequest instance using the specified properties. + * Creates a new WorkflowExecutionEventRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.ExecutionRelaunchRequest + * @memberof flyteidl.admin.WorkflowExecutionEventRequest * @static - * @param {flyteidl.admin.IExecutionRelaunchRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionRelaunchRequest} ExecutionRelaunchRequest instance + * @param {flyteidl.admin.IWorkflowExecutionEventRequest=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowExecutionEventRequest} WorkflowExecutionEventRequest instance */ - ExecutionRelaunchRequest.create = function create(properties) { - return new ExecutionRelaunchRequest(properties); + WorkflowExecutionEventRequest.create = function create(properties) { + return new WorkflowExecutionEventRequest(properties); }; /** - * Encodes the specified ExecutionRelaunchRequest message. Does not implicitly {@link flyteidl.admin.ExecutionRelaunchRequest.verify|verify} messages. + * Encodes the specified WorkflowExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionEventRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ExecutionRelaunchRequest + * @memberof flyteidl.admin.WorkflowExecutionEventRequest * @static - * @param {flyteidl.admin.IExecutionRelaunchRequest} message ExecutionRelaunchRequest message or plain object to encode + * @param {flyteidl.admin.IWorkflowExecutionEventRequest} message WorkflowExecutionEventRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecutionRelaunchRequest.encode = function encode(message, writer) { + WorkflowExecutionEventRequest.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); + 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 an ExecutionRelaunchRequest message from the specified reader or buffer. + * Decodes a WorkflowExecutionEventRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ExecutionRelaunchRequest + * @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.ExecutionRelaunchRequest} ExecutionRelaunchRequest + * @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 */ - ExecutionRelaunchRequest.decode = function decode(reader, length) { + 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.ExecutionRelaunchRequest(); + 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.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 3: - message.name = reader.string(); + message.requestId = reader.string(); break; - case 4: - message.overwriteCache = reader.bool(); + case 2: + message.event = $root.flyteidl.event.WorkflowExecutionEvent.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -24005,53 +24017,47 @@ }; /** - * Verifies an ExecutionRelaunchRequest message. + * Verifies a WorkflowExecutionEventRequest message. * @function verify - * @memberof flyteidl.admin.ExecutionRelaunchRequest + * @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 */ - ExecutionRelaunchRequest.verify = function verify(message) { + WorkflowExecutionEventRequest.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 (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 "id." + error; + return "event." + 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; + return WorkflowExecutionEventRequest; })(); - admin.ExecutionRecoverRequest = (function() { + admin.WorkflowExecutionEventResponse = (function() { /** - * Properties of an ExecutionRecoverRequest. + * Properties of a WorkflowExecutionEventResponse. * @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 + * @interface IWorkflowExecutionEventResponse */ /** - * Constructs a new ExecutionRecoverRequest. + * Constructs a new WorkflowExecutionEventResponse. * @memberof flyteidl.admin - * @classdesc Represents an ExecutionRecoverRequest. - * @implements IExecutionRecoverRequest + * @classdesc Represents a WorkflowExecutionEventResponse. + * @implements IWorkflowExecutionEventResponse * @constructor - * @param {flyteidl.admin.IExecutionRecoverRequest=} [properties] Properties to set + * @param {flyteidl.admin.IWorkflowExecutionEventResponse=} [properties] Properties to set */ - function ExecutionRecoverRequest(properties) { + function WorkflowExecutionEventResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24059,89 +24065,50 @@ } /** - * 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. + * Creates a new WorkflowExecutionEventResponse instance using the specified properties. * @function create - * @memberof flyteidl.admin.ExecutionRecoverRequest + * @memberof flyteidl.admin.WorkflowExecutionEventResponse * @static - * @param {flyteidl.admin.IExecutionRecoverRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionRecoverRequest} ExecutionRecoverRequest instance + * @param {flyteidl.admin.IWorkflowExecutionEventResponse=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowExecutionEventResponse} WorkflowExecutionEventResponse instance */ - ExecutionRecoverRequest.create = function create(properties) { - return new ExecutionRecoverRequest(properties); + WorkflowExecutionEventResponse.create = function create(properties) { + return new WorkflowExecutionEventResponse(properties); }; /** - * Encodes the specified ExecutionRecoverRequest message. Does not implicitly {@link flyteidl.admin.ExecutionRecoverRequest.verify|verify} messages. + * Encodes the specified WorkflowExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionEventResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ExecutionRecoverRequest + * @memberof flyteidl.admin.WorkflowExecutionEventResponse * @static - * @param {flyteidl.admin.IExecutionRecoverRequest} message ExecutionRecoverRequest message or plain object to encode + * @param {flyteidl.admin.IWorkflowExecutionEventResponse} message WorkflowExecutionEventResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecutionRecoverRequest.encode = function encode(message, writer) { + WorkflowExecutionEventResponse.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. + * Decodes a WorkflowExecutionEventResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ExecutionRecoverRequest + * @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.ExecutionRecoverRequest} ExecutionRecoverRequest + * @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 */ - ExecutionRecoverRequest.decode = function decode(reader, length) { + 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.ExecutionRecoverRequest(); + 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) { - 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; @@ -24151,53 +24118,41 @@ }; /** - * Verifies an ExecutionRecoverRequest message. + * Verifies a WorkflowExecutionEventResponse message. * @function verify - * @memberof flyteidl.admin.ExecutionRecoverRequest + * @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 */ - ExecutionRecoverRequest.verify = function verify(message) { + WorkflowExecutionEventResponse.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; + return WorkflowExecutionEventResponse; })(); - admin.ExecutionCreateResponse = (function() { + admin.NodeExecutionEventRequest = (function() { /** - * Properties of an ExecutionCreateResponse. + * Properties of a NodeExecutionEventRequest. * @memberof flyteidl.admin - * @interface IExecutionCreateResponse - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] ExecutionCreateResponse id + * @interface INodeExecutionEventRequest + * @property {string|null} [requestId] NodeExecutionEventRequest requestId + * @property {flyteidl.event.INodeExecutionEvent|null} [event] NodeExecutionEventRequest event */ /** - * Constructs a new ExecutionCreateResponse. + * Constructs a new NodeExecutionEventRequest. * @memberof flyteidl.admin - * @classdesc Represents an ExecutionCreateResponse. - * @implements IExecutionCreateResponse + * @classdesc Represents a NodeExecutionEventRequest. + * @implements INodeExecutionEventRequest * @constructor - * @param {flyteidl.admin.IExecutionCreateResponse=} [properties] Properties to set + * @param {flyteidl.admin.INodeExecutionEventRequest=} [properties] Properties to set */ - function ExecutionCreateResponse(properties) { + function NodeExecutionEventRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24205,62 +24160,75 @@ } /** - * ExecutionCreateResponse id. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.ExecutionCreateResponse + * NodeExecutionEventRequest requestId. + * @member {string} requestId + * @memberof flyteidl.admin.NodeExecutionEventRequest * @instance */ - ExecutionCreateResponse.prototype.id = null; + NodeExecutionEventRequest.prototype.requestId = ""; /** - * Creates a new ExecutionCreateResponse instance using the specified properties. + * 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.ExecutionCreateResponse + * @memberof flyteidl.admin.NodeExecutionEventRequest * @static - * @param {flyteidl.admin.IExecutionCreateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionCreateResponse} ExecutionCreateResponse instance + * @param {flyteidl.admin.INodeExecutionEventRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionEventRequest} NodeExecutionEventRequest instance */ - ExecutionCreateResponse.create = function create(properties) { - return new ExecutionCreateResponse(properties); + NodeExecutionEventRequest.create = function create(properties) { + return new NodeExecutionEventRequest(properties); }; /** - * Encodes the specified ExecutionCreateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionCreateResponse.verify|verify} messages. + * Encodes the specified NodeExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionEventRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ExecutionCreateResponse + * @memberof flyteidl.admin.NodeExecutionEventRequest * @static - * @param {flyteidl.admin.IExecutionCreateResponse} message ExecutionCreateResponse message or plain object to encode + * @param {flyteidl.admin.INodeExecutionEventRequest} message NodeExecutionEventRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecutionCreateResponse.encode = function encode(message, writer) { + NodeExecutionEventRequest.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.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 an ExecutionCreateResponse message from the specified reader or buffer. + * Decodes a NodeExecutionEventRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ExecutionCreateResponse + * @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.ExecutionCreateResponse} ExecutionCreateResponse + * @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 */ - ExecutionCreateResponse.decode = function decode(reader, length) { + 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.ExecutionCreateResponse(); + 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.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + message.requestId = reader.string(); + break; + case 2: + message.event = $root.flyteidl.event.NodeExecutionEvent.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -24271,45 +24239,47 @@ }; /** - * Verifies an ExecutionCreateResponse message. + * Verifies a NodeExecutionEventRequest message. * @function verify - * @memberof flyteidl.admin.ExecutionCreateResponse + * @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 */ - ExecutionCreateResponse.verify = function verify(message) { + NodeExecutionEventRequest.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 (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 "id." + error; + return "event." + error; } return null; }; - return ExecutionCreateResponse; + return NodeExecutionEventRequest; })(); - admin.WorkflowExecutionGetRequest = (function() { + admin.NodeExecutionEventResponse = (function() { /** - * Properties of a WorkflowExecutionGetRequest. + * Properties of a NodeExecutionEventResponse. * @memberof flyteidl.admin - * @interface IWorkflowExecutionGetRequest - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] WorkflowExecutionGetRequest id + * @interface INodeExecutionEventResponse */ /** - * Constructs a new WorkflowExecutionGetRequest. + * Constructs a new NodeExecutionEventResponse. * @memberof flyteidl.admin - * @classdesc Represents a WorkflowExecutionGetRequest. - * @implements IWorkflowExecutionGetRequest + * @classdesc Represents a NodeExecutionEventResponse. + * @implements INodeExecutionEventResponse * @constructor - * @param {flyteidl.admin.IWorkflowExecutionGetRequest=} [properties] Properties to set + * @param {flyteidl.admin.INodeExecutionEventResponse=} [properties] Properties to set */ - function WorkflowExecutionGetRequest(properties) { + function NodeExecutionEventResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24317,63 +24287,50 @@ } /** - * 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. + * Creates a new NodeExecutionEventResponse instance using the specified properties. * @function create - * @memberof flyteidl.admin.WorkflowExecutionGetRequest + * @memberof flyteidl.admin.NodeExecutionEventResponse * @static - * @param {flyteidl.admin.IWorkflowExecutionGetRequest=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowExecutionGetRequest} WorkflowExecutionGetRequest instance + * @param {flyteidl.admin.INodeExecutionEventResponse=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionEventResponse} NodeExecutionEventResponse instance */ - WorkflowExecutionGetRequest.create = function create(properties) { - return new WorkflowExecutionGetRequest(properties); + NodeExecutionEventResponse.create = function create(properties) { + return new NodeExecutionEventResponse(properties); }; /** - * Encodes the specified WorkflowExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetRequest.verify|verify} messages. + * Encodes the specified NodeExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.NodeExecutionEventResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.WorkflowExecutionGetRequest + * @memberof flyteidl.admin.NodeExecutionEventResponse * @static - * @param {flyteidl.admin.IWorkflowExecutionGetRequest} message WorkflowExecutionGetRequest message or plain object to encode + * @param {flyteidl.admin.INodeExecutionEventResponse} message NodeExecutionEventResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkflowExecutionGetRequest.encode = function encode(message, writer) { + NodeExecutionEventResponse.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. + * Decodes a NodeExecutionEventResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.WorkflowExecutionGetRequest + * @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.WorkflowExecutionGetRequest} WorkflowExecutionGetRequest + * @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 */ - WorkflowExecutionGetRequest.decode = function decode(reader, length) { + 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.WorkflowExecutionGetRequest(); + 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) { - case 1: - message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -24383,47 +24340,41 @@ }; /** - * Verifies a WorkflowExecutionGetRequest message. + * Verifies a NodeExecutionEventResponse message. * @function verify - * @memberof flyteidl.admin.WorkflowExecutionGetRequest + * @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 */ - WorkflowExecutionGetRequest.verify = function verify(message) { + NodeExecutionEventResponse.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; + return NodeExecutionEventResponse; })(); - admin.Execution = (function() { + admin.TaskExecutionEventRequest = (function() { /** - * Properties of an Execution. + * Properties of a TaskExecutionEventRequest. * @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 + * @interface ITaskExecutionEventRequest + * @property {string|null} [requestId] TaskExecutionEventRequest requestId + * @property {flyteidl.event.ITaskExecutionEvent|null} [event] TaskExecutionEventRequest event */ /** - * Constructs a new Execution. + * Constructs a new TaskExecutionEventRequest. * @memberof flyteidl.admin - * @classdesc Represents an Execution. - * @implements IExecution + * @classdesc Represents a TaskExecutionEventRequest. + * @implements ITaskExecutionEventRequest * @constructor - * @param {flyteidl.admin.IExecution=} [properties] Properties to set + * @param {flyteidl.admin.ITaskExecutionEventRequest=} [properties] Properties to set */ - function Execution(properties) { + function TaskExecutionEventRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24431,88 +24382,75 @@ } /** - * 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 + * TaskExecutionEventRequest requestId. + * @member {string} requestId + * @memberof flyteidl.admin.TaskExecutionEventRequest * @instance */ - Execution.prototype.spec = null; + TaskExecutionEventRequest.prototype.requestId = ""; /** - * Execution closure. - * @member {flyteidl.admin.IExecutionClosure|null|undefined} closure - * @memberof flyteidl.admin.Execution + * TaskExecutionEventRequest event. + * @member {flyteidl.event.ITaskExecutionEvent|null|undefined} event + * @memberof flyteidl.admin.TaskExecutionEventRequest * @instance */ - Execution.prototype.closure = null; + TaskExecutionEventRequest.prototype.event = null; /** - * Creates a new Execution instance using the specified properties. + * Creates a new TaskExecutionEventRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.Execution + * @memberof flyteidl.admin.TaskExecutionEventRequest * @static - * @param {flyteidl.admin.IExecution=} [properties] Properties to set - * @returns {flyteidl.admin.Execution} Execution instance + * @param {flyteidl.admin.ITaskExecutionEventRequest=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionEventRequest} TaskExecutionEventRequest instance */ - Execution.create = function create(properties) { - return new Execution(properties); + TaskExecutionEventRequest.create = function create(properties) { + return new TaskExecutionEventRequest(properties); }; /** - * Encodes the specified Execution message. Does not implicitly {@link flyteidl.admin.Execution.verify|verify} messages. + * Encodes the specified TaskExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionEventRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.Execution + * @memberof flyteidl.admin.TaskExecutionEventRequest * @static - * @param {flyteidl.admin.IExecution} message Execution message or plain object to encode + * @param {flyteidl.admin.ITaskExecutionEventRequest} message TaskExecutionEventRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Execution.encode = function encode(message, writer) { + TaskExecutionEventRequest.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(); + 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 an Execution message from the specified reader or buffer. + * Decodes a TaskExecutionEventRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.Execution + * @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.Execution} Execution + * @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 */ - Execution.decode = function decode(reader, length) { + 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.Execution(); + 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.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + message.requestId = reader.string(); 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()); + message.event = $root.flyteidl.event.TaskExecutionEvent.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -24523,57 +24461,47 @@ }; /** - * Verifies an Execution message. + * Verifies a TaskExecutionEventRequest message. * @function verify - * @memberof flyteidl.admin.Execution + * @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 */ - Execution.verify = function verify(message) { + TaskExecutionEventRequest.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 (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 "closure." + error; + return "event." + error; } return null; }; - return Execution; + return TaskExecutionEventRequest; })(); - admin.ExecutionList = (function() { + admin.TaskExecutionEventResponse = (function() { /** - * Properties of an ExecutionList. + * Properties of a TaskExecutionEventResponse. * @memberof flyteidl.admin - * @interface IExecutionList - * @property {Array.|null} [executions] ExecutionList executions - * @property {string|null} [token] ExecutionList token + * @interface ITaskExecutionEventResponse */ /** - * Constructs a new ExecutionList. + * Constructs a new TaskExecutionEventResponse. * @memberof flyteidl.admin - * @classdesc Represents an ExecutionList. - * @implements IExecutionList + * @classdesc Represents a TaskExecutionEventResponse. + * @implements ITaskExecutionEventResponse * @constructor - * @param {flyteidl.admin.IExecutionList=} [properties] Properties to set + * @param {flyteidl.admin.ITaskExecutionEventResponse=} [properties] Properties to set */ - function ExecutionList(properties) { - this.executions = []; + function TaskExecutionEventResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24581,79 +24509,50 @@ } /** - * 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. + * Creates a new TaskExecutionEventResponse instance using the specified properties. * @function create - * @memberof flyteidl.admin.ExecutionList + * @memberof flyteidl.admin.TaskExecutionEventResponse * @static - * @param {flyteidl.admin.IExecutionList=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionList} ExecutionList instance + * @param {flyteidl.admin.ITaskExecutionEventResponse=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionEventResponse} TaskExecutionEventResponse instance */ - ExecutionList.create = function create(properties) { - return new ExecutionList(properties); + TaskExecutionEventResponse.create = function create(properties) { + return new TaskExecutionEventResponse(properties); }; /** - * Encodes the specified ExecutionList message. Does not implicitly {@link flyteidl.admin.ExecutionList.verify|verify} messages. + * Encodes the specified TaskExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.TaskExecutionEventResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ExecutionList + * @memberof flyteidl.admin.TaskExecutionEventResponse * @static - * @param {flyteidl.admin.IExecutionList} message ExecutionList message or plain object to encode + * @param {flyteidl.admin.ITaskExecutionEventResponse} message TaskExecutionEventResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecutionList.encode = function encode(message, writer) { + TaskExecutionEventResponse.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. + * Decodes a TaskExecutionEventResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ExecutionList + * @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.ExecutionList} ExecutionList + * @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 */ - ExecutionList.decode = function decode(reader, length) { + 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.ExecutionList(); + 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) { - 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; @@ -24663,53 +24562,44 @@ }; /** - * Verifies an ExecutionList message. + * Verifies a TaskExecutionEventResponse message. * @function verify - * @memberof flyteidl.admin.ExecutionList + * @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 */ - ExecutionList.verify = function verify(message) { + TaskExecutionEventResponse.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; + return TaskExecutionEventResponse; })(); - admin.LiteralMapBlob = (function() { + admin.ExecutionCreateRequest = (function() { /** - * Properties of a LiteralMapBlob. + * Properties of an ExecutionCreateRequest. * @memberof flyteidl.admin - * @interface ILiteralMapBlob - * @property {flyteidl.core.ILiteralMap|null} [values] LiteralMapBlob values - * @property {string|null} [uri] LiteralMapBlob uri + * @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 */ /** - * Constructs a new LiteralMapBlob. + * Constructs a new ExecutionCreateRequest. * @memberof flyteidl.admin - * @classdesc Represents a LiteralMapBlob. - * @implements ILiteralMapBlob + * @classdesc Represents an ExecutionCreateRequest. + * @implements IExecutionCreateRequest * @constructor - * @param {flyteidl.admin.ILiteralMapBlob=} [properties] Properties to set + * @param {flyteidl.admin.IExecutionCreateRequest=} [properties] Properties to set */ - function LiteralMapBlob(properties) { + function ExecutionCreateRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24717,89 +24607,114 @@ } /** - * LiteralMapBlob values. - * @member {flyteidl.core.ILiteralMap|null|undefined} values - * @memberof flyteidl.admin.LiteralMapBlob + * ExecutionCreateRequest project. + * @member {string} project + * @memberof flyteidl.admin.ExecutionCreateRequest * @instance */ - LiteralMapBlob.prototype.values = null; + ExecutionCreateRequest.prototype.project = ""; /** - * LiteralMapBlob uri. - * @member {string} uri - * @memberof flyteidl.admin.LiteralMapBlob + * ExecutionCreateRequest domain. + * @member {string} domain + * @memberof flyteidl.admin.ExecutionCreateRequest * @instance */ - LiteralMapBlob.prototype.uri = ""; + ExecutionCreateRequest.prototype.domain = ""; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * ExecutionCreateRequest name. + * @member {string} name + * @memberof flyteidl.admin.ExecutionCreateRequest + * @instance + */ + ExecutionCreateRequest.prototype.name = ""; /** - * LiteralMapBlob data. - * @member {"values"|"uri"|undefined} data - * @memberof flyteidl.admin.LiteralMapBlob + * ExecutionCreateRequest spec. + * @member {flyteidl.admin.IExecutionSpec|null|undefined} spec + * @memberof flyteidl.admin.ExecutionCreateRequest * @instance */ - Object.defineProperty(LiteralMapBlob.prototype, "data", { - get: $util.oneOfGetter($oneOfFields = ["values", "uri"]), - set: $util.oneOfSetter($oneOfFields) - }); + ExecutionCreateRequest.prototype.spec = null; /** - * Creates a new LiteralMapBlob instance using the specified properties. + * ExecutionCreateRequest inputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} inputs + * @memberof flyteidl.admin.ExecutionCreateRequest + * @instance + */ + ExecutionCreateRequest.prototype.inputs = null; + + /** + * Creates a new ExecutionCreateRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.LiteralMapBlob + * @memberof flyteidl.admin.ExecutionCreateRequest * @static - * @param {flyteidl.admin.ILiteralMapBlob=} [properties] Properties to set - * @returns {flyteidl.admin.LiteralMapBlob} LiteralMapBlob instance + * @param {flyteidl.admin.IExecutionCreateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionCreateRequest} ExecutionCreateRequest instance */ - LiteralMapBlob.create = function create(properties) { - return new LiteralMapBlob(properties); + ExecutionCreateRequest.create = function create(properties) { + return new ExecutionCreateRequest(properties); }; /** - * Encodes the specified LiteralMapBlob message. Does not implicitly {@link flyteidl.admin.LiteralMapBlob.verify|verify} messages. + * Encodes the specified ExecutionCreateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionCreateRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.LiteralMapBlob + * @memberof flyteidl.admin.ExecutionCreateRequest * @static - * @param {flyteidl.admin.ILiteralMapBlob} message LiteralMapBlob message or plain object to encode + * @param {flyteidl.admin.IExecutionCreateRequest} message ExecutionCreateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LiteralMapBlob.encode = function encode(message, writer) { + ExecutionCreateRequest.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); + 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(); return writer; }; /** - * Decodes a LiteralMapBlob message from the specified reader or buffer. + * Decodes an ExecutionCreateRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.LiteralMapBlob + * @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.LiteralMapBlob} LiteralMapBlob + * @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 */ - LiteralMapBlob.decode = function decode(reader, length) { + 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.LiteralMapBlob(); + 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.values = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + message.project = reader.string(); break; case 2: - message.uri = reader.string(); + 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; default: reader.skipType(tag & 7); @@ -24810,57 +24725,61 @@ }; /** - * Verifies a LiteralMapBlob message. + * Verifies an ExecutionCreateRequest message. * @function verify - * @memberof flyteidl.admin.LiteralMapBlob + * @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 */ - LiteralMapBlob.verify = function verify(message) { + ExecutionCreateRequest.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.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.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"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.inputs); + if (error) + return "inputs." + error; } return null; }; - return LiteralMapBlob; + return ExecutionCreateRequest; })(); - admin.AbortMetadata = (function() { + admin.ExecutionRelaunchRequest = (function() { /** - * Properties of an AbortMetadata. + * Properties of an ExecutionRelaunchRequest. * @memberof flyteidl.admin - * @interface IAbortMetadata - * @property {string|null} [cause] AbortMetadata cause - * @property {string|null} [principal] AbortMetadata principal + * @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 AbortMetadata. + * Constructs a new ExecutionRelaunchRequest. * @memberof flyteidl.admin - * @classdesc Represents an AbortMetadata. - * @implements IAbortMetadata + * @classdesc Represents an ExecutionRelaunchRequest. + * @implements IExecutionRelaunchRequest * @constructor - * @param {flyteidl.admin.IAbortMetadata=} [properties] Properties to set + * @param {flyteidl.admin.IExecutionRelaunchRequest=} [properties] Properties to set */ - function AbortMetadata(properties) { + function ExecutionRelaunchRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24868,75 +24787,88 @@ } /** - * AbortMetadata cause. - * @member {string} cause - * @memberof flyteidl.admin.AbortMetadata + * ExecutionRelaunchRequest id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.ExecutionRelaunchRequest * @instance */ - AbortMetadata.prototype.cause = ""; + ExecutionRelaunchRequest.prototype.id = null; /** - * AbortMetadata principal. - * @member {string} principal - * @memberof flyteidl.admin.AbortMetadata + * ExecutionRelaunchRequest name. + * @member {string} name + * @memberof flyteidl.admin.ExecutionRelaunchRequest * @instance */ - AbortMetadata.prototype.principal = ""; + ExecutionRelaunchRequest.prototype.name = ""; /** - * Creates a new AbortMetadata instance using the specified properties. + * 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.AbortMetadata + * @memberof flyteidl.admin.ExecutionRelaunchRequest * @static - * @param {flyteidl.admin.IAbortMetadata=} [properties] Properties to set - * @returns {flyteidl.admin.AbortMetadata} AbortMetadata instance + * @param {flyteidl.admin.IExecutionRelaunchRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionRelaunchRequest} ExecutionRelaunchRequest instance */ - AbortMetadata.create = function create(properties) { - return new AbortMetadata(properties); + ExecutionRelaunchRequest.create = function create(properties) { + return new ExecutionRelaunchRequest(properties); }; /** - * Encodes the specified AbortMetadata message. Does not implicitly {@link flyteidl.admin.AbortMetadata.verify|verify} messages. + * Encodes the specified ExecutionRelaunchRequest message. Does not implicitly {@link flyteidl.admin.ExecutionRelaunchRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.AbortMetadata + * @memberof flyteidl.admin.ExecutionRelaunchRequest * @static - * @param {flyteidl.admin.IAbortMetadata} message AbortMetadata message or plain object to encode + * @param {flyteidl.admin.IExecutionRelaunchRequest} message ExecutionRelaunchRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AbortMetadata.encode = function encode(message, writer) { + ExecutionRelaunchRequest.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); + 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 AbortMetadata message from the specified reader or buffer. + * Decodes an ExecutionRelaunchRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.AbortMetadata + * @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.AbortMetadata} AbortMetadata + * @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 */ - AbortMetadata.decode = function decode(reader, length) { + 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.AbortMetadata(); + 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.cause = reader.string(); + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); break; - case 2: - message.principal = reader.string(); + case 3: + message.name = reader.string(); + break; + case 4: + message.overwriteCache = reader.bool(); break; default: reader.skipType(tag & 7); @@ -24947,60 +24879,53 @@ }; /** - * Verifies an AbortMetadata message. + * Verifies an ExecutionRelaunchRequest message. * @function verify - * @memberof flyteidl.admin.AbortMetadata + * @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 */ - AbortMetadata.verify = function verify(message) { + ExecutionRelaunchRequest.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"; + 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 AbortMetadata; + return ExecutionRelaunchRequest; })(); - admin.ExecutionClosure = (function() { + admin.ExecutionRecoverRequest = (function() { /** - * Properties of an ExecutionClosure. + * Properties of an ExecutionRecoverRequest. * @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 + * @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 ExecutionClosure. + * Constructs a new ExecutionRecoverRequest. * @memberof flyteidl.admin - * @classdesc Represents an ExecutionClosure. - * @implements IExecutionClosure + * @classdesc Represents an ExecutionRecoverRequest. + * @implements IExecutionRecoverRequest * @constructor - * @param {flyteidl.admin.IExecutionClosure=} [properties] Properties to set + * @param {flyteidl.admin.IExecutionRecoverRequest=} [properties] Properties to set */ - function ExecutionClosure(properties) { - this.notifications = []; + function ExecutionRecoverRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25008,248 +24933,208 @@ } /** - * ExecutionClosure outputs. - * @member {flyteidl.admin.ILiteralMapBlob|null|undefined} outputs - * @memberof flyteidl.admin.ExecutionClosure + * ExecutionRecoverRequest id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.ExecutionRecoverRequest * @instance */ - ExecutionClosure.prototype.outputs = null; + ExecutionRecoverRequest.prototype.id = null; /** - * ExecutionClosure error. - * @member {flyteidl.core.IExecutionError|null|undefined} error - * @memberof flyteidl.admin.ExecutionClosure + * ExecutionRecoverRequest name. + * @member {string} name + * @memberof flyteidl.admin.ExecutionRecoverRequest * @instance */ - ExecutionClosure.prototype.error = null; + ExecutionRecoverRequest.prototype.name = ""; /** - * ExecutionClosure abortCause. - * @member {string} abortCause - * @memberof flyteidl.admin.ExecutionClosure + * ExecutionRecoverRequest metadata. + * @member {flyteidl.admin.IExecutionMetadata|null|undefined} metadata + * @memberof flyteidl.admin.ExecutionRecoverRequest * @instance */ - ExecutionClosure.prototype.abortCause = ""; + ExecutionRecoverRequest.prototype.metadata = null; /** - * ExecutionClosure abortMetadata. - * @member {flyteidl.admin.IAbortMetadata|null|undefined} abortMetadata - * @memberof flyteidl.admin.ExecutionClosure - * @instance + * 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 */ - ExecutionClosure.prototype.abortMetadata = null; + ExecutionRecoverRequest.create = function create(properties) { + return new ExecutionRecoverRequest(properties); + }; /** - * ExecutionClosure outputData. - * @member {flyteidl.core.ILiteralMap|null|undefined} outputData - * @memberof flyteidl.admin.ExecutionClosure - * @instance + * 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 */ - ExecutionClosure.prototype.outputData = null; + 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; + }; /** - * ExecutionClosure computedInputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} computedInputs - * @memberof flyteidl.admin.ExecutionClosure - * @instance + * 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 */ - 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; + 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; + }; /** - * ExecutionClosure createdAt. - * @member {google.protobuf.ITimestamp|null|undefined} createdAt - * @memberof flyteidl.admin.ExecutionClosure - * @instance + * 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 */ - ExecutionClosure.prototype.createdAt = null; + 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; + }; - /** - * ExecutionClosure updatedAt. - * @member {google.protobuf.ITimestamp|null|undefined} updatedAt - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - ExecutionClosure.prototype.updatedAt = null; + return ExecutionRecoverRequest; + })(); - /** - * ExecutionClosure notifications. - * @member {Array.} notifications - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - ExecutionClosure.prototype.notifications = $util.emptyArray; + admin.ExecutionCreateResponse = (function() { /** - * ExecutionClosure workflowId. - * @member {flyteidl.core.IIdentifier|null|undefined} workflowId - * @memberof flyteidl.admin.ExecutionClosure - * @instance + * Properties of an ExecutionCreateResponse. + * @memberof flyteidl.admin + * @interface IExecutionCreateResponse + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] ExecutionCreateResponse id */ - ExecutionClosure.prototype.workflowId = null; /** - * ExecutionClosure stateChangeDetails. - * @member {flyteidl.admin.IExecutionStateChangeDetails|null|undefined} stateChangeDetails - * @memberof flyteidl.admin.ExecutionClosure - * @instance + * Constructs a new ExecutionCreateResponse. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionCreateResponse. + * @implements IExecutionCreateResponse + * @constructor + * @param {flyteidl.admin.IExecutionCreateResponse=} [properties] Properties to set */ - ExecutionClosure.prototype.stateChangeDetails = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + 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]]; + } /** - * ExecutionClosure outputResult. - * @member {"outputs"|"error"|"abortCause"|"abortMetadata"|"outputData"|undefined} outputResult - * @memberof flyteidl.admin.ExecutionClosure + * ExecutionCreateResponse id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.ExecutionCreateResponse * @instance */ - Object.defineProperty(ExecutionClosure.prototype, "outputResult", { - get: $util.oneOfGetter($oneOfFields = ["outputs", "error", "abortCause", "abortMetadata", "outputData"]), - set: $util.oneOfSetter($oneOfFields) - }); + ExecutionCreateResponse.prototype.id = null; /** - * Creates a new ExecutionClosure instance using the specified properties. + * Creates a new ExecutionCreateResponse instance using the specified properties. * @function create - * @memberof flyteidl.admin.ExecutionClosure + * @memberof flyteidl.admin.ExecutionCreateResponse * @static - * @param {flyteidl.admin.IExecutionClosure=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionClosure} ExecutionClosure instance + * @param {flyteidl.admin.IExecutionCreateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionCreateResponse} ExecutionCreateResponse instance */ - ExecutionClosure.create = function create(properties) { - return new ExecutionClosure(properties); + ExecutionCreateResponse.create = function create(properties) { + return new ExecutionCreateResponse(properties); }; /** - * Encodes the specified ExecutionClosure message. Does not implicitly {@link flyteidl.admin.ExecutionClosure.verify|verify} messages. + * Encodes the specified ExecutionCreateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionCreateResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ExecutionClosure + * @memberof flyteidl.admin.ExecutionCreateResponse * @static - * @param {flyteidl.admin.IExecutionClosure} message ExecutionClosure message or plain object to encode + * @param {flyteidl.admin.IExecutionCreateResponse} message ExecutionCreateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecutionClosure.encode = function encode(message, writer) { + ExecutionCreateResponse.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(); + 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 ExecutionClosure message from the specified reader or buffer. + * Decodes an ExecutionCreateResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ExecutionClosure + * @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.ExecutionClosure} ExecutionClosure + * @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 */ - ExecutionClosure.decode = function decode(reader, length) { + 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.ExecutionClosure(); + 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.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()); + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -25260,147 +25145,45 @@ }; /** - * Verifies an ExecutionClosure message. + * Verifies an ExecutionCreateResponse message. * @function verify - * @memberof flyteidl.admin.ExecutionClosure + * @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 */ - ExecutionClosure.verify = function verify(message) { + ExecutionCreateResponse.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; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; } return null; }; - return ExecutionClosure; + return ExecutionCreateResponse; })(); - admin.SystemMetadata = (function() { + admin.WorkflowExecutionGetRequest = (function() { /** - * Properties of a SystemMetadata. + * Properties of a WorkflowExecutionGetRequest. * @memberof flyteidl.admin - * @interface ISystemMetadata - * @property {string|null} [executionCluster] SystemMetadata executionCluster - * @property {string|null} [namespace] SystemMetadata namespace + * @interface IWorkflowExecutionGetRequest + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] WorkflowExecutionGetRequest id */ /** - * Constructs a new SystemMetadata. + * Constructs a new WorkflowExecutionGetRequest. * @memberof flyteidl.admin - * @classdesc Represents a SystemMetadata. - * @implements ISystemMetadata + * @classdesc Represents a WorkflowExecutionGetRequest. + * @implements IWorkflowExecutionGetRequest * @constructor - * @param {flyteidl.admin.ISystemMetadata=} [properties] Properties to set + * @param {flyteidl.admin.IWorkflowExecutionGetRequest=} [properties] Properties to set */ - function SystemMetadata(properties) { + function WorkflowExecutionGetRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25408,75 +25191,62 @@ } /** - * SystemMetadata executionCluster. - * @member {string} executionCluster - * @memberof flyteidl.admin.SystemMetadata - * @instance - */ - SystemMetadata.prototype.executionCluster = ""; - - /** - * SystemMetadata namespace. - * @member {string} namespace - * @memberof flyteidl.admin.SystemMetadata + * WorkflowExecutionGetRequest id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.WorkflowExecutionGetRequest * @instance */ - SystemMetadata.prototype.namespace = ""; + WorkflowExecutionGetRequest.prototype.id = null; /** - * Creates a new SystemMetadata instance using the specified properties. + * Creates a new WorkflowExecutionGetRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.SystemMetadata + * @memberof flyteidl.admin.WorkflowExecutionGetRequest * @static - * @param {flyteidl.admin.ISystemMetadata=} [properties] Properties to set - * @returns {flyteidl.admin.SystemMetadata} SystemMetadata instance + * @param {flyteidl.admin.IWorkflowExecutionGetRequest=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowExecutionGetRequest} WorkflowExecutionGetRequest instance */ - SystemMetadata.create = function create(properties) { - return new SystemMetadata(properties); + WorkflowExecutionGetRequest.create = function create(properties) { + return new WorkflowExecutionGetRequest(properties); }; /** - * Encodes the specified SystemMetadata message. Does not implicitly {@link flyteidl.admin.SystemMetadata.verify|verify} messages. + * Encodes the specified WorkflowExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.SystemMetadata + * @memberof flyteidl.admin.WorkflowExecutionGetRequest * @static - * @param {flyteidl.admin.ISystemMetadata} message SystemMetadata message or plain object to encode + * @param {flyteidl.admin.IWorkflowExecutionGetRequest} message WorkflowExecutionGetRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SystemMetadata.encode = function encode(message, writer) { + WorkflowExecutionGetRequest.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); + 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 SystemMetadata message from the specified reader or buffer. + * Decodes a WorkflowExecutionGetRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.SystemMetadata + * @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.SystemMetadata} SystemMetadata + * @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 */ - SystemMetadata.decode = function decode(reader, length) { + 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.SystemMetadata(); + 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.executionCluster = reader.string(); - break; - case 2: - message.namespace = reader.string(); + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -25487,52 +25257,47 @@ }; /** - * Verifies a SystemMetadata message. + * Verifies a WorkflowExecutionGetRequest message. * @function verify - * @memberof flyteidl.admin.SystemMetadata + * @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 */ - SystemMetadata.verify = function verify(message) { + WorkflowExecutionGetRequest.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"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } return null; }; - return SystemMetadata; + return WorkflowExecutionGetRequest; })(); - admin.ExecutionMetadata = (function() { + admin.Execution = (function() { /** - * Properties of an ExecutionMetadata. + * Properties of an Execution. * @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 + * @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 ExecutionMetadata. + * Constructs a new Execution. * @memberof flyteidl.admin - * @classdesc Represents an ExecutionMetadata. - * @implements IExecutionMetadata + * @classdesc Represents an Execution. + * @implements IExecution * @constructor - * @param {flyteidl.admin.IExecutionMetadata=} [properties] Properties to set + * @param {flyteidl.admin.IExecution=} [properties] Properties to set */ - function ExecutionMetadata(properties) { + function Execution(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25540,140 +25305,88 @@ } /** - * ExecutionMetadata mode. - * @member {flyteidl.admin.ExecutionMetadata.ExecutionMode} mode - * @memberof flyteidl.admin.ExecutionMetadata + * Execution id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.Execution * @instance */ - ExecutionMetadata.prototype.mode = 0; + Execution.prototype.id = null; /** - * ExecutionMetadata principal. - * @member {string} principal - * @memberof flyteidl.admin.ExecutionMetadata + * Execution spec. + * @member {flyteidl.admin.IExecutionSpec|null|undefined} spec + * @memberof flyteidl.admin.Execution * @instance */ - ExecutionMetadata.prototype.principal = ""; + Execution.prototype.spec = null; /** - * ExecutionMetadata nesting. - * @member {number} nesting - * @memberof flyteidl.admin.ExecutionMetadata + * Execution closure. + * @member {flyteidl.admin.IExecutionClosure|null|undefined} closure + * @memberof flyteidl.admin.Execution * @instance */ - ExecutionMetadata.prototype.nesting = 0; + Execution.prototype.closure = null; /** - * ExecutionMetadata scheduledAt. - * @member {google.protobuf.ITimestamp|null|undefined} scheduledAt - * @memberof flyteidl.admin.ExecutionMetadata - * @instance + * 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 */ - 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; - - /** - * 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); + Execution.create = function create(properties) { + return new Execution(properties); }; /** - * Encodes the specified ExecutionMetadata message. Does not implicitly {@link flyteidl.admin.ExecutionMetadata.verify|verify} messages. + * Encodes the specified Execution message. Does not implicitly {@link flyteidl.admin.Execution.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ExecutionMetadata + * @memberof flyteidl.admin.Execution * @static - * @param {flyteidl.admin.IExecutionMetadata} message ExecutionMetadata message or plain object to encode + * @param {flyteidl.admin.IExecution} message Execution message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecutionMetadata.encode = function encode(message, writer) { + Execution.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.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 ExecutionMetadata message from the specified reader or buffer. + * Decodes an Execution message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ExecutionMetadata + * @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.ExecutionMetadata} ExecutionMetadata + * @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 */ - ExecutionMetadata.decode = function decode(reader, length) { + 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.ExecutionMetadata(); + 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.mode = reader.int32(); + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); break; case 2: - message.principal = reader.string(); + message.spec = $root.flyteidl.admin.ExecutionSpec.decode(reader, reader.uint32()); 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()); + message.closure = $root.flyteidl.admin.ExecutionClosure.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -25684,101 +25397,57 @@ }; /** - * Verifies an ExecutionMetadata message. + * Verifies an Execution message. * @function verify - * @memberof flyteidl.admin.ExecutionMetadata + * @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 */ - ExecutionMetadata.verify = function verify(message) { + Execution.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 (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); if (error) - return "parentNodeExecution." + error; + return "id." + error; } - if (message.referenceExecution != null && message.hasOwnProperty("referenceExecution")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.referenceExecution); + if (message.spec != null && message.hasOwnProperty("spec")) { + var error = $root.flyteidl.admin.ExecutionSpec.verify(message.spec); if (error) - return "referenceExecution." + error; + return "spec." + error; } - if (message.systemMetadata != null && message.hasOwnProperty("systemMetadata")) { - var error = $root.flyteidl.admin.SystemMetadata.verify(message.systemMetadata); + if (message.closure != null && message.hasOwnProperty("closure")) { + var error = $root.flyteidl.admin.ExecutionClosure.verify(message.closure); if (error) - return "systemMetadata." + error; + return "closure." + 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; + return Execution; })(); - admin.NotificationList = (function() { + admin.ExecutionList = (function() { /** - * Properties of a NotificationList. + * Properties of an ExecutionList. * @memberof flyteidl.admin - * @interface INotificationList - * @property {Array.|null} [notifications] NotificationList notifications + * @interface IExecutionList + * @property {Array.|null} [executions] ExecutionList executions + * @property {string|null} [token] ExecutionList token */ /** - * Constructs a new NotificationList. + * Constructs a new ExecutionList. * @memberof flyteidl.admin - * @classdesc Represents a NotificationList. - * @implements INotificationList + * @classdesc Represents an ExecutionList. + * @implements IExecutionList * @constructor - * @param {flyteidl.admin.INotificationList=} [properties] Properties to set + * @param {flyteidl.admin.IExecutionList=} [properties] Properties to set */ - function NotificationList(properties) { - this.notifications = []; + function ExecutionList(properties) { + this.executions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25786,65 +25455,78 @@ } /** - * NotificationList notifications. - * @member {Array.} notifications - * @memberof flyteidl.admin.NotificationList + * ExecutionList executions. + * @member {Array.} executions + * @memberof flyteidl.admin.ExecutionList * @instance */ - NotificationList.prototype.notifications = $util.emptyArray; + ExecutionList.prototype.executions = $util.emptyArray; /** - * Creates a new NotificationList instance using the specified properties. + * 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.NotificationList + * @memberof flyteidl.admin.ExecutionList * @static - * @param {flyteidl.admin.INotificationList=} [properties] Properties to set - * @returns {flyteidl.admin.NotificationList} NotificationList instance + * @param {flyteidl.admin.IExecutionList=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionList} ExecutionList instance */ - NotificationList.create = function create(properties) { - return new NotificationList(properties); + ExecutionList.create = function create(properties) { + return new ExecutionList(properties); }; /** - * Encodes the specified NotificationList message. Does not implicitly {@link flyteidl.admin.NotificationList.verify|verify} messages. + * Encodes the specified ExecutionList message. Does not implicitly {@link flyteidl.admin.ExecutionList.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.NotificationList + * @memberof flyteidl.admin.ExecutionList * @static - * @param {flyteidl.admin.INotificationList} message NotificationList message or plain object to encode + * @param {flyteidl.admin.IExecutionList} message ExecutionList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NotificationList.encode = function encode(message, writer) { + ExecutionList.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(); + 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 a NotificationList message from the specified reader or buffer. + * Decodes an ExecutionList message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.NotificationList + * @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.NotificationList} NotificationList + * @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 */ - NotificationList.decode = function decode(reader, length) { + 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.NotificationList(); + 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.notifications && message.notifications.length)) - message.notifications = []; - message.notifications.push($root.flyteidl.admin.Notification.decode(reader, reader.uint32())); + 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); @@ -25855,64 +25537,53 @@ }; /** - * Verifies a NotificationList message. + * Verifies an ExecutionList message. * @function verify - * @memberof flyteidl.admin.NotificationList + * @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 */ - NotificationList.verify = function verify(message) { + ExecutionList.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 (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 "notifications." + error; + return "executions." + error; } } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; return null; }; - return NotificationList; + return ExecutionList; })(); - admin.ExecutionSpec = (function() { + admin.LiteralMapBlob = (function() { /** - * Properties of an ExecutionSpec. + * Properties of a LiteralMapBlob. * @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 + * @interface ILiteralMapBlob + * @property {flyteidl.core.ILiteralMap|null} [values] LiteralMapBlob values + * @property {string|null} [uri] LiteralMapBlob uri */ /** - * Constructs a new ExecutionSpec. + * Constructs a new LiteralMapBlob. * @memberof flyteidl.admin - * @classdesc Represents an ExecutionSpec. - * @implements IExecutionSpec + * @classdesc Represents a LiteralMapBlob. + * @implements ILiteralMapBlob * @constructor - * @param {flyteidl.admin.IExecutionSpec=} [properties] Properties to set + * @param {flyteidl.admin.ILiteralMapBlob=} [properties] Properties to set */ - function ExecutionSpec(properties) { + function LiteralMapBlob(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25920,271 +25591,89 @@ } /** - * 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 + * LiteralMapBlob values. + * @member {flyteidl.core.ILiteralMap|null|undefined} values + * @memberof flyteidl.admin.LiteralMapBlob * @instance */ - ExecutionSpec.prototype.overwriteCache = false; + LiteralMapBlob.prototype.values = null; /** - * ExecutionSpec envs. - * @member {flyteidl.admin.IEnvs|null|undefined} envs - * @memberof flyteidl.admin.ExecutionSpec + * LiteralMapBlob uri. + * @member {string} uri + * @memberof flyteidl.admin.LiteralMapBlob * @instance */ - ExecutionSpec.prototype.envs = null; + LiteralMapBlob.prototype.uri = ""; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ExecutionSpec notificationOverrides. - * @member {"notifications"|"disableAll"|undefined} notificationOverrides - * @memberof flyteidl.admin.ExecutionSpec + * LiteralMapBlob data. + * @member {"values"|"uri"|undefined} data + * @memberof flyteidl.admin.LiteralMapBlob * @instance */ - Object.defineProperty(ExecutionSpec.prototype, "notificationOverrides", { - get: $util.oneOfGetter($oneOfFields = ["notifications", "disableAll"]), + Object.defineProperty(LiteralMapBlob.prototype, "data", { + get: $util.oneOfGetter($oneOfFields = ["values", "uri"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ExecutionSpec instance using the specified properties. + * Creates a new LiteralMapBlob instance using the specified properties. * @function create - * @memberof flyteidl.admin.ExecutionSpec + * @memberof flyteidl.admin.LiteralMapBlob * @static - * @param {flyteidl.admin.IExecutionSpec=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionSpec} ExecutionSpec instance + * @param {flyteidl.admin.ILiteralMapBlob=} [properties] Properties to set + * @returns {flyteidl.admin.LiteralMapBlob} LiteralMapBlob instance */ - ExecutionSpec.create = function create(properties) { - return new ExecutionSpec(properties); + LiteralMapBlob.create = function create(properties) { + return new LiteralMapBlob(properties); }; /** - * Encodes the specified ExecutionSpec message. Does not implicitly {@link flyteidl.admin.ExecutionSpec.verify|verify} messages. + * Encodes the specified LiteralMapBlob message. Does not implicitly {@link flyteidl.admin.LiteralMapBlob.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ExecutionSpec + * @memberof flyteidl.admin.LiteralMapBlob * @static - * @param {flyteidl.admin.IExecutionSpec} message ExecutionSpec message or plain object to encode + * @param {flyteidl.admin.ILiteralMapBlob} message LiteralMapBlob message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecutionSpec.encode = function encode(message, writer) { + LiteralMapBlob.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.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 an ExecutionSpec message from the specified reader or buffer. + * Decodes a LiteralMapBlob message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ExecutionSpec + * @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.ExecutionSpec} ExecutionSpec + * @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 */ - ExecutionSpec.decode = function decode(reader, length) { + 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.ExecutionSpec(); + 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.launchPlan = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + message.values = $root.flyteidl.core.LiteralMap.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()); + message.uri = reader.string(); break; default: reader.skipType(tag & 7); @@ -26195,123 +25684,57 @@ }; /** - * Verifies an ExecutionSpec message. + * Verifies a LiteralMapBlob message. * @function verify - * @memberof flyteidl.admin.ExecutionSpec + * @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 */ - ExecutionSpec.verify = function verify(message) { + LiteralMapBlob.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; + if (message.values != null && message.hasOwnProperty("values")) { + properties.data = 1; { - var error = $root.flyteidl.admin.NotificationList.verify(message.notifications); + var error = $root.flyteidl.core.LiteralMap.verify(message.values); if (error) - return "notifications." + error; + return "values." + 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.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 ExecutionSpec; + return LiteralMapBlob; })(); - admin.ExecutionTerminateRequest = (function() { + admin.AbortMetadata = (function() { /** - * Properties of an ExecutionTerminateRequest. + * Properties of an AbortMetadata. * @memberof flyteidl.admin - * @interface IExecutionTerminateRequest - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] ExecutionTerminateRequest id - * @property {string|null} [cause] ExecutionTerminateRequest cause + * @interface IAbortMetadata + * @property {string|null} [cause] AbortMetadata cause + * @property {string|null} [principal] AbortMetadata principal */ /** - * Constructs a new ExecutionTerminateRequest. + * Constructs a new AbortMetadata. * @memberof flyteidl.admin - * @classdesc Represents an ExecutionTerminateRequest. - * @implements IExecutionTerminateRequest + * @classdesc Represents an AbortMetadata. + * @implements IAbortMetadata * @constructor - * @param {flyteidl.admin.IExecutionTerminateRequest=} [properties] Properties to set + * @param {flyteidl.admin.IAbortMetadata=} [properties] Properties to set */ - function ExecutionTerminateRequest(properties) { + function AbortMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26319,75 +25742,75 @@ } /** - * ExecutionTerminateRequest id. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.ExecutionTerminateRequest + * AbortMetadata cause. + * @member {string} cause + * @memberof flyteidl.admin.AbortMetadata * @instance */ - ExecutionTerminateRequest.prototype.id = null; + AbortMetadata.prototype.cause = ""; /** - * ExecutionTerminateRequest cause. - * @member {string} cause - * @memberof flyteidl.admin.ExecutionTerminateRequest + * AbortMetadata principal. + * @member {string} principal + * @memberof flyteidl.admin.AbortMetadata * @instance */ - ExecutionTerminateRequest.prototype.cause = ""; + AbortMetadata.prototype.principal = ""; /** - * Creates a new ExecutionTerminateRequest instance using the specified properties. + * Creates a new AbortMetadata instance using the specified properties. * @function create - * @memberof flyteidl.admin.ExecutionTerminateRequest + * @memberof flyteidl.admin.AbortMetadata * @static - * @param {flyteidl.admin.IExecutionTerminateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionTerminateRequest} ExecutionTerminateRequest instance + * @param {flyteidl.admin.IAbortMetadata=} [properties] Properties to set + * @returns {flyteidl.admin.AbortMetadata} AbortMetadata instance */ - ExecutionTerminateRequest.create = function create(properties) { - return new ExecutionTerminateRequest(properties); + AbortMetadata.create = function create(properties) { + return new AbortMetadata(properties); }; /** - * Encodes the specified ExecutionTerminateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionTerminateRequest.verify|verify} messages. + * Encodes the specified AbortMetadata message. Does not implicitly {@link flyteidl.admin.AbortMetadata.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ExecutionTerminateRequest + * @memberof flyteidl.admin.AbortMetadata * @static - * @param {flyteidl.admin.IExecutionTerminateRequest} message ExecutionTerminateRequest message or plain object to encode + * @param {flyteidl.admin.IAbortMetadata} message AbortMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecutionTerminateRequest.encode = function encode(message, writer) { + AbortMetadata.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); + 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 ExecutionTerminateRequest message from the specified reader or buffer. + * Decodes an AbortMetadata message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ExecutionTerminateRequest + * @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.ExecutionTerminateRequest} ExecutionTerminateRequest + * @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 */ - ExecutionTerminateRequest.decode = function decode(reader, length) { + 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.ExecutionTerminateRequest(); + 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.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + message.cause = reader.string(); break; case 2: - message.cause = reader.string(); + message.principal = reader.string(); break; default: reader.skipType(tag & 7); @@ -26398,47 +25821,60 @@ }; /** - * Verifies an ExecutionTerminateRequest message. + * Verifies an AbortMetadata message. * @function verify - * @memberof flyteidl.admin.ExecutionTerminateRequest + * @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 */ - ExecutionTerminateRequest.verify = function verify(message) { + AbortMetadata.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"; + if (message.principal != null && message.hasOwnProperty("principal")) + if (!$util.isString(message.principal)) + return "principal: string expected"; return null; }; - return ExecutionTerminateRequest; + return AbortMetadata; })(); - admin.ExecutionTerminateResponse = (function() { + admin.ExecutionClosure = (function() { /** - * Properties of an ExecutionTerminateResponse. + * Properties of an ExecutionClosure. * @memberof flyteidl.admin - * @interface IExecutionTerminateResponse + * @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 ExecutionTerminateResponse. + * Constructs a new ExecutionClosure. * @memberof flyteidl.admin - * @classdesc Represents an ExecutionTerminateResponse. - * @implements IExecutionTerminateResponse + * @classdesc Represents an ExecutionClosure. + * @implements IExecutionClosure * @constructor - * @param {flyteidl.admin.IExecutionTerminateResponse=} [properties] Properties to set + * @param {flyteidl.admin.IExecutionClosure=} [properties] Properties to set */ - function ExecutionTerminateResponse(properties) { + function ExecutionClosure(properties) { + this.notifications = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26446,208 +25882,399 @@ } /** - * 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 + * ExecutionClosure outputs. + * @member {flyteidl.admin.ILiteralMapBlob|null|undefined} outputs + * @memberof flyteidl.admin.ExecutionClosure + * @instance */ - ExecutionTerminateResponse.create = function create(properties) { - return new ExecutionTerminateResponse(properties); - }; + ExecutionClosure.prototype.outputs = null; /** - * 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 + * ExecutionClosure error. + * @member {flyteidl.core.IExecutionError|null|undefined} error + * @memberof flyteidl.admin.ExecutionClosure + * @instance */ - ExecutionTerminateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + ExecutionClosure.prototype.error = null; /** - * 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 + * ExecutionClosure abortCause. + * @member {string} abortCause + * @memberof flyteidl.admin.ExecutionClosure + * @instance */ - 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; - }; + ExecutionClosure.prototype.abortCause = ""; /** - * 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 + * ExecutionClosure abortMetadata. + * @member {flyteidl.admin.IAbortMetadata|null|undefined} abortMetadata + * @memberof flyteidl.admin.ExecutionClosure + * @instance */ - ExecutionTerminateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + ExecutionClosure.prototype.abortMetadata = null; - return ExecutionTerminateResponse; - })(); + /** + * ExecutionClosure outputData. + * @member {flyteidl.core.ILiteralMap|null|undefined} outputData + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.outputData = null; - admin.WorkflowExecutionGetDataRequest = (function() { + /** + * ExecutionClosure computedInputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} computedInputs + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.computedInputs = null; /** - * Properties of a WorkflowExecutionGetDataRequest. - * @memberof flyteidl.admin - * @interface IWorkflowExecutionGetDataRequest - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] WorkflowExecutionGetDataRequest id + * ExecutionClosure phase. + * @member {flyteidl.core.WorkflowExecution.Phase} phase + * @memberof flyteidl.admin.ExecutionClosure + * @instance */ + ExecutionClosure.prototype.phase = 0; /** - * Constructs a new WorkflowExecutionGetDataRequest. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowExecutionGetDataRequest. - * @implements IWorkflowExecutionGetDataRequest - * @constructor - * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest=} [properties] Properties to set + * ExecutionClosure startedAt. + * @member {google.protobuf.ITimestamp|null|undefined} startedAt + * @memberof flyteidl.admin.ExecutionClosure + * @instance */ - 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]]; - } + ExecutionClosure.prototype.startedAt = null; /** - * WorkflowExecutionGetDataRequest id. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.WorkflowExecutionGetDataRequest + * ExecutionClosure duration. + * @member {google.protobuf.IDuration|null|undefined} duration + * @memberof flyteidl.admin.ExecutionClosure * @instance */ - WorkflowExecutionGetDataRequest.prototype.id = null; + ExecutionClosure.prototype.duration = null; /** - * Creates a new WorkflowExecutionGetDataRequest instance using the specified properties. + * 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.WorkflowExecutionGetDataRequest + * @memberof flyteidl.admin.ExecutionClosure * @static - * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowExecutionGetDataRequest} WorkflowExecutionGetDataRequest instance + * @param {flyteidl.admin.IExecutionClosure=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionClosure} ExecutionClosure instance */ - WorkflowExecutionGetDataRequest.create = function create(properties) { - return new WorkflowExecutionGetDataRequest(properties); + ExecutionClosure.create = function create(properties) { + return new ExecutionClosure(properties); }; /** - * Encodes the specified WorkflowExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetDataRequest.verify|verify} messages. + * Encodes the specified ExecutionClosure message. Does not implicitly {@link flyteidl.admin.ExecutionClosure.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.WorkflowExecutionGetDataRequest + * @memberof flyteidl.admin.ExecutionClosure * @static - * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest} message WorkflowExecutionGetDataRequest message or plain object to encode + * @param {flyteidl.admin.IExecutionClosure} message ExecutionClosure message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkflowExecutionGetDataRequest.encode = function encode(message, writer) { + ExecutionClosure.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.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 a WorkflowExecutionGetDataRequest message from the specified reader or buffer. + * Decodes an ExecutionClosure message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.WorkflowExecutionGetDataRequest + * @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.WorkflowExecutionGetDataRequest} WorkflowExecutionGetDataRequest + * @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 */ - WorkflowExecutionGetDataRequest.decode = function decode(reader, length) { + 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.WorkflowExecutionGetDataRequest(); + 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.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + message.outputs = $root.flyteidl.admin.LiteralMapBlob.decode(reader, reader.uint32()); break; - default: - reader.skipType(tag & 7); + case 2: + message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); break; - } - } - return message; - }; - - /** - * Verifies a WorkflowExecutionGetDataRequest message. + 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.WorkflowExecutionGetDataRequest + * @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 */ - WorkflowExecutionGetDataRequest.verify = function verify(message) { + ExecutionClosure.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); + 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 "id." + 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 WorkflowExecutionGetDataRequest; + return ExecutionClosure; })(); - admin.WorkflowExecutionGetDataResponse = (function() { + admin.SystemMetadata = (function() { /** - * Properties of a WorkflowExecutionGetDataResponse. + * Properties of a SystemMetadata. * @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 + * @interface ISystemMetadata + * @property {string|null} [executionCluster] SystemMetadata executionCluster + * @property {string|null} [namespace] SystemMetadata namespace */ /** - * Constructs a new WorkflowExecutionGetDataResponse. + * Constructs a new SystemMetadata. * @memberof flyteidl.admin - * @classdesc Represents a WorkflowExecutionGetDataResponse. - * @implements IWorkflowExecutionGetDataResponse + * @classdesc Represents a SystemMetadata. + * @implements ISystemMetadata * @constructor - * @param {flyteidl.admin.IWorkflowExecutionGetDataResponse=} [properties] Properties to set + * @param {flyteidl.admin.ISystemMetadata=} [properties] Properties to set */ - function WorkflowExecutionGetDataResponse(properties) { + function SystemMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26655,101 +26282,75 @@ } /** - * 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 + * SystemMetadata executionCluster. + * @member {string} executionCluster + * @memberof flyteidl.admin.SystemMetadata * @instance */ - WorkflowExecutionGetDataResponse.prototype.fullInputs = null; + SystemMetadata.prototype.executionCluster = ""; /** - * WorkflowExecutionGetDataResponse fullOutputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} fullOutputs - * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse + * SystemMetadata namespace. + * @member {string} namespace + * @memberof flyteidl.admin.SystemMetadata * @instance */ - WorkflowExecutionGetDataResponse.prototype.fullOutputs = null; + SystemMetadata.prototype.namespace = ""; /** - * Creates a new WorkflowExecutionGetDataResponse instance using the specified properties. + * Creates a new SystemMetadata instance using the specified properties. * @function create - * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse + * @memberof flyteidl.admin.SystemMetadata * @static - * @param {flyteidl.admin.IWorkflowExecutionGetDataResponse=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowExecutionGetDataResponse} WorkflowExecutionGetDataResponse instance + * @param {flyteidl.admin.ISystemMetadata=} [properties] Properties to set + * @returns {flyteidl.admin.SystemMetadata} SystemMetadata instance */ - WorkflowExecutionGetDataResponse.create = function create(properties) { - return new WorkflowExecutionGetDataResponse(properties); + SystemMetadata.create = function create(properties) { + return new SystemMetadata(properties); }; /** - * Encodes the specified WorkflowExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetDataResponse.verify|verify} messages. + * Encodes the specified SystemMetadata message. Does not implicitly {@link flyteidl.admin.SystemMetadata.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse + * @memberof flyteidl.admin.SystemMetadata * @static - * @param {flyteidl.admin.IWorkflowExecutionGetDataResponse} message WorkflowExecutionGetDataResponse message or plain object to encode + * @param {flyteidl.admin.ISystemMetadata} message SystemMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkflowExecutionGetDataResponse.encode = function encode(message, writer) { + SystemMetadata.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(); + 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 WorkflowExecutionGetDataResponse message from the specified reader or buffer. + * Decodes a SystemMetadata message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse + * @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.WorkflowExecutionGetDataResponse} WorkflowExecutionGetDataResponse + * @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 */ - WorkflowExecutionGetDataResponse.decode = function decode(reader, length) { + 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.WorkflowExecutionGetDataResponse(); + 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.outputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); + message.executionCluster = reader.string(); 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()); + message.namespace = reader.string(); break; default: reader.skipType(tag & 7); @@ -26760,75 +26361,52 @@ }; /** - * Verifies a WorkflowExecutionGetDataResponse message. + * Verifies a SystemMetadata message. * @function verify - * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse + * @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 */ - WorkflowExecutionGetDataResponse.verify = function verify(message) { + SystemMetadata.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; - } + 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 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; + return SystemMetadata; })(); - admin.ExecutionUpdateRequest = (function() { + admin.ExecutionMetadata = (function() { /** - * Properties of an ExecutionUpdateRequest. + * Properties of an ExecutionMetadata. * @memberof flyteidl.admin - * @interface IExecutionUpdateRequest - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] ExecutionUpdateRequest id - * @property {flyteidl.admin.ExecutionState|null} [state] ExecutionUpdateRequest state + * @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 */ /** - * Constructs a new ExecutionUpdateRequest. + * Constructs a new ExecutionMetadata. * @memberof flyteidl.admin - * @classdesc Represents an ExecutionUpdateRequest. - * @implements IExecutionUpdateRequest + * @classdesc Represents an ExecutionMetadata. + * @implements IExecutionMetadata * @constructor - * @param {flyteidl.admin.IExecutionUpdateRequest=} [properties] Properties to set + * @param {flyteidl.admin.IExecutionMetadata=} [properties] Properties to set */ - function ExecutionUpdateRequest(properties) { + function ExecutionMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26836,75 +26414,140 @@ } /** - * ExecutionUpdateRequest id. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.ExecutionUpdateRequest + * ExecutionMetadata mode. + * @member {flyteidl.admin.ExecutionMetadata.ExecutionMode} mode + * @memberof flyteidl.admin.ExecutionMetadata * @instance */ - ExecutionUpdateRequest.prototype.id = null; + ExecutionMetadata.prototype.mode = 0; /** - * ExecutionUpdateRequest state. - * @member {flyteidl.admin.ExecutionState} state - * @memberof flyteidl.admin.ExecutionUpdateRequest + * ExecutionMetadata principal. + * @member {string} principal + * @memberof flyteidl.admin.ExecutionMetadata * @instance */ - ExecutionUpdateRequest.prototype.state = 0; + ExecutionMetadata.prototype.principal = ""; /** - * Creates a new ExecutionUpdateRequest instance using the specified properties. + * 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; + + /** + * Creates a new ExecutionMetadata instance using the specified properties. * @function create - * @memberof flyteidl.admin.ExecutionUpdateRequest + * @memberof flyteidl.admin.ExecutionMetadata * @static - * @param {flyteidl.admin.IExecutionUpdateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionUpdateRequest} ExecutionUpdateRequest instance + * @param {flyteidl.admin.IExecutionMetadata=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionMetadata} ExecutionMetadata instance */ - ExecutionUpdateRequest.create = function create(properties) { - return new ExecutionUpdateRequest(properties); + ExecutionMetadata.create = function create(properties) { + return new ExecutionMetadata(properties); }; /** - * Encodes the specified ExecutionUpdateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionUpdateRequest.verify|verify} messages. + * Encodes the specified ExecutionMetadata message. Does not implicitly {@link flyteidl.admin.ExecutionMetadata.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ExecutionUpdateRequest + * @memberof flyteidl.admin.ExecutionMetadata * @static - * @param {flyteidl.admin.IExecutionUpdateRequest} message ExecutionUpdateRequest message or plain object to encode + * @param {flyteidl.admin.IExecutionMetadata} message ExecutionMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecutionUpdateRequest.encode = function encode(message, writer) { + ExecutionMetadata.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); + 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(); return writer; }; /** - * Decodes an ExecutionUpdateRequest message from the specified reader or buffer. + * Decodes an ExecutionMetadata message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ExecutionUpdateRequest + * @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.ExecutionUpdateRequest} ExecutionUpdateRequest + * @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 */ - ExecutionUpdateRequest.decode = function decode(reader, length) { + 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.ExecutionUpdateRequest(); + 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.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + message.mode = reader.int32(); break; case 2: - message.state = reader.int32(); + 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; default: reader.skipType(tag & 7); @@ -26915,55 +26558,101 @@ }; /** - * Verifies an ExecutionUpdateRequest message. + * Verifies an ExecutionMetadata message. * @function verify - * @memberof flyteidl.admin.ExecutionUpdateRequest + * @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 */ - ExecutionUpdateRequest.verify = function verify(message) { + ExecutionMetadata.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) { + if (message.mode != null && message.hasOwnProperty("mode")) + switch (message.mode) { default: - return "state: enum value expected"; + 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; + } return null; }; - return ExecutionUpdateRequest; - })(); + /** + * 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; + })(); - admin.ExecutionStateChangeDetails = (function() { + return ExecutionMetadata; + })(); + + admin.NotificationList = (function() { /** - * Properties of an ExecutionStateChangeDetails. + * Properties of a NotificationList. * @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 + * @interface INotificationList + * @property {Array.|null} [notifications] NotificationList notifications */ /** - * Constructs a new ExecutionStateChangeDetails. + * Constructs a new NotificationList. * @memberof flyteidl.admin - * @classdesc Represents an ExecutionStateChangeDetails. - * @implements IExecutionStateChangeDetails + * @classdesc Represents a NotificationList. + * @implements INotificationList * @constructor - * @param {flyteidl.admin.IExecutionStateChangeDetails=} [properties] Properties to set + * @param {flyteidl.admin.INotificationList=} [properties] Properties to set */ - function ExecutionStateChangeDetails(properties) { + function NotificationList(properties) { + this.notifications = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26971,88 +26660,65 @@ } /** - * 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 + * NotificationList notifications. + * @member {Array.} notifications + * @memberof flyteidl.admin.NotificationList * @instance */ - ExecutionStateChangeDetails.prototype.principal = ""; + NotificationList.prototype.notifications = $util.emptyArray; /** - * Creates a new ExecutionStateChangeDetails instance using the specified properties. + * Creates a new NotificationList instance using the specified properties. * @function create - * @memberof flyteidl.admin.ExecutionStateChangeDetails + * @memberof flyteidl.admin.NotificationList * @static - * @param {flyteidl.admin.IExecutionStateChangeDetails=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionStateChangeDetails} ExecutionStateChangeDetails instance + * @param {flyteidl.admin.INotificationList=} [properties] Properties to set + * @returns {flyteidl.admin.NotificationList} NotificationList instance */ - ExecutionStateChangeDetails.create = function create(properties) { - return new ExecutionStateChangeDetails(properties); + NotificationList.create = function create(properties) { + return new NotificationList(properties); }; /** - * Encodes the specified ExecutionStateChangeDetails message. Does not implicitly {@link flyteidl.admin.ExecutionStateChangeDetails.verify|verify} messages. + * Encodes the specified NotificationList message. Does not implicitly {@link flyteidl.admin.NotificationList.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ExecutionStateChangeDetails + * @memberof flyteidl.admin.NotificationList * @static - * @param {flyteidl.admin.IExecutionStateChangeDetails} message ExecutionStateChangeDetails message or plain object to encode + * @param {flyteidl.admin.INotificationList} message NotificationList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecutionStateChangeDetails.encode = function encode(message, writer) { + NotificationList.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); + 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 an ExecutionStateChangeDetails message from the specified reader or buffer. + * Decodes a NotificationList message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ExecutionStateChangeDetails + * @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.ExecutionStateChangeDetails} ExecutionStateChangeDetails + * @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 */ - ExecutionStateChangeDetails.decode = function decode(reader, length) { + 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.ExecutionStateChangeDetails(); + 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: - message.state = reader.int32(); - break; - case 2: - message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 3: - message.principal = reader.string(); + 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); @@ -27063,55 +26729,64 @@ }; /** - * Verifies an ExecutionStateChangeDetails message. + * Verifies a NotificationList message. * @function verify - * @memberof flyteidl.admin.ExecutionStateChangeDetails + * @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 */ - ExecutionStateChangeDetails.verify = function verify(message) { + NotificationList.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.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.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; + return NotificationList; })(); - admin.ExecutionUpdateResponse = (function() { + admin.ExecutionSpec = (function() { /** - * Properties of an ExecutionUpdateResponse. + * Properties of an ExecutionSpec. * @memberof flyteidl.admin - * @interface IExecutionUpdateResponse + * @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 */ /** - * Constructs a new ExecutionUpdateResponse. + * Constructs a new ExecutionSpec. * @memberof flyteidl.admin - * @classdesc Represents an ExecutionUpdateResponse. - * @implements IExecutionUpdateResponse + * @classdesc Represents an ExecutionSpec. + * @implements IExecutionSpec * @constructor - * @param {flyteidl.admin.IExecutionUpdateResponse=} [properties] Properties to set + * @param {flyteidl.admin.IExecutionSpec=} [properties] Properties to set */ - function ExecutionUpdateResponse(properties) { + function ExecutionSpec(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27119,170 +26794,271 @@ } /** - * 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 + * ExecutionSpec launchPlan. + * @member {flyteidl.core.IIdentifier|null|undefined} launchPlan + * @memberof flyteidl.admin.ExecutionSpec + * @instance */ - ExecutionUpdateResponse.create = function create(properties) { - return new ExecutionUpdateResponse(properties); - }; + ExecutionSpec.prototype.launchPlan = null; /** - * 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 + * ExecutionSpec inputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} inputs + * @memberof flyteidl.admin.ExecutionSpec + * @instance */ - ExecutionUpdateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + ExecutionSpec.prototype.inputs = null; /** - * 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 + * ExecutionSpec metadata. + * @member {flyteidl.admin.IExecutionMetadata|null|undefined} metadata + * @memberof flyteidl.admin.ExecutionSpec + * @instance */ - 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; - }; + ExecutionSpec.prototype.metadata = null; /** - * 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 + * ExecutionSpec notifications. + * @member {flyteidl.admin.INotificationList|null|undefined} notifications + * @memberof flyteidl.admin.ExecutionSpec + * @instance */ - ExecutionUpdateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + ExecutionSpec.prototype.notifications = null; - return ExecutionUpdateResponse; - })(); + /** + * ExecutionSpec disableAll. + * @member {boolean} disableAll + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.disableAll = false; - admin.WorkflowExecutionGetMetricsRequest = (function() { + /** + * ExecutionSpec labels. + * @member {flyteidl.admin.ILabels|null|undefined} labels + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.labels = null; /** - * Properties of a WorkflowExecutionGetMetricsRequest. - * @memberof flyteidl.admin - * @interface IWorkflowExecutionGetMetricsRequest - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] WorkflowExecutionGetMetricsRequest id - * @property {number|null} [depth] WorkflowExecutionGetMetricsRequest depth + * ExecutionSpec annotations. + * @member {flyteidl.admin.IAnnotations|null|undefined} annotations + * @memberof flyteidl.admin.ExecutionSpec + * @instance */ + ExecutionSpec.prototype.annotations = null; /** - * Constructs a new WorkflowExecutionGetMetricsRequest. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowExecutionGetMetricsRequest. - * @implements IWorkflowExecutionGetMetricsRequest - * @constructor - * @param {flyteidl.admin.IWorkflowExecutionGetMetricsRequest=} [properties] Properties to set + * ExecutionSpec securityContext. + * @member {flyteidl.core.ISecurityContext|null|undefined} securityContext + * @memberof flyteidl.admin.ExecutionSpec + * @instance */ - 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]]; - } + ExecutionSpec.prototype.securityContext = null; /** - * WorkflowExecutionGetMetricsRequest id. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest + * ExecutionSpec authRole. + * @member {flyteidl.admin.IAuthRole|null|undefined} authRole + * @memberof flyteidl.admin.ExecutionSpec * @instance */ - WorkflowExecutionGetMetricsRequest.prototype.id = null; + ExecutionSpec.prototype.authRole = null; /** - * WorkflowExecutionGetMetricsRequest depth. - * @member {number} depth - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest + * ExecutionSpec qualityOfService. + * @member {flyteidl.core.IQualityOfService|null|undefined} qualityOfService + * @memberof flyteidl.admin.ExecutionSpec * @instance */ - WorkflowExecutionGetMetricsRequest.prototype.depth = 0; + ExecutionSpec.prototype.qualityOfService = null; /** - * Creates a new WorkflowExecutionGetMetricsRequest instance using the specified properties. + * 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; + + // 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.WorkflowExecutionGetMetricsRequest + * @memberof flyteidl.admin.ExecutionSpec * @static - * @param {flyteidl.admin.IWorkflowExecutionGetMetricsRequest=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowExecutionGetMetricsRequest} WorkflowExecutionGetMetricsRequest instance + * @param {flyteidl.admin.IExecutionSpec=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionSpec} ExecutionSpec instance */ - WorkflowExecutionGetMetricsRequest.create = function create(properties) { - return new WorkflowExecutionGetMetricsRequest(properties); + ExecutionSpec.create = function create(properties) { + return new ExecutionSpec(properties); }; /** - * Encodes the specified WorkflowExecutionGetMetricsRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetMetricsRequest.verify|verify} messages. + * Encodes the specified ExecutionSpec message. Does not implicitly {@link flyteidl.admin.ExecutionSpec.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest + * @memberof flyteidl.admin.ExecutionSpec * @static - * @param {flyteidl.admin.IWorkflowExecutionGetMetricsRequest} message WorkflowExecutionGetMetricsRequest message or plain object to encode + * @param {flyteidl.admin.IExecutionSpec} message ExecutionSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkflowExecutionGetMetricsRequest.encode = function encode(message, writer) { + ExecutionSpec.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); + 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(); return writer; }; /** - * Decodes a WorkflowExecutionGetMetricsRequest message from the specified reader or buffer. + * Decodes an ExecutionSpec message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest + * @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.WorkflowExecutionGetMetricsRequest} WorkflowExecutionGetMetricsRequest + * @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 */ - WorkflowExecutionGetMetricsRequest.decode = function decode(reader, length) { + 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.WorkflowExecutionGetMetricsRequest(); + 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.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + message.launchPlan = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); break; case 2: - message.depth = reader.int32(); + 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; default: reader.skipType(tag & 7); @@ -27293,48 +27069,123 @@ }; /** - * Verifies a WorkflowExecutionGetMetricsRequest message. + * Verifies an ExecutionSpec message. * @function verify - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest + * @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 */ - WorkflowExecutionGetMetricsRequest.verify = function verify(message) { + ExecutionSpec.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); + var properties = {}; + if (message.launchPlan != null && message.hasOwnProperty("launchPlan")) { + var error = $root.flyteidl.core.Identifier.verify(message.launchPlan); if (error) - return "id." + error; + return "launchPlan." + error; } - if (message.depth != null && message.hasOwnProperty("depth")) - if (!$util.isInteger(message.depth)) - return "depth: integer expected"; - return null; - }; - - return WorkflowExecutionGetMetricsRequest; - })(); - - admin.WorkflowExecutionGetMetricsResponse = (function() { - + 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; + } + return null; + }; + + return ExecutionSpec; + })(); + + admin.ExecutionTerminateRequest = (function() { + /** - * Properties of a WorkflowExecutionGetMetricsResponse. + * Properties of an ExecutionTerminateRequest. * @memberof flyteidl.admin - * @interface IWorkflowExecutionGetMetricsResponse - * @property {flyteidl.core.ISpan|null} [span] WorkflowExecutionGetMetricsResponse span + * @interface IExecutionTerminateRequest + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] ExecutionTerminateRequest id + * @property {string|null} [cause] ExecutionTerminateRequest cause */ /** - * Constructs a new WorkflowExecutionGetMetricsResponse. + * Constructs a new ExecutionTerminateRequest. * @memberof flyteidl.admin - * @classdesc Represents a WorkflowExecutionGetMetricsResponse. - * @implements IWorkflowExecutionGetMetricsResponse + * @classdesc Represents an ExecutionTerminateRequest. + * @implements IExecutionTerminateRequest * @constructor - * @param {flyteidl.admin.IWorkflowExecutionGetMetricsResponse=} [properties] Properties to set + * @param {flyteidl.admin.IExecutionTerminateRequest=} [properties] Properties to set */ - function WorkflowExecutionGetMetricsResponse(properties) { + function ExecutionTerminateRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27342,62 +27193,75 @@ } /** - * WorkflowExecutionGetMetricsResponse span. - * @member {flyteidl.core.ISpan|null|undefined} span - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsResponse + * ExecutionTerminateRequest id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.ExecutionTerminateRequest * @instance */ - WorkflowExecutionGetMetricsResponse.prototype.span = null; + ExecutionTerminateRequest.prototype.id = null; /** - * Creates a new WorkflowExecutionGetMetricsResponse instance using the specified properties. + * 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.WorkflowExecutionGetMetricsResponse + * @memberof flyteidl.admin.ExecutionTerminateRequest * @static - * @param {flyteidl.admin.IWorkflowExecutionGetMetricsResponse=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowExecutionGetMetricsResponse} WorkflowExecutionGetMetricsResponse instance + * @param {flyteidl.admin.IExecutionTerminateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionTerminateRequest} ExecutionTerminateRequest instance */ - WorkflowExecutionGetMetricsResponse.create = function create(properties) { - return new WorkflowExecutionGetMetricsResponse(properties); + ExecutionTerminateRequest.create = function create(properties) { + return new ExecutionTerminateRequest(properties); }; /** - * Encodes the specified WorkflowExecutionGetMetricsResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetMetricsResponse.verify|verify} messages. + * Encodes the specified ExecutionTerminateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionTerminateRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsResponse + * @memberof flyteidl.admin.ExecutionTerminateRequest * @static - * @param {flyteidl.admin.IWorkflowExecutionGetMetricsResponse} message WorkflowExecutionGetMetricsResponse message or plain object to encode + * @param {flyteidl.admin.IExecutionTerminateRequest} message ExecutionTerminateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkflowExecutionGetMetricsResponse.encode = function encode(message, writer) { + ExecutionTerminateRequest.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(); + 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 a WorkflowExecutionGetMetricsResponse message from the specified reader or buffer. + * Decodes an ExecutionTerminateRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsResponse + * @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.WorkflowExecutionGetMetricsResponse} WorkflowExecutionGetMetricsResponse + * @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 */ - WorkflowExecutionGetMetricsResponse.decode = function decode(reader, length) { + 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.WorkflowExecutionGetMetricsResponse(); + 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.span = $root.flyteidl.core.Span.decode(reader, reader.uint32()); + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.cause = reader.string(); break; default: reader.skipType(tag & 7); @@ -27408,46 +27272,47 @@ }; /** - * Verifies a WorkflowExecutionGetMetricsResponse message. + * Verifies an ExecutionTerminateRequest message. * @function verify - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsResponse + * @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 */ - WorkflowExecutionGetMetricsResponse.verify = function verify(message) { + ExecutionTerminateRequest.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 (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); if (error) - return "span." + error; + return "id." + error; } + if (message.cause != null && message.hasOwnProperty("cause")) + if (!$util.isString(message.cause)) + return "cause: string expected"; return null; }; - return WorkflowExecutionGetMetricsResponse; + return ExecutionTerminateRequest; })(); - admin.LaunchPlanCreateRequest = (function() { + admin.ExecutionTerminateResponse = (function() { /** - * Properties of a LaunchPlanCreateRequest. + * Properties of an ExecutionTerminateResponse. * @memberof flyteidl.admin - * @interface ILaunchPlanCreateRequest - * @property {flyteidl.core.IIdentifier|null} [id] LaunchPlanCreateRequest id - * @property {flyteidl.admin.ILaunchPlanSpec|null} [spec] LaunchPlanCreateRequest spec + * @interface IExecutionTerminateResponse */ /** - * Constructs a new LaunchPlanCreateRequest. + * Constructs a new ExecutionTerminateResponse. * @memberof flyteidl.admin - * @classdesc Represents a LaunchPlanCreateRequest. - * @implements ILaunchPlanCreateRequest + * @classdesc Represents an ExecutionTerminateResponse. + * @implements IExecutionTerminateResponse * @constructor - * @param {flyteidl.admin.ILaunchPlanCreateRequest=} [properties] Properties to set + * @param {flyteidl.admin.IExecutionTerminateResponse=} [properties] Properties to set */ - function LaunchPlanCreateRequest(properties) { + function ExecutionTerminateResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27455,76 +27320,50 @@ } /** - * 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. + * Creates a new ExecutionTerminateResponse instance using the specified properties. * @function create - * @memberof flyteidl.admin.LaunchPlanCreateRequest + * @memberof flyteidl.admin.ExecutionTerminateResponse * @static - * @param {flyteidl.admin.ILaunchPlanCreateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.LaunchPlanCreateRequest} LaunchPlanCreateRequest instance + * @param {flyteidl.admin.IExecutionTerminateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionTerminateResponse} ExecutionTerminateResponse instance */ - LaunchPlanCreateRequest.create = function create(properties) { - return new LaunchPlanCreateRequest(properties); + ExecutionTerminateResponse.create = function create(properties) { + return new ExecutionTerminateResponse(properties); }; /** - * Encodes the specified LaunchPlanCreateRequest message. Does not implicitly {@link flyteidl.admin.LaunchPlanCreateRequest.verify|verify} messages. + * Encodes the specified ExecutionTerminateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionTerminateResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.LaunchPlanCreateRequest + * @memberof flyteidl.admin.ExecutionTerminateResponse * @static - * @param {flyteidl.admin.ILaunchPlanCreateRequest} message LaunchPlanCreateRequest message or plain object to encode + * @param {flyteidl.admin.IExecutionTerminateResponse} message ExecutionTerminateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LaunchPlanCreateRequest.encode = function encode(message, writer) { + ExecutionTerminateResponse.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. + * Decodes an ExecutionTerminateResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.LaunchPlanCreateRequest + * @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.LaunchPlanCreateRequest} LaunchPlanCreateRequest + * @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 */ - LaunchPlanCreateRequest.decode = function decode(reader, length) { + 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.LaunchPlanCreateRequest(); + 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) { - 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; @@ -27534,49 +27373,40 @@ }; /** - * Verifies a LaunchPlanCreateRequest message. + * Verifies an ExecutionTerminateResponse message. * @function verify - * @memberof flyteidl.admin.LaunchPlanCreateRequest + * @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 */ - LaunchPlanCreateRequest.verify = function verify(message) { + ExecutionTerminateResponse.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; + return ExecutionTerminateResponse; })(); - admin.LaunchPlanCreateResponse = (function() { + admin.WorkflowExecutionGetDataRequest = (function() { /** - * Properties of a LaunchPlanCreateResponse. + * Properties of a WorkflowExecutionGetDataRequest. * @memberof flyteidl.admin - * @interface ILaunchPlanCreateResponse + * @interface IWorkflowExecutionGetDataRequest + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] WorkflowExecutionGetDataRequest id */ /** - * Constructs a new LaunchPlanCreateResponse. + * Constructs a new WorkflowExecutionGetDataRequest. * @memberof flyteidl.admin - * @classdesc Represents a LaunchPlanCreateResponse. - * @implements ILaunchPlanCreateResponse + * @classdesc Represents a WorkflowExecutionGetDataRequest. + * @implements IWorkflowExecutionGetDataRequest * @constructor - * @param {flyteidl.admin.ILaunchPlanCreateResponse=} [properties] Properties to set + * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest=} [properties] Properties to set */ - function LaunchPlanCreateResponse(properties) { + function WorkflowExecutionGetDataRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27584,50 +27414,63 @@ } /** - * Creates a new LaunchPlanCreateResponse instance using the specified properties. + * 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.LaunchPlanCreateResponse + * @memberof flyteidl.admin.WorkflowExecutionGetDataRequest * @static - * @param {flyteidl.admin.ILaunchPlanCreateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.LaunchPlanCreateResponse} LaunchPlanCreateResponse instance + * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowExecutionGetDataRequest} WorkflowExecutionGetDataRequest instance */ - LaunchPlanCreateResponse.create = function create(properties) { - return new LaunchPlanCreateResponse(properties); + WorkflowExecutionGetDataRequest.create = function create(properties) { + return new WorkflowExecutionGetDataRequest(properties); }; /** - * Encodes the specified LaunchPlanCreateResponse message. Does not implicitly {@link flyteidl.admin.LaunchPlanCreateResponse.verify|verify} messages. + * Encodes the specified WorkflowExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetDataRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.LaunchPlanCreateResponse + * @memberof flyteidl.admin.WorkflowExecutionGetDataRequest * @static - * @param {flyteidl.admin.ILaunchPlanCreateResponse} message LaunchPlanCreateResponse message or plain object to encode + * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest} message WorkflowExecutionGetDataRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LaunchPlanCreateResponse.encode = function encode(message, 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 LaunchPlanCreateResponse message from the specified reader or buffer. + * Decodes a WorkflowExecutionGetDataRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.LaunchPlanCreateResponse + * @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.LaunchPlanCreateResponse} LaunchPlanCreateResponse + * @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 */ - LaunchPlanCreateResponse.decode = function decode(reader, length) { + 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.LaunchPlanCreateResponse(); + 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; @@ -27637,56 +27480,48 @@ }; /** - * Verifies a LaunchPlanCreateResponse message. + * Verifies a WorkflowExecutionGetDataRequest message. * @function verify - * @memberof flyteidl.admin.LaunchPlanCreateResponse + * @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 */ - LaunchPlanCreateResponse.verify = function verify(message) { + 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 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; + return WorkflowExecutionGetDataRequest; })(); - admin.LaunchPlan = (function() { + admin.WorkflowExecutionGetDataResponse = (function() { /** - * Properties of a LaunchPlan. + * Properties of a WorkflowExecutionGetDataResponse. * @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 + * @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 LaunchPlan. + * Constructs a new WorkflowExecutionGetDataResponse. * @memberof flyteidl.admin - * @classdesc Represents a LaunchPlan. - * @implements ILaunchPlan + * @classdesc Represents a WorkflowExecutionGetDataResponse. + * @implements IWorkflowExecutionGetDataResponse * @constructor - * @param {flyteidl.admin.ILaunchPlan=} [properties] Properties to set + * @param {flyteidl.admin.IWorkflowExecutionGetDataResponse=} [properties] Properties to set */ - function LaunchPlan(properties) { + function WorkflowExecutionGetDataResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27694,88 +27529,101 @@ } /** - * LaunchPlan id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.admin.LaunchPlan + * WorkflowExecutionGetDataResponse outputs. + * @member {flyteidl.admin.IUrlBlob|null|undefined} outputs + * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse * @instance */ - LaunchPlan.prototype.id = null; + WorkflowExecutionGetDataResponse.prototype.outputs = null; /** - * LaunchPlan spec. - * @member {flyteidl.admin.ILaunchPlanSpec|null|undefined} spec - * @memberof flyteidl.admin.LaunchPlan + * WorkflowExecutionGetDataResponse inputs. + * @member {flyteidl.admin.IUrlBlob|null|undefined} inputs + * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse * @instance */ - LaunchPlan.prototype.spec = null; + WorkflowExecutionGetDataResponse.prototype.inputs = null; /** - * LaunchPlan closure. - * @member {flyteidl.admin.ILaunchPlanClosure|null|undefined} closure - * @memberof flyteidl.admin.LaunchPlan + * WorkflowExecutionGetDataResponse fullInputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} fullInputs + * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse * @instance */ - LaunchPlan.prototype.closure = null; + WorkflowExecutionGetDataResponse.prototype.fullInputs = null; /** - * Creates a new LaunchPlan instance using the specified properties. + * 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.LaunchPlan + * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse * @static - * @param {flyteidl.admin.ILaunchPlan=} [properties] Properties to set - * @returns {flyteidl.admin.LaunchPlan} LaunchPlan instance + * @param {flyteidl.admin.IWorkflowExecutionGetDataResponse=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowExecutionGetDataResponse} WorkflowExecutionGetDataResponse instance */ - LaunchPlan.create = function create(properties) { - return new LaunchPlan(properties); + WorkflowExecutionGetDataResponse.create = function create(properties) { + return new WorkflowExecutionGetDataResponse(properties); }; /** - * Encodes the specified LaunchPlan message. Does not implicitly {@link flyteidl.admin.LaunchPlan.verify|verify} messages. + * Encodes the specified WorkflowExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetDataResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.LaunchPlan + * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse * @static - * @param {flyteidl.admin.ILaunchPlan} message LaunchPlan message or plain object to encode + * @param {flyteidl.admin.IWorkflowExecutionGetDataResponse} message WorkflowExecutionGetDataResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LaunchPlan.encode = function encode(message, writer) { + WorkflowExecutionGetDataResponse.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(); + 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 LaunchPlan message from the specified reader or buffer. + * Decodes a WorkflowExecutionGetDataResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.LaunchPlan + * @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.LaunchPlan} LaunchPlan + * @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 */ - LaunchPlan.decode = function decode(reader, length) { + 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.LaunchPlan(); + 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.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + message.outputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); break; case 2: - message.spec = $root.flyteidl.admin.LaunchPlanSpec.decode(reader, reader.uint32()); + message.inputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); break; case 3: - message.closure = $root.flyteidl.admin.LaunchPlanClosure.decode(reader, reader.uint32()); + 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); @@ -27786,57 +27634,75 @@ }; /** - * Verifies a LaunchPlan message. + * Verifies a WorkflowExecutionGetDataResponse message. * @function verify - * @memberof flyteidl.admin.LaunchPlan + * @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 */ - LaunchPlan.verify = function verify(message) { + WorkflowExecutionGetDataResponse.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 (message.outputs != null && message.hasOwnProperty("outputs")) { + var error = $root.flyteidl.admin.UrlBlob.verify(message.outputs); if (error) - return "id." + error; + return "outputs." + error; } - if (message.spec != null && message.hasOwnProperty("spec")) { - var error = $root.flyteidl.admin.LaunchPlanSpec.verify(message.spec); + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.flyteidl.admin.UrlBlob.verify(message.inputs); if (error) - return "spec." + error; + return "inputs." + error; } - if (message.closure != null && message.hasOwnProperty("closure")) { - var error = $root.flyteidl.admin.LaunchPlanClosure.verify(message.closure); + if (message.fullInputs != null && message.hasOwnProperty("fullInputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.fullInputs); if (error) - return "closure." + 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 LaunchPlan; + return WorkflowExecutionGetDataResponse; })(); - admin.LaunchPlanList = (function() { + /** + * 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 a LaunchPlanList. + * Properties of an ExecutionUpdateRequest. * @memberof flyteidl.admin - * @interface ILaunchPlanList - * @property {Array.|null} [launchPlans] LaunchPlanList launchPlans - * @property {string|null} [token] LaunchPlanList token + * @interface IExecutionUpdateRequest + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] ExecutionUpdateRequest id + * @property {flyteidl.admin.ExecutionState|null} [state] ExecutionUpdateRequest state */ /** - * Constructs a new LaunchPlanList. + * Constructs a new ExecutionUpdateRequest. * @memberof flyteidl.admin - * @classdesc Represents a LaunchPlanList. - * @implements ILaunchPlanList + * @classdesc Represents an ExecutionUpdateRequest. + * @implements IExecutionUpdateRequest * @constructor - * @param {flyteidl.admin.ILaunchPlanList=} [properties] Properties to set + * @param {flyteidl.admin.IExecutionUpdateRequest=} [properties] Properties to set */ - function LaunchPlanList(properties) { - this.launchPlans = []; + function ExecutionUpdateRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27844,78 +27710,75 @@ } /** - * LaunchPlanList launchPlans. - * @member {Array.} launchPlans - * @memberof flyteidl.admin.LaunchPlanList + * ExecutionUpdateRequest id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.ExecutionUpdateRequest * @instance */ - LaunchPlanList.prototype.launchPlans = $util.emptyArray; + ExecutionUpdateRequest.prototype.id = null; /** - * LaunchPlanList token. - * @member {string} token - * @memberof flyteidl.admin.LaunchPlanList + * ExecutionUpdateRequest state. + * @member {flyteidl.admin.ExecutionState} state + * @memberof flyteidl.admin.ExecutionUpdateRequest * @instance */ - LaunchPlanList.prototype.token = ""; + ExecutionUpdateRequest.prototype.state = 0; /** - * Creates a new LaunchPlanList instance using the specified properties. + * Creates a new ExecutionUpdateRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.LaunchPlanList + * @memberof flyteidl.admin.ExecutionUpdateRequest * @static - * @param {flyteidl.admin.ILaunchPlanList=} [properties] Properties to set - * @returns {flyteidl.admin.LaunchPlanList} LaunchPlanList instance + * @param {flyteidl.admin.IExecutionUpdateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionUpdateRequest} ExecutionUpdateRequest instance */ - LaunchPlanList.create = function create(properties) { - return new LaunchPlanList(properties); + ExecutionUpdateRequest.create = function create(properties) { + return new ExecutionUpdateRequest(properties); }; /** - * Encodes the specified LaunchPlanList message. Does not implicitly {@link flyteidl.admin.LaunchPlanList.verify|verify} messages. + * Encodes the specified ExecutionUpdateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionUpdateRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.LaunchPlanList + * @memberof flyteidl.admin.ExecutionUpdateRequest * @static - * @param {flyteidl.admin.ILaunchPlanList} message LaunchPlanList message or plain object to encode + * @param {flyteidl.admin.IExecutionUpdateRequest} message ExecutionUpdateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LaunchPlanList.encode = function encode(message, writer) { + ExecutionUpdateRequest.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); + 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 a LaunchPlanList message from the specified reader or buffer. + * Decodes an ExecutionUpdateRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.LaunchPlanList + * @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.LaunchPlanList} LaunchPlanList + * @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 */ - LaunchPlanList.decode = function decode(reader, length) { + 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.LaunchPlanList(); + 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: - if (!(message.launchPlans && message.launchPlans.length)) - message.launchPlans = []; - message.launchPlans.push($root.flyteidl.admin.LaunchPlan.decode(reader, reader.uint32())); + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); break; case 2: - message.token = reader.string(); + message.state = reader.int32(); break; default: reader.skipType(tag & 7); @@ -27926,53 +27789,55 @@ }; /** - * Verifies a LaunchPlanList message. + * Verifies an ExecutionUpdateRequest message. * @function verify - * @memberof flyteidl.admin.LaunchPlanList + * @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 */ - LaunchPlanList.verify = function verify(message) { + ExecutionUpdateRequest.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.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; } - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + break; + } return null; }; - return LaunchPlanList; + return ExecutionUpdateRequest; })(); - admin.Auth = (function() { + admin.ExecutionStateChangeDetails = (function() { /** - * Properties of an Auth. + * Properties of an ExecutionStateChangeDetails. * @memberof flyteidl.admin - * @interface IAuth - * @property {string|null} [assumableIamRole] Auth assumableIamRole - * @property {string|null} [kubernetesServiceAccount] Auth kubernetesServiceAccount + * @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 Auth. + * Constructs a new ExecutionStateChangeDetails. * @memberof flyteidl.admin - * @classdesc Represents an Auth. - * @implements IAuth + * @classdesc Represents an ExecutionStateChangeDetails. + * @implements IExecutionStateChangeDetails * @constructor - * @param {flyteidl.admin.IAuth=} [properties] Properties to set + * @param {flyteidl.admin.IExecutionStateChangeDetails=} [properties] Properties to set */ - function Auth(properties) { + function ExecutionStateChangeDetails(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27980,75 +27845,88 @@ } /** - * Auth assumableIamRole. - * @member {string} assumableIamRole - * @memberof flyteidl.admin.Auth + * ExecutionStateChangeDetails state. + * @member {flyteidl.admin.ExecutionState} state + * @memberof flyteidl.admin.ExecutionStateChangeDetails * @instance */ - Auth.prototype.assumableIamRole = ""; + ExecutionStateChangeDetails.prototype.state = 0; /** - * Auth kubernetesServiceAccount. - * @member {string} kubernetesServiceAccount - * @memberof flyteidl.admin.Auth + * ExecutionStateChangeDetails occurredAt. + * @member {google.protobuf.ITimestamp|null|undefined} occurredAt + * @memberof flyteidl.admin.ExecutionStateChangeDetails * @instance */ - Auth.prototype.kubernetesServiceAccount = ""; + ExecutionStateChangeDetails.prototype.occurredAt = null; /** - * Creates a new Auth instance using the specified properties. + * 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.Auth + * @memberof flyteidl.admin.ExecutionStateChangeDetails * @static - * @param {flyteidl.admin.IAuth=} [properties] Properties to set - * @returns {flyteidl.admin.Auth} Auth instance + * @param {flyteidl.admin.IExecutionStateChangeDetails=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionStateChangeDetails} ExecutionStateChangeDetails instance */ - Auth.create = function create(properties) { - return new Auth(properties); + ExecutionStateChangeDetails.create = function create(properties) { + return new ExecutionStateChangeDetails(properties); }; /** - * Encodes the specified Auth message. Does not implicitly {@link flyteidl.admin.Auth.verify|verify} messages. + * Encodes the specified ExecutionStateChangeDetails message. Does not implicitly {@link flyteidl.admin.ExecutionStateChangeDetails.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.Auth + * @memberof flyteidl.admin.ExecutionStateChangeDetails * @static - * @param {flyteidl.admin.IAuth} message Auth message or plain object to encode + * @param {flyteidl.admin.IExecutionStateChangeDetails} message ExecutionStateChangeDetails message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Auth.encode = function encode(message, writer) { + ExecutionStateChangeDetails.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); + 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 Auth message from the specified reader or buffer. + * Decodes an ExecutionStateChangeDetails message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.Auth + * @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.Auth} Auth + * @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 */ - Auth.decode = function decode(reader, length) { + 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.Auth(); + 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.assumableIamRole = reader.string(); + message.state = reader.int32(); break; case 2: - message.kubernetesServiceAccount = reader.string(); + message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 3: + message.principal = reader.string(); break; default: reader.skipType(tag & 7); @@ -28059,61 +27937,55 @@ }; /** - * Verifies an Auth message. + * Verifies an ExecutionStateChangeDetails message. * @function verify - * @memberof flyteidl.admin.Auth + * @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 */ - Auth.verify = function verify(message) { + ExecutionStateChangeDetails.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"; + 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 Auth; + return ExecutionStateChangeDetails; })(); - admin.LaunchPlanSpec = (function() { + admin.ExecutionUpdateResponse = (function() { /** - * Properties of a LaunchPlanSpec. + * Properties of an ExecutionUpdateResponse. * @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 + * @interface IExecutionUpdateResponse */ /** - * Constructs a new LaunchPlanSpec. + * Constructs a new ExecutionUpdateResponse. * @memberof flyteidl.admin - * @classdesc Represents a LaunchPlanSpec. - * @implements ILaunchPlanSpec + * @classdesc Represents an ExecutionUpdateResponse. + * @implements IExecutionUpdateResponse * @constructor - * @param {flyteidl.admin.ILaunchPlanSpec=} [properties] Properties to set + * @param {flyteidl.admin.IExecutionUpdateResponse=} [properties] Properties to set */ - function LaunchPlanSpec(properties) { + function ExecutionUpdateResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28121,257 +27993,170 @@ } /** - * 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 + * 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 */ - LaunchPlanSpec.prototype.annotations = null; + ExecutionUpdateResponse.create = function create(properties) { + return new ExecutionUpdateResponse(properties); + }; /** - * LaunchPlanSpec auth. - * @member {flyteidl.admin.IAuth|null|undefined} auth - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance + * 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 */ - LaunchPlanSpec.prototype.auth = null; + ExecutionUpdateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; /** - * LaunchPlanSpec authRole. - * @member {flyteidl.admin.IAuthRole|null|undefined} authRole - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance + * 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 */ - LaunchPlanSpec.prototype.authRole = null; + 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; + }; /** - * LaunchPlanSpec securityContext. - * @member {flyteidl.core.ISecurityContext|null|undefined} securityContext - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance + * 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 */ - LaunchPlanSpec.prototype.securityContext = null; + ExecutionUpdateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - /** - * LaunchPlanSpec qualityOfService. - * @member {flyteidl.core.IQualityOfService|null|undefined} qualityOfService - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.qualityOfService = null; + return ExecutionUpdateResponse; + })(); - /** - * LaunchPlanSpec rawOutputDataConfig. - * @member {flyteidl.admin.IRawOutputDataConfig|null|undefined} rawOutputDataConfig - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.rawOutputDataConfig = null; + admin.WorkflowExecutionGetMetricsRequest = (function() { /** - * LaunchPlanSpec maxParallelism. - * @member {number} maxParallelism - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance + * Properties of a WorkflowExecutionGetMetricsRequest. + * @memberof flyteidl.admin + * @interface IWorkflowExecutionGetMetricsRequest + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] WorkflowExecutionGetMetricsRequest id + * @property {number|null} [depth] WorkflowExecutionGetMetricsRequest depth */ - LaunchPlanSpec.prototype.maxParallelism = 0; /** - * LaunchPlanSpec interruptible. - * @member {google.protobuf.IBoolValue|null|undefined} interruptible - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance + * Constructs a new WorkflowExecutionGetMetricsRequest. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowExecutionGetMetricsRequest. + * @implements IWorkflowExecutionGetMetricsRequest + * @constructor + * @param {flyteidl.admin.IWorkflowExecutionGetMetricsRequest=} [properties] Properties to set */ - LaunchPlanSpec.prototype.interruptible = null; + 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]]; + } /** - * LaunchPlanSpec overwriteCache. - * @member {boolean} overwriteCache - * @memberof flyteidl.admin.LaunchPlanSpec + * WorkflowExecutionGetMetricsRequest id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest * @instance */ - LaunchPlanSpec.prototype.overwriteCache = false; + WorkflowExecutionGetMetricsRequest.prototype.id = null; /** - * LaunchPlanSpec envs. - * @member {flyteidl.admin.IEnvs|null|undefined} envs - * @memberof flyteidl.admin.LaunchPlanSpec + * WorkflowExecutionGetMetricsRequest depth. + * @member {number} depth + * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest * @instance */ - LaunchPlanSpec.prototype.envs = null; + WorkflowExecutionGetMetricsRequest.prototype.depth = 0; /** - * Creates a new LaunchPlanSpec instance using the specified properties. + * Creates a new WorkflowExecutionGetMetricsRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.LaunchPlanSpec + * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest * @static - * @param {flyteidl.admin.ILaunchPlanSpec=} [properties] Properties to set - * @returns {flyteidl.admin.LaunchPlanSpec} LaunchPlanSpec instance + * @param {flyteidl.admin.IWorkflowExecutionGetMetricsRequest=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowExecutionGetMetricsRequest} WorkflowExecutionGetMetricsRequest instance */ - LaunchPlanSpec.create = function create(properties) { - return new LaunchPlanSpec(properties); + WorkflowExecutionGetMetricsRequest.create = function create(properties) { + return new WorkflowExecutionGetMetricsRequest(properties); }; /** - * Encodes the specified LaunchPlanSpec message. Does not implicitly {@link flyteidl.admin.LaunchPlanSpec.verify|verify} messages. + * Encodes the specified WorkflowExecutionGetMetricsRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetMetricsRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.LaunchPlanSpec + * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest * @static - * @param {flyteidl.admin.ILaunchPlanSpec} message LaunchPlanSpec message or plain object to encode + * @param {flyteidl.admin.IWorkflowExecutionGetMetricsRequest} message WorkflowExecutionGetMetricsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LaunchPlanSpec.encode = function encode(message, writer) { + WorkflowExecutionGetMetricsRequest.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(); + 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 LaunchPlanSpec message from the specified reader or buffer. + * Decodes a WorkflowExecutionGetMetricsRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.LaunchPlanSpec + * @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.LaunchPlanSpec} LaunchPlanSpec + * @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 */ - LaunchPlanSpec.decode = function decode(reader, length) { + 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.LaunchPlanSpec(); + 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.workflowId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.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()); + message.depth = reader.int32(); break; default: reader.skipType(tag & 7); @@ -28382,118 +28167,48 @@ }; /** - * Verifies a LaunchPlanSpec message. + * Verifies a WorkflowExecutionGetMetricsRequest message. * @function verify - * @memberof flyteidl.admin.LaunchPlanSpec + * @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 */ - LaunchPlanSpec.verify = function verify(message) { + WorkflowExecutionGetMetricsRequest.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 (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); if (error) - return "envs." + error; + return "id." + error; } + if (message.depth != null && message.hasOwnProperty("depth")) + if (!$util.isInteger(message.depth)) + return "depth: integer expected"; return null; }; - return LaunchPlanSpec; + return WorkflowExecutionGetMetricsRequest; })(); - admin.LaunchPlanClosure = (function() { + admin.WorkflowExecutionGetMetricsResponse = (function() { /** - * Properties of a LaunchPlanClosure. + * Properties of a WorkflowExecutionGetMetricsResponse. * @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 + * @interface IWorkflowExecutionGetMetricsResponse + * @property {flyteidl.core.ISpan|null} [span] WorkflowExecutionGetMetricsResponse span */ /** - * Constructs a new LaunchPlanClosure. + * Constructs a new WorkflowExecutionGetMetricsResponse. * @memberof flyteidl.admin - * @classdesc Represents a LaunchPlanClosure. - * @implements ILaunchPlanClosure + * @classdesc Represents a WorkflowExecutionGetMetricsResponse. + * @implements IWorkflowExecutionGetMetricsResponse * @constructor - * @param {flyteidl.admin.ILaunchPlanClosure=} [properties] Properties to set + * @param {flyteidl.admin.IWorkflowExecutionGetMetricsResponse=} [properties] Properties to set */ - function LaunchPlanClosure(properties) { + function WorkflowExecutionGetMetricsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28501,114 +28216,62 @@ } /** - * 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 + * WorkflowExecutionGetMetricsResponse span. + * @member {flyteidl.core.ISpan|null|undefined} span + * @memberof flyteidl.admin.WorkflowExecutionGetMetricsResponse * @instance */ - LaunchPlanClosure.prototype.updatedAt = null; + WorkflowExecutionGetMetricsResponse.prototype.span = null; /** - * Creates a new LaunchPlanClosure instance using the specified properties. + * Creates a new WorkflowExecutionGetMetricsResponse instance using the specified properties. * @function create - * @memberof flyteidl.admin.LaunchPlanClosure + * @memberof flyteidl.admin.WorkflowExecutionGetMetricsResponse * @static - * @param {flyteidl.admin.ILaunchPlanClosure=} [properties] Properties to set - * @returns {flyteidl.admin.LaunchPlanClosure} LaunchPlanClosure instance + * @param {flyteidl.admin.IWorkflowExecutionGetMetricsResponse=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowExecutionGetMetricsResponse} WorkflowExecutionGetMetricsResponse instance */ - LaunchPlanClosure.create = function create(properties) { - return new LaunchPlanClosure(properties); + WorkflowExecutionGetMetricsResponse.create = function create(properties) { + return new WorkflowExecutionGetMetricsResponse(properties); }; /** - * Encodes the specified LaunchPlanClosure message. Does not implicitly {@link flyteidl.admin.LaunchPlanClosure.verify|verify} messages. + * Encodes the specified WorkflowExecutionGetMetricsResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetMetricsResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.LaunchPlanClosure + * @memberof flyteidl.admin.WorkflowExecutionGetMetricsResponse * @static - * @param {flyteidl.admin.ILaunchPlanClosure} message LaunchPlanClosure message or plain object to encode + * @param {flyteidl.admin.IWorkflowExecutionGetMetricsResponse} message WorkflowExecutionGetMetricsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LaunchPlanClosure.encode = function encode(message, writer) { + WorkflowExecutionGetMetricsResponse.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(); + 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 LaunchPlanClosure message from the specified reader or buffer. + * Decodes a WorkflowExecutionGetMetricsResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.LaunchPlanClosure + * @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.LaunchPlanClosure} LaunchPlanClosure + * @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 */ - LaunchPlanClosure.decode = function decode(reader, length) { + 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.LaunchPlanClosure(); + 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.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()); + message.span = $root.flyteidl.core.Span.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -28619,70 +28282,46 @@ }; /** - * Verifies a LaunchPlanClosure message. + * Verifies a WorkflowExecutionGetMetricsResponse message. * @function verify - * @memberof flyteidl.admin.LaunchPlanClosure + * @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 */ - LaunchPlanClosure.verify = function verify(message) { + WorkflowExecutionGetMetricsResponse.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 (message.span != null && message.hasOwnProperty("span")) { + var error = $root.flyteidl.core.Span.verify(message.span); if (error) - return "updatedAt." + error; + return "span." + error; } return null; }; - return LaunchPlanClosure; + return WorkflowExecutionGetMetricsResponse; })(); - admin.LaunchPlanMetadata = (function() { + admin.LaunchPlanCreateRequest = (function() { /** - * Properties of a LaunchPlanMetadata. + * Properties of a LaunchPlanCreateRequest. * @memberof flyteidl.admin - * @interface ILaunchPlanMetadata - * @property {flyteidl.admin.ISchedule|null} [schedule] LaunchPlanMetadata schedule - * @property {Array.|null} [notifications] LaunchPlanMetadata notifications + * @interface ILaunchPlanCreateRequest + * @property {flyteidl.core.IIdentifier|null} [id] LaunchPlanCreateRequest id + * @property {flyteidl.admin.ILaunchPlanSpec|null} [spec] LaunchPlanCreateRequest spec */ /** - * Constructs a new LaunchPlanMetadata. + * Constructs a new LaunchPlanCreateRequest. * @memberof flyteidl.admin - * @classdesc Represents a LaunchPlanMetadata. - * @implements ILaunchPlanMetadata + * @classdesc Represents a LaunchPlanCreateRequest. + * @implements ILaunchPlanCreateRequest * @constructor - * @param {flyteidl.admin.ILaunchPlanMetadata=} [properties] Properties to set + * @param {flyteidl.admin.ILaunchPlanCreateRequest=} [properties] Properties to set */ - function LaunchPlanMetadata(properties) { - this.notifications = []; + function LaunchPlanCreateRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28690,78 +28329,75 @@ } /** - * LaunchPlanMetadata schedule. - * @member {flyteidl.admin.ISchedule|null|undefined} schedule - * @memberof flyteidl.admin.LaunchPlanMetadata + * LaunchPlanCreateRequest id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.LaunchPlanCreateRequest * @instance */ - LaunchPlanMetadata.prototype.schedule = null; + LaunchPlanCreateRequest.prototype.id = null; /** - * LaunchPlanMetadata notifications. - * @member {Array.} notifications - * @memberof flyteidl.admin.LaunchPlanMetadata + * LaunchPlanCreateRequest spec. + * @member {flyteidl.admin.ILaunchPlanSpec|null|undefined} spec + * @memberof flyteidl.admin.LaunchPlanCreateRequest * @instance */ - LaunchPlanMetadata.prototype.notifications = $util.emptyArray; + LaunchPlanCreateRequest.prototype.spec = null; /** - * Creates a new LaunchPlanMetadata instance using the specified properties. + * Creates a new LaunchPlanCreateRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.LaunchPlanMetadata + * @memberof flyteidl.admin.LaunchPlanCreateRequest * @static - * @param {flyteidl.admin.ILaunchPlanMetadata=} [properties] Properties to set - * @returns {flyteidl.admin.LaunchPlanMetadata} LaunchPlanMetadata instance + * @param {flyteidl.admin.ILaunchPlanCreateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanCreateRequest} LaunchPlanCreateRequest instance */ - LaunchPlanMetadata.create = function create(properties) { - return new LaunchPlanMetadata(properties); + LaunchPlanCreateRequest.create = function create(properties) { + return new LaunchPlanCreateRequest(properties); }; /** - * Encodes the specified LaunchPlanMetadata message. Does not implicitly {@link flyteidl.admin.LaunchPlanMetadata.verify|verify} messages. + * Encodes the specified LaunchPlanCreateRequest message. Does not implicitly {@link flyteidl.admin.LaunchPlanCreateRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.LaunchPlanMetadata + * @memberof flyteidl.admin.LaunchPlanCreateRequest * @static - * @param {flyteidl.admin.ILaunchPlanMetadata} message LaunchPlanMetadata message or plain object to encode + * @param {flyteidl.admin.ILaunchPlanCreateRequest} message LaunchPlanCreateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LaunchPlanMetadata.encode = function encode(message, writer) { + LaunchPlanCreateRequest.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.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 LaunchPlanMetadata message from the specified reader or buffer. + * Decodes a LaunchPlanCreateRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.LaunchPlanMetadata + * @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.LaunchPlanMetadata} LaunchPlanMetadata + * @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 */ - LaunchPlanMetadata.decode = function decode(reader, length) { + 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.LaunchPlanMetadata(); + 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.schedule = $root.flyteidl.admin.Schedule.decode(reader, reader.uint32()); + message.id = $root.flyteidl.core.Identifier.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())); + message.spec = $root.flyteidl.admin.LaunchPlanSpec.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -28772,55 +28408,49 @@ }; /** - * Verifies a LaunchPlanMetadata message. + * Verifies a LaunchPlanCreateRequest message. * @function verify - * @memberof flyteidl.admin.LaunchPlanMetadata + * @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 */ - LaunchPlanMetadata.verify = function verify(message) { + LaunchPlanCreateRequest.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 (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); if (error) - return "schedule." + error; + return "id." + 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.spec != null && message.hasOwnProperty("spec")) { + var error = $root.flyteidl.admin.LaunchPlanSpec.verify(message.spec); + if (error) + return "spec." + error; } return null; }; - return LaunchPlanMetadata; + return LaunchPlanCreateRequest; })(); - admin.LaunchPlanUpdateRequest = (function() { + admin.LaunchPlanCreateResponse = (function() { /** - * Properties of a LaunchPlanUpdateRequest. + * Properties of a LaunchPlanCreateResponse. * @memberof flyteidl.admin - * @interface ILaunchPlanUpdateRequest - * @property {flyteidl.core.IIdentifier|null} [id] LaunchPlanUpdateRequest id - * @property {flyteidl.admin.LaunchPlanState|null} [state] LaunchPlanUpdateRequest state + * @interface ILaunchPlanCreateResponse */ /** - * Constructs a new LaunchPlanUpdateRequest. + * Constructs a new LaunchPlanCreateResponse. * @memberof flyteidl.admin - * @classdesc Represents a LaunchPlanUpdateRequest. - * @implements ILaunchPlanUpdateRequest + * @classdesc Represents a LaunchPlanCreateResponse. + * @implements ILaunchPlanCreateResponse * @constructor - * @param {flyteidl.admin.ILaunchPlanUpdateRequest=} [properties] Properties to set + * @param {flyteidl.admin.ILaunchPlanCreateResponse=} [properties] Properties to set */ - function LaunchPlanUpdateRequest(properties) { + function LaunchPlanCreateResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28828,76 +28458,50 @@ } /** - * 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. + * Creates a new LaunchPlanCreateResponse instance using the specified properties. * @function create - * @memberof flyteidl.admin.LaunchPlanUpdateRequest + * @memberof flyteidl.admin.LaunchPlanCreateResponse * @static - * @param {flyteidl.admin.ILaunchPlanUpdateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.LaunchPlanUpdateRequest} LaunchPlanUpdateRequest instance + * @param {flyteidl.admin.ILaunchPlanCreateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanCreateResponse} LaunchPlanCreateResponse instance */ - LaunchPlanUpdateRequest.create = function create(properties) { - return new LaunchPlanUpdateRequest(properties); + LaunchPlanCreateResponse.create = function create(properties) { + return new LaunchPlanCreateResponse(properties); }; /** - * Encodes the specified LaunchPlanUpdateRequest message. Does not implicitly {@link flyteidl.admin.LaunchPlanUpdateRequest.verify|verify} messages. + * Encodes the specified LaunchPlanCreateResponse message. Does not implicitly {@link flyteidl.admin.LaunchPlanCreateResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.LaunchPlanUpdateRequest + * @memberof flyteidl.admin.LaunchPlanCreateResponse * @static - * @param {flyteidl.admin.ILaunchPlanUpdateRequest} message LaunchPlanUpdateRequest message or plain object to encode + * @param {flyteidl.admin.ILaunchPlanCreateResponse} message LaunchPlanCreateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LaunchPlanUpdateRequest.encode = function encode(message, writer) { + LaunchPlanCreateResponse.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. + * Decodes a LaunchPlanCreateResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.LaunchPlanUpdateRequest + * @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.LaunchPlanUpdateRequest} LaunchPlanUpdateRequest + * @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 */ - LaunchPlanUpdateRequest.decode = function decode(reader, length) { + 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.LaunchPlanUpdateRequest(); + 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) { - 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; @@ -28907,52 +28511,56 @@ }; /** - * Verifies a LaunchPlanUpdateRequest message. + * Verifies a LaunchPlanCreateResponse message. * @function verify - * @memberof flyteidl.admin.LaunchPlanUpdateRequest + * @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 */ - LaunchPlanUpdateRequest.verify = function verify(message) { + LaunchPlanCreateResponse.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; + return LaunchPlanCreateResponse; })(); - admin.LaunchPlanUpdateResponse = (function() { + /** + * 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 LaunchPlanUpdateResponse. + * Properties of a LaunchPlan. * @memberof flyteidl.admin - * @interface ILaunchPlanUpdateResponse + * @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 LaunchPlanUpdateResponse. + * Constructs a new LaunchPlan. * @memberof flyteidl.admin - * @classdesc Represents a LaunchPlanUpdateResponse. - * @implements ILaunchPlanUpdateResponse + * @classdesc Represents a LaunchPlan. + * @implements ILaunchPlan * @constructor - * @param {flyteidl.admin.ILaunchPlanUpdateResponse=} [properties] Properties to set + * @param {flyteidl.admin.ILaunchPlan=} [properties] Properties to set */ - function LaunchPlanUpdateResponse(properties) { + function LaunchPlan(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28960,50 +28568,89 @@ } /** - * Creates a new LaunchPlanUpdateResponse instance using the specified properties. + * 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.LaunchPlanUpdateResponse + * @memberof flyteidl.admin.LaunchPlan * @static - * @param {flyteidl.admin.ILaunchPlanUpdateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.LaunchPlanUpdateResponse} LaunchPlanUpdateResponse instance + * @param {flyteidl.admin.ILaunchPlan=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlan} LaunchPlan instance */ - LaunchPlanUpdateResponse.create = function create(properties) { - return new LaunchPlanUpdateResponse(properties); + LaunchPlan.create = function create(properties) { + return new LaunchPlan(properties); }; /** - * Encodes the specified LaunchPlanUpdateResponse message. Does not implicitly {@link flyteidl.admin.LaunchPlanUpdateResponse.verify|verify} messages. + * Encodes the specified LaunchPlan message. Does not implicitly {@link flyteidl.admin.LaunchPlan.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.LaunchPlanUpdateResponse + * @memberof flyteidl.admin.LaunchPlan * @static - * @param {flyteidl.admin.ILaunchPlanUpdateResponse} message LaunchPlanUpdateResponse message or plain object to encode + * @param {flyteidl.admin.ILaunchPlan} message LaunchPlan message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LaunchPlanUpdateResponse.encode = function encode(message, 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 LaunchPlanUpdateResponse message from the specified reader or buffer. + * Decodes a LaunchPlan message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.LaunchPlanUpdateResponse + * @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.LaunchPlanUpdateResponse} LaunchPlanUpdateResponse + * @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 */ - LaunchPlanUpdateResponse.decode = function decode(reader, length) { + 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.LaunchPlanUpdateResponse(); + 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; @@ -29013,40 +28660,57 @@ }; /** - * Verifies a LaunchPlanUpdateResponse message. + * Verifies a LaunchPlan message. * @function verify - * @memberof flyteidl.admin.LaunchPlanUpdateResponse + * @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 */ - LaunchPlanUpdateResponse.verify = function verify(message) { + 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 LaunchPlanUpdateResponse; + return LaunchPlan; })(); - admin.ActiveLaunchPlanRequest = (function() { + admin.LaunchPlanList = (function() { /** - * Properties of an ActiveLaunchPlanRequest. + * Properties of a LaunchPlanList. * @memberof flyteidl.admin - * @interface IActiveLaunchPlanRequest - * @property {flyteidl.admin.INamedEntityIdentifier|null} [id] ActiveLaunchPlanRequest id + * @interface ILaunchPlanList + * @property {Array.|null} [launchPlans] LaunchPlanList launchPlans + * @property {string|null} [token] LaunchPlanList token */ /** - * Constructs a new ActiveLaunchPlanRequest. + * Constructs a new LaunchPlanList. * @memberof flyteidl.admin - * @classdesc Represents an ActiveLaunchPlanRequest. - * @implements IActiveLaunchPlanRequest + * @classdesc Represents a LaunchPlanList. + * @implements ILaunchPlanList * @constructor - * @param {flyteidl.admin.IActiveLaunchPlanRequest=} [properties] Properties to set + * @param {flyteidl.admin.ILaunchPlanList=} [properties] Properties to set */ - function ActiveLaunchPlanRequest(properties) { + function LaunchPlanList(properties) { + this.launchPlans = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29054,62 +28718,78 @@ } /** - * ActiveLaunchPlanRequest id. - * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id - * @memberof flyteidl.admin.ActiveLaunchPlanRequest + * LaunchPlanList launchPlans. + * @member {Array.} launchPlans + * @memberof flyteidl.admin.LaunchPlanList * @instance */ - ActiveLaunchPlanRequest.prototype.id = null; + LaunchPlanList.prototype.launchPlans = $util.emptyArray; /** - * Creates a new ActiveLaunchPlanRequest instance using the specified properties. + * 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.ActiveLaunchPlanRequest + * @memberof flyteidl.admin.LaunchPlanList * @static - * @param {flyteidl.admin.IActiveLaunchPlanRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ActiveLaunchPlanRequest} ActiveLaunchPlanRequest instance + * @param {flyteidl.admin.ILaunchPlanList=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanList} LaunchPlanList instance */ - ActiveLaunchPlanRequest.create = function create(properties) { - return new ActiveLaunchPlanRequest(properties); + LaunchPlanList.create = function create(properties) { + return new LaunchPlanList(properties); }; /** - * Encodes the specified ActiveLaunchPlanRequest message. Does not implicitly {@link flyteidl.admin.ActiveLaunchPlanRequest.verify|verify} messages. + * Encodes the specified LaunchPlanList message. Does not implicitly {@link flyteidl.admin.LaunchPlanList.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ActiveLaunchPlanRequest + * @memberof flyteidl.admin.LaunchPlanList * @static - * @param {flyteidl.admin.IActiveLaunchPlanRequest} message ActiveLaunchPlanRequest message or plain object to encode + * @param {flyteidl.admin.ILaunchPlanList} message LaunchPlanList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ActiveLaunchPlanRequest.encode = function encode(message, writer) { + LaunchPlanList.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.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 an ActiveLaunchPlanRequest message from the specified reader or buffer. + * Decodes a LaunchPlanList message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ActiveLaunchPlanRequest + * @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.ActiveLaunchPlanRequest} ActiveLaunchPlanRequest + * @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 */ - ActiveLaunchPlanRequest.decode = function decode(reader, length) { + 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.ActiveLaunchPlanRequest(); + 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: - message.id = $root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32()); + 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); @@ -29120,49 +28800,53 @@ }; /** - * Verifies an ActiveLaunchPlanRequest message. + * Verifies a LaunchPlanList message. * @function verify - * @memberof flyteidl.admin.ActiveLaunchPlanRequest + * @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 */ - ActiveLaunchPlanRequest.verify = function verify(message) { + LaunchPlanList.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.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 ActiveLaunchPlanRequest; + return LaunchPlanList; })(); - admin.ActiveLaunchPlanListRequest = (function() { + admin.Auth = (function() { /** - * Properties of an ActiveLaunchPlanListRequest. + * Properties of an Auth. * @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 + * @interface IAuth + * @property {string|null} [assumableIamRole] Auth assumableIamRole + * @property {string|null} [kubernetesServiceAccount] Auth kubernetesServiceAccount */ /** - * Constructs a new ActiveLaunchPlanListRequest. + * Constructs a new Auth. * @memberof flyteidl.admin - * @classdesc Represents an ActiveLaunchPlanListRequest. - * @implements IActiveLaunchPlanListRequest + * @classdesc Represents an Auth. + * @implements IAuth * @constructor - * @param {flyteidl.admin.IActiveLaunchPlanListRequest=} [properties] Properties to set + * @param {flyteidl.admin.IAuth=} [properties] Properties to set */ - function ActiveLaunchPlanListRequest(properties) { + function Auth(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29170,114 +28854,75 @@ } /** - * ActiveLaunchPlanListRequest project. - * @member {string} project - * @memberof flyteidl.admin.ActiveLaunchPlanListRequest + * Auth assumableIamRole. + * @member {string} assumableIamRole + * @memberof flyteidl.admin.Auth * @instance */ - ActiveLaunchPlanListRequest.prototype.project = ""; + Auth.prototype.assumableIamRole = ""; /** - * ActiveLaunchPlanListRequest domain. - * @member {string} domain - * @memberof flyteidl.admin.ActiveLaunchPlanListRequest + * Auth kubernetesServiceAccount. + * @member {string} kubernetesServiceAccount + * @memberof flyteidl.admin.Auth * @instance */ - ActiveLaunchPlanListRequest.prototype.domain = ""; + Auth.prototype.kubernetesServiceAccount = ""; /** - * ActiveLaunchPlanListRequest limit. - * @member {number} limit - * @memberof flyteidl.admin.ActiveLaunchPlanListRequest - * @instance + * 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 */ - 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; - - /** - * 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); + Auth.create = function create(properties) { + return new Auth(properties); }; /** - * Encodes the specified ActiveLaunchPlanListRequest message. Does not implicitly {@link flyteidl.admin.ActiveLaunchPlanListRequest.verify|verify} messages. + * Encodes the specified Auth message. Does not implicitly {@link flyteidl.admin.Auth.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ActiveLaunchPlanListRequest + * @memberof flyteidl.admin.Auth * @static - * @param {flyteidl.admin.IActiveLaunchPlanListRequest} message ActiveLaunchPlanListRequest message or plain object to encode + * @param {flyteidl.admin.IAuth} message Auth message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ActiveLaunchPlanListRequest.encode = function encode(message, writer) { + Auth.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.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 ActiveLaunchPlanListRequest message from the specified reader or buffer. + * Decodes an Auth message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ActiveLaunchPlanListRequest + * @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.ActiveLaunchPlanListRequest} ActiveLaunchPlanListRequest + * @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 */ - ActiveLaunchPlanListRequest.decode = function decode(reader, length) { + 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.ActiveLaunchPlanListRequest(); + 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.project = reader.string(); + message.assumableIamRole = 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()); + message.kubernetesServiceAccount = reader.string(); break; default: reader.skipType(tag & 7); @@ -29288,74 +28933,61 @@ }; /** - * Verifies an ActiveLaunchPlanListRequest message. + * Verifies an Auth message. * @function verify - * @memberof flyteidl.admin.ActiveLaunchPlanListRequest + * @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 */ - ActiveLaunchPlanListRequest.verify = function verify(message) { + Auth.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.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 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; + return Auth; })(); - admin.FixedRate = (function() { + admin.LaunchPlanSpec = (function() { /** - * Properties of a FixedRate. + * Properties of a LaunchPlanSpec. * @memberof flyteidl.admin - * @interface IFixedRate - * @property {number|null} [value] FixedRate value - * @property {flyteidl.admin.FixedRateUnit|null} [unit] FixedRate unit + * @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 FixedRate. + * Constructs a new LaunchPlanSpec. * @memberof flyteidl.admin - * @classdesc Represents a FixedRate. - * @implements IFixedRate + * @classdesc Represents a LaunchPlanSpec. + * @implements ILaunchPlanSpec * @constructor - * @param {flyteidl.admin.IFixedRate=} [properties] Properties to set + * @param {flyteidl.admin.ILaunchPlanSpec=} [properties] Properties to set */ - function FixedRate(properties) { + function LaunchPlanSpec(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29363,208 +28995,257 @@ } /** - * FixedRate value. - * @member {number} value - * @memberof flyteidl.admin.FixedRate + * LaunchPlanSpec workflowId. + * @member {flyteidl.core.IIdentifier|null|undefined} workflowId + * @memberof flyteidl.admin.LaunchPlanSpec * @instance */ - FixedRate.prototype.value = 0; + LaunchPlanSpec.prototype.workflowId = null; /** - * FixedRate unit. - * @member {flyteidl.admin.FixedRateUnit} unit - * @memberof flyteidl.admin.FixedRate + * LaunchPlanSpec entityMetadata. + * @member {flyteidl.admin.ILaunchPlanMetadata|null|undefined} entityMetadata + * @memberof flyteidl.admin.LaunchPlanSpec * @instance */ - FixedRate.prototype.unit = 0; + LaunchPlanSpec.prototype.entityMetadata = null; /** - * 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 + * LaunchPlanSpec defaultInputs. + * @member {flyteidl.core.IParameterMap|null|undefined} defaultInputs + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance */ - FixedRate.create = function create(properties) { - return new FixedRate(properties); - }; + LaunchPlanSpec.prototype.defaultInputs = null; /** - * 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 + * LaunchPlanSpec fixedInputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} fixedInputs + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance */ - 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; - }; + LaunchPlanSpec.prototype.fixedInputs = null; /** - * 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 + * LaunchPlanSpec role. + * @member {string} role + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance */ - 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; - }; + LaunchPlanSpec.prototype.role = ""; /** - * 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 + * LaunchPlanSpec labels. + * @member {flyteidl.admin.ILabels|null|undefined} labels + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance */ - 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; - }; + LaunchPlanSpec.prototype.labels = null; - return FixedRate; - })(); + /** + * LaunchPlanSpec annotations. + * @member {flyteidl.admin.IAnnotations|null|undefined} annotations + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.annotations = null; - admin.CronSchedule = (function() { + /** + * LaunchPlanSpec auth. + * @member {flyteidl.admin.IAuth|null|undefined} auth + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.auth = null; /** - * Properties of a CronSchedule. - * @memberof flyteidl.admin - * @interface ICronSchedule - * @property {string|null} [schedule] CronSchedule schedule - * @property {string|null} [offset] CronSchedule offset + * LaunchPlanSpec authRole. + * @member {flyteidl.admin.IAuthRole|null|undefined} authRole + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance */ + LaunchPlanSpec.prototype.authRole = null; /** - * Constructs a new CronSchedule. - * @memberof flyteidl.admin - * @classdesc Represents a CronSchedule. - * @implements ICronSchedule - * @constructor - * @param {flyteidl.admin.ICronSchedule=} [properties] Properties to set + * LaunchPlanSpec securityContext. + * @member {flyteidl.core.ISecurityContext|null|undefined} securityContext + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance */ - 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]]; - } + LaunchPlanSpec.prototype.securityContext = null; /** - * CronSchedule schedule. - * @member {string} schedule - * @memberof flyteidl.admin.CronSchedule + * LaunchPlanSpec qualityOfService. + * @member {flyteidl.core.IQualityOfService|null|undefined} qualityOfService + * @memberof flyteidl.admin.LaunchPlanSpec * @instance */ - CronSchedule.prototype.schedule = ""; + LaunchPlanSpec.prototype.qualityOfService = null; /** - * CronSchedule offset. - * @member {string} offset - * @memberof flyteidl.admin.CronSchedule + * LaunchPlanSpec rawOutputDataConfig. + * @member {flyteidl.admin.IRawOutputDataConfig|null|undefined} rawOutputDataConfig + * @memberof flyteidl.admin.LaunchPlanSpec * @instance */ - CronSchedule.prototype.offset = ""; + LaunchPlanSpec.prototype.rawOutputDataConfig = null; /** - * Creates a new CronSchedule instance using the specified properties. + * 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.CronSchedule + * @memberof flyteidl.admin.LaunchPlanSpec * @static - * @param {flyteidl.admin.ICronSchedule=} [properties] Properties to set - * @returns {flyteidl.admin.CronSchedule} CronSchedule instance + * @param {flyteidl.admin.ILaunchPlanSpec=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanSpec} LaunchPlanSpec instance */ - CronSchedule.create = function create(properties) { - return new CronSchedule(properties); + LaunchPlanSpec.create = function create(properties) { + return new LaunchPlanSpec(properties); }; /** - * Encodes the specified CronSchedule message. Does not implicitly {@link flyteidl.admin.CronSchedule.verify|verify} messages. + * Encodes the specified LaunchPlanSpec message. Does not implicitly {@link flyteidl.admin.LaunchPlanSpec.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.CronSchedule + * @memberof flyteidl.admin.LaunchPlanSpec * @static - * @param {flyteidl.admin.ICronSchedule} message CronSchedule message or plain object to encode + * @param {flyteidl.admin.ILaunchPlanSpec} message LaunchPlanSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CronSchedule.encode = function encode(message, writer) { + LaunchPlanSpec.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); + 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 CronSchedule message from the specified reader or buffer. + * Decodes a LaunchPlanSpec message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.CronSchedule + * @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.CronSchedule} CronSchedule + * @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 */ - CronSchedule.decode = function decode(reader, length) { + 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.CronSchedule(); + 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.schedule = reader.string(); + message.workflowId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); break; case 2: - message.offset = reader.string(); + 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); @@ -29575,165 +29256,233 @@ }; /** - * Verifies a CronSchedule message. + * Verifies a LaunchPlanSpec message. * @function verify - * @memberof flyteidl.admin.CronSchedule + * @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 */ - CronSchedule.verify = function verify(message) { + LaunchPlanSpec.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 (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]]; } /** - * Schedule cronExpression. - * @member {string} cronExpression - * @memberof flyteidl.admin.Schedule + * LaunchPlanClosure state. + * @member {flyteidl.admin.LaunchPlanState} state + * @memberof flyteidl.admin.LaunchPlanClosure * @instance */ - Schedule.prototype.cronExpression = ""; + LaunchPlanClosure.prototype.state = 0; /** - * Schedule rate. - * @member {flyteidl.admin.IFixedRate|null|undefined} rate - * @memberof flyteidl.admin.Schedule + * LaunchPlanClosure expectedInputs. + * @member {flyteidl.core.IParameterMap|null|undefined} expectedInputs + * @memberof flyteidl.admin.LaunchPlanClosure * @instance */ - Schedule.prototype.rate = null; + LaunchPlanClosure.prototype.expectedInputs = null; /** - * Schedule cronSchedule. - * @member {flyteidl.admin.ICronSchedule|null|undefined} cronSchedule - * @memberof flyteidl.admin.Schedule + * LaunchPlanClosure expectedOutputs. + * @member {flyteidl.core.IVariableMap|null|undefined} expectedOutputs + * @memberof flyteidl.admin.LaunchPlanClosure * @instance */ - Schedule.prototype.cronSchedule = null; + LaunchPlanClosure.prototype.expectedOutputs = null; /** - * Schedule kickoffTimeInputArg. - * @member {string} kickoffTimeInputArg - * @memberof flyteidl.admin.Schedule + * LaunchPlanClosure createdAt. + * @member {google.protobuf.ITimestamp|null|undefined} createdAt + * @memberof flyteidl.admin.LaunchPlanClosure * @instance */ - Schedule.prototype.kickoffTimeInputArg = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + LaunchPlanClosure.prototype.createdAt = null; /** - * Schedule ScheduleExpression. - * @member {"cronExpression"|"rate"|"cronSchedule"|undefined} ScheduleExpression - * @memberof flyteidl.admin.Schedule + * LaunchPlanClosure updatedAt. + * @member {google.protobuf.ITimestamp|null|undefined} updatedAt + * @memberof flyteidl.admin.LaunchPlanClosure * @instance */ - Object.defineProperty(Schedule.prototype, "ScheduleExpression", { - get: $util.oneOfGetter($oneOfFields = ["cronExpression", "rate", "cronSchedule"]), - set: $util.oneOfSetter($oneOfFields) - }); + LaunchPlanClosure.prototype.updatedAt = null; /** - * Creates a new Schedule instance using the specified properties. + * Creates a new LaunchPlanClosure instance using the specified properties. * @function create - * @memberof flyteidl.admin.Schedule + * @memberof flyteidl.admin.LaunchPlanClosure * @static - * @param {flyteidl.admin.ISchedule=} [properties] Properties to set - * @returns {flyteidl.admin.Schedule} Schedule instance + * @param {flyteidl.admin.ILaunchPlanClosure=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanClosure} LaunchPlanClosure instance */ - Schedule.create = function create(properties) { - return new Schedule(properties); + LaunchPlanClosure.create = function create(properties) { + return new LaunchPlanClosure(properties); }; /** - * Encodes the specified Schedule message. Does not implicitly {@link flyteidl.admin.Schedule.verify|verify} messages. + * Encodes the specified LaunchPlanClosure message. Does not implicitly {@link flyteidl.admin.LaunchPlanClosure.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.Schedule + * @memberof flyteidl.admin.LaunchPlanClosure * @static - * @param {flyteidl.admin.ISchedule} message Schedule message or plain object to encode + * @param {flyteidl.admin.ILaunchPlanClosure} message LaunchPlanClosure message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Schedule.encode = function encode(message, writer) { + LaunchPlanClosure.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(); + 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 Schedule message from the specified reader or buffer. + * Decodes a LaunchPlanClosure message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.Schedule + * @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.Schedule} Schedule + * @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 */ - Schedule.decode = function decode(reader, length) { + 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.Schedule(); + 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.cronExpression = reader.string(); + message.state = reader.int32(); break; case 2: - message.rate = $root.flyteidl.admin.FixedRate.decode(reader, reader.uint32()); + 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.cronSchedule = $root.flyteidl.admin.CronSchedule.decode(reader, reader.uint32()); + message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; - case 3: - message.kickoffTimeInputArg = reader.string(); + case 5: + message.updatedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -29744,99 +29493,70 @@ }; /** - * Verifies a Schedule message. + * Verifies a LaunchPlanClosure message. * @function verify - * @memberof flyteidl.admin.Schedule + * @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 */ - Schedule.verify = function verify(message) { + LaunchPlanClosure.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.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.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.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; } - 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; + return LaunchPlanClosure; })(); - admin.TaskResourceSpec = (function() { + admin.LaunchPlanMetadata = (function() { /** - * Properties of a TaskResourceSpec. + * Properties of a LaunchPlanMetadata. * @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 + * @interface ILaunchPlanMetadata + * @property {flyteidl.admin.ISchedule|null} [schedule] LaunchPlanMetadata schedule + * @property {Array.|null} [notifications] LaunchPlanMetadata notifications */ /** - * Constructs a new TaskResourceSpec. + * Constructs a new LaunchPlanMetadata. * @memberof flyteidl.admin - * @classdesc Represents a TaskResourceSpec. - * @implements ITaskResourceSpec + * @classdesc Represents a LaunchPlanMetadata. + * @implements ILaunchPlanMetadata * @constructor - * @param {flyteidl.admin.ITaskResourceSpec=} [properties] Properties to set + * @param {flyteidl.admin.ILaunchPlanMetadata=} [properties] Properties to set */ - function TaskResourceSpec(properties) { + function LaunchPlanMetadata(properties) { + this.notifications = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29844,114 +29564,78 @@ } /** - * 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 + * LaunchPlanMetadata schedule. + * @member {flyteidl.admin.ISchedule|null|undefined} schedule + * @memberof flyteidl.admin.LaunchPlanMetadata * @instance */ - TaskResourceSpec.prototype.storage = ""; + LaunchPlanMetadata.prototype.schedule = null; /** - * TaskResourceSpec ephemeralStorage. - * @member {string} ephemeralStorage - * @memberof flyteidl.admin.TaskResourceSpec + * LaunchPlanMetadata notifications. + * @member {Array.} notifications + * @memberof flyteidl.admin.LaunchPlanMetadata * @instance */ - TaskResourceSpec.prototype.ephemeralStorage = ""; + LaunchPlanMetadata.prototype.notifications = $util.emptyArray; /** - * Creates a new TaskResourceSpec instance using the specified properties. + * Creates a new LaunchPlanMetadata instance using the specified properties. * @function create - * @memberof flyteidl.admin.TaskResourceSpec + * @memberof flyteidl.admin.LaunchPlanMetadata * @static - * @param {flyteidl.admin.ITaskResourceSpec=} [properties] Properties to set - * @returns {flyteidl.admin.TaskResourceSpec} TaskResourceSpec instance + * @param {flyteidl.admin.ILaunchPlanMetadata=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanMetadata} LaunchPlanMetadata instance */ - TaskResourceSpec.create = function create(properties) { - return new TaskResourceSpec(properties); + LaunchPlanMetadata.create = function create(properties) { + return new LaunchPlanMetadata(properties); }; /** - * Encodes the specified TaskResourceSpec message. Does not implicitly {@link flyteidl.admin.TaskResourceSpec.verify|verify} messages. + * Encodes the specified LaunchPlanMetadata message. Does not implicitly {@link flyteidl.admin.LaunchPlanMetadata.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.TaskResourceSpec + * @memberof flyteidl.admin.LaunchPlanMetadata * @static - * @param {flyteidl.admin.ITaskResourceSpec} message TaskResourceSpec message or plain object to encode + * @param {flyteidl.admin.ILaunchPlanMetadata} message LaunchPlanMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskResourceSpec.encode = function encode(message, writer) { + LaunchPlanMetadata.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); + 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(); return writer; }; /** - * Decodes a TaskResourceSpec message from the specified reader or buffer. + * Decodes a LaunchPlanMetadata message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.TaskResourceSpec + * @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.TaskResourceSpec} TaskResourceSpec + * @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 */ - TaskResourceSpec.decode = function decode(reader, length) { + 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.TaskResourceSpec(); + 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.cpu = reader.string(); + message.schedule = $root.flyteidl.admin.Schedule.decode(reader, reader.uint32()); 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(); + 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); @@ -29962,56 +29646,55 @@ }; /** - * Verifies a TaskResourceSpec message. + * Verifies a LaunchPlanMetadata message. * @function verify - * @memberof flyteidl.admin.TaskResourceSpec + * @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 */ - TaskResourceSpec.verify = function verify(message) { + LaunchPlanMetadata.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"; + 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; + } + } return null; }; - return TaskResourceSpec; + return LaunchPlanMetadata; })(); - admin.TaskResourceAttributes = (function() { + admin.LaunchPlanUpdateRequest = (function() { /** - * Properties of a TaskResourceAttributes. + * Properties of a LaunchPlanUpdateRequest. * @memberof flyteidl.admin - * @interface ITaskResourceAttributes - * @property {flyteidl.admin.ITaskResourceSpec|null} [defaults] TaskResourceAttributes defaults - * @property {flyteidl.admin.ITaskResourceSpec|null} [limits] TaskResourceAttributes limits + * @interface ILaunchPlanUpdateRequest + * @property {flyteidl.core.IIdentifier|null} [id] LaunchPlanUpdateRequest id + * @property {flyteidl.admin.LaunchPlanState|null} [state] LaunchPlanUpdateRequest state */ /** - * Constructs a new TaskResourceAttributes. + * Constructs a new LaunchPlanUpdateRequest. * @memberof flyteidl.admin - * @classdesc Represents a TaskResourceAttributes. - * @implements ITaskResourceAttributes + * @classdesc Represents a LaunchPlanUpdateRequest. + * @implements ILaunchPlanUpdateRequest * @constructor - * @param {flyteidl.admin.ITaskResourceAttributes=} [properties] Properties to set + * @param {flyteidl.admin.ILaunchPlanUpdateRequest=} [properties] Properties to set */ - function TaskResourceAttributes(properties) { + function LaunchPlanUpdateRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30019,75 +29702,75 @@ } /** - * TaskResourceAttributes defaults. - * @member {flyteidl.admin.ITaskResourceSpec|null|undefined} defaults - * @memberof flyteidl.admin.TaskResourceAttributes + * LaunchPlanUpdateRequest id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.LaunchPlanUpdateRequest * @instance */ - TaskResourceAttributes.prototype.defaults = null; + LaunchPlanUpdateRequest.prototype.id = null; /** - * TaskResourceAttributes limits. - * @member {flyteidl.admin.ITaskResourceSpec|null|undefined} limits - * @memberof flyteidl.admin.TaskResourceAttributes + * LaunchPlanUpdateRequest state. + * @member {flyteidl.admin.LaunchPlanState} state + * @memberof flyteidl.admin.LaunchPlanUpdateRequest * @instance */ - TaskResourceAttributes.prototype.limits = null; + LaunchPlanUpdateRequest.prototype.state = 0; /** - * Creates a new TaskResourceAttributes instance using the specified properties. + * Creates a new LaunchPlanUpdateRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.TaskResourceAttributes + * @memberof flyteidl.admin.LaunchPlanUpdateRequest * @static - * @param {flyteidl.admin.ITaskResourceAttributes=} [properties] Properties to set - * @returns {flyteidl.admin.TaskResourceAttributes} TaskResourceAttributes instance + * @param {flyteidl.admin.ILaunchPlanUpdateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanUpdateRequest} LaunchPlanUpdateRequest instance */ - TaskResourceAttributes.create = function create(properties) { - return new TaskResourceAttributes(properties); + LaunchPlanUpdateRequest.create = function create(properties) { + return new LaunchPlanUpdateRequest(properties); }; /** - * Encodes the specified TaskResourceAttributes message. Does not implicitly {@link flyteidl.admin.TaskResourceAttributes.verify|verify} messages. + * Encodes the specified LaunchPlanUpdateRequest message. Does not implicitly {@link flyteidl.admin.LaunchPlanUpdateRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.TaskResourceAttributes + * @memberof flyteidl.admin.LaunchPlanUpdateRequest * @static - * @param {flyteidl.admin.ITaskResourceAttributes} message TaskResourceAttributes message or plain object to encode + * @param {flyteidl.admin.ILaunchPlanUpdateRequest} message LaunchPlanUpdateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskResourceAttributes.encode = function encode(message, writer) { + LaunchPlanUpdateRequest.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(); + 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 TaskResourceAttributes message from the specified reader or buffer. + * Decodes a LaunchPlanUpdateRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.TaskResourceAttributes + * @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.TaskResourceAttributes} TaskResourceAttributes + * @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 */ - TaskResourceAttributes.decode = function decode(reader, length) { + 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.TaskResourceAttributes(); + 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.defaults = $root.flyteidl.admin.TaskResourceSpec.decode(reader, reader.uint32()); + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); break; case 2: - message.limits = $root.flyteidl.admin.TaskResourceSpec.decode(reader, reader.uint32()); + message.state = reader.int32(); break; default: reader.skipType(tag & 7); @@ -30098,51 +29781,52 @@ }; /** - * Verifies a TaskResourceAttributes message. + * Verifies a LaunchPlanUpdateRequest message. * @function verify - * @memberof flyteidl.admin.TaskResourceAttributes + * @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 */ - TaskResourceAttributes.verify = function verify(message) { + LaunchPlanUpdateRequest.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 (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); if (error) - return "limits." + 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 TaskResourceAttributes; + return LaunchPlanUpdateRequest; })(); - admin.ClusterResourceAttributes = (function() { + admin.LaunchPlanUpdateResponse = (function() { /** - * Properties of a ClusterResourceAttributes. + * Properties of a LaunchPlanUpdateResponse. * @memberof flyteidl.admin - * @interface IClusterResourceAttributes - * @property {Object.|null} [attributes] ClusterResourceAttributes attributes + * @interface ILaunchPlanUpdateResponse */ /** - * Constructs a new ClusterResourceAttributes. + * Constructs a new LaunchPlanUpdateResponse. * @memberof flyteidl.admin - * @classdesc Represents a ClusterResourceAttributes. - * @implements IClusterResourceAttributes + * @classdesc Represents a LaunchPlanUpdateResponse. + * @implements ILaunchPlanUpdateResponse * @constructor - * @param {flyteidl.admin.IClusterResourceAttributes=} [properties] Properties to set + * @param {flyteidl.admin.ILaunchPlanUpdateResponse=} [properties] Properties to set */ - function ClusterResourceAttributes(properties) { - this.attributes = {}; + function LaunchPlanUpdateResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30150,69 +29834,50 @@ } /** - * ClusterResourceAttributes attributes. - * @member {Object.} attributes - * @memberof flyteidl.admin.ClusterResourceAttributes - * @instance - */ - ClusterResourceAttributes.prototype.attributes = $util.emptyObject; - - /** - * Creates a new ClusterResourceAttributes instance using the specified properties. + * Creates a new LaunchPlanUpdateResponse instance using the specified properties. * @function create - * @memberof flyteidl.admin.ClusterResourceAttributes + * @memberof flyteidl.admin.LaunchPlanUpdateResponse * @static - * @param {flyteidl.admin.IClusterResourceAttributes=} [properties] Properties to set - * @returns {flyteidl.admin.ClusterResourceAttributes} ClusterResourceAttributes instance + * @param {flyteidl.admin.ILaunchPlanUpdateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanUpdateResponse} LaunchPlanUpdateResponse instance */ - ClusterResourceAttributes.create = function create(properties) { - return new ClusterResourceAttributes(properties); + LaunchPlanUpdateResponse.create = function create(properties) { + return new LaunchPlanUpdateResponse(properties); }; /** - * Encodes the specified ClusterResourceAttributes message. Does not implicitly {@link flyteidl.admin.ClusterResourceAttributes.verify|verify} messages. + * Encodes the specified LaunchPlanUpdateResponse message. Does not implicitly {@link flyteidl.admin.LaunchPlanUpdateResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ClusterResourceAttributes + * @memberof flyteidl.admin.LaunchPlanUpdateResponse * @static - * @param {flyteidl.admin.IClusterResourceAttributes} message ClusterResourceAttributes message or plain object to encode + * @param {flyteidl.admin.ILaunchPlanUpdateResponse} message LaunchPlanUpdateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClusterResourceAttributes.encode = function encode(message, writer) { + LaunchPlanUpdateResponse.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. + * Decodes a LaunchPlanUpdateResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ClusterResourceAttributes + * @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.ClusterResourceAttributes} ClusterResourceAttributes + * @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 */ - ClusterResourceAttributes.decode = function decode(reader, length) { + 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.ClusterResourceAttributes(), key; + 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) { - 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; @@ -30222,49 +29887,40 @@ }; /** - * Verifies a ClusterResourceAttributes message. + * Verifies a LaunchPlanUpdateResponse message. * @function verify - * @memberof flyteidl.admin.ClusterResourceAttributes + * @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 */ - ClusterResourceAttributes.verify = function verify(message) { + LaunchPlanUpdateResponse.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; + return LaunchPlanUpdateResponse; })(); - admin.ExecutionQueueAttributes = (function() { + admin.ActiveLaunchPlanRequest = (function() { /** - * Properties of an ExecutionQueueAttributes. + * Properties of an ActiveLaunchPlanRequest. * @memberof flyteidl.admin - * @interface IExecutionQueueAttributes - * @property {Array.|null} [tags] ExecutionQueueAttributes tags + * @interface IActiveLaunchPlanRequest + * @property {flyteidl.admin.INamedEntityIdentifier|null} [id] ActiveLaunchPlanRequest id */ /** - * Constructs a new ExecutionQueueAttributes. + * Constructs a new ActiveLaunchPlanRequest. * @memberof flyteidl.admin - * @classdesc Represents an ExecutionQueueAttributes. - * @implements IExecutionQueueAttributes + * @classdesc Represents an ActiveLaunchPlanRequest. + * @implements IActiveLaunchPlanRequest * @constructor - * @param {flyteidl.admin.IExecutionQueueAttributes=} [properties] Properties to set + * @param {flyteidl.admin.IActiveLaunchPlanRequest=} [properties] Properties to set */ - function ExecutionQueueAttributes(properties) { - this.tags = []; + function ActiveLaunchPlanRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30272,65 +29928,62 @@ } /** - * ExecutionQueueAttributes tags. - * @member {Array.} tags - * @memberof flyteidl.admin.ExecutionQueueAttributes + * ActiveLaunchPlanRequest id. + * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id + * @memberof flyteidl.admin.ActiveLaunchPlanRequest * @instance */ - ExecutionQueueAttributes.prototype.tags = $util.emptyArray; + ActiveLaunchPlanRequest.prototype.id = null; /** - * Creates a new ExecutionQueueAttributes instance using the specified properties. + * Creates a new ActiveLaunchPlanRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.ExecutionQueueAttributes + * @memberof flyteidl.admin.ActiveLaunchPlanRequest * @static - * @param {flyteidl.admin.IExecutionQueueAttributes=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionQueueAttributes} ExecutionQueueAttributes instance + * @param {flyteidl.admin.IActiveLaunchPlanRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ActiveLaunchPlanRequest} ActiveLaunchPlanRequest instance */ - ExecutionQueueAttributes.create = function create(properties) { - return new ExecutionQueueAttributes(properties); + ActiveLaunchPlanRequest.create = function create(properties) { + return new ActiveLaunchPlanRequest(properties); }; /** - * Encodes the specified ExecutionQueueAttributes message. Does not implicitly {@link flyteidl.admin.ExecutionQueueAttributes.verify|verify} messages. + * Encodes the specified ActiveLaunchPlanRequest message. Does not implicitly {@link flyteidl.admin.ActiveLaunchPlanRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ExecutionQueueAttributes + * @memberof flyteidl.admin.ActiveLaunchPlanRequest * @static - * @param {flyteidl.admin.IExecutionQueueAttributes} message ExecutionQueueAttributes message or plain object to encode + * @param {flyteidl.admin.IActiveLaunchPlanRequest} message ActiveLaunchPlanRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecutionQueueAttributes.encode = function encode(message, writer) { + ActiveLaunchPlanRequest.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]); + 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 ExecutionQueueAttributes message from the specified reader or buffer. + * Decodes an ActiveLaunchPlanRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ExecutionQueueAttributes + * @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.ExecutionQueueAttributes} ExecutionQueueAttributes + * @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 */ - ExecutionQueueAttributes.decode = function decode(reader, length) { + 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.ExecutionQueueAttributes(); + 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: - if (!(message.tags && message.tags.length)) - message.tags = []; - message.tags.push(reader.string()); + message.id = $root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -30341,47 +29994,49 @@ }; /** - * Verifies an ExecutionQueueAttributes message. + * Verifies an ActiveLaunchPlanRequest message. * @function verify - * @memberof flyteidl.admin.ExecutionQueueAttributes + * @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 */ - ExecutionQueueAttributes.verify = function verify(message) { + ActiveLaunchPlanRequest.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"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.id); + if (error) + return "id." + error; } return null; }; - return ExecutionQueueAttributes; + return ActiveLaunchPlanRequest; })(); - admin.ExecutionClusterLabel = (function() { + admin.ActiveLaunchPlanListRequest = (function() { /** - * Properties of an ExecutionClusterLabel. + * Properties of an ActiveLaunchPlanListRequest. * @memberof flyteidl.admin - * @interface IExecutionClusterLabel - * @property {string|null} [value] ExecutionClusterLabel value + * @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 */ /** - * Constructs a new ExecutionClusterLabel. + * Constructs a new ActiveLaunchPlanListRequest. * @memberof flyteidl.admin - * @classdesc Represents an ExecutionClusterLabel. - * @implements IExecutionClusterLabel + * @classdesc Represents an ActiveLaunchPlanListRequest. + * @implements IActiveLaunchPlanListRequest * @constructor - * @param {flyteidl.admin.IExecutionClusterLabel=} [properties] Properties to set + * @param {flyteidl.admin.IActiveLaunchPlanListRequest=} [properties] Properties to set */ - function ExecutionClusterLabel(properties) { + function ActiveLaunchPlanListRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30389,62 +30044,114 @@ } /** - * ExecutionClusterLabel value. - * @member {string} value - * @memberof flyteidl.admin.ExecutionClusterLabel + * ActiveLaunchPlanListRequest project. + * @member {string} project + * @memberof flyteidl.admin.ActiveLaunchPlanListRequest * @instance */ - ExecutionClusterLabel.prototype.value = ""; + ActiveLaunchPlanListRequest.prototype.project = ""; /** - * 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); + * 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; + + /** + * 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 ExecutionClusterLabel message. Does not implicitly {@link flyteidl.admin.ExecutionClusterLabel.verify|verify} messages. + * Encodes the specified ActiveLaunchPlanListRequest message. Does not implicitly {@link flyteidl.admin.ActiveLaunchPlanListRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ExecutionClusterLabel + * @memberof flyteidl.admin.ActiveLaunchPlanListRequest * @static - * @param {flyteidl.admin.IExecutionClusterLabel} message ExecutionClusterLabel message or plain object to encode + * @param {flyteidl.admin.IActiveLaunchPlanListRequest} message ActiveLaunchPlanListRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecutionClusterLabel.encode = function encode(message, writer) { + ActiveLaunchPlanListRequest.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.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(); return writer; }; /** - * Decodes an ExecutionClusterLabel message from the specified reader or buffer. + * Decodes an ActiveLaunchPlanListRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ExecutionClusterLabel + * @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.ExecutionClusterLabel} ExecutionClusterLabel + * @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 */ - ExecutionClusterLabel.decode = function decode(reader, length) { + 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.ExecutionClusterLabel(); + 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.value = reader.string(); + 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; default: reader.skipType(tag & 7); @@ -30455,46 +30162,74 @@ }; /** - * Verifies an ExecutionClusterLabel message. + * Verifies an ActiveLaunchPlanListRequest message. * @function verify - * @memberof flyteidl.admin.ExecutionClusterLabel + * @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 */ - ExecutionClusterLabel.verify = function verify(message) { + ActiveLaunchPlanListRequest.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"; + 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; + } return null; }; - return ExecutionClusterLabel; + return ActiveLaunchPlanListRequest; })(); - admin.PluginOverride = (function() { + /** + * 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 PluginOverride. + * Properties of a FixedRate. * @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 + * @interface IFixedRate + * @property {number|null} [value] FixedRate value + * @property {flyteidl.admin.FixedRateUnit|null} [unit] FixedRate unit */ /** - * Constructs a new PluginOverride. + * Constructs a new FixedRate. * @memberof flyteidl.admin - * @classdesc Represents a PluginOverride. - * @implements IPluginOverride + * @classdesc Represents a FixedRate. + * @implements IFixedRate * @constructor - * @param {flyteidl.admin.IPluginOverride=} [properties] Properties to set + * @param {flyteidl.admin.IFixedRate=} [properties] Properties to set */ - function PluginOverride(properties) { - this.pluginId = []; + function FixedRate(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30502,91 +30237,75 @@ } /** - * PluginOverride taskType. - * @member {string} taskType - * @memberof flyteidl.admin.PluginOverride - * @instance - */ - PluginOverride.prototype.taskType = ""; - - /** - * PluginOverride pluginId. - * @member {Array.} pluginId - * @memberof flyteidl.admin.PluginOverride + * FixedRate value. + * @member {number} value + * @memberof flyteidl.admin.FixedRate * @instance */ - PluginOverride.prototype.pluginId = $util.emptyArray; + FixedRate.prototype.value = 0; /** - * PluginOverride missingPluginBehavior. - * @member {flyteidl.admin.PluginOverride.MissingPluginBehavior} missingPluginBehavior - * @memberof flyteidl.admin.PluginOverride + * FixedRate unit. + * @member {flyteidl.admin.FixedRateUnit} unit + * @memberof flyteidl.admin.FixedRate * @instance */ - PluginOverride.prototype.missingPluginBehavior = 0; + FixedRate.prototype.unit = 0; /** - * Creates a new PluginOverride instance using the specified properties. + * Creates a new FixedRate instance using the specified properties. * @function create - * @memberof flyteidl.admin.PluginOverride + * @memberof flyteidl.admin.FixedRate * @static - * @param {flyteidl.admin.IPluginOverride=} [properties] Properties to set - * @returns {flyteidl.admin.PluginOverride} PluginOverride instance + * @param {flyteidl.admin.IFixedRate=} [properties] Properties to set + * @returns {flyteidl.admin.FixedRate} FixedRate instance */ - PluginOverride.create = function create(properties) { - return new PluginOverride(properties); + FixedRate.create = function create(properties) { + return new FixedRate(properties); }; /** - * Encodes the specified PluginOverride message. Does not implicitly {@link flyteidl.admin.PluginOverride.verify|verify} messages. + * Encodes the specified FixedRate message. Does not implicitly {@link flyteidl.admin.FixedRate.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.PluginOverride + * @memberof flyteidl.admin.FixedRate * @static - * @param {flyteidl.admin.IPluginOverride} message PluginOverride message or plain object to encode + * @param {flyteidl.admin.IFixedRate} message FixedRate message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PluginOverride.encode = function encode(message, writer) { + FixedRate.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); + 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 PluginOverride message from the specified reader or buffer. + * Decodes a FixedRate message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.PluginOverride + * @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.PluginOverride} PluginOverride + * @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 */ - PluginOverride.decode = function decode(reader, length) { + 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.PluginOverride(); + 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.taskType = reader.string(); + message.value = reader.uint32(); break; case 2: - if (!(message.pluginId && message.pluginId.length)) - message.pluginId = []; - message.pluginId.push(reader.string()); - break; - case 4: - message.missingPluginBehavior = reader.int32(); + message.unit = reader.int32(); break; default: reader.skipType(tag & 7); @@ -30597,73 +30316,53 @@ }; /** - * Verifies a PluginOverride message. + * Verifies a FixedRate message. * @function verify - * @memberof flyteidl.admin.PluginOverride + * @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 */ - PluginOverride.verify = function verify(message) { + FixedRate.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) { + 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 "missingPluginBehavior: enum value expected"; + return "unit: enum value expected"; case 0: case 1: + case 2: break; } return null; }; + return FixedRate; + })(); + + admin.CronSchedule = (function() { + /** - * 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. + * Properties of a CronSchedule. * @memberof flyteidl.admin - * @interface IPluginOverrides - * @property {Array.|null} [overrides] PluginOverrides overrides + * @interface ICronSchedule + * @property {string|null} [schedule] CronSchedule schedule + * @property {string|null} [offset] CronSchedule offset */ /** - * Constructs a new PluginOverrides. + * Constructs a new CronSchedule. * @memberof flyteidl.admin - * @classdesc Represents a PluginOverrides. - * @implements IPluginOverrides + * @classdesc Represents a CronSchedule. + * @implements ICronSchedule * @constructor - * @param {flyteidl.admin.IPluginOverrides=} [properties] Properties to set + * @param {flyteidl.admin.ICronSchedule=} [properties] Properties to set */ - function PluginOverrides(properties) { - this.overrides = []; + function CronSchedule(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30671,65 +30370,75 @@ } /** - * PluginOverrides overrides. - * @member {Array.} overrides - * @memberof flyteidl.admin.PluginOverrides + * CronSchedule schedule. + * @member {string} schedule + * @memberof flyteidl.admin.CronSchedule * @instance */ - PluginOverrides.prototype.overrides = $util.emptyArray; + CronSchedule.prototype.schedule = ""; /** - * Creates a new PluginOverrides instance using the specified properties. + * 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.PluginOverrides + * @memberof flyteidl.admin.CronSchedule * @static - * @param {flyteidl.admin.IPluginOverrides=} [properties] Properties to set - * @returns {flyteidl.admin.PluginOverrides} PluginOverrides instance + * @param {flyteidl.admin.ICronSchedule=} [properties] Properties to set + * @returns {flyteidl.admin.CronSchedule} CronSchedule instance */ - PluginOverrides.create = function create(properties) { - return new PluginOverrides(properties); + CronSchedule.create = function create(properties) { + return new CronSchedule(properties); }; /** - * Encodes the specified PluginOverrides message. Does not implicitly {@link flyteidl.admin.PluginOverrides.verify|verify} messages. + * Encodes the specified CronSchedule message. Does not implicitly {@link flyteidl.admin.CronSchedule.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.PluginOverrides + * @memberof flyteidl.admin.CronSchedule * @static - * @param {flyteidl.admin.IPluginOverrides} message PluginOverrides message or plain object to encode + * @param {flyteidl.admin.ICronSchedule} message CronSchedule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PluginOverrides.encode = function encode(message, writer) { + CronSchedule.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(); + 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 PluginOverrides message from the specified reader or buffer. + * Decodes a CronSchedule message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.PluginOverrides + * @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.PluginOverrides} PluginOverrides + * @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 */ - PluginOverrides.decode = function decode(reader, length) { + 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.PluginOverrides(); + 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: - if (!(message.overrides && message.overrides.length)) - message.overrides = []; - message.overrides.push($root.flyteidl.admin.PluginOverride.decode(reader, reader.uint32())); + message.schedule = reader.string(); + break; + case 2: + message.offset = reader.string(); break; default: reader.skipType(tag & 7); @@ -30740,56 +30449,49 @@ }; /** - * Verifies a PluginOverrides message. + * Verifies a CronSchedule message. * @function verify - * @memberof flyteidl.admin.PluginOverrides + * @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 */ - PluginOverrides.verify = function verify(message) { + CronSchedule.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; - } - } + 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 PluginOverrides; + return CronSchedule; })(); - admin.WorkflowExecutionConfig = (function() { + admin.Schedule = (function() { /** - * Properties of a WorkflowExecutionConfig. + * Properties of a Schedule. * @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 + * @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 WorkflowExecutionConfig. + * Constructs a new Schedule. * @memberof flyteidl.admin - * @classdesc Represents a WorkflowExecutionConfig. - * @implements IWorkflowExecutionConfig + * @classdesc Represents a Schedule. + * @implements ISchedule * @constructor - * @param {flyteidl.admin.IWorkflowExecutionConfig=} [properties] Properties to set + * @param {flyteidl.admin.ISchedule=} [properties] Properties to set */ - function WorkflowExecutionConfig(properties) { + function Schedule(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30797,153 +30499,115 @@ } /** - * 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 + * Schedule cronExpression. + * @member {string} cronExpression + * @memberof flyteidl.admin.Schedule * @instance */ - WorkflowExecutionConfig.prototype.rawOutputDataConfig = null; + Schedule.prototype.cronExpression = ""; /** - * WorkflowExecutionConfig labels. - * @member {flyteidl.admin.ILabels|null|undefined} labels - * @memberof flyteidl.admin.WorkflowExecutionConfig + * Schedule rate. + * @member {flyteidl.admin.IFixedRate|null|undefined} rate + * @memberof flyteidl.admin.Schedule * @instance */ - WorkflowExecutionConfig.prototype.labels = null; + Schedule.prototype.rate = null; /** - * WorkflowExecutionConfig annotations. - * @member {flyteidl.admin.IAnnotations|null|undefined} annotations - * @memberof flyteidl.admin.WorkflowExecutionConfig + * Schedule cronSchedule. + * @member {flyteidl.admin.ICronSchedule|null|undefined} cronSchedule + * @memberof flyteidl.admin.Schedule * @instance */ - WorkflowExecutionConfig.prototype.annotations = null; + Schedule.prototype.cronSchedule = null; /** - * WorkflowExecutionConfig interruptible. - * @member {google.protobuf.IBoolValue|null|undefined} interruptible - * @memberof flyteidl.admin.WorkflowExecutionConfig + * Schedule kickoffTimeInputArg. + * @member {string} kickoffTimeInputArg + * @memberof flyteidl.admin.Schedule * @instance */ - WorkflowExecutionConfig.prototype.interruptible = null; + Schedule.prototype.kickoffTimeInputArg = ""; - /** - * WorkflowExecutionConfig overwriteCache. - * @member {boolean} overwriteCache - * @memberof flyteidl.admin.WorkflowExecutionConfig - * @instance - */ - WorkflowExecutionConfig.prototype.overwriteCache = false; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * WorkflowExecutionConfig envs. - * @member {flyteidl.admin.IEnvs|null|undefined} envs - * @memberof flyteidl.admin.WorkflowExecutionConfig + * Schedule ScheduleExpression. + * @member {"cronExpression"|"rate"|"cronSchedule"|undefined} ScheduleExpression + * @memberof flyteidl.admin.Schedule * @instance */ - WorkflowExecutionConfig.prototype.envs = null; + Object.defineProperty(Schedule.prototype, "ScheduleExpression", { + get: $util.oneOfGetter($oneOfFields = ["cronExpression", "rate", "cronSchedule"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new WorkflowExecutionConfig instance using the specified properties. + * Creates a new Schedule instance using the specified properties. * @function create - * @memberof flyteidl.admin.WorkflowExecutionConfig + * @memberof flyteidl.admin.Schedule * @static - * @param {flyteidl.admin.IWorkflowExecutionConfig=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowExecutionConfig} WorkflowExecutionConfig instance + * @param {flyteidl.admin.ISchedule=} [properties] Properties to set + * @returns {flyteidl.admin.Schedule} Schedule instance */ - WorkflowExecutionConfig.create = function create(properties) { - return new WorkflowExecutionConfig(properties); + Schedule.create = function create(properties) { + return new Schedule(properties); }; /** - * Encodes the specified WorkflowExecutionConfig message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionConfig.verify|verify} messages. + * Encodes the specified Schedule message. Does not implicitly {@link flyteidl.admin.Schedule.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.WorkflowExecutionConfig + * @memberof flyteidl.admin.Schedule * @static - * @param {flyteidl.admin.IWorkflowExecutionConfig} message WorkflowExecutionConfig message or plain object to encode + * @param {flyteidl.admin.ISchedule} message Schedule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkflowExecutionConfig.encode = function encode(message, writer) { + Schedule.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. + 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.WorkflowExecutionConfig + * @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.WorkflowExecutionConfig} WorkflowExecutionConfig + * @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 */ - WorkflowExecutionConfig.decode = function decode(reader, length) { + 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.WorkflowExecutionConfig(); + 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.maxParallelism = reader.int32(); + message.cronExpression = reader.string(); 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()); + message.rate = $root.flyteidl.admin.FixedRate.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(); + message.cronSchedule = $root.flyteidl.admin.CronSchedule.decode(reader, reader.uint32()); break; - case 8: - message.envs = $root.flyteidl.admin.Envs.decode(reader, reader.uint32()); + case 3: + message.kickoffTimeInputArg = reader.string(); break; default: reader.skipType(tag & 7); @@ -30954,83 +30618,99 @@ }; /** - * Verifies a WorkflowExecutionConfig message. + * Verifies a Schedule message. * @function verify - * @memberof flyteidl.admin.WorkflowExecutionConfig + * @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 */ - WorkflowExecutionConfig.verify = function verify(message) { + Schedule.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; + var properties = {}; + if (message.cronExpression != null && message.hasOwnProperty("cronExpression")) { + properties.ScheduleExpression = 1; + if (!$util.isString(message.cronExpression)) + return "cronExpression: string expected"; } - if (message.interruptible != null && message.hasOwnProperty("interruptible")) { - var error = $root.google.protobuf.BoolValue.verify(message.interruptible); - if (error) - return "interruptible." + error; + 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.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.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 WorkflowExecutionConfig; + return Schedule; })(); - admin.MatchingAttributes = (function() { + /** + * 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 MatchingAttributes. + * Properties of a TaskResourceSpec. * @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 + * @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 MatchingAttributes. + * Constructs a new TaskResourceSpec. * @memberof flyteidl.admin - * @classdesc Represents a MatchingAttributes. - * @implements IMatchingAttributes + * @classdesc Represents a TaskResourceSpec. + * @implements ITaskResourceSpec * @constructor - * @param {flyteidl.admin.IMatchingAttributes=} [properties] Properties to set + * @param {flyteidl.admin.ITaskResourceSpec=} [properties] Properties to set */ - function MatchingAttributes(properties) { + function TaskResourceSpec(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31038,167 +30718,114 @@ } /** - * 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 + * TaskResourceSpec cpu. + * @member {string} cpu + * @memberof flyteidl.admin.TaskResourceSpec * @instance */ - MatchingAttributes.prototype.qualityOfService = null; + TaskResourceSpec.prototype.cpu = ""; /** - * MatchingAttributes pluginOverrides. - * @member {flyteidl.admin.IPluginOverrides|null|undefined} pluginOverrides - * @memberof flyteidl.admin.MatchingAttributes + * TaskResourceSpec gpu. + * @member {string} gpu + * @memberof flyteidl.admin.TaskResourceSpec * @instance */ - MatchingAttributes.prototype.pluginOverrides = null; + TaskResourceSpec.prototype.gpu = ""; /** - * MatchingAttributes workflowExecutionConfig. - * @member {flyteidl.admin.IWorkflowExecutionConfig|null|undefined} workflowExecutionConfig - * @memberof flyteidl.admin.MatchingAttributes + * TaskResourceSpec memory. + * @member {string} memory + * @memberof flyteidl.admin.TaskResourceSpec * @instance */ - MatchingAttributes.prototype.workflowExecutionConfig = null; + TaskResourceSpec.prototype.memory = ""; /** - * MatchingAttributes clusterAssignment. - * @member {flyteidl.admin.IClusterAssignment|null|undefined} clusterAssignment - * @memberof flyteidl.admin.MatchingAttributes + * TaskResourceSpec storage. + * @member {string} storage + * @memberof flyteidl.admin.TaskResourceSpec * @instance */ - MatchingAttributes.prototype.clusterAssignment = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + TaskResourceSpec.prototype.storage = ""; /** - * MatchingAttributes target. - * @member {"taskResourceAttributes"|"clusterResourceAttributes"|"executionQueueAttributes"|"executionClusterLabel"|"qualityOfService"|"pluginOverrides"|"workflowExecutionConfig"|"clusterAssignment"|undefined} target - * @memberof flyteidl.admin.MatchingAttributes + * TaskResourceSpec ephemeralStorage. + * @member {string} ephemeralStorage + * @memberof flyteidl.admin.TaskResourceSpec * @instance */ - Object.defineProperty(MatchingAttributes.prototype, "target", { - get: $util.oneOfGetter($oneOfFields = ["taskResourceAttributes", "clusterResourceAttributes", "executionQueueAttributes", "executionClusterLabel", "qualityOfService", "pluginOverrides", "workflowExecutionConfig", "clusterAssignment"]), - set: $util.oneOfSetter($oneOfFields) - }); + TaskResourceSpec.prototype.ephemeralStorage = ""; /** - * Creates a new MatchingAttributes instance using the specified properties. + * Creates a new TaskResourceSpec instance using the specified properties. * @function create - * @memberof flyteidl.admin.MatchingAttributes + * @memberof flyteidl.admin.TaskResourceSpec * @static - * @param {flyteidl.admin.IMatchingAttributes=} [properties] Properties to set - * @returns {flyteidl.admin.MatchingAttributes} MatchingAttributes instance + * @param {flyteidl.admin.ITaskResourceSpec=} [properties] Properties to set + * @returns {flyteidl.admin.TaskResourceSpec} TaskResourceSpec instance */ - MatchingAttributes.create = function create(properties) { - return new MatchingAttributes(properties); + TaskResourceSpec.create = function create(properties) { + return new TaskResourceSpec(properties); }; /** - * Encodes the specified MatchingAttributes message. Does not implicitly {@link flyteidl.admin.MatchingAttributes.verify|verify} messages. + * Encodes the specified TaskResourceSpec message. Does not implicitly {@link flyteidl.admin.TaskResourceSpec.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.MatchingAttributes + * @memberof flyteidl.admin.TaskResourceSpec * @static - * @param {flyteidl.admin.IMatchingAttributes} message MatchingAttributes message or plain object to encode + * @param {flyteidl.admin.ITaskResourceSpec} message TaskResourceSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MatchingAttributes.encode = function encode(message, writer) { + TaskResourceSpec.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(); + 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 MatchingAttributes message from the specified reader or buffer. + * Decodes a TaskResourceSpec message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.MatchingAttributes + * @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.MatchingAttributes} MatchingAttributes + * @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 */ - MatchingAttributes.decode = function decode(reader, length) { + 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.MatchingAttributes(); + 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.taskResourceAttributes = $root.flyteidl.admin.TaskResourceAttributes.decode(reader, reader.uint32()); + message.cpu = reader.string(); break; case 2: - message.clusterResourceAttributes = $root.flyteidl.admin.ClusterResourceAttributes.decode(reader, reader.uint32()); + message.gpu = reader.string(); break; case 3: - message.executionQueueAttributes = $root.flyteidl.admin.ExecutionQueueAttributes.decode(reader, reader.uint32()); + message.memory = reader.string(); break; case 4: - message.executionClusterLabel = $root.flyteidl.admin.ExecutionClusterLabel.decode(reader, reader.uint32()); + message.storage = reader.string(); 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()); + message.ephemeralStorage = reader.string(); break; default: reader.skipType(tag & 7); @@ -31209,123 +30836,56 @@ }; /** - * Verifies a MatchingAttributes message. + * Verifies a TaskResourceSpec message. * @function verify - * @memberof flyteidl.admin.MatchingAttributes + * @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 */ - MatchingAttributes.verify = function verify(message) { + TaskResourceSpec.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; - } - } + 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 MatchingAttributes; + return TaskResourceSpec; })(); - admin.MatchableAttributesConfiguration = (function() { + admin.TaskResourceAttributes = (function() { /** - * Properties of a MatchableAttributesConfiguration. + * Properties of a TaskResourceAttributes. * @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 + * @interface ITaskResourceAttributes + * @property {flyteidl.admin.ITaskResourceSpec|null} [defaults] TaskResourceAttributes defaults + * @property {flyteidl.admin.ITaskResourceSpec|null} [limits] TaskResourceAttributes limits */ /** - * Constructs a new MatchableAttributesConfiguration. + * Constructs a new TaskResourceAttributes. * @memberof flyteidl.admin - * @classdesc Represents a MatchableAttributesConfiguration. - * @implements IMatchableAttributesConfiguration + * @classdesc Represents a TaskResourceAttributes. + * @implements ITaskResourceAttributes * @constructor - * @param {flyteidl.admin.IMatchableAttributesConfiguration=} [properties] Properties to set + * @param {flyteidl.admin.ITaskResourceAttributes=} [properties] Properties to set */ - function MatchableAttributesConfiguration(properties) { + function TaskResourceAttributes(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31333,114 +30893,75 @@ } /** - * 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 + * TaskResourceAttributes defaults. + * @member {flyteidl.admin.ITaskResourceSpec|null|undefined} defaults + * @memberof flyteidl.admin.TaskResourceAttributes * @instance */ - MatchableAttributesConfiguration.prototype.workflow = ""; + TaskResourceAttributes.prototype.defaults = null; /** - * MatchableAttributesConfiguration launchPlan. - * @member {string} launchPlan - * @memberof flyteidl.admin.MatchableAttributesConfiguration + * TaskResourceAttributes limits. + * @member {flyteidl.admin.ITaskResourceSpec|null|undefined} limits + * @memberof flyteidl.admin.TaskResourceAttributes * @instance */ - MatchableAttributesConfiguration.prototype.launchPlan = ""; + TaskResourceAttributes.prototype.limits = null; /** - * Creates a new MatchableAttributesConfiguration instance using the specified properties. + * Creates a new TaskResourceAttributes instance using the specified properties. * @function create - * @memberof flyteidl.admin.MatchableAttributesConfiguration + * @memberof flyteidl.admin.TaskResourceAttributes * @static - * @param {flyteidl.admin.IMatchableAttributesConfiguration=} [properties] Properties to set - * @returns {flyteidl.admin.MatchableAttributesConfiguration} MatchableAttributesConfiguration instance + * @param {flyteidl.admin.ITaskResourceAttributes=} [properties] Properties to set + * @returns {flyteidl.admin.TaskResourceAttributes} TaskResourceAttributes instance */ - MatchableAttributesConfiguration.create = function create(properties) { - return new MatchableAttributesConfiguration(properties); + TaskResourceAttributes.create = function create(properties) { + return new TaskResourceAttributes(properties); }; /** - * Encodes the specified MatchableAttributesConfiguration message. Does not implicitly {@link flyteidl.admin.MatchableAttributesConfiguration.verify|verify} messages. + * Encodes the specified TaskResourceAttributes message. Does not implicitly {@link flyteidl.admin.TaskResourceAttributes.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.MatchableAttributesConfiguration + * @memberof flyteidl.admin.TaskResourceAttributes * @static - * @param {flyteidl.admin.IMatchableAttributesConfiguration} message MatchableAttributesConfiguration message or plain object to encode + * @param {flyteidl.admin.ITaskResourceAttributes} message TaskResourceAttributes message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MatchableAttributesConfiguration.encode = function encode(message, writer) { + TaskResourceAttributes.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.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 MatchableAttributesConfiguration message from the specified reader or buffer. + * Decodes a TaskResourceAttributes message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.MatchableAttributesConfiguration + * @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.MatchableAttributesConfiguration} MatchableAttributesConfiguration + * @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 */ - MatchableAttributesConfiguration.decode = function decode(reader, length) { + 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.MatchableAttributesConfiguration(); + 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.attributes = $root.flyteidl.admin.MatchingAttributes.decode(reader, reader.uint32()); + message.defaults = $root.flyteidl.admin.TaskResourceSpec.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(); + message.limits = $root.flyteidl.admin.TaskResourceSpec.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -31451,57 +30972,51 @@ }; /** - * Verifies a MatchableAttributesConfiguration message. + * Verifies a TaskResourceAttributes message. * @function verify - * @memberof flyteidl.admin.MatchableAttributesConfiguration + * @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 */ - MatchableAttributesConfiguration.verify = function verify(message) { + TaskResourceAttributes.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 (message.defaults != null && message.hasOwnProperty("defaults")) { + var error = $root.flyteidl.admin.TaskResourceSpec.verify(message.defaults); if (error) - return "attributes." + 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; } - 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"; return null; }; - return MatchableAttributesConfiguration; + return TaskResourceAttributes; })(); - admin.ListMatchableAttributesRequest = (function() { + admin.ClusterResourceAttributes = (function() { /** - * Properties of a ListMatchableAttributesRequest. + * Properties of a ClusterResourceAttributes. * @memberof flyteidl.admin - * @interface IListMatchableAttributesRequest - * @property {flyteidl.admin.MatchableResource|null} [resourceType] ListMatchableAttributesRequest resourceType + * @interface IClusterResourceAttributes + * @property {Object.|null} [attributes] ClusterResourceAttributes attributes */ /** - * Constructs a new ListMatchableAttributesRequest. + * Constructs a new ClusterResourceAttributes. * @memberof flyteidl.admin - * @classdesc Represents a ListMatchableAttributesRequest. - * @implements IListMatchableAttributesRequest + * @classdesc Represents a ClusterResourceAttributes. + * @implements IClusterResourceAttributes * @constructor - * @param {flyteidl.admin.IListMatchableAttributesRequest=} [properties] Properties to set + * @param {flyteidl.admin.IClusterResourceAttributes=} [properties] Properties to set */ - function ListMatchableAttributesRequest(properties) { + function ClusterResourceAttributes(properties) { + this.attributes = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31509,62 +31024,68 @@ } /** - * ListMatchableAttributesRequest resourceType. - * @member {flyteidl.admin.MatchableResource} resourceType - * @memberof flyteidl.admin.ListMatchableAttributesRequest + * ClusterResourceAttributes attributes. + * @member {Object.} attributes + * @memberof flyteidl.admin.ClusterResourceAttributes * @instance */ - ListMatchableAttributesRequest.prototype.resourceType = 0; + ClusterResourceAttributes.prototype.attributes = $util.emptyObject; /** - * Creates a new ListMatchableAttributesRequest instance using the specified properties. + * Creates a new ClusterResourceAttributes instance using the specified properties. * @function create - * @memberof flyteidl.admin.ListMatchableAttributesRequest + * @memberof flyteidl.admin.ClusterResourceAttributes * @static - * @param {flyteidl.admin.IListMatchableAttributesRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ListMatchableAttributesRequest} ListMatchableAttributesRequest instance + * @param {flyteidl.admin.IClusterResourceAttributes=} [properties] Properties to set + * @returns {flyteidl.admin.ClusterResourceAttributes} ClusterResourceAttributes instance */ - ListMatchableAttributesRequest.create = function create(properties) { - return new ListMatchableAttributesRequest(properties); + ClusterResourceAttributes.create = function create(properties) { + return new ClusterResourceAttributes(properties); }; /** - * Encodes the specified ListMatchableAttributesRequest message. Does not implicitly {@link flyteidl.admin.ListMatchableAttributesRequest.verify|verify} messages. + * Encodes the specified ClusterResourceAttributes message. Does not implicitly {@link flyteidl.admin.ClusterResourceAttributes.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ListMatchableAttributesRequest + * @memberof flyteidl.admin.ClusterResourceAttributes * @static - * @param {flyteidl.admin.IListMatchableAttributesRequest} message ListMatchableAttributesRequest message or plain object to encode + * @param {flyteidl.admin.IClusterResourceAttributes} message ClusterResourceAttributes message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMatchableAttributesRequest.encode = function encode(message, writer) { + ClusterResourceAttributes.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.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 ListMatchableAttributesRequest message from the specified reader or buffer. + * Decodes a ClusterResourceAttributes message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ListMatchableAttributesRequest + * @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.ListMatchableAttributesRequest} ListMatchableAttributesRequest + * @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 */ - ListMatchableAttributesRequest.decode = function decode(reader, length) { + 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.ListMatchableAttributesRequest(); + 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: - message.resourceType = reader.int32(); + 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); @@ -31575,55 +31096,49 @@ }; /** - * Verifies a ListMatchableAttributesRequest message. + * Verifies a ClusterResourceAttributes message. * @function verify - * @memberof flyteidl.admin.ListMatchableAttributesRequest + * @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 */ - ListMatchableAttributesRequest.verify = function verify(message) { + ClusterResourceAttributes.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.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 ListMatchableAttributesRequest; + return ClusterResourceAttributes; })(); - admin.ListMatchableAttributesResponse = (function() { + admin.ExecutionQueueAttributes = (function() { /** - * Properties of a ListMatchableAttributesResponse. + * Properties of an ExecutionQueueAttributes. * @memberof flyteidl.admin - * @interface IListMatchableAttributesResponse - * @property {Array.|null} [configurations] ListMatchableAttributesResponse configurations + * @interface IExecutionQueueAttributes + * @property {Array.|null} [tags] ExecutionQueueAttributes tags */ /** - * Constructs a new ListMatchableAttributesResponse. + * Constructs a new ExecutionQueueAttributes. * @memberof flyteidl.admin - * @classdesc Represents a ListMatchableAttributesResponse. - * @implements IListMatchableAttributesResponse + * @classdesc Represents an ExecutionQueueAttributes. + * @implements IExecutionQueueAttributes * @constructor - * @param {flyteidl.admin.IListMatchableAttributesResponse=} [properties] Properties to set + * @param {flyteidl.admin.IExecutionQueueAttributes=} [properties] Properties to set */ - function ListMatchableAttributesResponse(properties) { - this.configurations = []; + function ExecutionQueueAttributes(properties) { + this.tags = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31631,65 +31146,65 @@ } /** - * ListMatchableAttributesResponse configurations. - * @member {Array.} configurations - * @memberof flyteidl.admin.ListMatchableAttributesResponse + * ExecutionQueueAttributes tags. + * @member {Array.} tags + * @memberof flyteidl.admin.ExecutionQueueAttributes * @instance */ - ListMatchableAttributesResponse.prototype.configurations = $util.emptyArray; + ExecutionQueueAttributes.prototype.tags = $util.emptyArray; /** - * Creates a new ListMatchableAttributesResponse instance using the specified properties. + * Creates a new ExecutionQueueAttributes instance using the specified properties. * @function create - * @memberof flyteidl.admin.ListMatchableAttributesResponse + * @memberof flyteidl.admin.ExecutionQueueAttributes * @static - * @param {flyteidl.admin.IListMatchableAttributesResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ListMatchableAttributesResponse} ListMatchableAttributesResponse instance + * @param {flyteidl.admin.IExecutionQueueAttributes=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionQueueAttributes} ExecutionQueueAttributes instance */ - ListMatchableAttributesResponse.create = function create(properties) { - return new ListMatchableAttributesResponse(properties); + ExecutionQueueAttributes.create = function create(properties) { + return new ExecutionQueueAttributes(properties); }; /** - * Encodes the specified ListMatchableAttributesResponse message. Does not implicitly {@link flyteidl.admin.ListMatchableAttributesResponse.verify|verify} messages. + * Encodes the specified ExecutionQueueAttributes message. Does not implicitly {@link flyteidl.admin.ExecutionQueueAttributes.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ListMatchableAttributesResponse + * @memberof flyteidl.admin.ExecutionQueueAttributes * @static - * @param {flyteidl.admin.IListMatchableAttributesResponse} message ListMatchableAttributesResponse message or plain object to encode + * @param {flyteidl.admin.IExecutionQueueAttributes} message ExecutionQueueAttributes message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMatchableAttributesResponse.encode = function encode(message, writer) { + ExecutionQueueAttributes.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(); + 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 a ListMatchableAttributesResponse message from the specified reader or buffer. + * Decodes an ExecutionQueueAttributes message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ListMatchableAttributesResponse + * @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.ListMatchableAttributesResponse} ListMatchableAttributesResponse + * @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 */ - ListMatchableAttributesResponse.decode = function decode(reader, length) { + 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.ListMatchableAttributesResponse(); + 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.configurations && message.configurations.length)) - message.configurations = []; - message.configurations.push($root.flyteidl.admin.MatchableAttributesConfiguration.decode(reader, reader.uint32())); + if (!(message.tags && message.tags.length)) + message.tags = []; + message.tags.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -31700,49 +31215,47 @@ }; /** - * Verifies a ListMatchableAttributesResponse message. + * Verifies an ExecutionQueueAttributes message. * @function verify - * @memberof flyteidl.admin.ListMatchableAttributesResponse + * @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 */ - ListMatchableAttributesResponse.verify = function verify(message) { + ExecutionQueueAttributes.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; - } + 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 ListMatchableAttributesResponse; + return ExecutionQueueAttributes; })(); - admin.NodeExecutionGetRequest = (function() { + admin.ExecutionClusterLabel = (function() { /** - * Properties of a NodeExecutionGetRequest. + * Properties of an ExecutionClusterLabel. * @memberof flyteidl.admin - * @interface INodeExecutionGetRequest - * @property {flyteidl.core.INodeExecutionIdentifier|null} [id] NodeExecutionGetRequest id + * @interface IExecutionClusterLabel + * @property {string|null} [value] ExecutionClusterLabel value */ /** - * Constructs a new NodeExecutionGetRequest. + * Constructs a new ExecutionClusterLabel. * @memberof flyteidl.admin - * @classdesc Represents a NodeExecutionGetRequest. - * @implements INodeExecutionGetRequest + * @classdesc Represents an ExecutionClusterLabel. + * @implements IExecutionClusterLabel * @constructor - * @param {flyteidl.admin.INodeExecutionGetRequest=} [properties] Properties to set + * @param {flyteidl.admin.IExecutionClusterLabel=} [properties] Properties to set */ - function NodeExecutionGetRequest(properties) { + function ExecutionClusterLabel(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31750,62 +31263,62 @@ } /** - * NodeExecutionGetRequest id. - * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.NodeExecutionGetRequest + * ExecutionClusterLabel value. + * @member {string} value + * @memberof flyteidl.admin.ExecutionClusterLabel * @instance */ - NodeExecutionGetRequest.prototype.id = null; + ExecutionClusterLabel.prototype.value = ""; /** - * Creates a new NodeExecutionGetRequest instance using the specified properties. + * Creates a new ExecutionClusterLabel instance using the specified properties. * @function create - * @memberof flyteidl.admin.NodeExecutionGetRequest + * @memberof flyteidl.admin.ExecutionClusterLabel * @static - * @param {flyteidl.admin.INodeExecutionGetRequest=} [properties] Properties to set - * @returns {flyteidl.admin.NodeExecutionGetRequest} NodeExecutionGetRequest instance + * @param {flyteidl.admin.IExecutionClusterLabel=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionClusterLabel} ExecutionClusterLabel instance */ - NodeExecutionGetRequest.create = function create(properties) { - return new NodeExecutionGetRequest(properties); + ExecutionClusterLabel.create = function create(properties) { + return new ExecutionClusterLabel(properties); }; /** - * Encodes the specified NodeExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetRequest.verify|verify} messages. + * Encodes the specified ExecutionClusterLabel message. Does not implicitly {@link flyteidl.admin.ExecutionClusterLabel.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.NodeExecutionGetRequest + * @memberof flyteidl.admin.ExecutionClusterLabel * @static - * @param {flyteidl.admin.INodeExecutionGetRequest} message NodeExecutionGetRequest message or plain object to encode + * @param {flyteidl.admin.IExecutionClusterLabel} message ExecutionClusterLabel message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeExecutionGetRequest.encode = function encode(message, writer) { + ExecutionClusterLabel.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.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); return writer; }; /** - * Decodes a NodeExecutionGetRequest message from the specified reader or buffer. + * Decodes an ExecutionClusterLabel message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.NodeExecutionGetRequest + * @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.NodeExecutionGetRequest} NodeExecutionGetRequest + * @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 */ - NodeExecutionGetRequest.decode = function decode(reader, length) { + 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.NodeExecutionGetRequest(); + 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.id = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + message.value = reader.string(); break; default: reader.skipType(tag & 7); @@ -31816,50 +31329,46 @@ }; /** - * Verifies a NodeExecutionGetRequest message. + * Verifies an ExecutionClusterLabel message. * @function verify - * @memberof flyteidl.admin.NodeExecutionGetRequest + * @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 */ - NodeExecutionGetRequest.verify = function verify(message) { + ExecutionClusterLabel.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.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; return null; }; - return NodeExecutionGetRequest; + return ExecutionClusterLabel; })(); - admin.NodeExecutionListRequest = (function() { + admin.PluginOverride = (function() { /** - * Properties of a NodeExecutionListRequest. + * Properties of a PluginOverride. * @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 + * @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 NodeExecutionListRequest. + * Constructs a new PluginOverride. * @memberof flyteidl.admin - * @classdesc Represents a NodeExecutionListRequest. - * @implements INodeExecutionListRequest + * @classdesc Represents a PluginOverride. + * @implements IPluginOverride * @constructor - * @param {flyteidl.admin.INodeExecutionListRequest=} [properties] Properties to set + * @param {flyteidl.admin.IPluginOverride=} [properties] Properties to set */ - function NodeExecutionListRequest(properties) { + function PluginOverride(properties) { + this.pluginId = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31867,127 +31376,91 @@ } /** - * 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 + * PluginOverride taskType. + * @member {string} taskType + * @memberof flyteidl.admin.PluginOverride * @instance */ - NodeExecutionListRequest.prototype.filters = ""; + PluginOverride.prototype.taskType = ""; /** - * NodeExecutionListRequest sortBy. - * @member {flyteidl.admin.ISort|null|undefined} sortBy - * @memberof flyteidl.admin.NodeExecutionListRequest + * PluginOverride pluginId. + * @member {Array.} pluginId + * @memberof flyteidl.admin.PluginOverride * @instance */ - NodeExecutionListRequest.prototype.sortBy = null; + PluginOverride.prototype.pluginId = $util.emptyArray; /** - * NodeExecutionListRequest uniqueParentId. - * @member {string} uniqueParentId - * @memberof flyteidl.admin.NodeExecutionListRequest + * PluginOverride missingPluginBehavior. + * @member {flyteidl.admin.PluginOverride.MissingPluginBehavior} missingPluginBehavior + * @memberof flyteidl.admin.PluginOverride * @instance */ - NodeExecutionListRequest.prototype.uniqueParentId = ""; + PluginOverride.prototype.missingPluginBehavior = 0; /** - * Creates a new NodeExecutionListRequest instance using the specified properties. + * Creates a new PluginOverride instance using the specified properties. * @function create - * @memberof flyteidl.admin.NodeExecutionListRequest + * @memberof flyteidl.admin.PluginOverride * @static - * @param {flyteidl.admin.INodeExecutionListRequest=} [properties] Properties to set - * @returns {flyteidl.admin.NodeExecutionListRequest} NodeExecutionListRequest instance + * @param {flyteidl.admin.IPluginOverride=} [properties] Properties to set + * @returns {flyteidl.admin.PluginOverride} PluginOverride instance */ - NodeExecutionListRequest.create = function create(properties) { - return new NodeExecutionListRequest(properties); + PluginOverride.create = function create(properties) { + return new PluginOverride(properties); }; /** - * Encodes the specified NodeExecutionListRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionListRequest.verify|verify} messages. + * Encodes the specified PluginOverride message. Does not implicitly {@link flyteidl.admin.PluginOverride.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.NodeExecutionListRequest + * @memberof flyteidl.admin.PluginOverride * @static - * @param {flyteidl.admin.INodeExecutionListRequest} message NodeExecutionListRequest message or plain object to encode + * @param {flyteidl.admin.IPluginOverride} message PluginOverride message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeExecutionListRequest.encode = function encode(message, writer) { + PluginOverride.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); + 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 NodeExecutionListRequest message from the specified reader or buffer. + * Decodes a PluginOverride message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.NodeExecutionListRequest + * @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.NodeExecutionListRequest} NodeExecutionListRequest + * @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 */ - NodeExecutionListRequest.decode = function decode(reader, length) { + 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.NodeExecutionListRequest(); + 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.workflowExecutionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + message.taskType = reader.string(); break; case 2: - message.limit = reader.uint32(); - break; - case 3: - message.token = reader.string(); + if (!(message.pluginId && message.pluginId.length)) + message.pluginId = []; + message.pluginId.push(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(); + message.missingPluginBehavior = reader.int32(); break; default: reader.skipType(tag & 7); @@ -31998,66 +31471,73 @@ }; /** - * Verifies a NodeExecutionListRequest message. + * Verifies a PluginOverride message. * @function verify - * @memberof flyteidl.admin.NodeExecutionListRequest + * @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 */ - NodeExecutionListRequest.verify = function verify(message) { + PluginOverride.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.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.uniqueParentId != null && message.hasOwnProperty("uniqueParentId")) - if (!$util.isString(message.uniqueParentId)) - return "uniqueParentId: string expected"; - return null; - }; - - return NodeExecutionListRequest; - })(); - - admin.NodeExecutionForTaskListRequest = (function() { + if (message.missingPluginBehavior != null && message.hasOwnProperty("missingPluginBehavior")) + switch (message.missingPluginBehavior) { + default: + return "missingPluginBehavior: enum value expected"; + case 0: + case 1: + break; + } + return null; + }; /** - * Properties of a NodeExecutionForTaskListRequest. + * 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 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 + * @interface IPluginOverrides + * @property {Array.|null} [overrides] PluginOverrides overrides */ /** - * Constructs a new NodeExecutionForTaskListRequest. + * Constructs a new PluginOverrides. * @memberof flyteidl.admin - * @classdesc Represents a NodeExecutionForTaskListRequest. - * @implements INodeExecutionForTaskListRequest + * @classdesc Represents a PluginOverrides. + * @implements IPluginOverrides * @constructor - * @param {flyteidl.admin.INodeExecutionForTaskListRequest=} [properties] Properties to set + * @param {flyteidl.admin.IPluginOverrides=} [properties] Properties to set */ - function NodeExecutionForTaskListRequest(properties) { + function PluginOverrides(properties) { + this.overrides = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -32065,114 +31545,65 @@ } /** - * 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 + * PluginOverrides overrides. + * @member {Array.} overrides + * @memberof flyteidl.admin.PluginOverrides * @instance */ - NodeExecutionForTaskListRequest.prototype.sortBy = null; + PluginOverrides.prototype.overrides = $util.emptyArray; /** - * Creates a new NodeExecutionForTaskListRequest instance using the specified properties. + * Creates a new PluginOverrides instance using the specified properties. * @function create - * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @memberof flyteidl.admin.PluginOverrides * @static - * @param {flyteidl.admin.INodeExecutionForTaskListRequest=} [properties] Properties to set - * @returns {flyteidl.admin.NodeExecutionForTaskListRequest} NodeExecutionForTaskListRequest instance + * @param {flyteidl.admin.IPluginOverrides=} [properties] Properties to set + * @returns {flyteidl.admin.PluginOverrides} PluginOverrides instance */ - NodeExecutionForTaskListRequest.create = function create(properties) { - return new NodeExecutionForTaskListRequest(properties); + PluginOverrides.create = function create(properties) { + return new PluginOverrides(properties); }; /** - * Encodes the specified NodeExecutionForTaskListRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionForTaskListRequest.verify|verify} messages. + * Encodes the specified PluginOverrides message. Does not implicitly {@link flyteidl.admin.PluginOverrides.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @memberof flyteidl.admin.PluginOverrides * @static - * @param {flyteidl.admin.INodeExecutionForTaskListRequest} message NodeExecutionForTaskListRequest message or plain object to encode + * @param {flyteidl.admin.IPluginOverrides} message PluginOverrides message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeExecutionForTaskListRequest.encode = function encode(message, writer) { + PluginOverrides.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(); + 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 NodeExecutionForTaskListRequest message from the specified reader or buffer. + * Decodes a PluginOverrides message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @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.NodeExecutionForTaskListRequest} NodeExecutionForTaskListRequest + * @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 */ - NodeExecutionForTaskListRequest.decode = function decode(reader, length) { + 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.NodeExecutionForTaskListRequest(); + 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: - 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()); + 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); @@ -32183,62 +31614,56 @@ }; /** - * Verifies a NodeExecutionForTaskListRequest message. + * Verifies a PluginOverrides message. * @function verify - * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @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 */ - NodeExecutionForTaskListRequest.verify = function verify(message) { + PluginOverrides.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; + 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 NodeExecutionForTaskListRequest; + return PluginOverrides; })(); - admin.NodeExecution = (function() { + admin.WorkflowExecutionConfig = (function() { /** - * Properties of a NodeExecution. + * Properties of a WorkflowExecutionConfig. * @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 + * @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 NodeExecution. + * Constructs a new WorkflowExecutionConfig. * @memberof flyteidl.admin - * @classdesc Represents a NodeExecution. - * @implements INodeExecution + * @classdesc Represents a WorkflowExecutionConfig. + * @implements IWorkflowExecutionConfig * @constructor - * @param {flyteidl.admin.INodeExecution=} [properties] Properties to set + * @param {flyteidl.admin.IWorkflowExecutionConfig=} [properties] Properties to set */ - function NodeExecution(properties) { + function WorkflowExecutionConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -32246,101 +31671,153 @@ } /** - * NodeExecution id. - * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.NodeExecution + * WorkflowExecutionConfig maxParallelism. + * @member {number} maxParallelism + * @memberof flyteidl.admin.WorkflowExecutionConfig * @instance */ - NodeExecution.prototype.id = null; + WorkflowExecutionConfig.prototype.maxParallelism = 0; /** - * NodeExecution inputUri. - * @member {string} inputUri - * @memberof flyteidl.admin.NodeExecution + * WorkflowExecutionConfig securityContext. + * @member {flyteidl.core.ISecurityContext|null|undefined} securityContext + * @memberof flyteidl.admin.WorkflowExecutionConfig * @instance */ - NodeExecution.prototype.inputUri = ""; + WorkflowExecutionConfig.prototype.securityContext = null; /** - * NodeExecution closure. - * @member {flyteidl.admin.INodeExecutionClosure|null|undefined} closure - * @memberof flyteidl.admin.NodeExecution + * WorkflowExecutionConfig rawOutputDataConfig. + * @member {flyteidl.admin.IRawOutputDataConfig|null|undefined} rawOutputDataConfig + * @memberof flyteidl.admin.WorkflowExecutionConfig * @instance */ - NodeExecution.prototype.closure = null; + WorkflowExecutionConfig.prototype.rawOutputDataConfig = null; /** - * NodeExecution metadata. - * @member {flyteidl.admin.INodeExecutionMetaData|null|undefined} metadata - * @memberof flyteidl.admin.NodeExecution + * WorkflowExecutionConfig labels. + * @member {flyteidl.admin.ILabels|null|undefined} labels + * @memberof flyteidl.admin.WorkflowExecutionConfig * @instance */ - NodeExecution.prototype.metadata = null; + WorkflowExecutionConfig.prototype.labels = 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 + * WorkflowExecutionConfig annotations. + * @member {flyteidl.admin.IAnnotations|null|undefined} annotations + * @memberof flyteidl.admin.WorkflowExecutionConfig + * @instance */ - NodeExecution.create = function create(properties) { - return new NodeExecution(properties); - }; + WorkflowExecutionConfig.prototype.annotations = null; /** - * Encodes the specified NodeExecution message. Does not implicitly {@link flyteidl.admin.NodeExecution.verify|verify} messages. + * 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.NodeExecution + * @memberof flyteidl.admin.WorkflowExecutionConfig * @static - * @param {flyteidl.admin.INodeExecution} message NodeExecution message or plain object to encode + * @param {flyteidl.admin.IWorkflowExecutionConfig} message WorkflowExecutionConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeExecution.encode = function encode(message, writer) { + WorkflowExecutionConfig.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(); + 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 NodeExecution message from the specified reader or buffer. + * Decodes a WorkflowExecutionConfig message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.NodeExecution + * @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.NodeExecution} NodeExecution + * @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 */ - NodeExecution.decode = function decode(reader, length) { + 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.NodeExecution(); + 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.id = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + message.maxParallelism = reader.int32(); break; case 2: - message.inputUri = reader.string(); + message.securityContext = $root.flyteidl.core.SecurityContext.decode(reader, reader.uint32()); break; case 3: - message.closure = $root.flyteidl.admin.NodeExecutionClosure.decode(reader, reader.uint32()); + message.rawOutputDataConfig = $root.flyteidl.admin.RawOutputDataConfig.decode(reader, reader.uint32()); break; case 4: - message.metadata = $root.flyteidl.admin.NodeExecutionMetaData.decode(reader, reader.uint32()); + 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); @@ -32351,61 +31828,83 @@ }; /** - * Verifies a NodeExecution message. + * Verifies a WorkflowExecutionConfig message. * @function verify - * @memberof flyteidl.admin.NodeExecution + * @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 */ - NodeExecution.verify = function verify(message) { + WorkflowExecutionConfig.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 (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 "id." + error; + return "securityContext." + 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 (message.rawOutputDataConfig != null && message.hasOwnProperty("rawOutputDataConfig")) { + var error = $root.flyteidl.admin.RawOutputDataConfig.verify(message.rawOutputDataConfig); if (error) - return "closure." + error; + return "rawOutputDataConfig." + error; } - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.admin.NodeExecutionMetaData.verify(message.metadata); + if (message.labels != null && message.hasOwnProperty("labels")) { + var error = $root.flyteidl.admin.Labels.verify(message.labels); if (error) - return "metadata." + 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 NodeExecution; + return WorkflowExecutionConfig; })(); - admin.NodeExecutionMetaData = (function() { + admin.MatchingAttributes = (function() { /** - * Properties of a NodeExecutionMetaData. + * Properties of a MatchingAttributes. * @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 + * @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 NodeExecutionMetaData. + * Constructs a new MatchingAttributes. * @memberof flyteidl.admin - * @classdesc Represents a NodeExecutionMetaData. - * @implements INodeExecutionMetaData + * @classdesc Represents a MatchingAttributes. + * @implements IMatchingAttributes * @constructor - * @param {flyteidl.admin.INodeExecutionMetaData=} [properties] Properties to set + * @param {flyteidl.admin.IMatchingAttributes=} [properties] Properties to set */ - function NodeExecutionMetaData(properties) { + function MatchingAttributes(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -32413,238 +31912,167 @@ } /** - * NodeExecutionMetaData retryGroup. - * @member {string} retryGroup - * @memberof flyteidl.admin.NodeExecutionMetaData + * MatchingAttributes taskResourceAttributes. + * @member {flyteidl.admin.ITaskResourceAttributes|null|undefined} taskResourceAttributes + * @memberof flyteidl.admin.MatchingAttributes * @instance */ - NodeExecutionMetaData.prototype.retryGroup = ""; + MatchingAttributes.prototype.taskResourceAttributes = null; /** - * NodeExecutionMetaData isParentNode. - * @member {boolean} isParentNode - * @memberof flyteidl.admin.NodeExecutionMetaData + * MatchingAttributes clusterResourceAttributes. + * @member {flyteidl.admin.IClusterResourceAttributes|null|undefined} clusterResourceAttributes + * @memberof flyteidl.admin.MatchingAttributes * @instance */ - NodeExecutionMetaData.prototype.isParentNode = false; + MatchingAttributes.prototype.clusterResourceAttributes = null; /** - * NodeExecutionMetaData specNodeId. - * @member {string} specNodeId - * @memberof flyteidl.admin.NodeExecutionMetaData + * MatchingAttributes executionQueueAttributes. + * @member {flyteidl.admin.IExecutionQueueAttributes|null|undefined} executionQueueAttributes + * @memberof flyteidl.admin.MatchingAttributes * @instance */ - NodeExecutionMetaData.prototype.specNodeId = ""; + MatchingAttributes.prototype.executionQueueAttributes = null; /** - * NodeExecutionMetaData isDynamic. - * @member {boolean} isDynamic - * @memberof flyteidl.admin.NodeExecutionMetaData + * MatchingAttributes executionClusterLabel. + * @member {flyteidl.admin.IExecutionClusterLabel|null|undefined} executionClusterLabel + * @memberof flyteidl.admin.MatchingAttributes * @instance */ - NodeExecutionMetaData.prototype.isDynamic = false; + MatchingAttributes.prototype.executionClusterLabel = null; /** - * 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 + * MatchingAttributes qualityOfService. + * @member {flyteidl.core.IQualityOfService|null|undefined} qualityOfService + * @memberof flyteidl.admin.MatchingAttributes + * @instance */ - NodeExecutionMetaData.create = function create(properties) { - return new NodeExecutionMetaData(properties); - }; + MatchingAttributes.prototype.qualityOfService = null; /** - * 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 + * MatchingAttributes pluginOverrides. + * @member {flyteidl.admin.IPluginOverrides|null|undefined} pluginOverrides + * @memberof flyteidl.admin.MatchingAttributes + * @instance */ - 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); - return writer; - }; + MatchingAttributes.prototype.pluginOverrides = null; /** - * 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; - 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"; - 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 + * MatchingAttributes workflowExecutionConfig. + * @member {flyteidl.admin.IWorkflowExecutionConfig|null|undefined} workflowExecutionConfig + * @memberof flyteidl.admin.MatchingAttributes + * @instance */ - 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]]; - } + MatchingAttributes.prototype.workflowExecutionConfig = null; /** - * NodeExecutionList nodeExecutions. - * @member {Array.} nodeExecutions - * @memberof flyteidl.admin.NodeExecutionList + * MatchingAttributes clusterAssignment. + * @member {flyteidl.admin.IClusterAssignment|null|undefined} clusterAssignment + * @memberof flyteidl.admin.MatchingAttributes * @instance */ - NodeExecutionList.prototype.nodeExecutions = $util.emptyArray; + MatchingAttributes.prototype.clusterAssignment = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * NodeExecutionList token. - * @member {string} token - * @memberof flyteidl.admin.NodeExecutionList + * MatchingAttributes target. + * @member {"taskResourceAttributes"|"clusterResourceAttributes"|"executionQueueAttributes"|"executionClusterLabel"|"qualityOfService"|"pluginOverrides"|"workflowExecutionConfig"|"clusterAssignment"|undefined} target + * @memberof flyteidl.admin.MatchingAttributes * @instance */ - NodeExecutionList.prototype.token = ""; + Object.defineProperty(MatchingAttributes.prototype, "target", { + get: $util.oneOfGetter($oneOfFields = ["taskResourceAttributes", "clusterResourceAttributes", "executionQueueAttributes", "executionClusterLabel", "qualityOfService", "pluginOverrides", "workflowExecutionConfig", "clusterAssignment"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new NodeExecutionList instance using the specified properties. + * Creates a new MatchingAttributes instance using the specified properties. * @function create - * @memberof flyteidl.admin.NodeExecutionList + * @memberof flyteidl.admin.MatchingAttributes * @static - * @param {flyteidl.admin.INodeExecutionList=} [properties] Properties to set - * @returns {flyteidl.admin.NodeExecutionList} NodeExecutionList instance + * @param {flyteidl.admin.IMatchingAttributes=} [properties] Properties to set + * @returns {flyteidl.admin.MatchingAttributes} MatchingAttributes instance */ - NodeExecutionList.create = function create(properties) { - return new NodeExecutionList(properties); + MatchingAttributes.create = function create(properties) { + return new MatchingAttributes(properties); }; /** - * Encodes the specified NodeExecutionList message. Does not implicitly {@link flyteidl.admin.NodeExecutionList.verify|verify} messages. + * Encodes the specified MatchingAttributes message. Does not implicitly {@link flyteidl.admin.MatchingAttributes.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.NodeExecutionList + * @memberof flyteidl.admin.MatchingAttributes * @static - * @param {flyteidl.admin.INodeExecutionList} message NodeExecutionList message or plain object to encode + * @param {flyteidl.admin.IMatchingAttributes} message MatchingAttributes message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeExecutionList.encode = function encode(message, writer) { + MatchingAttributes.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); + 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 NodeExecutionList message from the specified reader or buffer. + * Decodes a MatchingAttributes message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.NodeExecutionList + * @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.NodeExecutionList} NodeExecutionList + * @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 */ - NodeExecutionList.decode = function decode(reader, length) { + 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.NodeExecutionList(); + 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: - if (!(message.nodeExecutions && message.nodeExecutions.length)) - message.nodeExecutions = []; - message.nodeExecutions.push($root.flyteidl.admin.NodeExecution.decode(reader, reader.uint32())); + message.taskResourceAttributes = $root.flyteidl.admin.TaskResourceAttributes.decode(reader, reader.uint32()); break; case 2: - message.token = reader.string(); + 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); @@ -32655,294 +32083,238 @@ }; /** - * Verifies a NodeExecutionList message. + * Verifies a MatchingAttributes message. * @function verify - * @memberof flyteidl.admin.NodeExecutionList + * @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 */ - NodeExecutionList.verify = function verify(message) { + MatchingAttributes.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]); + var properties = {}; + if (message.taskResourceAttributes != null && message.hasOwnProperty("taskResourceAttributes")) { + properties.target = 1; + { + var error = $root.flyteidl.admin.TaskResourceAttributes.verify(message.taskResourceAttributes); if (error) - return "nodeExecutions." + error; + return "taskResourceAttributes." + 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; + 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; + }; - /** - * NodeExecutionClosure duration. - * @member {google.protobuf.IDuration|null|undefined} duration - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance - */ - NodeExecutionClosure.prototype.duration = null; + return MatchingAttributes; + })(); - /** - * NodeExecutionClosure createdAt. - * @member {google.protobuf.ITimestamp|null|undefined} createdAt - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance - */ - NodeExecutionClosure.prototype.createdAt = null; + admin.MatchableAttributesConfiguration = (function() { /** - * NodeExecutionClosure updatedAt. - * @member {google.protobuf.ITimestamp|null|undefined} updatedAt - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance + * 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 */ - NodeExecutionClosure.prototype.updatedAt = null; /** - * NodeExecutionClosure workflowNodeMetadata. - * @member {flyteidl.admin.IWorkflowNodeMetadata|null|undefined} workflowNodeMetadata - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance + * Constructs a new MatchableAttributesConfiguration. + * @memberof flyteidl.admin + * @classdesc Represents a MatchableAttributesConfiguration. + * @implements IMatchableAttributesConfiguration + * @constructor + * @param {flyteidl.admin.IMatchableAttributesConfiguration=} [properties] Properties to set */ - NodeExecutionClosure.prototype.workflowNodeMetadata = null; + 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]]; + } /** - * NodeExecutionClosure taskNodeMetadata. - * @member {flyteidl.admin.ITaskNodeMetadata|null|undefined} taskNodeMetadata - * @memberof flyteidl.admin.NodeExecutionClosure + * MatchableAttributesConfiguration attributes. + * @member {flyteidl.admin.IMatchingAttributes|null|undefined} attributes + * @memberof flyteidl.admin.MatchableAttributesConfiguration * @instance */ - NodeExecutionClosure.prototype.taskNodeMetadata = null; + MatchableAttributesConfiguration.prototype.attributes = null; /** - * NodeExecutionClosure deckUri. - * @member {string} deckUri - * @memberof flyteidl.admin.NodeExecutionClosure + * MatchableAttributesConfiguration domain. + * @member {string} domain + * @memberof flyteidl.admin.MatchableAttributesConfiguration * @instance */ - NodeExecutionClosure.prototype.deckUri = ""; + MatchableAttributesConfiguration.prototype.domain = ""; /** - * NodeExecutionClosure dynamicJobSpecUri. - * @member {string} dynamicJobSpecUri - * @memberof flyteidl.admin.NodeExecutionClosure + * MatchableAttributesConfiguration project. + * @member {string} project + * @memberof flyteidl.admin.MatchableAttributesConfiguration * @instance */ - NodeExecutionClosure.prototype.dynamicJobSpecUri = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + MatchableAttributesConfiguration.prototype.project = ""; /** - * NodeExecutionClosure outputResult. - * @member {"outputUri"|"error"|"outputData"|undefined} outputResult - * @memberof flyteidl.admin.NodeExecutionClosure + * MatchableAttributesConfiguration workflow. + * @member {string} workflow + * @memberof flyteidl.admin.MatchableAttributesConfiguration * @instance */ - Object.defineProperty(NodeExecutionClosure.prototype, "outputResult", { - get: $util.oneOfGetter($oneOfFields = ["outputUri", "error", "outputData"]), - set: $util.oneOfSetter($oneOfFields) - }); + MatchableAttributesConfiguration.prototype.workflow = ""; /** - * NodeExecutionClosure targetMetadata. - * @member {"workflowNodeMetadata"|"taskNodeMetadata"|undefined} targetMetadata - * @memberof flyteidl.admin.NodeExecutionClosure + * MatchableAttributesConfiguration launchPlan. + * @member {string} launchPlan + * @memberof flyteidl.admin.MatchableAttributesConfiguration * @instance */ - Object.defineProperty(NodeExecutionClosure.prototype, "targetMetadata", { - get: $util.oneOfGetter($oneOfFields = ["workflowNodeMetadata", "taskNodeMetadata"]), - set: $util.oneOfSetter($oneOfFields) - }); + MatchableAttributesConfiguration.prototype.launchPlan = ""; /** - * Creates a new NodeExecutionClosure instance using the specified properties. + * Creates a new MatchableAttributesConfiguration instance using the specified properties. * @function create - * @memberof flyteidl.admin.NodeExecutionClosure + * @memberof flyteidl.admin.MatchableAttributesConfiguration * @static - * @param {flyteidl.admin.INodeExecutionClosure=} [properties] Properties to set - * @returns {flyteidl.admin.NodeExecutionClosure} NodeExecutionClosure instance + * @param {flyteidl.admin.IMatchableAttributesConfiguration=} [properties] Properties to set + * @returns {flyteidl.admin.MatchableAttributesConfiguration} MatchableAttributesConfiguration instance */ - NodeExecutionClosure.create = function create(properties) { - return new NodeExecutionClosure(properties); + MatchableAttributesConfiguration.create = function create(properties) { + return new MatchableAttributesConfiguration(properties); }; /** - * Encodes the specified NodeExecutionClosure message. Does not implicitly {@link flyteidl.admin.NodeExecutionClosure.verify|verify} messages. + * Encodes the specified MatchableAttributesConfiguration message. Does not implicitly {@link flyteidl.admin.MatchableAttributesConfiguration.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.NodeExecutionClosure + * @memberof flyteidl.admin.MatchableAttributesConfiguration * @static - * @param {flyteidl.admin.INodeExecutionClosure} message NodeExecutionClosure message or plain object to encode + * @param {flyteidl.admin.IMatchableAttributesConfiguration} message MatchableAttributesConfiguration message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeExecutionClosure.encode = function encode(message, writer) { + MatchableAttributesConfiguration.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); + 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); return writer; }; /** - * Decodes a NodeExecutionClosure message from the specified reader or buffer. + * Decodes a MatchableAttributesConfiguration message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.NodeExecutionClosure + * @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.NodeExecutionClosure} NodeExecutionClosure + * @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 */ - NodeExecutionClosure.decode = function decode(reader, length) { + 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.NodeExecutionClosure(); + 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.outputUri = reader.string(); + message.attributes = $root.flyteidl.admin.MatchingAttributes.decode(reader, reader.uint32()); 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()); + message.domain = reader.string(); break; case 3: - message.phase = reader.int32(); + message.project = reader.string(); break; case 4: - message.startedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.workflow = reader.string(); 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(); + message.launchPlan = reader.string(); break; default: reader.skipType(tag & 7); @@ -32953,127 +32325,57 @@ }; /** - * Verifies a NodeExecutionClosure message. + * Verifies a MatchableAttributesConfiguration message. * @function verify - * @memberof flyteidl.admin.NodeExecutionClosure + * @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 */ - NodeExecutionClosure.verify = function verify(message) { + MatchableAttributesConfiguration.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 (message.attributes != null && message.hasOwnProperty("attributes")) { + var error = $root.flyteidl.admin.MatchingAttributes.verify(message.attributes); 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; - } + return "attributes." + 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"; + 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"; return null; }; - return NodeExecutionClosure; + return MatchableAttributesConfiguration; })(); - admin.WorkflowNodeMetadata = (function() { + admin.ListMatchableAttributesRequest = (function() { /** - * Properties of a WorkflowNodeMetadata. + * Properties of a ListMatchableAttributesRequest. * @memberof flyteidl.admin - * @interface IWorkflowNodeMetadata - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [executionId] WorkflowNodeMetadata executionId + * @interface IListMatchableAttributesRequest + * @property {flyteidl.admin.MatchableResource|null} [resourceType] ListMatchableAttributesRequest resourceType */ /** - * Constructs a new WorkflowNodeMetadata. + * Constructs a new ListMatchableAttributesRequest. * @memberof flyteidl.admin - * @classdesc Represents a WorkflowNodeMetadata. - * @implements IWorkflowNodeMetadata + * @classdesc Represents a ListMatchableAttributesRequest. + * @implements IListMatchableAttributesRequest * @constructor - * @param {flyteidl.admin.IWorkflowNodeMetadata=} [properties] Properties to set + * @param {flyteidl.admin.IListMatchableAttributesRequest=} [properties] Properties to set */ - function WorkflowNodeMetadata(properties) { + function ListMatchableAttributesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33081,62 +32383,62 @@ } /** - * WorkflowNodeMetadata executionId. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} executionId - * @memberof flyteidl.admin.WorkflowNodeMetadata + * ListMatchableAttributesRequest resourceType. + * @member {flyteidl.admin.MatchableResource} resourceType + * @memberof flyteidl.admin.ListMatchableAttributesRequest * @instance */ - WorkflowNodeMetadata.prototype.executionId = null; + ListMatchableAttributesRequest.prototype.resourceType = 0; /** - * Creates a new WorkflowNodeMetadata instance using the specified properties. + * Creates a new ListMatchableAttributesRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.WorkflowNodeMetadata + * @memberof flyteidl.admin.ListMatchableAttributesRequest * @static - * @param {flyteidl.admin.IWorkflowNodeMetadata=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowNodeMetadata} WorkflowNodeMetadata instance + * @param {flyteidl.admin.IListMatchableAttributesRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ListMatchableAttributesRequest} ListMatchableAttributesRequest instance */ - WorkflowNodeMetadata.create = function create(properties) { - return new WorkflowNodeMetadata(properties); + ListMatchableAttributesRequest.create = function create(properties) { + return new ListMatchableAttributesRequest(properties); }; /** - * Encodes the specified WorkflowNodeMetadata message. Does not implicitly {@link flyteidl.admin.WorkflowNodeMetadata.verify|verify} messages. + * Encodes the specified ListMatchableAttributesRequest message. Does not implicitly {@link flyteidl.admin.ListMatchableAttributesRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.WorkflowNodeMetadata + * @memberof flyteidl.admin.ListMatchableAttributesRequest * @static - * @param {flyteidl.admin.IWorkflowNodeMetadata} message WorkflowNodeMetadata message or plain object to encode + * @param {flyteidl.admin.IListMatchableAttributesRequest} message ListMatchableAttributesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkflowNodeMetadata.encode = function encode(message, writer) { + ListMatchableAttributesRequest.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.resourceType != null && message.hasOwnProperty("resourceType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); return writer; }; /** - * Decodes a WorkflowNodeMetadata message from the specified reader or buffer. + * Decodes a ListMatchableAttributesRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.WorkflowNodeMetadata + * @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.WorkflowNodeMetadata} WorkflowNodeMetadata + * @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 */ - WorkflowNodeMetadata.decode = function decode(reader, length) { + 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.WorkflowNodeMetadata(); + 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.executionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + message.resourceType = reader.int32(); break; default: reader.skipType(tag & 7); @@ -33147,47 +32449,55 @@ }; /** - * Verifies a WorkflowNodeMetadata message. + * Verifies a ListMatchableAttributesRequest message. * @function verify - * @memberof flyteidl.admin.WorkflowNodeMetadata + * @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 */ - WorkflowNodeMetadata.verify = function verify(message) { + ListMatchableAttributesRequest.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.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; + } return null; }; - return WorkflowNodeMetadata; + return ListMatchableAttributesRequest; })(); - admin.TaskNodeMetadata = (function() { + admin.ListMatchableAttributesResponse = (function() { /** - * Properties of a TaskNodeMetadata. + * Properties of a ListMatchableAttributesResponse. * @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 + * @interface IListMatchableAttributesResponse + * @property {Array.|null} [configurations] ListMatchableAttributesResponse configurations */ /** - * Constructs a new TaskNodeMetadata. + * Constructs a new ListMatchableAttributesResponse. * @memberof flyteidl.admin - * @classdesc Represents a TaskNodeMetadata. - * @implements ITaskNodeMetadata + * @classdesc Represents a ListMatchableAttributesResponse. + * @implements IListMatchableAttributesResponse * @constructor - * @param {flyteidl.admin.ITaskNodeMetadata=} [properties] Properties to set + * @param {flyteidl.admin.IListMatchableAttributesResponse=} [properties] Properties to set */ - function TaskNodeMetadata(properties) { + function ListMatchableAttributesResponse(properties) { + this.configurations = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33195,88 +32505,65 @@ } /** - * 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 + * ListMatchableAttributesResponse configurations. + * @member {Array.} configurations + * @memberof flyteidl.admin.ListMatchableAttributesResponse * @instance */ - TaskNodeMetadata.prototype.checkpointUri = ""; + ListMatchableAttributesResponse.prototype.configurations = $util.emptyArray; /** - * Creates a new TaskNodeMetadata instance using the specified properties. + * Creates a new ListMatchableAttributesResponse instance using the specified properties. * @function create - * @memberof flyteidl.admin.TaskNodeMetadata + * @memberof flyteidl.admin.ListMatchableAttributesResponse * @static - * @param {flyteidl.admin.ITaskNodeMetadata=} [properties] Properties to set - * @returns {flyteidl.admin.TaskNodeMetadata} TaskNodeMetadata instance + * @param {flyteidl.admin.IListMatchableAttributesResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ListMatchableAttributesResponse} ListMatchableAttributesResponse instance */ - TaskNodeMetadata.create = function create(properties) { - return new TaskNodeMetadata(properties); + ListMatchableAttributesResponse.create = function create(properties) { + return new ListMatchableAttributesResponse(properties); }; /** - * Encodes the specified TaskNodeMetadata message. Does not implicitly {@link flyteidl.admin.TaskNodeMetadata.verify|verify} messages. + * Encodes the specified ListMatchableAttributesResponse message. Does not implicitly {@link flyteidl.admin.ListMatchableAttributesResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.TaskNodeMetadata + * @memberof flyteidl.admin.ListMatchableAttributesResponse * @static - * @param {flyteidl.admin.ITaskNodeMetadata} message TaskNodeMetadata message or plain object to encode + * @param {flyteidl.admin.IListMatchableAttributesResponse} message ListMatchableAttributesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskNodeMetadata.encode = function encode(message, writer) { + ListMatchableAttributesResponse.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); + 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 TaskNodeMetadata message from the specified reader or buffer. + * Decodes a ListMatchableAttributesResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.TaskNodeMetadata + * @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.TaskNodeMetadata} TaskNodeMetadata + * @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 */ - TaskNodeMetadata.decode = function decode(reader, length) { + 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.TaskNodeMetadata(); + 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: - message.cacheStatus = reader.int32(); - break; - case 2: - message.catalogKey = $root.flyteidl.core.CatalogMetadata.decode(reader, reader.uint32()); - break; - case 4: - message.checkpointUri = reader.string(); + 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); @@ -33287,63 +32574,49 @@ }; /** - * Verifies a TaskNodeMetadata message. + * Verifies a ListMatchableAttributesResponse message. * @function verify - * @memberof flyteidl.admin.TaskNodeMetadata + * @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 */ - TaskNodeMetadata.verify = function verify(message) { + ListMatchableAttributesResponse.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: - break; + 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; } - 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; + return ListMatchableAttributesResponse; })(); - admin.DynamicWorkflowNodeMetadata = (function() { + admin.NodeExecutionGetRequest = (function() { /** - * Properties of a DynamicWorkflowNodeMetadata. + * Properties of a NodeExecutionGetRequest. * @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 + * @interface INodeExecutionGetRequest + * @property {flyteidl.core.INodeExecutionIdentifier|null} [id] NodeExecutionGetRequest id */ /** - * Constructs a new DynamicWorkflowNodeMetadata. + * Constructs a new NodeExecutionGetRequest. * @memberof flyteidl.admin - * @classdesc Represents a DynamicWorkflowNodeMetadata. - * @implements IDynamicWorkflowNodeMetadata + * @classdesc Represents a NodeExecutionGetRequest. + * @implements INodeExecutionGetRequest * @constructor - * @param {flyteidl.admin.IDynamicWorkflowNodeMetadata=} [properties] Properties to set + * @param {flyteidl.admin.INodeExecutionGetRequest=} [properties] Properties to set */ - function DynamicWorkflowNodeMetadata(properties) { + function NodeExecutionGetRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33351,88 +32624,62 @@ } /** - * 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 + * NodeExecutionGetRequest id. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.NodeExecutionGetRequest * @instance */ - DynamicWorkflowNodeMetadata.prototype.dynamicJobSpecUri = ""; + NodeExecutionGetRequest.prototype.id = null; /** - * Creates a new DynamicWorkflowNodeMetadata instance using the specified properties. + * Creates a new NodeExecutionGetRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata + * @memberof flyteidl.admin.NodeExecutionGetRequest * @static - * @param {flyteidl.admin.IDynamicWorkflowNodeMetadata=} [properties] Properties to set - * @returns {flyteidl.admin.DynamicWorkflowNodeMetadata} DynamicWorkflowNodeMetadata instance + * @param {flyteidl.admin.INodeExecutionGetRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionGetRequest} NodeExecutionGetRequest instance */ - DynamicWorkflowNodeMetadata.create = function create(properties) { - return new DynamicWorkflowNodeMetadata(properties); + NodeExecutionGetRequest.create = function create(properties) { + return new NodeExecutionGetRequest(properties); }; /** - * Encodes the specified DynamicWorkflowNodeMetadata message. Does not implicitly {@link flyteidl.admin.DynamicWorkflowNodeMetadata.verify|verify} messages. + * Encodes the specified NodeExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata + * @memberof flyteidl.admin.NodeExecutionGetRequest * @static - * @param {flyteidl.admin.IDynamicWorkflowNodeMetadata} message DynamicWorkflowNodeMetadata message or plain object to encode + * @param {flyteidl.admin.INodeExecutionGetRequest} message NodeExecutionGetRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DynamicWorkflowNodeMetadata.encode = function encode(message, writer) { + NodeExecutionGetRequest.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); + $root.flyteidl.core.NodeExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Decodes a DynamicWorkflowNodeMetadata message from the specified reader or buffer. + * Decodes a NodeExecutionGetRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata + * @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.DynamicWorkflowNodeMetadata} DynamicWorkflowNodeMetadata + * @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 */ - DynamicWorkflowNodeMetadata.decode = function decode(reader, length) { + 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.DynamicWorkflowNodeMetadata(); + 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.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(); + message.id = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -33443,53 +32690,50 @@ }; /** - * Verifies a DynamicWorkflowNodeMetadata message. + * Verifies a NodeExecutionGetRequest message. * @function verify - * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata + * @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 */ - DynamicWorkflowNodeMetadata.verify = function verify(message) { + 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.Identifier.verify(message.id); + var error = $root.flyteidl.core.NodeExecutionIdentifier.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; + return NodeExecutionGetRequest; })(); - admin.NodeExecutionGetDataRequest = (function() { + admin.NodeExecutionListRequest = (function() { /** - * Properties of a NodeExecutionGetDataRequest. + * Properties of a NodeExecutionListRequest. * @memberof flyteidl.admin - * @interface INodeExecutionGetDataRequest - * @property {flyteidl.core.INodeExecutionIdentifier|null} [id] NodeExecutionGetDataRequest id + * @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 NodeExecutionGetDataRequest. + * Constructs a new NodeExecutionListRequest. * @memberof flyteidl.admin - * @classdesc Represents a NodeExecutionGetDataRequest. - * @implements INodeExecutionGetDataRequest + * @classdesc Represents a NodeExecutionListRequest. + * @implements INodeExecutionListRequest * @constructor - * @param {flyteidl.admin.INodeExecutionGetDataRequest=} [properties] Properties to set + * @param {flyteidl.admin.INodeExecutionListRequest=} [properties] Properties to set */ - function NodeExecutionGetDataRequest(properties) { + function NodeExecutionListRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33497,62 +32741,127 @@ } /** - * NodeExecutionGetDataRequest id. - * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.NodeExecutionGetDataRequest + * NodeExecutionListRequest workflowExecutionId. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} workflowExecutionId + * @memberof flyteidl.admin.NodeExecutionListRequest * @instance */ - NodeExecutionGetDataRequest.prototype.id = null; + NodeExecutionListRequest.prototype.workflowExecutionId = 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 + * NodeExecutionListRequest limit. + * @member {number} limit + * @memberof flyteidl.admin.NodeExecutionListRequest + * @instance */ - NodeExecutionGetDataRequest.create = function create(properties) { - return new NodeExecutionGetDataRequest(properties); - }; + NodeExecutionListRequest.prototype.limit = 0; /** - * Encodes the specified NodeExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetDataRequest.verify|verify} messages. + * 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.NodeExecutionGetDataRequest + * @memberof flyteidl.admin.NodeExecutionListRequest * @static - * @param {flyteidl.admin.INodeExecutionGetDataRequest} message NodeExecutionGetDataRequest message or plain object to encode + * @param {flyteidl.admin.INodeExecutionListRequest} message NodeExecutionListRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeExecutionGetDataRequest.encode = function encode(message, writer) { + NodeExecutionListRequest.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.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 NodeExecutionGetDataRequest message from the specified reader or buffer. + * Decodes a NodeExecutionListRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.NodeExecutionGetDataRequest + * @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.NodeExecutionGetDataRequest} NodeExecutionGetDataRequest + * @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 */ - NodeExecutionGetDataRequest.decode = function decode(reader, length) { + 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.NodeExecutionGetDataRequest(); + 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.id = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + 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); @@ -33563,50 +32872,66 @@ }; /** - * Verifies a NodeExecutionGetDataRequest message. + * Verifies a NodeExecutionListRequest message. * @function verify - * @memberof flyteidl.admin.NodeExecutionGetDataRequest + * @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 */ - NodeExecutionGetDataRequest.verify = function verify(message) { + NodeExecutionListRequest.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 (message.workflowExecutionId != null && message.hasOwnProperty("workflowExecutionId")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.workflowExecutionId); if (error) - return "id." + 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 NodeExecutionGetDataRequest; + return NodeExecutionListRequest; })(); - admin.NodeExecutionGetDataResponse = (function() { + admin.NodeExecutionForTaskListRequest = (function() { /** - * Properties of a NodeExecutionGetDataResponse. + * Properties of a NodeExecutionForTaskListRequest. * @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 + * @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 NodeExecutionGetDataResponse. + * Constructs a new NodeExecutionForTaskListRequest. * @memberof flyteidl.admin - * @classdesc Represents a NodeExecutionGetDataResponse. - * @implements INodeExecutionGetDataResponse + * @classdesc Represents a NodeExecutionForTaskListRequest. + * @implements INodeExecutionForTaskListRequest * @constructor - * @param {flyteidl.admin.INodeExecutionGetDataResponse=} [properties] Properties to set + * @param {flyteidl.admin.INodeExecutionForTaskListRequest=} [properties] Properties to set */ - function NodeExecutionGetDataResponse(properties) { + function NodeExecutionForTaskListRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33614,127 +32939,114 @@ } /** - * 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 + * NodeExecutionForTaskListRequest taskExecutionId. + * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} taskExecutionId + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest * @instance */ - NodeExecutionGetDataResponse.prototype.outputs = null; + NodeExecutionForTaskListRequest.prototype.taskExecutionId = null; /** - * NodeExecutionGetDataResponse fullInputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} fullInputs - * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * NodeExecutionForTaskListRequest limit. + * @member {number} limit + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest * @instance */ - NodeExecutionGetDataResponse.prototype.fullInputs = null; + NodeExecutionForTaskListRequest.prototype.limit = 0; /** - * NodeExecutionGetDataResponse fullOutputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} fullOutputs - * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * NodeExecutionForTaskListRequest token. + * @member {string} token + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest * @instance */ - NodeExecutionGetDataResponse.prototype.fullOutputs = null; + NodeExecutionForTaskListRequest.prototype.token = ""; /** - * NodeExecutionGetDataResponse dynamicWorkflow. - * @member {flyteidl.admin.IDynamicWorkflowNodeMetadata|null|undefined} dynamicWorkflow - * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * NodeExecutionForTaskListRequest filters. + * @member {string} filters + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest * @instance */ - NodeExecutionGetDataResponse.prototype.dynamicWorkflow = null; + NodeExecutionForTaskListRequest.prototype.filters = ""; /** - * NodeExecutionGetDataResponse flyteUrls. - * @member {flyteidl.admin.IFlyteURLs|null|undefined} flyteUrls - * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * NodeExecutionForTaskListRequest sortBy. + * @member {flyteidl.admin.ISort|null|undefined} sortBy + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest * @instance */ - NodeExecutionGetDataResponse.prototype.flyteUrls = null; + NodeExecutionForTaskListRequest.prototype.sortBy = null; /** - * Creates a new NodeExecutionGetDataResponse instance using the specified properties. + * Creates a new NodeExecutionForTaskListRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest * @static - * @param {flyteidl.admin.INodeExecutionGetDataResponse=} [properties] Properties to set - * @returns {flyteidl.admin.NodeExecutionGetDataResponse} NodeExecutionGetDataResponse instance + * @param {flyteidl.admin.INodeExecutionForTaskListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionForTaskListRequest} NodeExecutionForTaskListRequest instance */ - NodeExecutionGetDataResponse.create = function create(properties) { - return new NodeExecutionGetDataResponse(properties); + NodeExecutionForTaskListRequest.create = function create(properties) { + return new NodeExecutionForTaskListRequest(properties); }; /** - * Encodes the specified NodeExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetDataResponse.verify|verify} messages. + * Encodes the specified NodeExecutionForTaskListRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionForTaskListRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest * @static - * @param {flyteidl.admin.INodeExecutionGetDataResponse} message NodeExecutionGetDataResponse message or plain object to encode + * @param {flyteidl.admin.INodeExecutionForTaskListRequest} message NodeExecutionForTaskListRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeExecutionGetDataResponse.encode = function encode(message, writer) { + NodeExecutionForTaskListRequest.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(); + 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 NodeExecutionGetDataResponse message from the specified reader or buffer. + * Decodes a NodeExecutionForTaskListRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * @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.NodeExecutionGetDataResponse} NodeExecutionGetDataResponse + * @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 */ - NodeExecutionGetDataResponse.decode = function decode(reader, length) { + 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.NodeExecutionGetDataResponse(); + 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.inputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); + message.taskExecutionId = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); break; case 2: - message.outputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); + message.limit = reader.uint32(); break; case 3: - message.fullInputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + message.token = reader.string(); 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()); + message.filters = reader.string(); break; - case 17: - message.flyteUrls = $root.flyteidl.admin.FlyteURLs.decode(reader, reader.uint32()); + case 5: + message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -33745,74 +33057,62 @@ }; /** - * Verifies a NodeExecutionGetDataResponse message. + * Verifies a NodeExecutionForTaskListRequest message. * @function verify - * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * @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 */ - NodeExecutionGetDataResponse.verify = function verify(message) { + NodeExecutionForTaskListRequest.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 (message.taskExecutionId != null && message.hasOwnProperty("taskExecutionId")) { + var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.taskExecutionId); if (error) - return "dynamicWorkflow." + error; + return "taskExecutionId." + error; } - if (message.flyteUrls != null && message.hasOwnProperty("flyteUrls")) { - var error = $root.flyteidl.admin.FlyteURLs.verify(message.flyteUrls); + 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 "flyteUrls." + error; + return "sortBy." + error; } return null; }; - return NodeExecutionGetDataResponse; + return NodeExecutionForTaskListRequest; })(); - admin.EmailMessage = (function() { + admin.NodeExecution = (function() { /** - * Properties of an EmailMessage. + * Properties of a NodeExecution. * @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 + * @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 EmailMessage. + * Constructs a new NodeExecution. * @memberof flyteidl.admin - * @classdesc Represents an EmailMessage. - * @implements IEmailMessage + * @classdesc Represents a NodeExecution. + * @implements INodeExecution * @constructor - * @param {flyteidl.admin.IEmailMessage=} [properties] Properties to set + * @param {flyteidl.admin.INodeExecution=} [properties] Properties to set */ - function EmailMessage(properties) { - this.recipientsEmail = []; + function NodeExecution(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33820,104 +33120,101 @@ } /** - * EmailMessage recipientsEmail. - * @member {Array.} recipientsEmail - * @memberof flyteidl.admin.EmailMessage + * NodeExecution id. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.NodeExecution * @instance */ - EmailMessage.prototype.recipientsEmail = $util.emptyArray; + NodeExecution.prototype.id = null; /** - * EmailMessage senderEmail. - * @member {string} senderEmail - * @memberof flyteidl.admin.EmailMessage + * NodeExecution inputUri. + * @member {string} inputUri + * @memberof flyteidl.admin.NodeExecution * @instance */ - EmailMessage.prototype.senderEmail = ""; + NodeExecution.prototype.inputUri = ""; /** - * EmailMessage subjectLine. - * @member {string} subjectLine - * @memberof flyteidl.admin.EmailMessage + * NodeExecution closure. + * @member {flyteidl.admin.INodeExecutionClosure|null|undefined} closure + * @memberof flyteidl.admin.NodeExecution * @instance */ - EmailMessage.prototype.subjectLine = ""; + NodeExecution.prototype.closure = null; /** - * EmailMessage body. - * @member {string} body - * @memberof flyteidl.admin.EmailMessage + * NodeExecution metadata. + * @member {flyteidl.admin.INodeExecutionMetaData|null|undefined} metadata + * @memberof flyteidl.admin.NodeExecution * @instance */ - EmailMessage.prototype.body = ""; + NodeExecution.prototype.metadata = null; /** - * Creates a new EmailMessage instance using the specified properties. + * Creates a new NodeExecution instance using the specified properties. * @function create - * @memberof flyteidl.admin.EmailMessage + * @memberof flyteidl.admin.NodeExecution * @static - * @param {flyteidl.admin.IEmailMessage=} [properties] Properties to set - * @returns {flyteidl.admin.EmailMessage} EmailMessage instance + * @param {flyteidl.admin.INodeExecution=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecution} NodeExecution instance */ - EmailMessage.create = function create(properties) { - return new EmailMessage(properties); + NodeExecution.create = function create(properties) { + return new NodeExecution(properties); }; /** - * Encodes the specified EmailMessage message. Does not implicitly {@link flyteidl.admin.EmailMessage.verify|verify} messages. + * Encodes the specified NodeExecution message. Does not implicitly {@link flyteidl.admin.NodeExecution.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.EmailMessage + * @memberof flyteidl.admin.NodeExecution * @static - * @param {flyteidl.admin.IEmailMessage} message EmailMessage message or plain object to encode + * @param {flyteidl.admin.INodeExecution} message NodeExecution message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EmailMessage.encode = function encode(message, writer) { + NodeExecution.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); + 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 an EmailMessage message from the specified reader or buffer. + * Decodes a NodeExecution message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.EmailMessage + * @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.EmailMessage} EmailMessage + * @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 */ - EmailMessage.decode = function decode(reader, length) { + 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.EmailMessage(); + 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: - if (!(message.recipientsEmail && message.recipientsEmail.length)) - message.recipientsEmail = []; - message.recipientsEmail.push(reader.string()); + message.id = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); break; case 2: - message.senderEmail = reader.string(); + message.inputUri = reader.string(); break; case 3: - message.subjectLine = reader.string(); + message.closure = $root.flyteidl.admin.NodeExecutionClosure.decode(reader, reader.uint32()); break; case 4: - message.body = reader.string(); + message.metadata = $root.flyteidl.admin.NodeExecutionMetaData.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -33928,57 +33225,61 @@ }; /** - * Verifies an EmailMessage message. + * Verifies a NodeExecution message. * @function verify - * @memberof flyteidl.admin.EmailMessage + * @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 */ - EmailMessage.verify = function verify(message) { + NodeExecution.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.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; } - 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; + return NodeExecution; })(); - admin.Domain = (function() { + admin.NodeExecutionMetaData = (function() { /** - * Properties of a Domain. + * Properties of a NodeExecutionMetaData. * @memberof flyteidl.admin - * @interface IDomain - * @property {string|null} [id] Domain id - * @property {string|null} [name] Domain name + * @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 */ /** - * Constructs a new Domain. + * Constructs a new NodeExecutionMetaData. * @memberof flyteidl.admin - * @classdesc Represents a Domain. - * @implements IDomain + * @classdesc Represents a NodeExecutionMetaData. + * @implements INodeExecutionMetaData * @constructor - * @param {flyteidl.admin.IDomain=} [properties] Properties to set + * @param {flyteidl.admin.INodeExecutionMetaData=} [properties] Properties to set */ - function Domain(properties) { + function NodeExecutionMetaData(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33986,75 +33287,101 @@ } /** - * Domain id. - * @member {string} id - * @memberof flyteidl.admin.Domain + * NodeExecutionMetaData retryGroup. + * @member {string} retryGroup + * @memberof flyteidl.admin.NodeExecutionMetaData * @instance */ - Domain.prototype.id = ""; + NodeExecutionMetaData.prototype.retryGroup = ""; /** - * Domain name. - * @member {string} name - * @memberof flyteidl.admin.Domain + * NodeExecutionMetaData isParentNode. + * @member {boolean} isParentNode + * @memberof flyteidl.admin.NodeExecutionMetaData * @instance */ - Domain.prototype.name = ""; + NodeExecutionMetaData.prototype.isParentNode = false; /** - * 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 + * NodeExecutionMetaData specNodeId. + * @member {string} specNodeId + * @memberof flyteidl.admin.NodeExecutionMetaData + * @instance */ - Domain.create = function create(properties) { - return new Domain(properties); + NodeExecutionMetaData.prototype.specNodeId = ""; + + /** + * NodeExecutionMetaData isDynamic. + * @member {boolean} isDynamic + * @memberof flyteidl.admin.NodeExecutionMetaData + * @instance + */ + NodeExecutionMetaData.prototype.isDynamic = 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 Domain message. Does not implicitly {@link flyteidl.admin.Domain.verify|verify} messages. + * Encodes the specified NodeExecutionMetaData message. Does not implicitly {@link flyteidl.admin.NodeExecutionMetaData.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.Domain + * @memberof flyteidl.admin.NodeExecutionMetaData * @static - * @param {flyteidl.admin.IDomain} message Domain message or plain object to encode + * @param {flyteidl.admin.INodeExecutionMetaData} message NodeExecutionMetaData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Domain.encode = function encode(message, writer) { + NodeExecutionMetaData.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.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); return writer; }; /** - * Decodes a Domain message from the specified reader or buffer. + * Decodes a NodeExecutionMetaData message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.Domain + * @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.Domain} Domain + * @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 */ - Domain.decode = function decode(reader, length) { + 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.Domain(); + 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.id = reader.string(); + message.retryGroup = reader.string(); break; case 2: - message.name = reader.string(); + message.isParentNode = reader.bool(); + break; + case 3: + message.specNodeId = reader.string(); + break; + case 4: + message.isDynamic = reader.bool(); break; default: reader.skipType(tag & 7); @@ -34065,52 +33392,54 @@ }; /** - * Verifies a Domain message. + * Verifies a NodeExecutionMetaData message. * @function verify - * @memberof flyteidl.admin.Domain + * @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 */ - Domain.verify = function verify(message) { + NodeExecutionMetaData.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.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"; return null; }; - return Domain; + return NodeExecutionMetaData; })(); - admin.Project = (function() { + admin.NodeExecutionList = (function() { /** - * Properties of a Project. + * Properties of a NodeExecutionList. * @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 + * @interface INodeExecutionList + * @property {Array.|null} [nodeExecutions] NodeExecutionList nodeExecutions + * @property {string|null} [token] NodeExecutionList token */ /** - * Constructs a new Project. + * Constructs a new NodeExecutionList. * @memberof flyteidl.admin - * @classdesc Represents a Project. - * @implements IProject + * @classdesc Represents a NodeExecutionList. + * @implements INodeExecutionList * @constructor - * @param {flyteidl.admin.IProject=} [properties] Properties to set + * @param {flyteidl.admin.INodeExecutionList=} [properties] Properties to set */ - function Project(properties) { - this.domains = []; + function NodeExecutionList(properties) { + this.nodeExecutions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34118,130 +33447,78 @@ } /** - * 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 + * NodeExecutionList nodeExecutions. + * @member {Array.} nodeExecutions + * @memberof flyteidl.admin.NodeExecutionList * @instance */ - Project.prototype.labels = null; + NodeExecutionList.prototype.nodeExecutions = $util.emptyArray; /** - * Project state. - * @member {flyteidl.admin.Project.ProjectState} state - * @memberof flyteidl.admin.Project + * NodeExecutionList token. + * @member {string} token + * @memberof flyteidl.admin.NodeExecutionList * @instance */ - Project.prototype.state = 0; + NodeExecutionList.prototype.token = ""; /** - * Creates a new Project instance using the specified properties. + * Creates a new NodeExecutionList instance using the specified properties. * @function create - * @memberof flyteidl.admin.Project + * @memberof flyteidl.admin.NodeExecutionList * @static - * @param {flyteidl.admin.IProject=} [properties] Properties to set - * @returns {flyteidl.admin.Project} Project instance + * @param {flyteidl.admin.INodeExecutionList=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionList} NodeExecutionList instance */ - Project.create = function create(properties) { - return new Project(properties); + NodeExecutionList.create = function create(properties) { + return new NodeExecutionList(properties); }; /** - * Encodes the specified Project message. Does not implicitly {@link flyteidl.admin.Project.verify|verify} messages. + * Encodes the specified NodeExecutionList message. Does not implicitly {@link flyteidl.admin.NodeExecutionList.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.Project + * @memberof flyteidl.admin.NodeExecutionList * @static - * @param {flyteidl.admin.IProject} message Project message or plain object to encode + * @param {flyteidl.admin.INodeExecutionList} message NodeExecutionList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Project.encode = function encode(message, writer) { + NodeExecutionList.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.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 Project message from the specified reader or buffer. + * Decodes a NodeExecutionList message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.Project + * @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.Project} Project + * @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 */ - Project.decode = function decode(reader, length) { + 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.Project(); + 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: - message.id = reader.string(); + if (!(message.nodeExecutions && message.nodeExecutions.length)) + message.nodeExecutions = []; + message.nodeExecutions.push($root.flyteidl.admin.NodeExecution.decode(reader, reader.uint32())); 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(); + message.token = reader.string(); break; default: reader.skipType(tag & 7); @@ -34252,90 +33529,63 @@ }; /** - * Verifies a Project message. + * Verifies a NodeExecutionList message. * @function verify - * @memberof flyteidl.admin.Project + * @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 */ - Project.verify = function verify(message) { + NodeExecutionList.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.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; }; - /** - * 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; + return NodeExecutionList; })(); - admin.Projects = (function() { + admin.NodeExecutionClosure = (function() { /** - * Properties of a Projects. + * Properties of a NodeExecutionClosure. * @memberof flyteidl.admin - * @interface IProjects - * @property {Array.|null} [projects] Projects projects - * @property {string|null} [token] Projects token + * @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 Projects. + * Constructs a new NodeExecutionClosure. * @memberof flyteidl.admin - * @classdesc Represents a Projects. - * @implements IProjects + * @classdesc Represents a NodeExecutionClosure. + * @implements INodeExecutionClosure * @constructor - * @param {flyteidl.admin.IProjects=} [properties] Properties to set + * @param {flyteidl.admin.INodeExecutionClosure=} [properties] Properties to set */ - function Projects(properties) { - this.projects = []; + function NodeExecutionClosure(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34343,239 +33593,230 @@ } /** - * Projects projects. - * @member {Array.} projects - * @memberof flyteidl.admin.Projects + * NodeExecutionClosure outputUri. + * @member {string} outputUri + * @memberof flyteidl.admin.NodeExecutionClosure * @instance */ - Projects.prototype.projects = $util.emptyArray; + NodeExecutionClosure.prototype.outputUri = ""; /** - * Projects token. - * @member {string} token - * @memberof flyteidl.admin.Projects + * NodeExecutionClosure error. + * @member {flyteidl.core.IExecutionError|null|undefined} error + * @memberof flyteidl.admin.NodeExecutionClosure * @instance */ - Projects.prototype.token = ""; + NodeExecutionClosure.prototype.error = null; /** - * 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 + * NodeExecutionClosure outputData. + * @member {flyteidl.core.ILiteralMap|null|undefined} outputData + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance */ - Projects.create = function create(properties) { - return new Projects(properties); - }; + NodeExecutionClosure.prototype.outputData = null; /** - * 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 + * NodeExecutionClosure phase. + * @member {flyteidl.core.NodeExecution.Phase} phase + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance */ - 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; - }; + NodeExecutionClosure.prototype.phase = 0; /** - * 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 + * NodeExecutionClosure startedAt. + * @member {google.protobuf.ITimestamp|null|undefined} startedAt + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance */ - 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; - }; + NodeExecutionClosure.prototype.startedAt = null; /** - * 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 + * NodeExecutionClosure duration. + * @member {google.protobuf.IDuration|null|undefined} duration + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance */ - 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() { + NodeExecutionClosure.prototype.duration = null; /** - * 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 + * NodeExecutionClosure createdAt. + * @member {google.protobuf.ITimestamp|null|undefined} createdAt + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance */ + NodeExecutionClosure.prototype.createdAt = null; /** - * Constructs a new ProjectListRequest. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectListRequest. - * @implements IProjectListRequest - * @constructor - * @param {flyteidl.admin.IProjectListRequest=} [properties] Properties to set + * NodeExecutionClosure updatedAt. + * @member {google.protobuf.ITimestamp|null|undefined} updatedAt + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance */ - 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]]; - } + NodeExecutionClosure.prototype.updatedAt = null; /** - * ProjectListRequest limit. - * @member {number} limit - * @memberof flyteidl.admin.ProjectListRequest + * NodeExecutionClosure workflowNodeMetadata. + * @member {flyteidl.admin.IWorkflowNodeMetadata|null|undefined} workflowNodeMetadata + * @memberof flyteidl.admin.NodeExecutionClosure * @instance */ - ProjectListRequest.prototype.limit = 0; + NodeExecutionClosure.prototype.workflowNodeMetadata = null; /** - * ProjectListRequest token. - * @member {string} token - * @memberof flyteidl.admin.ProjectListRequest + * NodeExecutionClosure taskNodeMetadata. + * @member {flyteidl.admin.ITaskNodeMetadata|null|undefined} taskNodeMetadata + * @memberof flyteidl.admin.NodeExecutionClosure * @instance */ - ProjectListRequest.prototype.token = ""; + NodeExecutionClosure.prototype.taskNodeMetadata = null; /** - * ProjectListRequest filters. - * @member {string} filters - * @memberof flyteidl.admin.ProjectListRequest + * NodeExecutionClosure deckUri. + * @member {string} deckUri + * @memberof flyteidl.admin.NodeExecutionClosure * @instance */ - ProjectListRequest.prototype.filters = ""; + NodeExecutionClosure.prototype.deckUri = ""; /** - * ProjectListRequest sortBy. - * @member {flyteidl.admin.ISort|null|undefined} sortBy - * @memberof flyteidl.admin.ProjectListRequest + * NodeExecutionClosure dynamicJobSpecUri. + * @member {string} dynamicJobSpecUri + * @memberof flyteidl.admin.NodeExecutionClosure * @instance */ - ProjectListRequest.prototype.sortBy = null; + NodeExecutionClosure.prototype.dynamicJobSpecUri = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Creates a new ProjectListRequest instance using the specified properties. + * 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.ProjectListRequest + * @memberof flyteidl.admin.NodeExecutionClosure * @static - * @param {flyteidl.admin.IProjectListRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectListRequest} ProjectListRequest instance + * @param {flyteidl.admin.INodeExecutionClosure=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionClosure} NodeExecutionClosure instance */ - ProjectListRequest.create = function create(properties) { - return new ProjectListRequest(properties); + NodeExecutionClosure.create = function create(properties) { + return new NodeExecutionClosure(properties); }; /** - * Encodes the specified ProjectListRequest message. Does not implicitly {@link flyteidl.admin.ProjectListRequest.verify|verify} messages. + * Encodes the specified NodeExecutionClosure message. Does not implicitly {@link flyteidl.admin.NodeExecutionClosure.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ProjectListRequest + * @memberof flyteidl.admin.NodeExecutionClosure * @static - * @param {flyteidl.admin.IProjectListRequest} message ProjectListRequest message or plain object to encode + * @param {flyteidl.admin.INodeExecutionClosure} message NodeExecutionClosure message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProjectListRequest.encode = function encode(message, writer) { + NodeExecutionClosure.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.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 ProjectListRequest message from the specified reader or buffer. + * Decodes a NodeExecutionClosure message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ProjectListRequest + * @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.ProjectListRequest} ProjectListRequest + * @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 */ - ProjectListRequest.decode = function decode(reader, length) { + 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.ProjectListRequest(); + 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.limit = reader.uint32(); + message.outputUri = reader.string(); break; case 2: - message.token = reader.string(); + 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.filters = reader.string(); + message.phase = reader.int32(); break; case 4: - message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); + 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); @@ -34586,54 +33827,127 @@ }; /** - * Verifies a ProjectListRequest message. + * Verifies a NodeExecutionClosure message. * @function verify - * @memberof flyteidl.admin.ProjectListRequest + * @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 */ - ProjectListRequest.verify = function verify(message) { + NodeExecutionClosure.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); + 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 "sortBy." + 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 ProjectListRequest; + return NodeExecutionClosure; })(); - admin.ProjectRegisterRequest = (function() { + admin.WorkflowNodeMetadata = (function() { /** - * Properties of a ProjectRegisterRequest. + * Properties of a WorkflowNodeMetadata. * @memberof flyteidl.admin - * @interface IProjectRegisterRequest - * @property {flyteidl.admin.IProject|null} [project] ProjectRegisterRequest project + * @interface IWorkflowNodeMetadata + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [executionId] WorkflowNodeMetadata executionId */ /** - * Constructs a new ProjectRegisterRequest. + * Constructs a new WorkflowNodeMetadata. * @memberof flyteidl.admin - * @classdesc Represents a ProjectRegisterRequest. - * @implements IProjectRegisterRequest + * @classdesc Represents a WorkflowNodeMetadata. + * @implements IWorkflowNodeMetadata * @constructor - * @param {flyteidl.admin.IProjectRegisterRequest=} [properties] Properties to set + * @param {flyteidl.admin.IWorkflowNodeMetadata=} [properties] Properties to set */ - function ProjectRegisterRequest(properties) { + function WorkflowNodeMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34641,62 +33955,62 @@ } /** - * ProjectRegisterRequest project. - * @member {flyteidl.admin.IProject|null|undefined} project - * @memberof flyteidl.admin.ProjectRegisterRequest + * WorkflowNodeMetadata executionId. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} executionId + * @memberof flyteidl.admin.WorkflowNodeMetadata * @instance */ - ProjectRegisterRequest.prototype.project = null; + WorkflowNodeMetadata.prototype.executionId = null; /** - * Creates a new ProjectRegisterRequest instance using the specified properties. + * Creates a new WorkflowNodeMetadata instance using the specified properties. * @function create - * @memberof flyteidl.admin.ProjectRegisterRequest + * @memberof flyteidl.admin.WorkflowNodeMetadata * @static - * @param {flyteidl.admin.IProjectRegisterRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectRegisterRequest} ProjectRegisterRequest instance + * @param {flyteidl.admin.IWorkflowNodeMetadata=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowNodeMetadata} WorkflowNodeMetadata instance */ - ProjectRegisterRequest.create = function create(properties) { - return new ProjectRegisterRequest(properties); + WorkflowNodeMetadata.create = function create(properties) { + return new WorkflowNodeMetadata(properties); }; /** - * Encodes the specified ProjectRegisterRequest message. Does not implicitly {@link flyteidl.admin.ProjectRegisterRequest.verify|verify} messages. + * Encodes the specified WorkflowNodeMetadata message. Does not implicitly {@link flyteidl.admin.WorkflowNodeMetadata.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ProjectRegisterRequest + * @memberof flyteidl.admin.WorkflowNodeMetadata * @static - * @param {flyteidl.admin.IProjectRegisterRequest} message ProjectRegisterRequest message or plain object to encode + * @param {flyteidl.admin.IWorkflowNodeMetadata} message WorkflowNodeMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProjectRegisterRequest.encode = function encode(message, writer) { + WorkflowNodeMetadata.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(); + 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 ProjectRegisterRequest message from the specified reader or buffer. + * Decodes a WorkflowNodeMetadata message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ProjectRegisterRequest + * @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.ProjectRegisterRequest} ProjectRegisterRequest + * @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 */ - ProjectRegisterRequest.decode = function decode(reader, length) { + 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.ProjectRegisterRequest(); + 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.project = $root.flyteidl.admin.Project.decode(reader, reader.uint32()); + message.executionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -34707,44 +34021,47 @@ }; /** - * Verifies a ProjectRegisterRequest message. + * Verifies a WorkflowNodeMetadata message. * @function verify - * @memberof flyteidl.admin.ProjectRegisterRequest + * @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 */ - ProjectRegisterRequest.verify = function verify(message) { + WorkflowNodeMetadata.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 (message.executionId != null && message.hasOwnProperty("executionId")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.executionId); if (error) - return "project." + error; + return "executionId." + error; } return null; }; - return ProjectRegisterRequest; + return WorkflowNodeMetadata; })(); - admin.ProjectRegisterResponse = (function() { + admin.TaskNodeMetadata = (function() { /** - * Properties of a ProjectRegisterResponse. + * Properties of a TaskNodeMetadata. * @memberof flyteidl.admin - * @interface IProjectRegisterResponse + * @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 ProjectRegisterResponse. + * Constructs a new TaskNodeMetadata. * @memberof flyteidl.admin - * @classdesc Represents a ProjectRegisterResponse. - * @implements IProjectRegisterResponse + * @classdesc Represents a TaskNodeMetadata. + * @implements ITaskNodeMetadata * @constructor - * @param {flyteidl.admin.IProjectRegisterResponse=} [properties] Properties to set + * @param {flyteidl.admin.ITaskNodeMetadata=} [properties] Properties to set */ - function ProjectRegisterResponse(properties) { + function TaskNodeMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34752,50 +34069,89 @@ } /** - * Creates a new ProjectRegisterResponse instance using the specified properties. + * 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.ProjectRegisterResponse + * @memberof flyteidl.admin.TaskNodeMetadata * @static - * @param {flyteidl.admin.IProjectRegisterResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectRegisterResponse} ProjectRegisterResponse instance + * @param {flyteidl.admin.ITaskNodeMetadata=} [properties] Properties to set + * @returns {flyteidl.admin.TaskNodeMetadata} TaskNodeMetadata instance */ - ProjectRegisterResponse.create = function create(properties) { - return new ProjectRegisterResponse(properties); + TaskNodeMetadata.create = function create(properties) { + return new TaskNodeMetadata(properties); }; /** - * Encodes the specified ProjectRegisterResponse message. Does not implicitly {@link flyteidl.admin.ProjectRegisterResponse.verify|verify} messages. + * Encodes the specified TaskNodeMetadata message. Does not implicitly {@link flyteidl.admin.TaskNodeMetadata.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ProjectRegisterResponse + * @memberof flyteidl.admin.TaskNodeMetadata * @static - * @param {flyteidl.admin.IProjectRegisterResponse} message ProjectRegisterResponse message or plain object to encode + * @param {flyteidl.admin.ITaskNodeMetadata} message TaskNodeMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProjectRegisterResponse.encode = function encode(message, 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 ProjectRegisterResponse message from the specified reader or buffer. + * Decodes a TaskNodeMetadata message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ProjectRegisterResponse + * @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.ProjectRegisterResponse} ProjectRegisterResponse + * @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 */ - ProjectRegisterResponse.decode = function decode(reader, length) { + 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.ProjectRegisterResponse(); + 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; @@ -34805,39 +34161,63 @@ }; /** - * Verifies a ProjectRegisterResponse message. + * Verifies a TaskNodeMetadata message. * @function verify - * @memberof flyteidl.admin.ProjectRegisterResponse + * @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 */ - ProjectRegisterResponse.verify = function verify(message) { + 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: + 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 ProjectRegisterResponse; + return TaskNodeMetadata; })(); - admin.ProjectUpdateResponse = (function() { + admin.DynamicWorkflowNodeMetadata = (function() { /** - * Properties of a ProjectUpdateResponse. + * Properties of a DynamicWorkflowNodeMetadata. * @memberof flyteidl.admin - * @interface IProjectUpdateResponse + * @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 ProjectUpdateResponse. + * Constructs a new DynamicWorkflowNodeMetadata. * @memberof flyteidl.admin - * @classdesc Represents a ProjectUpdateResponse. - * @implements IProjectUpdateResponse + * @classdesc Represents a DynamicWorkflowNodeMetadata. + * @implements IDynamicWorkflowNodeMetadata * @constructor - * @param {flyteidl.admin.IProjectUpdateResponse=} [properties] Properties to set + * @param {flyteidl.admin.IDynamicWorkflowNodeMetadata=} [properties] Properties to set */ - function ProjectUpdateResponse(properties) { + function DynamicWorkflowNodeMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34845,50 +34225,89 @@ } /** - * Creates a new ProjectUpdateResponse instance using the specified properties. + * 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.ProjectUpdateResponse + * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata * @static - * @param {flyteidl.admin.IProjectUpdateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectUpdateResponse} ProjectUpdateResponse instance + * @param {flyteidl.admin.IDynamicWorkflowNodeMetadata=} [properties] Properties to set + * @returns {flyteidl.admin.DynamicWorkflowNodeMetadata} DynamicWorkflowNodeMetadata instance */ - ProjectUpdateResponse.create = function create(properties) { - return new ProjectUpdateResponse(properties); + DynamicWorkflowNodeMetadata.create = function create(properties) { + return new DynamicWorkflowNodeMetadata(properties); }; /** - * Encodes the specified ProjectUpdateResponse message. Does not implicitly {@link flyteidl.admin.ProjectUpdateResponse.verify|verify} messages. + * Encodes the specified DynamicWorkflowNodeMetadata message. Does not implicitly {@link flyteidl.admin.DynamicWorkflowNodeMetadata.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ProjectUpdateResponse + * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata * @static - * @param {flyteidl.admin.IProjectUpdateResponse} message ProjectUpdateResponse message or plain object to encode + * @param {flyteidl.admin.IDynamicWorkflowNodeMetadata} message DynamicWorkflowNodeMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProjectUpdateResponse.encode = function encode(message, 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 ProjectUpdateResponse message from the specified reader or buffer. + * Decodes a DynamicWorkflowNodeMetadata message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ProjectUpdateResponse + * @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.ProjectUpdateResponse} ProjectUpdateResponse + * @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 */ - ProjectUpdateResponse.decode = function decode(reader, length) { + 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.ProjectUpdateResponse(); + 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; @@ -34898,41 +34317,53 @@ }; /** - * Verifies a ProjectUpdateResponse message. + * Verifies a DynamicWorkflowNodeMetadata message. * @function verify - * @memberof flyteidl.admin.ProjectUpdateResponse + * @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 */ - ProjectUpdateResponse.verify = function verify(message) { + 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 ProjectUpdateResponse; + return DynamicWorkflowNodeMetadata; })(); - admin.ProjectAttributes = (function() { + admin.NodeExecutionGetDataRequest = (function() { /** - * Properties of a ProjectAttributes. + * Properties of a NodeExecutionGetDataRequest. * @memberof flyteidl.admin - * @interface IProjectAttributes - * @property {string|null} [project] ProjectAttributes project - * @property {flyteidl.admin.IMatchingAttributes|null} [matchingAttributes] ProjectAttributes matchingAttributes + * @interface INodeExecutionGetDataRequest + * @property {flyteidl.core.INodeExecutionIdentifier|null} [id] NodeExecutionGetDataRequest id */ /** - * Constructs a new ProjectAttributes. + * Constructs a new NodeExecutionGetDataRequest. * @memberof flyteidl.admin - * @classdesc Represents a ProjectAttributes. - * @implements IProjectAttributes + * @classdesc Represents a NodeExecutionGetDataRequest. + * @implements INodeExecutionGetDataRequest * @constructor - * @param {flyteidl.admin.IProjectAttributes=} [properties] Properties to set + * @param {flyteidl.admin.INodeExecutionGetDataRequest=} [properties] Properties to set */ - function ProjectAttributes(properties) { + function NodeExecutionGetDataRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34940,75 +34371,62 @@ } /** - * 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 + * NodeExecutionGetDataRequest id. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.NodeExecutionGetDataRequest * @instance */ - ProjectAttributes.prototype.matchingAttributes = null; + NodeExecutionGetDataRequest.prototype.id = null; /** - * Creates a new ProjectAttributes instance using the specified properties. + * Creates a new NodeExecutionGetDataRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.ProjectAttributes + * @memberof flyteidl.admin.NodeExecutionGetDataRequest * @static - * @param {flyteidl.admin.IProjectAttributes=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectAttributes} ProjectAttributes instance + * @param {flyteidl.admin.INodeExecutionGetDataRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionGetDataRequest} NodeExecutionGetDataRequest instance */ - ProjectAttributes.create = function create(properties) { - return new ProjectAttributes(properties); + NodeExecutionGetDataRequest.create = function create(properties) { + return new NodeExecutionGetDataRequest(properties); }; /** - * Encodes the specified ProjectAttributes message. Does not implicitly {@link flyteidl.admin.ProjectAttributes.verify|verify} messages. + * Encodes the specified NodeExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetDataRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ProjectAttributes + * @memberof flyteidl.admin.NodeExecutionGetDataRequest * @static - * @param {flyteidl.admin.IProjectAttributes} message ProjectAttributes message or plain object to encode + * @param {flyteidl.admin.INodeExecutionGetDataRequest} message NodeExecutionGetDataRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProjectAttributes.encode = function encode(message, writer) { + NodeExecutionGetDataRequest.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.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 ProjectAttributes message from the specified reader or buffer. + * Decodes a NodeExecutionGetDataRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ProjectAttributes + * @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.ProjectAttributes} ProjectAttributes + * @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 */ - ProjectAttributes.decode = function decode(reader, length) { + 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.ProjectAttributes(); + 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.project = reader.string(); - break; - case 2: - message.matchingAttributes = $root.flyteidl.admin.MatchingAttributes.decode(reader, reader.uint32()); + message.id = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -35019,48 +34437,50 @@ }; /** - * Verifies a ProjectAttributes message. + * Verifies a NodeExecutionGetDataRequest message. * @function verify - * @memberof flyteidl.admin.ProjectAttributes + * @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 */ - ProjectAttributes.verify = function verify(message) { + NodeExecutionGetDataRequest.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 (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.id); if (error) - return "matchingAttributes." + error; + return "id." + error; } return null; }; - return ProjectAttributes; + return NodeExecutionGetDataRequest; })(); - admin.ProjectAttributesUpdateRequest = (function() { + admin.NodeExecutionGetDataResponse = (function() { /** - * Properties of a ProjectAttributesUpdateRequest. + * Properties of a NodeExecutionGetDataResponse. * @memberof flyteidl.admin - * @interface IProjectAttributesUpdateRequest - * @property {flyteidl.admin.IProjectAttributes|null} [attributes] ProjectAttributesUpdateRequest attributes + * @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 ProjectAttributesUpdateRequest. + * Constructs a new NodeExecutionGetDataResponse. * @memberof flyteidl.admin - * @classdesc Represents a ProjectAttributesUpdateRequest. - * @implements IProjectAttributesUpdateRequest + * @classdesc Represents a NodeExecutionGetDataResponse. + * @implements INodeExecutionGetDataResponse * @constructor - * @param {flyteidl.admin.IProjectAttributesUpdateRequest=} [properties] Properties to set + * @param {flyteidl.admin.INodeExecutionGetDataResponse=} [properties] Properties to set */ - function ProjectAttributesUpdateRequest(properties) { + function NodeExecutionGetDataResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35068,62 +34488,127 @@ } /** - * ProjectAttributesUpdateRequest attributes. - * @member {flyteidl.admin.IProjectAttributes|null|undefined} attributes - * @memberof flyteidl.admin.ProjectAttributesUpdateRequest + * NodeExecutionGetDataResponse inputs. + * @member {flyteidl.admin.IUrlBlob|null|undefined} inputs + * @memberof flyteidl.admin.NodeExecutionGetDataResponse * @instance */ - ProjectAttributesUpdateRequest.prototype.attributes = null; + NodeExecutionGetDataResponse.prototype.inputs = null; /** - * Creates a new ProjectAttributesUpdateRequest instance using the specified properties. + * 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.ProjectAttributesUpdateRequest + * @memberof flyteidl.admin.NodeExecutionGetDataResponse * @static - * @param {flyteidl.admin.IProjectAttributesUpdateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectAttributesUpdateRequest} ProjectAttributesUpdateRequest instance + * @param {flyteidl.admin.INodeExecutionGetDataResponse=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionGetDataResponse} NodeExecutionGetDataResponse instance */ - ProjectAttributesUpdateRequest.create = function create(properties) { - return new ProjectAttributesUpdateRequest(properties); + NodeExecutionGetDataResponse.create = function create(properties) { + return new NodeExecutionGetDataResponse(properties); }; /** - * Encodes the specified ProjectAttributesUpdateRequest message. Does not implicitly {@link flyteidl.admin.ProjectAttributesUpdateRequest.verify|verify} messages. + * Encodes the specified NodeExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetDataResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ProjectAttributesUpdateRequest + * @memberof flyteidl.admin.NodeExecutionGetDataResponse * @static - * @param {flyteidl.admin.IProjectAttributesUpdateRequest} message ProjectAttributesUpdateRequest message or plain object to encode + * @param {flyteidl.admin.INodeExecutionGetDataResponse} message NodeExecutionGetDataResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProjectAttributesUpdateRequest.encode = function encode(message, writer) { + NodeExecutionGetDataResponse.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(); + 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 ProjectAttributesUpdateRequest message from the specified reader or buffer. + * Decodes a NodeExecutionGetDataResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ProjectAttributesUpdateRequest + * @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.ProjectAttributesUpdateRequest} ProjectAttributesUpdateRequest + * @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 */ - ProjectAttributesUpdateRequest.decode = function decode(reader, length) { + 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.ProjectAttributesUpdateRequest(); + 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.attributes = $root.flyteidl.admin.ProjectAttributes.decode(reader, reader.uint32()); + 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); @@ -35134,44 +34619,74 @@ }; /** - * Verifies a ProjectAttributesUpdateRequest message. + * Verifies a NodeExecutionGetDataResponse message. * @function verify - * @memberof flyteidl.admin.ProjectAttributesUpdateRequest + * @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 */ - ProjectAttributesUpdateRequest.verify = function verify(message) { + NodeExecutionGetDataResponse.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 (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.flyteidl.admin.UrlBlob.verify(message.inputs); if (error) - return "attributes." + error; + return "inputs." + error; } - return null; - }; - - return ProjectAttributesUpdateRequest; + 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.ProjectAttributesUpdateResponse = (function() { + admin.EmailMessage = (function() { /** - * Properties of a ProjectAttributesUpdateResponse. + * Properties of an EmailMessage. * @memberof flyteidl.admin - * @interface IProjectAttributesUpdateResponse + * @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 ProjectAttributesUpdateResponse. + * Constructs a new EmailMessage. * @memberof flyteidl.admin - * @classdesc Represents a ProjectAttributesUpdateResponse. - * @implements IProjectAttributesUpdateResponse + * @classdesc Represents an EmailMessage. + * @implements IEmailMessage * @constructor - * @param {flyteidl.admin.IProjectAttributesUpdateResponse=} [properties] Properties to set + * @param {flyteidl.admin.IEmailMessage=} [properties] Properties to set */ - function ProjectAttributesUpdateResponse(properties) { + function EmailMessage(properties) { + this.recipientsEmail = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35179,50 +34694,105 @@ } /** - * Creates a new ProjectAttributesUpdateResponse instance using the specified properties. + * 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.ProjectAttributesUpdateResponse + * @memberof flyteidl.admin.EmailMessage * @static - * @param {flyteidl.admin.IProjectAttributesUpdateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectAttributesUpdateResponse} ProjectAttributesUpdateResponse instance + * @param {flyteidl.admin.IEmailMessage=} [properties] Properties to set + * @returns {flyteidl.admin.EmailMessage} EmailMessage instance */ - ProjectAttributesUpdateResponse.create = function create(properties) { - return new ProjectAttributesUpdateResponse(properties); + EmailMessage.create = function create(properties) { + return new EmailMessage(properties); }; /** - * Encodes the specified ProjectAttributesUpdateResponse message. Does not implicitly {@link flyteidl.admin.ProjectAttributesUpdateResponse.verify|verify} messages. + * Encodes the specified EmailMessage message. Does not implicitly {@link flyteidl.admin.EmailMessage.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ProjectAttributesUpdateResponse + * @memberof flyteidl.admin.EmailMessage * @static - * @param {flyteidl.admin.IProjectAttributesUpdateResponse} message ProjectAttributesUpdateResponse message or plain object to encode + * @param {flyteidl.admin.IEmailMessage} message EmailMessage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProjectAttributesUpdateResponse.encode = function encode(message, 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 a ProjectAttributesUpdateResponse message from the specified reader or buffer. + * Decodes an EmailMessage message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ProjectAttributesUpdateResponse + * @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.ProjectAttributesUpdateResponse} ProjectAttributesUpdateResponse + * @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 */ - ProjectAttributesUpdateResponse.decode = function decode(reader, length) { + 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.ProjectAttributesUpdateResponse(); + 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; @@ -35232,41 +34802,57 @@ }; /** - * Verifies a ProjectAttributesUpdateResponse message. + * Verifies an EmailMessage message. * @function verify - * @memberof flyteidl.admin.ProjectAttributesUpdateResponse + * @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 */ - ProjectAttributesUpdateResponse.verify = function verify(message) { + 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 ProjectAttributesUpdateResponse; + return EmailMessage; })(); - admin.ProjectAttributesGetRequest = (function() { + admin.Domain = (function() { /** - * Properties of a ProjectAttributesGetRequest. + * Properties of a Domain. * @memberof flyteidl.admin - * @interface IProjectAttributesGetRequest - * @property {string|null} [project] ProjectAttributesGetRequest project - * @property {flyteidl.admin.MatchableResource|null} [resourceType] ProjectAttributesGetRequest resourceType + * @interface IDomain + * @property {string|null} [id] Domain id + * @property {string|null} [name] Domain name */ /** - * Constructs a new ProjectAttributesGetRequest. + * Constructs a new Domain. * @memberof flyteidl.admin - * @classdesc Represents a ProjectAttributesGetRequest. - * @implements IProjectAttributesGetRequest + * @classdesc Represents a Domain. + * @implements IDomain * @constructor - * @param {flyteidl.admin.IProjectAttributesGetRequest=} [properties] Properties to set + * @param {flyteidl.admin.IDomain=} [properties] Properties to set */ - function ProjectAttributesGetRequest(properties) { + function Domain(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35274,75 +34860,75 @@ } /** - * ProjectAttributesGetRequest project. - * @member {string} project - * @memberof flyteidl.admin.ProjectAttributesGetRequest + * Domain id. + * @member {string} id + * @memberof flyteidl.admin.Domain * @instance */ - ProjectAttributesGetRequest.prototype.project = ""; + Domain.prototype.id = ""; /** - * ProjectAttributesGetRequest resourceType. - * @member {flyteidl.admin.MatchableResource} resourceType - * @memberof flyteidl.admin.ProjectAttributesGetRequest + * Domain name. + * @member {string} name + * @memberof flyteidl.admin.Domain * @instance */ - ProjectAttributesGetRequest.prototype.resourceType = 0; + Domain.prototype.name = ""; /** - * Creates a new ProjectAttributesGetRequest instance using the specified properties. + * Creates a new Domain instance using the specified properties. * @function create - * @memberof flyteidl.admin.ProjectAttributesGetRequest + * @memberof flyteidl.admin.Domain * @static - * @param {flyteidl.admin.IProjectAttributesGetRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectAttributesGetRequest} ProjectAttributesGetRequest instance + * @param {flyteidl.admin.IDomain=} [properties] Properties to set + * @returns {flyteidl.admin.Domain} Domain instance */ - ProjectAttributesGetRequest.create = function create(properties) { - return new ProjectAttributesGetRequest(properties); + Domain.create = function create(properties) { + return new Domain(properties); }; /** - * Encodes the specified ProjectAttributesGetRequest message. Does not implicitly {@link flyteidl.admin.ProjectAttributesGetRequest.verify|verify} messages. + * Encodes the specified Domain message. Does not implicitly {@link flyteidl.admin.Domain.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ProjectAttributesGetRequest + * @memberof flyteidl.admin.Domain * @static - * @param {flyteidl.admin.IProjectAttributesGetRequest} message ProjectAttributesGetRequest message or plain object to encode + * @param {flyteidl.admin.IDomain} message Domain message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProjectAttributesGetRequest.encode = function encode(message, writer) { + Domain.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.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 ProjectAttributesGetRequest message from the specified reader or buffer. + * Decodes a Domain message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ProjectAttributesGetRequest + * @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.ProjectAttributesGetRequest} ProjectAttributesGetRequest + * @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 */ - ProjectAttributesGetRequest.decode = function decode(reader, length) { + 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.ProjectAttributesGetRequest(); + 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.project = reader.string(); + message.id = reader.string(); break; case 2: - message.resourceType = reader.int32(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -35353,57 +34939,52 @@ }; /** - * Verifies a ProjectAttributesGetRequest message. + * Verifies a Domain message. * @function verify - * @memberof flyteidl.admin.ProjectAttributesGetRequest + * @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 */ - ProjectAttributesGetRequest.verify = function verify(message) { + Domain.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.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 ProjectAttributesGetRequest; + return Domain; })(); - admin.ProjectAttributesGetResponse = (function() { + admin.Project = (function() { /** - * Properties of a ProjectAttributesGetResponse. + * Properties of a Project. * @memberof flyteidl.admin - * @interface IProjectAttributesGetResponse - * @property {flyteidl.admin.IProjectAttributes|null} [attributes] ProjectAttributesGetResponse attributes + * @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 */ /** - * Constructs a new ProjectAttributesGetResponse. + * Constructs a new Project. * @memberof flyteidl.admin - * @classdesc Represents a ProjectAttributesGetResponse. - * @implements IProjectAttributesGetResponse + * @classdesc Represents a Project. + * @implements IProject * @constructor - * @param {flyteidl.admin.IProjectAttributesGetResponse=} [properties] Properties to set + * @param {flyteidl.admin.IProject=} [properties] Properties to set */ - function ProjectAttributesGetResponse(properties) { + function Project(properties) { + this.domains = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35411,62 +34992,130 @@ } /** - * ProjectAttributesGetResponse attributes. - * @member {flyteidl.admin.IProjectAttributes|null|undefined} attributes - * @memberof flyteidl.admin.ProjectAttributesGetResponse + * Project id. + * @member {string} id + * @memberof flyteidl.admin.Project * @instance */ - ProjectAttributesGetResponse.prototype.attributes = null; + Project.prototype.id = ""; /** - * Creates a new ProjectAttributesGetResponse instance using the specified properties. + * 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; + + /** + * Creates a new Project instance using the specified properties. * @function create - * @memberof flyteidl.admin.ProjectAttributesGetResponse + * @memberof flyteidl.admin.Project * @static - * @param {flyteidl.admin.IProjectAttributesGetResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectAttributesGetResponse} ProjectAttributesGetResponse instance + * @param {flyteidl.admin.IProject=} [properties] Properties to set + * @returns {flyteidl.admin.Project} Project instance */ - ProjectAttributesGetResponse.create = function create(properties) { - return new ProjectAttributesGetResponse(properties); + Project.create = function create(properties) { + return new Project(properties); }; /** - * Encodes the specified ProjectAttributesGetResponse message. Does not implicitly {@link flyteidl.admin.ProjectAttributesGetResponse.verify|verify} messages. + * Encodes the specified Project message. Does not implicitly {@link flyteidl.admin.Project.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ProjectAttributesGetResponse + * @memberof flyteidl.admin.Project * @static - * @param {flyteidl.admin.IProjectAttributesGetResponse} message ProjectAttributesGetResponse message or plain object to encode + * @param {flyteidl.admin.IProject} message Project message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProjectAttributesGetResponse.encode = function encode(message, writer) { + Project.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(); + 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); return writer; }; /** - * Decodes a ProjectAttributesGetResponse message from the specified reader or buffer. + * Decodes a Project message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ProjectAttributesGetResponse + * @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.ProjectAttributesGetResponse} ProjectAttributesGetResponse + * @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 */ - ProjectAttributesGetResponse.decode = function decode(reader, length) { + 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.ProjectAttributesGetResponse(); + 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.attributes = $root.flyteidl.admin.ProjectAttributes.decode(reader, reader.uint32()); + 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; default: reader.skipType(tag & 7); @@ -35477,46 +35126,90 @@ }; /** - * Verifies a ProjectAttributesGetResponse message. + * Verifies a Project message. * @function verify - * @memberof flyteidl.admin.ProjectAttributesGetResponse + * @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 */ - ProjectAttributesGetResponse.verify = function verify(message) { + Project.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 (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 "attributes." + 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; + } return null; }; - return ProjectAttributesGetResponse; + /** + * 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.ProjectAttributesDeleteRequest = (function() { + admin.Projects = (function() { /** - * Properties of a ProjectAttributesDeleteRequest. + * Properties of a Projects. * @memberof flyteidl.admin - * @interface IProjectAttributesDeleteRequest - * @property {string|null} [project] ProjectAttributesDeleteRequest project - * @property {flyteidl.admin.MatchableResource|null} [resourceType] ProjectAttributesDeleteRequest resourceType + * @interface IProjects + * @property {Array.|null} [projects] Projects projects + * @property {string|null} [token] Projects token */ /** - * Constructs a new ProjectAttributesDeleteRequest. + * Constructs a new Projects. * @memberof flyteidl.admin - * @classdesc Represents a ProjectAttributesDeleteRequest. - * @implements IProjectAttributesDeleteRequest + * @classdesc Represents a Projects. + * @implements IProjects * @constructor - * @param {flyteidl.admin.IProjectAttributesDeleteRequest=} [properties] Properties to set + * @param {flyteidl.admin.IProjects=} [properties] Properties to set */ - function ProjectAttributesDeleteRequest(properties) { + function Projects(properties) { + this.projects = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35524,75 +35217,78 @@ } /** - * ProjectAttributesDeleteRequest project. - * @member {string} project - * @memberof flyteidl.admin.ProjectAttributesDeleteRequest + * Projects projects. + * @member {Array.} projects + * @memberof flyteidl.admin.Projects * @instance */ - ProjectAttributesDeleteRequest.prototype.project = ""; + Projects.prototype.projects = $util.emptyArray; /** - * ProjectAttributesDeleteRequest resourceType. - * @member {flyteidl.admin.MatchableResource} resourceType - * @memberof flyteidl.admin.ProjectAttributesDeleteRequest + * Projects token. + * @member {string} token + * @memberof flyteidl.admin.Projects * @instance */ - ProjectAttributesDeleteRequest.prototype.resourceType = 0; + Projects.prototype.token = ""; /** - * Creates a new ProjectAttributesDeleteRequest instance using the specified properties. + * Creates a new Projects instance using the specified properties. * @function create - * @memberof flyteidl.admin.ProjectAttributesDeleteRequest + * @memberof flyteidl.admin.Projects * @static - * @param {flyteidl.admin.IProjectAttributesDeleteRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectAttributesDeleteRequest} ProjectAttributesDeleteRequest instance + * @param {flyteidl.admin.IProjects=} [properties] Properties to set + * @returns {flyteidl.admin.Projects} Projects instance */ - ProjectAttributesDeleteRequest.create = function create(properties) { - return new ProjectAttributesDeleteRequest(properties); + Projects.create = function create(properties) { + return new Projects(properties); }; /** - * Encodes the specified ProjectAttributesDeleteRequest message. Does not implicitly {@link flyteidl.admin.ProjectAttributesDeleteRequest.verify|verify} messages. + * Encodes the specified Projects message. Does not implicitly {@link flyteidl.admin.Projects.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ProjectAttributesDeleteRequest + * @memberof flyteidl.admin.Projects * @static - * @param {flyteidl.admin.IProjectAttributesDeleteRequest} message ProjectAttributesDeleteRequest message or plain object to encode + * @param {flyteidl.admin.IProjects} message Projects message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProjectAttributesDeleteRequest.encode = function encode(message, writer) { + Projects.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.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 ProjectAttributesDeleteRequest message from the specified reader or buffer. + * Decodes a Projects message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ProjectAttributesDeleteRequest + * @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.ProjectAttributesDeleteRequest} ProjectAttributesDeleteRequest + * @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 */ - ProjectAttributesDeleteRequest.decode = function decode(reader, length) { + 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.ProjectAttributesDeleteRequest(); + 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: - message.project = reader.string(); + if (!(message.projects && message.projects.length)) + message.projects = []; + message.projects.push($root.flyteidl.admin.Project.decode(reader, reader.uint32())); break; case 2: - message.resourceType = reader.int32(); + message.token = reader.string(); break; default: reader.skipType(tag & 7); @@ -35603,56 +35299,55 @@ }; /** - * Verifies a ProjectAttributesDeleteRequest message. + * Verifies a Projects message. * @function verify - * @memberof flyteidl.admin.ProjectAttributesDeleteRequest + * @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 */ - ProjectAttributesDeleteRequest.verify = function verify(message) { + Projects.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.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 ProjectAttributesDeleteRequest; + return Projects; })(); - admin.ProjectAttributesDeleteResponse = (function() { + admin.ProjectListRequest = (function() { /** - * Properties of a ProjectAttributesDeleteResponse. + * Properties of a ProjectListRequest. * @memberof flyteidl.admin - * @interface IProjectAttributesDeleteResponse + * @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 */ /** - * Constructs a new ProjectAttributesDeleteResponse. + * Constructs a new ProjectListRequest. * @memberof flyteidl.admin - * @classdesc Represents a ProjectAttributesDeleteResponse. - * @implements IProjectAttributesDeleteResponse + * @classdesc Represents a ProjectListRequest. + * @implements IProjectListRequest * @constructor - * @param {flyteidl.admin.IProjectAttributesDeleteResponse=} [properties] Properties to set + * @param {flyteidl.admin.IProjectListRequest=} [properties] Properties to set */ - function ProjectAttributesDeleteResponse(properties) { + function ProjectListRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35660,50 +35355,102 @@ } /** - * Creates a new ProjectAttributesDeleteResponse instance using the specified properties. + * 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; + + /** + * Creates a new ProjectListRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.ProjectAttributesDeleteResponse + * @memberof flyteidl.admin.ProjectListRequest * @static - * @param {flyteidl.admin.IProjectAttributesDeleteResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectAttributesDeleteResponse} ProjectAttributesDeleteResponse instance + * @param {flyteidl.admin.IProjectListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectListRequest} ProjectListRequest instance */ - ProjectAttributesDeleteResponse.create = function create(properties) { - return new ProjectAttributesDeleteResponse(properties); + ProjectListRequest.create = function create(properties) { + return new ProjectListRequest(properties); }; /** - * Encodes the specified ProjectAttributesDeleteResponse message. Does not implicitly {@link flyteidl.admin.ProjectAttributesDeleteResponse.verify|verify} messages. + * Encodes the specified ProjectListRequest message. Does not implicitly {@link flyteidl.admin.ProjectListRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ProjectAttributesDeleteResponse + * @memberof flyteidl.admin.ProjectListRequest * @static - * @param {flyteidl.admin.IProjectAttributesDeleteResponse} message ProjectAttributesDeleteResponse message or plain object to encode + * @param {flyteidl.admin.IProjectListRequest} message ProjectListRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProjectAttributesDeleteResponse.encode = function encode(message, 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(); return writer; }; /** - * Decodes a ProjectAttributesDeleteResponse message from the specified reader or buffer. + * Decodes a ProjectListRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ProjectAttributesDeleteResponse + * @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.ProjectAttributesDeleteResponse} ProjectAttributesDeleteResponse + * @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 */ - ProjectAttributesDeleteResponse.decode = function decode(reader, length) { + 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.ProjectAttributesDeleteResponse(); + 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; default: reader.skipType(tag & 7); break; @@ -35713,42 +35460,54 @@ }; /** - * Verifies a ProjectAttributesDeleteResponse message. + * Verifies a ProjectListRequest message. * @function verify - * @memberof flyteidl.admin.ProjectAttributesDeleteResponse + * @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 */ - ProjectAttributesDeleteResponse.verify = function verify(message) { + 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; + } return null; }; - return ProjectAttributesDeleteResponse; + return ProjectListRequest; })(); - admin.ProjectDomainAttributes = (function() { + admin.ProjectRegisterRequest = (function() { /** - * Properties of a ProjectDomainAttributes. + * Properties of a ProjectRegisterRequest. * @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 + * @interface IProjectRegisterRequest + * @property {flyteidl.admin.IProject|null} [project] ProjectRegisterRequest project */ /** - * Constructs a new ProjectDomainAttributes. + * Constructs a new ProjectRegisterRequest. * @memberof flyteidl.admin - * @classdesc Represents a ProjectDomainAttributes. - * @implements IProjectDomainAttributes + * @classdesc Represents a ProjectRegisterRequest. + * @implements IProjectRegisterRequest * @constructor - * @param {flyteidl.admin.IProjectDomainAttributes=} [properties] Properties to set + * @param {flyteidl.admin.IProjectRegisterRequest=} [properties] Properties to set */ - function ProjectDomainAttributes(properties) { + function ProjectRegisterRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35756,88 +35515,62 @@ } /** - * 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 + * ProjectRegisterRequest project. + * @member {flyteidl.admin.IProject|null|undefined} project + * @memberof flyteidl.admin.ProjectRegisterRequest * @instance */ - ProjectDomainAttributes.prototype.matchingAttributes = null; + ProjectRegisterRequest.prototype.project = null; /** - * Creates a new ProjectDomainAttributes instance using the specified properties. + * Creates a new ProjectRegisterRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.ProjectDomainAttributes + * @memberof flyteidl.admin.ProjectRegisterRequest * @static - * @param {flyteidl.admin.IProjectDomainAttributes=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectDomainAttributes} ProjectDomainAttributes instance + * @param {flyteidl.admin.IProjectRegisterRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectRegisterRequest} ProjectRegisterRequest instance */ - ProjectDomainAttributes.create = function create(properties) { - return new ProjectDomainAttributes(properties); + ProjectRegisterRequest.create = function create(properties) { + return new ProjectRegisterRequest(properties); }; /** - * Encodes the specified ProjectDomainAttributes message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributes.verify|verify} messages. + * Encodes the specified ProjectRegisterRequest message. Does not implicitly {@link flyteidl.admin.ProjectRegisterRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ProjectDomainAttributes + * @memberof flyteidl.admin.ProjectRegisterRequest * @static - * @param {flyteidl.admin.IProjectDomainAttributes} message ProjectDomainAttributes message or plain object to encode + * @param {flyteidl.admin.IProjectRegisterRequest} message ProjectRegisterRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProjectDomainAttributes.encode = function encode(message, writer) { + ProjectRegisterRequest.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(); + $root.flyteidl.admin.Project.encode(message.project, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Decodes a ProjectDomainAttributes message from the specified reader or buffer. + * Decodes a ProjectRegisterRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ProjectDomainAttributes + * @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.ProjectDomainAttributes} ProjectDomainAttributes + * @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 */ - ProjectDomainAttributes.decode = function decode(reader, length) { + 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.ProjectDomainAttributes(); + 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 = reader.string(); - break; - case 2: - message.domain = reader.string(); - break; - case 3: - message.matchingAttributes = $root.flyteidl.admin.MatchingAttributes.decode(reader, reader.uint32()); + message.project = $root.flyteidl.admin.Project.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -35848,51 +35581,44 @@ }; /** - * Verifies a ProjectDomainAttributes message. + * Verifies a ProjectRegisterRequest message. * @function verify - * @memberof flyteidl.admin.ProjectDomainAttributes + * @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 */ - ProjectDomainAttributes.verify = function verify(message) { + ProjectRegisterRequest.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 (message.project != null && message.hasOwnProperty("project")) { + var error = $root.flyteidl.admin.Project.verify(message.project); if (error) - return "matchingAttributes." + error; + return "project." + error; } return null; }; - return ProjectDomainAttributes; + return ProjectRegisterRequest; })(); - admin.ProjectDomainAttributesUpdateRequest = (function() { + admin.ProjectRegisterResponse = (function() { /** - * Properties of a ProjectDomainAttributesUpdateRequest. + * Properties of a ProjectRegisterResponse. * @memberof flyteidl.admin - * @interface IProjectDomainAttributesUpdateRequest - * @property {flyteidl.admin.IProjectDomainAttributes|null} [attributes] ProjectDomainAttributesUpdateRequest attributes + * @interface IProjectRegisterResponse */ /** - * Constructs a new ProjectDomainAttributesUpdateRequest. + * Constructs a new ProjectRegisterResponse. * @memberof flyteidl.admin - * @classdesc Represents a ProjectDomainAttributesUpdateRequest. - * @implements IProjectDomainAttributesUpdateRequest + * @classdesc Represents a ProjectRegisterResponse. + * @implements IProjectRegisterResponse * @constructor - * @param {flyteidl.admin.IProjectDomainAttributesUpdateRequest=} [properties] Properties to set + * @param {flyteidl.admin.IProjectRegisterResponse=} [properties] Properties to set */ - function ProjectDomainAttributesUpdateRequest(properties) { + function ProjectRegisterResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35900,63 +35626,50 @@ } /** - * 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. + * Creates a new ProjectRegisterResponse instance using the specified properties. * @function create - * @memberof flyteidl.admin.ProjectDomainAttributesUpdateRequest + * @memberof flyteidl.admin.ProjectRegisterResponse * @static - * @param {flyteidl.admin.IProjectDomainAttributesUpdateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectDomainAttributesUpdateRequest} ProjectDomainAttributesUpdateRequest instance + * @param {flyteidl.admin.IProjectRegisterResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectRegisterResponse} ProjectRegisterResponse instance */ - ProjectDomainAttributesUpdateRequest.create = function create(properties) { - return new ProjectDomainAttributesUpdateRequest(properties); + ProjectRegisterResponse.create = function create(properties) { + return new ProjectRegisterResponse(properties); }; /** - * Encodes the specified ProjectDomainAttributesUpdateRequest message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesUpdateRequest.verify|verify} messages. + * Encodes the specified ProjectRegisterResponse message. Does not implicitly {@link flyteidl.admin.ProjectRegisterResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ProjectDomainAttributesUpdateRequest + * @memberof flyteidl.admin.ProjectRegisterResponse * @static - * @param {flyteidl.admin.IProjectDomainAttributesUpdateRequest} message ProjectDomainAttributesUpdateRequest message or plain object to encode + * @param {flyteidl.admin.IProjectRegisterResponse} message ProjectRegisterResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProjectDomainAttributesUpdateRequest.encode = function encode(message, writer) { + ProjectRegisterResponse.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. + * Decodes a ProjectRegisterResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ProjectDomainAttributesUpdateRequest + * @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.ProjectDomainAttributesUpdateRequest} ProjectDomainAttributesUpdateRequest + * @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 */ - ProjectDomainAttributesUpdateRequest.decode = function decode(reader, length) { + 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.ProjectDomainAttributesUpdateRequest(); + 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) { - case 1: - message.attributes = $root.flyteidl.admin.ProjectDomainAttributes.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -35966,44 +35679,39 @@ }; /** - * Verifies a ProjectDomainAttributesUpdateRequest message. + * Verifies a ProjectRegisterResponse message. * @function verify - * @memberof flyteidl.admin.ProjectDomainAttributesUpdateRequest + * @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 */ - ProjectDomainAttributesUpdateRequest.verify = function verify(message) { + ProjectRegisterResponse.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; + return ProjectRegisterResponse; })(); - admin.ProjectDomainAttributesUpdateResponse = (function() { + admin.ProjectUpdateResponse = (function() { /** - * Properties of a ProjectDomainAttributesUpdateResponse. + * Properties of a ProjectUpdateResponse. * @memberof flyteidl.admin - * @interface IProjectDomainAttributesUpdateResponse + * @interface IProjectUpdateResponse */ /** - * Constructs a new ProjectDomainAttributesUpdateResponse. + * Constructs a new ProjectUpdateResponse. * @memberof flyteidl.admin - * @classdesc Represents a ProjectDomainAttributesUpdateResponse. - * @implements IProjectDomainAttributesUpdateResponse + * @classdesc Represents a ProjectUpdateResponse. + * @implements IProjectUpdateResponse * @constructor - * @param {flyteidl.admin.IProjectDomainAttributesUpdateResponse=} [properties] Properties to set + * @param {flyteidl.admin.IProjectUpdateResponse=} [properties] Properties to set */ - function ProjectDomainAttributesUpdateResponse(properties) { + function ProjectUpdateResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36011,47 +35719,47 @@ } /** - * Creates a new ProjectDomainAttributesUpdateResponse instance using the specified properties. + * Creates a new ProjectUpdateResponse instance using the specified properties. * @function create - * @memberof flyteidl.admin.ProjectDomainAttributesUpdateResponse + * @memberof flyteidl.admin.ProjectUpdateResponse * @static - * @param {flyteidl.admin.IProjectDomainAttributesUpdateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectDomainAttributesUpdateResponse} ProjectDomainAttributesUpdateResponse instance + * @param {flyteidl.admin.IProjectUpdateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectUpdateResponse} ProjectUpdateResponse instance */ - ProjectDomainAttributesUpdateResponse.create = function create(properties) { - return new ProjectDomainAttributesUpdateResponse(properties); + ProjectUpdateResponse.create = function create(properties) { + return new ProjectUpdateResponse(properties); }; /** - * Encodes the specified ProjectDomainAttributesUpdateResponse message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesUpdateResponse.verify|verify} messages. + * Encodes the specified ProjectUpdateResponse message. Does not implicitly {@link flyteidl.admin.ProjectUpdateResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ProjectDomainAttributesUpdateResponse + * @memberof flyteidl.admin.ProjectUpdateResponse * @static - * @param {flyteidl.admin.IProjectDomainAttributesUpdateResponse} message ProjectDomainAttributesUpdateResponse message or plain object to encode + * @param {flyteidl.admin.IProjectUpdateResponse} message ProjectUpdateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProjectDomainAttributesUpdateResponse.encode = function encode(message, writer) { + ProjectUpdateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Decodes a ProjectDomainAttributesUpdateResponse message from the specified reader or buffer. + * Decodes a ProjectUpdateResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ProjectDomainAttributesUpdateResponse + * @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.ProjectDomainAttributesUpdateResponse} ProjectDomainAttributesUpdateResponse + * @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 */ - ProjectDomainAttributesUpdateResponse.decode = function decode(reader, length) { + 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.ProjectDomainAttributesUpdateResponse(); + 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) { @@ -36064,42 +35772,41 @@ }; /** - * Verifies a ProjectDomainAttributesUpdateResponse message. + * Verifies a ProjectUpdateResponse message. * @function verify - * @memberof flyteidl.admin.ProjectDomainAttributesUpdateResponse + * @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 */ - ProjectDomainAttributesUpdateResponse.verify = function verify(message) { + ProjectUpdateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; - return ProjectDomainAttributesUpdateResponse; + return ProjectUpdateResponse; })(); - admin.ProjectDomainAttributesGetRequest = (function() { + admin.ProjectAttributes = (function() { /** - * Properties of a ProjectDomainAttributesGetRequest. + * Properties of a ProjectAttributes. * @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 + * @interface IProjectAttributes + * @property {string|null} [project] ProjectAttributes project + * @property {flyteidl.admin.IMatchingAttributes|null} [matchingAttributes] ProjectAttributes matchingAttributes */ /** - * Constructs a new ProjectDomainAttributesGetRequest. + * Constructs a new ProjectAttributes. * @memberof flyteidl.admin - * @classdesc Represents a ProjectDomainAttributesGetRequest. - * @implements IProjectDomainAttributesGetRequest + * @classdesc Represents a ProjectAttributes. + * @implements IProjectAttributes * @constructor - * @param {flyteidl.admin.IProjectDomainAttributesGetRequest=} [properties] Properties to set + * @param {flyteidl.admin.IProjectAttributes=} [properties] Properties to set */ - function ProjectDomainAttributesGetRequest(properties) { + function ProjectAttributes(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36107,77 +35814,67 @@ } /** - * ProjectDomainAttributesGetRequest project. + * ProjectAttributes project. * @member {string} project - * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest - * @instance - */ - ProjectDomainAttributesGetRequest.prototype.project = ""; - - /** - * ProjectDomainAttributesGetRequest domain. - * @member {string} domain - * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest + * @memberof flyteidl.admin.ProjectAttributes * @instance */ - ProjectDomainAttributesGetRequest.prototype.domain = ""; + ProjectAttributes.prototype.project = ""; /** - * ProjectDomainAttributesGetRequest resourceType. - * @member {flyteidl.admin.MatchableResource} resourceType - * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest + * ProjectAttributes matchingAttributes. + * @member {flyteidl.admin.IMatchingAttributes|null|undefined} matchingAttributes + * @memberof flyteidl.admin.ProjectAttributes * @instance */ - ProjectDomainAttributesGetRequest.prototype.resourceType = 0; + ProjectAttributes.prototype.matchingAttributes = null; /** - * Creates a new ProjectDomainAttributesGetRequest instance using the specified properties. + * Creates a new ProjectAttributes instance using the specified properties. * @function create - * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest + * @memberof flyteidl.admin.ProjectAttributes * @static - * @param {flyteidl.admin.IProjectDomainAttributesGetRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectDomainAttributesGetRequest} ProjectDomainAttributesGetRequest instance + * @param {flyteidl.admin.IProjectAttributes=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectAttributes} ProjectAttributes instance */ - ProjectDomainAttributesGetRequest.create = function create(properties) { - return new ProjectDomainAttributesGetRequest(properties); + ProjectAttributes.create = function create(properties) { + return new ProjectAttributes(properties); }; /** - * Encodes the specified ProjectDomainAttributesGetRequest message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesGetRequest.verify|verify} messages. + * Encodes the specified ProjectAttributes message. Does not implicitly {@link flyteidl.admin.ProjectAttributes.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest + * @memberof flyteidl.admin.ProjectAttributes * @static - * @param {flyteidl.admin.IProjectDomainAttributesGetRequest} message ProjectDomainAttributesGetRequest message or plain object to encode + * @param {flyteidl.admin.IProjectAttributes} message ProjectAttributes message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProjectDomainAttributesGetRequest.encode = function encode(message, 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.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.matchingAttributes != null && message.hasOwnProperty("matchingAttributes")) + $root.flyteidl.admin.MatchingAttributes.encode(message.matchingAttributes, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Decodes a ProjectDomainAttributesGetRequest message from the specified reader or buffer. + * Decodes a ProjectAttributes message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest + * @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.ProjectDomainAttributesGetRequest} ProjectDomainAttributesGetRequest + * @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 */ - ProjectDomainAttributesGetRequest.decode = function decode(reader, length) { + 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.ProjectDomainAttributesGetRequest(); + 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) { @@ -36185,10 +35882,7 @@ message.project = reader.string(); break; case 2: - message.domain = reader.string(); - break; - case 3: - message.resourceType = reader.int32(); + message.matchingAttributes = $root.flyteidl.admin.MatchingAttributes.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -36199,60 +35893,48 @@ }; /** - * Verifies a ProjectDomainAttributesGetRequest message. + * Verifies a ProjectAttributes message. * @function verify - * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest + * @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 */ - ProjectDomainAttributesGetRequest.verify = function verify(message) { + 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.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.matchingAttributes != null && message.hasOwnProperty("matchingAttributes")) { + var error = $root.flyteidl.admin.MatchingAttributes.verify(message.matchingAttributes); + if (error) + return "matchingAttributes." + error; + } return null; }; - return ProjectDomainAttributesGetRequest; + return ProjectAttributes; })(); - admin.ProjectDomainAttributesGetResponse = (function() { + admin.ProjectAttributesUpdateRequest = (function() { /** - * Properties of a ProjectDomainAttributesGetResponse. + * Properties of a ProjectAttributesUpdateRequest. * @memberof flyteidl.admin - * @interface IProjectDomainAttributesGetResponse - * @property {flyteidl.admin.IProjectDomainAttributes|null} [attributes] ProjectDomainAttributesGetResponse attributes + * @interface IProjectAttributesUpdateRequest + * @property {flyteidl.admin.IProjectAttributes|null} [attributes] ProjectAttributesUpdateRequest attributes */ /** - * Constructs a new ProjectDomainAttributesGetResponse. + * Constructs a new ProjectAttributesUpdateRequest. * @memberof flyteidl.admin - * @classdesc Represents a ProjectDomainAttributesGetResponse. - * @implements IProjectDomainAttributesGetResponse + * @classdesc Represents a ProjectAttributesUpdateRequest. + * @implements IProjectAttributesUpdateRequest * @constructor - * @param {flyteidl.admin.IProjectDomainAttributesGetResponse=} [properties] Properties to set + * @param {flyteidl.admin.IProjectAttributesUpdateRequest=} [properties] Properties to set */ - function ProjectDomainAttributesGetResponse(properties) { + function ProjectAttributesUpdateRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36260,62 +35942,62 @@ } /** - * ProjectDomainAttributesGetResponse attributes. - * @member {flyteidl.admin.IProjectDomainAttributes|null|undefined} attributes - * @memberof flyteidl.admin.ProjectDomainAttributesGetResponse + * ProjectAttributesUpdateRequest attributes. + * @member {flyteidl.admin.IProjectAttributes|null|undefined} attributes + * @memberof flyteidl.admin.ProjectAttributesUpdateRequest * @instance */ - ProjectDomainAttributesGetResponse.prototype.attributes = null; + ProjectAttributesUpdateRequest.prototype.attributes = null; /** - * Creates a new ProjectDomainAttributesGetResponse instance using the specified properties. + * Creates a new ProjectAttributesUpdateRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.ProjectDomainAttributesGetResponse + * @memberof flyteidl.admin.ProjectAttributesUpdateRequest * @static - * @param {flyteidl.admin.IProjectDomainAttributesGetResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectDomainAttributesGetResponse} ProjectDomainAttributesGetResponse instance + * @param {flyteidl.admin.IProjectAttributesUpdateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectAttributesUpdateRequest} ProjectAttributesUpdateRequest instance */ - ProjectDomainAttributesGetResponse.create = function create(properties) { - return new ProjectDomainAttributesGetResponse(properties); + ProjectAttributesUpdateRequest.create = function create(properties) { + return new ProjectAttributesUpdateRequest(properties); }; /** - * Encodes the specified ProjectDomainAttributesGetResponse message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesGetResponse.verify|verify} messages. + * Encodes the specified ProjectAttributesUpdateRequest message. Does not implicitly {@link flyteidl.admin.ProjectAttributesUpdateRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ProjectDomainAttributesGetResponse + * @memberof flyteidl.admin.ProjectAttributesUpdateRequest * @static - * @param {flyteidl.admin.IProjectDomainAttributesGetResponse} message ProjectDomainAttributesGetResponse message or plain object to encode + * @param {flyteidl.admin.IProjectAttributesUpdateRequest} message ProjectAttributesUpdateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProjectDomainAttributesGetResponse.encode = function encode(message, writer) { + ProjectAttributesUpdateRequest.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(); + $root.flyteidl.admin.ProjectAttributes.encode(message.attributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Decodes a ProjectDomainAttributesGetResponse message from the specified reader or buffer. + * Decodes a ProjectAttributesUpdateRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ProjectDomainAttributesGetResponse + * @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.ProjectDomainAttributesGetResponse} ProjectDomainAttributesGetResponse + * @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 */ - ProjectDomainAttributesGetResponse.decode = function decode(reader, length) { + 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.ProjectDomainAttributesGetResponse(); + 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.ProjectDomainAttributes.decode(reader, reader.uint32()); + message.attributes = $root.flyteidl.admin.ProjectAttributes.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -36326,47 +36008,44 @@ }; /** - * Verifies a ProjectDomainAttributesGetResponse message. + * Verifies a ProjectAttributesUpdateRequest message. * @function verify - * @memberof flyteidl.admin.ProjectDomainAttributesGetResponse + * @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 */ - ProjectDomainAttributesGetResponse.verify = function verify(message) { + 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.ProjectDomainAttributes.verify(message.attributes); + var error = $root.flyteidl.admin.ProjectAttributes.verify(message.attributes); if (error) return "attributes." + error; } return null; }; - return ProjectDomainAttributesGetResponse; + return ProjectAttributesUpdateRequest; })(); - admin.ProjectDomainAttributesDeleteRequest = (function() { + admin.ProjectAttributesUpdateResponse = (function() { /** - * Properties of a ProjectDomainAttributesDeleteRequest. + * Properties of a ProjectAttributesUpdateResponse. * @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 + * @interface IProjectAttributesUpdateResponse */ /** - * Constructs a new ProjectDomainAttributesDeleteRequest. + * Constructs a new ProjectAttributesUpdateResponse. * @memberof flyteidl.admin - * @classdesc Represents a ProjectDomainAttributesDeleteRequest. - * @implements IProjectDomainAttributesDeleteRequest + * @classdesc Represents a ProjectAttributesUpdateResponse. + * @implements IProjectAttributesUpdateResponse * @constructor - * @param {flyteidl.admin.IProjectDomainAttributesDeleteRequest=} [properties] Properties to set + * @param {flyteidl.admin.IProjectAttributesUpdateResponse=} [properties] Properties to set */ - function ProjectDomainAttributesDeleteRequest(properties) { + function ProjectAttributesUpdateResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36374,89 +36053,50 @@ } /** - * 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; - - /** - * Creates a new ProjectDomainAttributesDeleteRequest instance using the specified properties. + * Creates a new ProjectAttributesUpdateResponse instance using the specified properties. * @function create - * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest + * @memberof flyteidl.admin.ProjectAttributesUpdateResponse * @static - * @param {flyteidl.admin.IProjectDomainAttributesDeleteRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectDomainAttributesDeleteRequest} ProjectDomainAttributesDeleteRequest instance + * @param {flyteidl.admin.IProjectAttributesUpdateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectAttributesUpdateResponse} ProjectAttributesUpdateResponse instance */ - ProjectDomainAttributesDeleteRequest.create = function create(properties) { - return new ProjectDomainAttributesDeleteRequest(properties); + ProjectAttributesUpdateResponse.create = function create(properties) { + return new ProjectAttributesUpdateResponse(properties); }; /** - * Encodes the specified ProjectDomainAttributesDeleteRequest message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesDeleteRequest.verify|verify} messages. + * Encodes the specified ProjectAttributesUpdateResponse message. Does not implicitly {@link flyteidl.admin.ProjectAttributesUpdateResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest + * @memberof flyteidl.admin.ProjectAttributesUpdateResponse * @static - * @param {flyteidl.admin.IProjectDomainAttributesDeleteRequest} message ProjectDomainAttributesDeleteRequest message or plain object to encode + * @param {flyteidl.admin.IProjectAttributesUpdateResponse} message ProjectAttributesUpdateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProjectDomainAttributesDeleteRequest.encode = function encode(message, writer) { + ProjectAttributesUpdateResponse.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); return writer; }; /** - * Decodes a ProjectDomainAttributesDeleteRequest message from the specified reader or buffer. + * Decodes a ProjectAttributesUpdateResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest + * @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.ProjectDomainAttributesDeleteRequest} ProjectDomainAttributesDeleteRequest + * @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 */ - ProjectDomainAttributesDeleteRequest.decode = function decode(reader, length) { + 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.ProjectDomainAttributesDeleteRequest(); + 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) { - case 1: - message.project = reader.string(); - break; - case 2: - message.domain = reader.string(); - break; - case 3: - message.resourceType = reader.int32(); - break; default: reader.skipType(tag & 7); break; @@ -36466,59 +36106,41 @@ }; /** - * Verifies a ProjectDomainAttributesDeleteRequest message. + * Verifies a ProjectAttributesUpdateResponse message. * @function verify - * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest + * @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 */ - ProjectDomainAttributesDeleteRequest.verify = function verify(message) { + ProjectAttributesUpdateResponse.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; - } return null; }; - return ProjectDomainAttributesDeleteRequest; + return ProjectAttributesUpdateResponse; })(); - admin.ProjectDomainAttributesDeleteResponse = (function() { + admin.ProjectAttributesGetRequest = (function() { /** - * Properties of a ProjectDomainAttributesDeleteResponse. + * Properties of a ProjectAttributesGetRequest. * @memberof flyteidl.admin - * @interface IProjectDomainAttributesDeleteResponse + * @interface IProjectAttributesGetRequest + * @property {string|null} [project] ProjectAttributesGetRequest project + * @property {flyteidl.admin.MatchableResource|null} [resourceType] ProjectAttributesGetRequest resourceType */ /** - * Constructs a new ProjectDomainAttributesDeleteResponse. + * Constructs a new ProjectAttributesGetRequest. * @memberof flyteidl.admin - * @classdesc Represents a ProjectDomainAttributesDeleteResponse. - * @implements IProjectDomainAttributesDeleteResponse + * @classdesc Represents a ProjectAttributesGetRequest. + * @implements IProjectAttributesGetRequest * @constructor - * @param {flyteidl.admin.IProjectDomainAttributesDeleteResponse=} [properties] Properties to set + * @param {flyteidl.admin.IProjectAttributesGetRequest=} [properties] Properties to set */ - function ProjectDomainAttributesDeleteResponse(properties) { + function ProjectAttributesGetRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36526,50 +36148,76 @@ } /** - * 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 + * ProjectAttributesGetRequest project. + * @member {string} project + * @memberof flyteidl.admin.ProjectAttributesGetRequest + * @instance */ - ProjectDomainAttributesDeleteResponse.create = function create(properties) { - return new ProjectDomainAttributesDeleteResponse(properties); - }; + ProjectAttributesGetRequest.prototype.project = ""; /** - * 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) + * ProjectAttributesGetRequest resourceType. + * @member {flyteidl.admin.MatchableResource} resourceType + * @memberof flyteidl.admin.ProjectAttributesGetRequest + * @instance + */ + ProjectAttributesGetRequest.prototype.resourceType = 0; + + /** + * 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); return writer; }; /** - * Decodes a ProjectDomainAttributesDeleteResponse message from the specified reader or buffer. + * Decodes a ProjectAttributesGetRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ProjectDomainAttributesDeleteResponse + * @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.ProjectDomainAttributesDeleteResponse} ProjectDomainAttributesDeleteResponse + * @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 */ - ProjectDomainAttributesDeleteResponse.decode = function decode(reader, length) { + 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.ProjectDomainAttributesDeleteResponse(); + 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; default: reader.skipType(tag & 7); break; @@ -36579,41 +36227,57 @@ }; /** - * Verifies a ProjectDomainAttributesDeleteResponse message. + * Verifies a ProjectAttributesGetRequest message. * @function verify - * @memberof flyteidl.admin.ProjectDomainAttributesDeleteResponse + * @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 */ - ProjectDomainAttributesDeleteResponse.verify = function verify(message) { + 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; + } return null; }; - return ProjectDomainAttributesDeleteResponse; + return ProjectAttributesGetRequest; })(); - admin.SignalGetOrCreateRequest = (function() { + admin.ProjectAttributesGetResponse = (function() { /** - * Properties of a SignalGetOrCreateRequest. + * Properties of a ProjectAttributesGetResponse. * @memberof flyteidl.admin - * @interface ISignalGetOrCreateRequest - * @property {flyteidl.core.ISignalIdentifier|null} [id] SignalGetOrCreateRequest id - * @property {flyteidl.core.ILiteralType|null} [type] SignalGetOrCreateRequest type + * @interface IProjectAttributesGetResponse + * @property {flyteidl.admin.IProjectAttributes|null} [attributes] ProjectAttributesGetResponse attributes */ /** - * Constructs a new SignalGetOrCreateRequest. + * Constructs a new ProjectAttributesGetResponse. * @memberof flyteidl.admin - * @classdesc Represents a SignalGetOrCreateRequest. - * @implements ISignalGetOrCreateRequest + * @classdesc Represents a ProjectAttributesGetResponse. + * @implements IProjectAttributesGetResponse * @constructor - * @param {flyteidl.admin.ISignalGetOrCreateRequest=} [properties] Properties to set + * @param {flyteidl.admin.IProjectAttributesGetResponse=} [properties] Properties to set */ - function SignalGetOrCreateRequest(properties) { + function ProjectAttributesGetResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36621,75 +36285,62 @@ } /** - * 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 + * ProjectAttributesGetResponse attributes. + * @member {flyteidl.admin.IProjectAttributes|null|undefined} attributes + * @memberof flyteidl.admin.ProjectAttributesGetResponse * @instance */ - SignalGetOrCreateRequest.prototype.type = null; + ProjectAttributesGetResponse.prototype.attributes = null; /** - * Creates a new SignalGetOrCreateRequest instance using the specified properties. + * Creates a new ProjectAttributesGetResponse instance using the specified properties. * @function create - * @memberof flyteidl.admin.SignalGetOrCreateRequest + * @memberof flyteidl.admin.ProjectAttributesGetResponse * @static - * @param {flyteidl.admin.ISignalGetOrCreateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.SignalGetOrCreateRequest} SignalGetOrCreateRequest instance + * @param {flyteidl.admin.IProjectAttributesGetResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectAttributesGetResponse} ProjectAttributesGetResponse instance */ - SignalGetOrCreateRequest.create = function create(properties) { - return new SignalGetOrCreateRequest(properties); + ProjectAttributesGetResponse.create = function create(properties) { + return new ProjectAttributesGetResponse(properties); }; /** - * Encodes the specified SignalGetOrCreateRequest message. Does not implicitly {@link flyteidl.admin.SignalGetOrCreateRequest.verify|verify} messages. + * Encodes the specified ProjectAttributesGetResponse message. Does not implicitly {@link flyteidl.admin.ProjectAttributesGetResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.SignalGetOrCreateRequest + * @memberof flyteidl.admin.ProjectAttributesGetResponse * @static - * @param {flyteidl.admin.ISignalGetOrCreateRequest} message SignalGetOrCreateRequest message or plain object to encode + * @param {flyteidl.admin.IProjectAttributesGetResponse} message ProjectAttributesGetResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SignalGetOrCreateRequest.encode = function encode(message, writer) { + ProjectAttributesGetResponse.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.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 SignalGetOrCreateRequest message from the specified reader or buffer. + * Decodes a ProjectAttributesGetResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.SignalGetOrCreateRequest + * @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.SignalGetOrCreateRequest} SignalGetOrCreateRequest + * @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 */ - SignalGetOrCreateRequest.decode = function decode(reader, length) { + 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.SignalGetOrCreateRequest(); + 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.id = $root.flyteidl.core.SignalIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.type = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + message.attributes = $root.flyteidl.admin.ProjectAttributes.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -36700,54 +36351,46 @@ }; /** - * Verifies a SignalGetOrCreateRequest message. + * Verifies a ProjectAttributesGetResponse message. * @function verify - * @memberof flyteidl.admin.SignalGetOrCreateRequest + * @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 */ - SignalGetOrCreateRequest.verify = function verify(message) { + ProjectAttributesGetResponse.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 (message.attributes != null && message.hasOwnProperty("attributes")) { + var error = $root.flyteidl.admin.ProjectAttributes.verify(message.attributes); if (error) - return "type." + error; + return "attributes." + error; } return null; }; - return SignalGetOrCreateRequest; + return ProjectAttributesGetResponse; })(); - admin.SignalListRequest = (function() { + admin.ProjectAttributesDeleteRequest = (function() { /** - * Properties of a SignalListRequest. + * Properties of a ProjectAttributesDeleteRequest. * @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 + * @interface IProjectAttributesDeleteRequest + * @property {string|null} [project] ProjectAttributesDeleteRequest project + * @property {flyteidl.admin.MatchableResource|null} [resourceType] ProjectAttributesDeleteRequest resourceType */ /** - * Constructs a new SignalListRequest. + * Constructs a new ProjectAttributesDeleteRequest. * @memberof flyteidl.admin - * @classdesc Represents a SignalListRequest. - * @implements ISignalListRequest + * @classdesc Represents a ProjectAttributesDeleteRequest. + * @implements IProjectAttributesDeleteRequest * @constructor - * @param {flyteidl.admin.ISignalListRequest=} [properties] Properties to set + * @param {flyteidl.admin.IProjectAttributesDeleteRequest=} [properties] Properties to set */ - function SignalListRequest(properties) { + function ProjectAttributesDeleteRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36755,114 +36398,75 @@ } /** - * 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 + * ProjectAttributesDeleteRequest project. + * @member {string} project + * @memberof flyteidl.admin.ProjectAttributesDeleteRequest * @instance */ - SignalListRequest.prototype.filters = ""; + ProjectAttributesDeleteRequest.prototype.project = ""; /** - * SignalListRequest sortBy. - * @member {flyteidl.admin.ISort|null|undefined} sortBy - * @memberof flyteidl.admin.SignalListRequest + * ProjectAttributesDeleteRequest resourceType. + * @member {flyteidl.admin.MatchableResource} resourceType + * @memberof flyteidl.admin.ProjectAttributesDeleteRequest * @instance */ - SignalListRequest.prototype.sortBy = null; + ProjectAttributesDeleteRequest.prototype.resourceType = 0; /** - * Creates a new SignalListRequest instance using the specified properties. + * Creates a new ProjectAttributesDeleteRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.SignalListRequest + * @memberof flyteidl.admin.ProjectAttributesDeleteRequest * @static - * @param {flyteidl.admin.ISignalListRequest=} [properties] Properties to set - * @returns {flyteidl.admin.SignalListRequest} SignalListRequest instance + * @param {flyteidl.admin.IProjectAttributesDeleteRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectAttributesDeleteRequest} ProjectAttributesDeleteRequest instance */ - SignalListRequest.create = function create(properties) { - return new SignalListRequest(properties); + ProjectAttributesDeleteRequest.create = function create(properties) { + return new ProjectAttributesDeleteRequest(properties); }; /** - * Encodes the specified SignalListRequest message. Does not implicitly {@link flyteidl.admin.SignalListRequest.verify|verify} messages. + * Encodes the specified ProjectAttributesDeleteRequest message. Does not implicitly {@link flyteidl.admin.ProjectAttributesDeleteRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.SignalListRequest + * @memberof flyteidl.admin.ProjectAttributesDeleteRequest * @static - * @param {flyteidl.admin.ISignalListRequest} message SignalListRequest message or plain object to encode + * @param {flyteidl.admin.IProjectAttributesDeleteRequest} message ProjectAttributesDeleteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SignalListRequest.encode = function encode(message, writer) { + ProjectAttributesDeleteRequest.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.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); return writer; }; /** - * Decodes a SignalListRequest message from the specified reader or buffer. + * Decodes a ProjectAttributesDeleteRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.SignalListRequest + * @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.SignalListRequest} SignalListRequest + * @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 */ - SignalListRequest.decode = function decode(reader, length) { + 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.SignalListRequest(); + 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.workflowExecutionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + message.project = reader.string(); 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()); + message.resourceType = reader.int32(); break; default: reader.skipType(tag & 7); @@ -36873,61 +36477,56 @@ }; /** - * Verifies a SignalListRequest message. + * Verifies a ProjectAttributesDeleteRequest message. * @function verify - * @memberof flyteidl.admin.SignalListRequest + * @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 */ - SignalListRequest.verify = function verify(message) { + ProjectAttributesDeleteRequest.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.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; + } return null; }; - return SignalListRequest; + return ProjectAttributesDeleteRequest; })(); - admin.SignalList = (function() { + admin.ProjectAttributesDeleteResponse = (function() { /** - * Properties of a SignalList. + * Properties of a ProjectAttributesDeleteResponse. * @memberof flyteidl.admin - * @interface ISignalList - * @property {Array.|null} [signals] SignalList signals - * @property {string|null} [token] SignalList token + * @interface IProjectAttributesDeleteResponse */ /** - * Constructs a new SignalList. + * Constructs a new ProjectAttributesDeleteResponse. * @memberof flyteidl.admin - * @classdesc Represents a SignalList. - * @implements ISignalList + * @classdesc Represents a ProjectAttributesDeleteResponse. + * @implements IProjectAttributesDeleteResponse * @constructor - * @param {flyteidl.admin.ISignalList=} [properties] Properties to set + * @param {flyteidl.admin.IProjectAttributesDeleteResponse=} [properties] Properties to set */ - function SignalList(properties) { - this.signals = []; + function ProjectAttributesDeleteResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36935,79 +36534,50 @@ } /** - * 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. + * Creates a new ProjectAttributesDeleteResponse instance using the specified properties. * @function create - * @memberof flyteidl.admin.SignalList + * @memberof flyteidl.admin.ProjectAttributesDeleteResponse * @static - * @param {flyteidl.admin.ISignalList=} [properties] Properties to set - * @returns {flyteidl.admin.SignalList} SignalList instance + * @param {flyteidl.admin.IProjectAttributesDeleteResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectAttributesDeleteResponse} ProjectAttributesDeleteResponse instance */ - SignalList.create = function create(properties) { - return new SignalList(properties); + ProjectAttributesDeleteResponse.create = function create(properties) { + return new ProjectAttributesDeleteResponse(properties); }; /** - * Encodes the specified SignalList message. Does not implicitly {@link flyteidl.admin.SignalList.verify|verify} messages. + * Encodes the specified ProjectAttributesDeleteResponse message. Does not implicitly {@link flyteidl.admin.ProjectAttributesDeleteResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.SignalList + * @memberof flyteidl.admin.ProjectAttributesDeleteResponse * @static - * @param {flyteidl.admin.ISignalList} message SignalList message or plain object to encode + * @param {flyteidl.admin.IProjectAttributesDeleteResponse} message ProjectAttributesDeleteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SignalList.encode = function encode(message, writer) { + ProjectAttributesDeleteResponse.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. + * Decodes a ProjectAttributesDeleteResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.SignalList + * @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.SignalList} SignalList + * @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 */ - SignalList.decode = function decode(reader, length) { + 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.SignalList(); + 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) { - 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; @@ -37017,53 +36587,42 @@ }; /** - * Verifies a SignalList message. + * Verifies a ProjectAttributesDeleteResponse message. * @function verify - * @memberof flyteidl.admin.SignalList + * @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 */ - SignalList.verify = function verify(message) { + ProjectAttributesDeleteResponse.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; + return ProjectAttributesDeleteResponse; })(); - admin.SignalSetRequest = (function() { + admin.ProjectDomainAttributes = (function() { /** - * Properties of a SignalSetRequest. + * Properties of a ProjectDomainAttributes. * @memberof flyteidl.admin - * @interface ISignalSetRequest - * @property {flyteidl.core.ISignalIdentifier|null} [id] SignalSetRequest id - * @property {flyteidl.core.ILiteral|null} [value] SignalSetRequest value + * @interface IProjectDomainAttributes + * @property {string|null} [project] ProjectDomainAttributes project + * @property {string|null} [domain] ProjectDomainAttributes domain + * @property {flyteidl.admin.IMatchingAttributes|null} [matchingAttributes] ProjectDomainAttributes matchingAttributes */ /** - * Constructs a new SignalSetRequest. + * Constructs a new ProjectDomainAttributes. * @memberof flyteidl.admin - * @classdesc Represents a SignalSetRequest. - * @implements ISignalSetRequest + * @classdesc Represents a ProjectDomainAttributes. + * @implements IProjectDomainAttributes * @constructor - * @param {flyteidl.admin.ISignalSetRequest=} [properties] Properties to set + * @param {flyteidl.admin.IProjectDomainAttributes=} [properties] Properties to set */ - function SignalSetRequest(properties) { + function ProjectDomainAttributes(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37071,75 +36630,88 @@ } /** - * SignalSetRequest id. - * @member {flyteidl.core.ISignalIdentifier|null|undefined} id - * @memberof flyteidl.admin.SignalSetRequest + * ProjectDomainAttributes project. + * @member {string} project + * @memberof flyteidl.admin.ProjectDomainAttributes * @instance */ - SignalSetRequest.prototype.id = null; + ProjectDomainAttributes.prototype.project = ""; /** - * SignalSetRequest value. - * @member {flyteidl.core.ILiteral|null|undefined} value - * @memberof flyteidl.admin.SignalSetRequest + * ProjectDomainAttributes domain. + * @member {string} domain + * @memberof flyteidl.admin.ProjectDomainAttributes * @instance */ - SignalSetRequest.prototype.value = null; + ProjectDomainAttributes.prototype.domain = ""; /** - * Creates a new SignalSetRequest instance using the specified properties. + * ProjectDomainAttributes matchingAttributes. + * @member {flyteidl.admin.IMatchingAttributes|null|undefined} matchingAttributes + * @memberof flyteidl.admin.ProjectDomainAttributes + * @instance + */ + ProjectDomainAttributes.prototype.matchingAttributes = null; + + /** + * Creates a new ProjectDomainAttributes instance using the specified properties. * @function create - * @memberof flyteidl.admin.SignalSetRequest + * @memberof flyteidl.admin.ProjectDomainAttributes * @static - * @param {flyteidl.admin.ISignalSetRequest=} [properties] Properties to set - * @returns {flyteidl.admin.SignalSetRequest} SignalSetRequest instance + * @param {flyteidl.admin.IProjectDomainAttributes=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectDomainAttributes} ProjectDomainAttributes instance */ - SignalSetRequest.create = function create(properties) { - return new SignalSetRequest(properties); + ProjectDomainAttributes.create = function create(properties) { + return new ProjectDomainAttributes(properties); }; /** - * Encodes the specified SignalSetRequest message. Does not implicitly {@link flyteidl.admin.SignalSetRequest.verify|verify} messages. + * Encodes the specified ProjectDomainAttributes message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributes.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.SignalSetRequest + * @memberof flyteidl.admin.ProjectDomainAttributes * @static - * @param {flyteidl.admin.ISignalSetRequest} message SignalSetRequest message or plain object to encode + * @param {flyteidl.admin.IProjectDomainAttributes} message ProjectDomainAttributes message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SignalSetRequest.encode = function encode(message, writer) { + ProjectDomainAttributes.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(); + 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(); return writer; }; /** - * Decodes a SignalSetRequest message from the specified reader or buffer. + * Decodes a ProjectDomainAttributes message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.SignalSetRequest + * @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.SignalSetRequest} SignalSetRequest + * @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 */ - SignalSetRequest.decode = function decode(reader, length) { + 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.SignalSetRequest(); + 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.id = $root.flyteidl.core.SignalIdentifier.decode(reader, reader.uint32()); + message.project = reader.string(); break; case 2: - message.value = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); + message.domain = reader.string(); + break; + case 3: + message.matchingAttributes = $root.flyteidl.admin.MatchingAttributes.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -37150,49 +36722,51 @@ }; /** - * Verifies a SignalSetRequest message. + * Verifies a ProjectDomainAttributes message. * @function verify - * @memberof flyteidl.admin.SignalSetRequest + * @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 */ - SignalSetRequest.verify = function verify(message) { + ProjectDomainAttributes.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 (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 "value." + error; + return "matchingAttributes." + error; } return null; }; - return SignalSetRequest; + return ProjectDomainAttributes; })(); - admin.SignalSetResponse = (function() { + admin.ProjectDomainAttributesUpdateRequest = (function() { /** - * Properties of a SignalSetResponse. + * Properties of a ProjectDomainAttributesUpdateRequest. * @memberof flyteidl.admin - * @interface ISignalSetResponse + * @interface IProjectDomainAttributesUpdateRequest + * @property {flyteidl.admin.IProjectDomainAttributes|null} [attributes] ProjectDomainAttributesUpdateRequest attributes */ /** - * Constructs a new SignalSetResponse. + * Constructs a new ProjectDomainAttributesUpdateRequest. * @memberof flyteidl.admin - * @classdesc Represents a SignalSetResponse. - * @implements ISignalSetResponse + * @classdesc Represents a ProjectDomainAttributesUpdateRequest. + * @implements IProjectDomainAttributesUpdateRequest * @constructor - * @param {flyteidl.admin.ISignalSetResponse=} [properties] Properties to set + * @param {flyteidl.admin.IProjectDomainAttributesUpdateRequest=} [properties] Properties to set */ - function SignalSetResponse(properties) { + function ProjectDomainAttributesUpdateRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37200,50 +36774,63 @@ } /** - * Creates a new SignalSetResponse instance using the specified properties. + * 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.SignalSetResponse + * @memberof flyteidl.admin.ProjectDomainAttributesUpdateRequest * @static - * @param {flyteidl.admin.ISignalSetResponse=} [properties] Properties to set - * @returns {flyteidl.admin.SignalSetResponse} SignalSetResponse instance + * @param {flyteidl.admin.IProjectDomainAttributesUpdateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectDomainAttributesUpdateRequest} ProjectDomainAttributesUpdateRequest instance */ - SignalSetResponse.create = function create(properties) { - return new SignalSetResponse(properties); + ProjectDomainAttributesUpdateRequest.create = function create(properties) { + return new ProjectDomainAttributesUpdateRequest(properties); }; /** - * Encodes the specified SignalSetResponse message. Does not implicitly {@link flyteidl.admin.SignalSetResponse.verify|verify} messages. + * Encodes the specified ProjectDomainAttributesUpdateRequest message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesUpdateRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.SignalSetResponse + * @memberof flyteidl.admin.ProjectDomainAttributesUpdateRequest * @static - * @param {flyteidl.admin.ISignalSetResponse} message SignalSetResponse message or plain object to encode + * @param {flyteidl.admin.IProjectDomainAttributesUpdateRequest} message ProjectDomainAttributesUpdateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SignalSetResponse.encode = function encode(message, 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 SignalSetResponse message from the specified reader or buffer. + * Decodes a ProjectDomainAttributesUpdateRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.SignalSetResponse + * @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.SignalSetResponse} SignalSetResponse + * @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 */ - SignalSetResponse.decode = function decode(reader, length) { + 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.SignalSetResponse(); + 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; @@ -37253,42 +36840,44 @@ }; /** - * Verifies a SignalSetResponse message. + * Verifies a ProjectDomainAttributesUpdateRequest message. * @function verify - * @memberof flyteidl.admin.SignalSetResponse + * @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 */ - SignalSetResponse.verify = function verify(message) { + 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 SignalSetResponse; + return ProjectDomainAttributesUpdateRequest; })(); - admin.Signal = (function() { + admin.ProjectDomainAttributesUpdateResponse = (function() { /** - * Properties of a Signal. + * Properties of a ProjectDomainAttributesUpdateResponse. * @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 + * @interface IProjectDomainAttributesUpdateResponse */ /** - * Constructs a new Signal. + * Constructs a new ProjectDomainAttributesUpdateResponse. * @memberof flyteidl.admin - * @classdesc Represents a Signal. - * @implements ISignal + * @classdesc Represents a ProjectDomainAttributesUpdateResponse. + * @implements IProjectDomainAttributesUpdateResponse * @constructor - * @param {flyteidl.admin.ISignal=} [properties] Properties to set + * @param {flyteidl.admin.IProjectDomainAttributesUpdateResponse=} [properties] Properties to set */ - function Signal(properties) { + function ProjectDomainAttributesUpdateResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37296,89 +36885,50 @@ } /** - * 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. + * Creates a new ProjectDomainAttributesUpdateResponse instance using the specified properties. * @function create - * @memberof flyteidl.admin.Signal + * @memberof flyteidl.admin.ProjectDomainAttributesUpdateResponse * @static - * @param {flyteidl.admin.ISignal=} [properties] Properties to set - * @returns {flyteidl.admin.Signal} Signal instance + * @param {flyteidl.admin.IProjectDomainAttributesUpdateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectDomainAttributesUpdateResponse} ProjectDomainAttributesUpdateResponse instance */ - Signal.create = function create(properties) { - return new Signal(properties); + ProjectDomainAttributesUpdateResponse.create = function create(properties) { + return new ProjectDomainAttributesUpdateResponse(properties); }; /** - * Encodes the specified Signal message. Does not implicitly {@link flyteidl.admin.Signal.verify|verify} messages. + * Encodes the specified ProjectDomainAttributesUpdateResponse message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesUpdateResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.Signal + * @memberof flyteidl.admin.ProjectDomainAttributesUpdateResponse * @static - * @param {flyteidl.admin.ISignal} message Signal message or plain object to encode + * @param {flyteidl.admin.IProjectDomainAttributesUpdateResponse} message ProjectDomainAttributesUpdateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Signal.encode = function encode(message, writer) { + ProjectDomainAttributesUpdateResponse.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. + * Decodes a ProjectDomainAttributesUpdateResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.Signal + * @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.Signal} Signal + * @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 */ - Signal.decode = function decode(reader, length) { + 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.Signal(); + 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) { - 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; @@ -37388,56 +36938,42 @@ }; /** - * Verifies a Signal message. + * Verifies a ProjectDomainAttributesUpdateResponse message. * @function verify - * @memberof flyteidl.admin.Signal + * @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 */ - Signal.verify = function verify(message) { + ProjectDomainAttributesUpdateResponse.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; + return ProjectDomainAttributesUpdateResponse; })(); - admin.TaskCreateRequest = (function() { + admin.ProjectDomainAttributesGetRequest = (function() { /** - * Properties of a TaskCreateRequest. + * Properties of a ProjectDomainAttributesGetRequest. * @memberof flyteidl.admin - * @interface ITaskCreateRequest - * @property {flyteidl.core.IIdentifier|null} [id] TaskCreateRequest id - * @property {flyteidl.admin.ITaskSpec|null} [spec] TaskCreateRequest spec + * @interface IProjectDomainAttributesGetRequest + * @property {string|null} [project] ProjectDomainAttributesGetRequest project + * @property {string|null} [domain] ProjectDomainAttributesGetRequest domain + * @property {flyteidl.admin.MatchableResource|null} [resourceType] ProjectDomainAttributesGetRequest resourceType */ /** - * Constructs a new TaskCreateRequest. + * Constructs a new ProjectDomainAttributesGetRequest. * @memberof flyteidl.admin - * @classdesc Represents a TaskCreateRequest. - * @implements ITaskCreateRequest + * @classdesc Represents a ProjectDomainAttributesGetRequest. + * @implements IProjectDomainAttributesGetRequest * @constructor - * @param {flyteidl.admin.ITaskCreateRequest=} [properties] Properties to set + * @param {flyteidl.admin.IProjectDomainAttributesGetRequest=} [properties] Properties to set */ - function TaskCreateRequest(properties) { + function ProjectDomainAttributesGetRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37445,75 +36981,88 @@ } /** - * TaskCreateRequest id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.admin.TaskCreateRequest + * ProjectDomainAttributesGetRequest project. + * @member {string} project + * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest * @instance */ - TaskCreateRequest.prototype.id = null; + ProjectDomainAttributesGetRequest.prototype.project = ""; /** - * TaskCreateRequest spec. - * @member {flyteidl.admin.ITaskSpec|null|undefined} spec - * @memberof flyteidl.admin.TaskCreateRequest + * ProjectDomainAttributesGetRequest domain. + * @member {string} domain + * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest * @instance */ - TaskCreateRequest.prototype.spec = null; + ProjectDomainAttributesGetRequest.prototype.domain = ""; /** - * Creates a new TaskCreateRequest instance using the specified properties. + * ProjectDomainAttributesGetRequest resourceType. + * @member {flyteidl.admin.MatchableResource} resourceType + * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest + * @instance + */ + ProjectDomainAttributesGetRequest.prototype.resourceType = 0; + + /** + * Creates a new ProjectDomainAttributesGetRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.TaskCreateRequest + * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest * @static - * @param {flyteidl.admin.ITaskCreateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.TaskCreateRequest} TaskCreateRequest instance + * @param {flyteidl.admin.IProjectDomainAttributesGetRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectDomainAttributesGetRequest} ProjectDomainAttributesGetRequest instance */ - TaskCreateRequest.create = function create(properties) { - return new TaskCreateRequest(properties); + ProjectDomainAttributesGetRequest.create = function create(properties) { + return new ProjectDomainAttributesGetRequest(properties); }; /** - * Encodes the specified TaskCreateRequest message. Does not implicitly {@link flyteidl.admin.TaskCreateRequest.verify|verify} messages. + * Encodes the specified ProjectDomainAttributesGetRequest message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesGetRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.TaskCreateRequest + * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest * @static - * @param {flyteidl.admin.ITaskCreateRequest} message TaskCreateRequest message or plain object to encode + * @param {flyteidl.admin.IProjectDomainAttributesGetRequest} message ProjectDomainAttributesGetRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskCreateRequest.encode = function encode(message, writer) { + ProjectDomainAttributesGetRequest.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(); + 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); return writer; }; /** - * Decodes a TaskCreateRequest message from the specified reader or buffer. + * Decodes a ProjectDomainAttributesGetRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.TaskCreateRequest + * @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.TaskCreateRequest} TaskCreateRequest + * @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 */ - TaskCreateRequest.decode = function decode(reader, length) { + 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.TaskCreateRequest(); + 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.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + message.project = reader.string(); break; case 2: - message.spec = $root.flyteidl.admin.TaskSpec.decode(reader, reader.uint32()); + message.domain = reader.string(); + break; + case 3: + message.resourceType = reader.int32(); break; default: reader.skipType(tag & 7); @@ -37524,49 +37073,60 @@ }; /** - * Verifies a TaskCreateRequest message. + * Verifies a ProjectDomainAttributesGetRequest message. * @function verify - * @memberof flyteidl.admin.TaskCreateRequest + * @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 */ - TaskCreateRequest.verify = function verify(message) { + ProjectDomainAttributesGetRequest.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; - } + 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; + } return null; }; - return TaskCreateRequest; + return ProjectDomainAttributesGetRequest; })(); - admin.TaskCreateResponse = (function() { + admin.ProjectDomainAttributesGetResponse = (function() { /** - * Properties of a TaskCreateResponse. + * Properties of a ProjectDomainAttributesGetResponse. * @memberof flyteidl.admin - * @interface ITaskCreateResponse + * @interface IProjectDomainAttributesGetResponse + * @property {flyteidl.admin.IProjectDomainAttributes|null} [attributes] ProjectDomainAttributesGetResponse attributes */ /** - * Constructs a new TaskCreateResponse. + * Constructs a new ProjectDomainAttributesGetResponse. * @memberof flyteidl.admin - * @classdesc Represents a TaskCreateResponse. - * @implements ITaskCreateResponse + * @classdesc Represents a ProjectDomainAttributesGetResponse. + * @implements IProjectDomainAttributesGetResponse * @constructor - * @param {flyteidl.admin.ITaskCreateResponse=} [properties] Properties to set + * @param {flyteidl.admin.IProjectDomainAttributesGetResponse=} [properties] Properties to set */ - function TaskCreateResponse(properties) { + function ProjectDomainAttributesGetResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37574,50 +37134,63 @@ } /** - * Creates a new TaskCreateResponse instance using the specified properties. + * 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.TaskCreateResponse + * @memberof flyteidl.admin.ProjectDomainAttributesGetResponse * @static - * @param {flyteidl.admin.ITaskCreateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.TaskCreateResponse} TaskCreateResponse instance + * @param {flyteidl.admin.IProjectDomainAttributesGetResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectDomainAttributesGetResponse} ProjectDomainAttributesGetResponse instance */ - TaskCreateResponse.create = function create(properties) { - return new TaskCreateResponse(properties); + ProjectDomainAttributesGetResponse.create = function create(properties) { + return new ProjectDomainAttributesGetResponse(properties); }; /** - * Encodes the specified TaskCreateResponse message. Does not implicitly {@link flyteidl.admin.TaskCreateResponse.verify|verify} messages. + * Encodes the specified ProjectDomainAttributesGetResponse message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesGetResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.TaskCreateResponse + * @memberof flyteidl.admin.ProjectDomainAttributesGetResponse * @static - * @param {flyteidl.admin.ITaskCreateResponse} message TaskCreateResponse message or plain object to encode + * @param {flyteidl.admin.IProjectDomainAttributesGetResponse} message ProjectDomainAttributesGetResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskCreateResponse.encode = function encode(message, 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 TaskCreateResponse message from the specified reader or buffer. + * Decodes a ProjectDomainAttributesGetResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.TaskCreateResponse + * @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.TaskCreateResponse} TaskCreateResponse + * @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 */ - TaskCreateResponse.decode = function decode(reader, length) { + 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.TaskCreateResponse(); + 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; @@ -37627,42 +37200,47 @@ }; /** - * Verifies a TaskCreateResponse message. + * Verifies a ProjectDomainAttributesGetResponse message. * @function verify - * @memberof flyteidl.admin.TaskCreateResponse + * @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 */ - TaskCreateResponse.verify = function verify(message) { + 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 TaskCreateResponse; + return ProjectDomainAttributesGetResponse; })(); - admin.Task = (function() { + admin.ProjectDomainAttributesDeleteRequest = (function() { /** - * Properties of a Task. + * Properties of a ProjectDomainAttributesDeleteRequest. * @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 + * @interface IProjectDomainAttributesDeleteRequest + * @property {string|null} [project] ProjectDomainAttributesDeleteRequest project + * @property {string|null} [domain] ProjectDomainAttributesDeleteRequest domain + * @property {flyteidl.admin.MatchableResource|null} [resourceType] ProjectDomainAttributesDeleteRequest resourceType */ /** - * Constructs a new Task. + * Constructs a new ProjectDomainAttributesDeleteRequest. * @memberof flyteidl.admin - * @classdesc Represents a Task. - * @implements ITask + * @classdesc Represents a ProjectDomainAttributesDeleteRequest. + * @implements IProjectDomainAttributesDeleteRequest * @constructor - * @param {flyteidl.admin.ITask=} [properties] Properties to set + * @param {flyteidl.admin.IProjectDomainAttributesDeleteRequest=} [properties] Properties to set */ - function Task(properties) { + function ProjectDomainAttributesDeleteRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37670,88 +37248,88 @@ } /** - * Task id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.admin.Task + * ProjectDomainAttributesDeleteRequest project. + * @member {string} project + * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest * @instance */ - Task.prototype.id = null; + ProjectDomainAttributesDeleteRequest.prototype.project = ""; /** - * Task closure. - * @member {flyteidl.admin.ITaskClosure|null|undefined} closure - * @memberof flyteidl.admin.Task + * ProjectDomainAttributesDeleteRequest domain. + * @member {string} domain + * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest * @instance */ - Task.prototype.closure = null; + ProjectDomainAttributesDeleteRequest.prototype.domain = ""; /** - * Task shortDescription. - * @member {string} shortDescription - * @memberof flyteidl.admin.Task + * ProjectDomainAttributesDeleteRequest resourceType. + * @member {flyteidl.admin.MatchableResource} resourceType + * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest * @instance */ - Task.prototype.shortDescription = ""; + ProjectDomainAttributesDeleteRequest.prototype.resourceType = 0; /** - * Creates a new Task instance using the specified properties. + * Creates a new ProjectDomainAttributesDeleteRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.Task + * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest * @static - * @param {flyteidl.admin.ITask=} [properties] Properties to set - * @returns {flyteidl.admin.Task} Task instance + * @param {flyteidl.admin.IProjectDomainAttributesDeleteRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectDomainAttributesDeleteRequest} ProjectDomainAttributesDeleteRequest instance */ - Task.create = function create(properties) { - return new Task(properties); + ProjectDomainAttributesDeleteRequest.create = function create(properties) { + return new ProjectDomainAttributesDeleteRequest(properties); }; /** - * Encodes the specified Task message. Does not implicitly {@link flyteidl.admin.Task.verify|verify} messages. + * Encodes the specified ProjectDomainAttributesDeleteRequest message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesDeleteRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.Task + * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest * @static - * @param {flyteidl.admin.ITask} message Task message or plain object to encode + * @param {flyteidl.admin.IProjectDomainAttributesDeleteRequest} message ProjectDomainAttributesDeleteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Task.encode = function encode(message, writer) { + ProjectDomainAttributesDeleteRequest.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); + 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); return writer; }; /** - * Decodes a Task message from the specified reader or buffer. + * Decodes a ProjectDomainAttributesDeleteRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.Task + * @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.Task} Task + * @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 */ - Task.decode = function decode(reader, length) { + 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.Task(); + 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.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + message.project = reader.string(); break; case 2: - message.closure = $root.flyteidl.admin.TaskClosure.decode(reader, reader.uint32()); + message.domain = reader.string(); break; case 3: - message.shortDescription = reader.string(); + message.resourceType = reader.int32(); break; default: reader.skipType(tag & 7); @@ -37762,55 +37340,59 @@ }; /** - * Verifies a Task message. + * Verifies a ProjectDomainAttributesDeleteRequest message. * @function verify - * @memberof flyteidl.admin.Task + * @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 */ - Task.verify = function verify(message) { + ProjectDomainAttributesDeleteRequest.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"; + 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; + } return null; }; - return Task; + return ProjectDomainAttributesDeleteRequest; })(); - admin.TaskList = (function() { + admin.ProjectDomainAttributesDeleteResponse = (function() { /** - * Properties of a TaskList. + * Properties of a ProjectDomainAttributesDeleteResponse. * @memberof flyteidl.admin - * @interface ITaskList - * @property {Array.|null} [tasks] TaskList tasks - * @property {string|null} [token] TaskList token + * @interface IProjectDomainAttributesDeleteResponse */ /** - * Constructs a new TaskList. + * Constructs a new ProjectDomainAttributesDeleteResponse. * @memberof flyteidl.admin - * @classdesc Represents a TaskList. - * @implements ITaskList + * @classdesc Represents a ProjectDomainAttributesDeleteResponse. + * @implements IProjectDomainAttributesDeleteResponse * @constructor - * @param {flyteidl.admin.ITaskList=} [properties] Properties to set + * @param {flyteidl.admin.IProjectDomainAttributesDeleteResponse=} [properties] Properties to set */ - function TaskList(properties) { - this.tasks = []; + function ProjectDomainAttributesDeleteResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37818,79 +37400,50 @@ } /** - * 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. + * Creates a new ProjectDomainAttributesDeleteResponse instance using the specified properties. * @function create - * @memberof flyteidl.admin.TaskList + * @memberof flyteidl.admin.ProjectDomainAttributesDeleteResponse * @static - * @param {flyteidl.admin.ITaskList=} [properties] Properties to set - * @returns {flyteidl.admin.TaskList} TaskList instance + * @param {flyteidl.admin.IProjectDomainAttributesDeleteResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectDomainAttributesDeleteResponse} ProjectDomainAttributesDeleteResponse instance */ - TaskList.create = function create(properties) { - return new TaskList(properties); + ProjectDomainAttributesDeleteResponse.create = function create(properties) { + return new ProjectDomainAttributesDeleteResponse(properties); }; /** - * Encodes the specified TaskList message. Does not implicitly {@link flyteidl.admin.TaskList.verify|verify} messages. + * Encodes the specified ProjectDomainAttributesDeleteResponse message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesDeleteResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.TaskList + * @memberof flyteidl.admin.ProjectDomainAttributesDeleteResponse * @static - * @param {flyteidl.admin.ITaskList} message TaskList message or plain object to encode + * @param {flyteidl.admin.IProjectDomainAttributesDeleteResponse} message ProjectDomainAttributesDeleteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskList.encode = function encode(message, writer) { + ProjectDomainAttributesDeleteResponse.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. + * Decodes a ProjectDomainAttributesDeleteResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.TaskList + * @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.TaskList} TaskList + * @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 */ - TaskList.decode = function decode(reader, length) { + 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.TaskList(); + 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) { - 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; @@ -37900,53 +37453,41 @@ }; /** - * Verifies a TaskList message. + * Verifies a ProjectDomainAttributesDeleteResponse message. * @function verify - * @memberof flyteidl.admin.TaskList + * @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 */ - TaskList.verify = function verify(message) { + ProjectDomainAttributesDeleteResponse.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; + return ProjectDomainAttributesDeleteResponse; })(); - admin.TaskSpec = (function() { + admin.SignalGetOrCreateRequest = (function() { /** - * Properties of a TaskSpec. + * Properties of a SignalGetOrCreateRequest. * @memberof flyteidl.admin - * @interface ITaskSpec - * @property {flyteidl.core.ITaskTemplate|null} [template] TaskSpec template - * @property {flyteidl.admin.IDescriptionEntity|null} [description] TaskSpec description + * @interface ISignalGetOrCreateRequest + * @property {flyteidl.core.ISignalIdentifier|null} [id] SignalGetOrCreateRequest id + * @property {flyteidl.core.ILiteralType|null} [type] SignalGetOrCreateRequest type */ /** - * Constructs a new TaskSpec. + * Constructs a new SignalGetOrCreateRequest. * @memberof flyteidl.admin - * @classdesc Represents a TaskSpec. - * @implements ITaskSpec + * @classdesc Represents a SignalGetOrCreateRequest. + * @implements ISignalGetOrCreateRequest * @constructor - * @param {flyteidl.admin.ITaskSpec=} [properties] Properties to set + * @param {flyteidl.admin.ISignalGetOrCreateRequest=} [properties] Properties to set */ - function TaskSpec(properties) { + function SignalGetOrCreateRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37954,75 +37495,75 @@ } /** - * TaskSpec template. - * @member {flyteidl.core.ITaskTemplate|null|undefined} template - * @memberof flyteidl.admin.TaskSpec + * SignalGetOrCreateRequest id. + * @member {flyteidl.core.ISignalIdentifier|null|undefined} id + * @memberof flyteidl.admin.SignalGetOrCreateRequest * @instance */ - TaskSpec.prototype.template = null; + SignalGetOrCreateRequest.prototype.id = null; /** - * TaskSpec description. - * @member {flyteidl.admin.IDescriptionEntity|null|undefined} description - * @memberof flyteidl.admin.TaskSpec + * SignalGetOrCreateRequest type. + * @member {flyteidl.core.ILiteralType|null|undefined} type + * @memberof flyteidl.admin.SignalGetOrCreateRequest * @instance */ - TaskSpec.prototype.description = null; + SignalGetOrCreateRequest.prototype.type = null; /** - * Creates a new TaskSpec instance using the specified properties. + * Creates a new SignalGetOrCreateRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.TaskSpec + * @memberof flyteidl.admin.SignalGetOrCreateRequest * @static - * @param {flyteidl.admin.ITaskSpec=} [properties] Properties to set - * @returns {flyteidl.admin.TaskSpec} TaskSpec instance + * @param {flyteidl.admin.ISignalGetOrCreateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.SignalGetOrCreateRequest} SignalGetOrCreateRequest instance */ - TaskSpec.create = function create(properties) { - return new TaskSpec(properties); + SignalGetOrCreateRequest.create = function create(properties) { + return new SignalGetOrCreateRequest(properties); }; /** - * Encodes the specified TaskSpec message. Does not implicitly {@link flyteidl.admin.TaskSpec.verify|verify} messages. + * Encodes the specified SignalGetOrCreateRequest message. Does not implicitly {@link flyteidl.admin.SignalGetOrCreateRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.TaskSpec + * @memberof flyteidl.admin.SignalGetOrCreateRequest * @static - * @param {flyteidl.admin.ITaskSpec} message TaskSpec message or plain object to encode + * @param {flyteidl.admin.ISignalGetOrCreateRequest} message SignalGetOrCreateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskSpec.encode = function encode(message, writer) { + SignalGetOrCreateRequest.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(); + 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 TaskSpec message from the specified reader or buffer. + * Decodes a SignalGetOrCreateRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.TaskSpec + * @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.TaskSpec} TaskSpec + * @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 */ - TaskSpec.decode = function decode(reader, length) { + 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.TaskSpec(); + 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.template = $root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32()); + message.id = $root.flyteidl.core.SignalIdentifier.decode(reader, reader.uint32()); break; case 2: - message.description = $root.flyteidl.admin.DescriptionEntity.decode(reader, reader.uint32()); + message.type = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -38033,51 +37574,54 @@ }; /** - * Verifies a TaskSpec message. + * Verifies a SignalGetOrCreateRequest message. * @function verify - * @memberof flyteidl.admin.TaskSpec + * @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 */ - TaskSpec.verify = function verify(message) { + SignalGetOrCreateRequest.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 (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.SignalIdentifier.verify(message.id); if (error) - return "template." + error; + return "id." + error; } - if (message.description != null && message.hasOwnProperty("description")) { - var error = $root.flyteidl.admin.DescriptionEntity.verify(message.description); + if (message.type != null && message.hasOwnProperty("type")) { + var error = $root.flyteidl.core.LiteralType.verify(message.type); if (error) - return "description." + error; + return "type." + error; } return null; }; - return TaskSpec; + return SignalGetOrCreateRequest; })(); - admin.TaskClosure = (function() { + admin.SignalListRequest = (function() { /** - * Properties of a TaskClosure. + * Properties of a SignalListRequest. * @memberof flyteidl.admin - * @interface ITaskClosure - * @property {flyteidl.core.ICompiledTask|null} [compiledTask] TaskClosure compiledTask - * @property {google.protobuf.ITimestamp|null} [createdAt] TaskClosure createdAt + * @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 TaskClosure. + * Constructs a new SignalListRequest. * @memberof flyteidl.admin - * @classdesc Represents a TaskClosure. - * @implements ITaskClosure + * @classdesc Represents a SignalListRequest. + * @implements ISignalListRequest * @constructor - * @param {flyteidl.admin.ITaskClosure=} [properties] Properties to set + * @param {flyteidl.admin.ISignalListRequest=} [properties] Properties to set */ - function TaskClosure(properties) { + function SignalListRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38085,75 +37629,114 @@ } /** - * TaskClosure compiledTask. - * @member {flyteidl.core.ICompiledTask|null|undefined} compiledTask - * @memberof flyteidl.admin.TaskClosure + * SignalListRequest workflowExecutionId. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} workflowExecutionId + * @memberof flyteidl.admin.SignalListRequest * @instance */ - TaskClosure.prototype.compiledTask = null; + SignalListRequest.prototype.workflowExecutionId = null; /** - * TaskClosure createdAt. - * @member {google.protobuf.ITimestamp|null|undefined} createdAt - * @memberof flyteidl.admin.TaskClosure + * SignalListRequest limit. + * @member {number} limit + * @memberof flyteidl.admin.SignalListRequest * @instance */ - TaskClosure.prototype.createdAt = null; + SignalListRequest.prototype.limit = 0; /** - * Creates a new TaskClosure instance using the specified properties. + * 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.TaskClosure + * @memberof flyteidl.admin.SignalListRequest * @static - * @param {flyteidl.admin.ITaskClosure=} [properties] Properties to set - * @returns {flyteidl.admin.TaskClosure} TaskClosure instance + * @param {flyteidl.admin.ISignalListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.SignalListRequest} SignalListRequest instance */ - TaskClosure.create = function create(properties) { - return new TaskClosure(properties); + SignalListRequest.create = function create(properties) { + return new SignalListRequest(properties); }; /** - * Encodes the specified TaskClosure message. Does not implicitly {@link flyteidl.admin.TaskClosure.verify|verify} messages. + * Encodes the specified SignalListRequest message. Does not implicitly {@link flyteidl.admin.SignalListRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.TaskClosure + * @memberof flyteidl.admin.SignalListRequest * @static - * @param {flyteidl.admin.ITaskClosure} message TaskClosure message or plain object to encode + * @param {flyteidl.admin.ISignalListRequest} message SignalListRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskClosure.encode = function encode(message, writer) { + SignalListRequest.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(); + 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 TaskClosure message from the specified reader or buffer. + * Decodes a SignalListRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.TaskClosure + * @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.TaskClosure} TaskClosure + * @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 */ - TaskClosure.decode = function decode(reader, length) { + 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.TaskClosure(); + 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.compiledTask = $root.flyteidl.core.CompiledTask.decode(reader, reader.uint32()); + message.workflowExecutionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); break; case 2: - message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + 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); @@ -38164,50 +37747,61 @@ }; /** - * Verifies a TaskClosure message. + * Verifies a SignalListRequest message. * @function verify - * @memberof flyteidl.admin.TaskClosure + * @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 */ - TaskClosure.verify = function verify(message) { + SignalListRequest.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 (message.workflowExecutionId != null && message.hasOwnProperty("workflowExecutionId")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.workflowExecutionId); if (error) - return "compiledTask." + error; + return "workflowExecutionId." + error; } - if (message.createdAt != null && message.hasOwnProperty("createdAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.createdAt); + 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 "createdAt." + error; + return "sortBy." + error; } return null; }; - return TaskClosure; + return SignalListRequest; })(); - admin.TaskExecutionGetRequest = (function() { + admin.SignalList = (function() { /** - * Properties of a TaskExecutionGetRequest. + * Properties of a SignalList. * @memberof flyteidl.admin - * @interface ITaskExecutionGetRequest - * @property {flyteidl.core.ITaskExecutionIdentifier|null} [id] TaskExecutionGetRequest id + * @interface ISignalList + * @property {Array.|null} [signals] SignalList signals + * @property {string|null} [token] SignalList token */ /** - * Constructs a new TaskExecutionGetRequest. + * Constructs a new SignalList. * @memberof flyteidl.admin - * @classdesc Represents a TaskExecutionGetRequest. - * @implements ITaskExecutionGetRequest + * @classdesc Represents a SignalList. + * @implements ISignalList * @constructor - * @param {flyteidl.admin.ITaskExecutionGetRequest=} [properties] Properties to set + * @param {flyteidl.admin.ISignalList=} [properties] Properties to set */ - function TaskExecutionGetRequest(properties) { + function SignalList(properties) { + this.signals = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38215,62 +37809,78 @@ } /** - * TaskExecutionGetRequest id. - * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.TaskExecutionGetRequest + * SignalList signals. + * @member {Array.} signals + * @memberof flyteidl.admin.SignalList * @instance */ - TaskExecutionGetRequest.prototype.id = null; + SignalList.prototype.signals = $util.emptyArray; /** - * Creates a new TaskExecutionGetRequest instance using the specified properties. + * 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.TaskExecutionGetRequest + * @memberof flyteidl.admin.SignalList * @static - * @param {flyteidl.admin.ITaskExecutionGetRequest=} [properties] Properties to set - * @returns {flyteidl.admin.TaskExecutionGetRequest} TaskExecutionGetRequest instance + * @param {flyteidl.admin.ISignalList=} [properties] Properties to set + * @returns {flyteidl.admin.SignalList} SignalList instance */ - TaskExecutionGetRequest.create = function create(properties) { - return new TaskExecutionGetRequest(properties); + SignalList.create = function create(properties) { + return new SignalList(properties); }; /** - * Encodes the specified TaskExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetRequest.verify|verify} messages. + * Encodes the specified SignalList message. Does not implicitly {@link flyteidl.admin.SignalList.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.TaskExecutionGetRequest + * @memberof flyteidl.admin.SignalList * @static - * @param {flyteidl.admin.ITaskExecutionGetRequest} message TaskExecutionGetRequest message or plain object to encode + * @param {flyteidl.admin.ISignalList} message SignalList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskExecutionGetRequest.encode = function encode(message, writer) { + SignalList.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.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 TaskExecutionGetRequest message from the specified reader or buffer. + * Decodes a SignalList message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.TaskExecutionGetRequest + * @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.TaskExecutionGetRequest} TaskExecutionGetRequest + * @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 */ - TaskExecutionGetRequest.decode = function decode(reader, length) { + 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.TaskExecutionGetRequest(); + 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: - message.id = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); + 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); @@ -38281,49 +37891,53 @@ }; /** - * Verifies a TaskExecutionGetRequest message. + * Verifies a SignalList message. * @function verify - * @memberof flyteidl.admin.TaskExecutionGetRequest + * @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 */ - TaskExecutionGetRequest.verify = function verify(message) { + SignalList.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.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 TaskExecutionGetRequest; + return SignalList; })(); - admin.TaskExecutionListRequest = (function() { + admin.SignalSetRequest = (function() { /** - * Properties of a TaskExecutionListRequest. + * Properties of a SignalSetRequest. * @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 + * @interface ISignalSetRequest + * @property {flyteidl.core.ISignalIdentifier|null} [id] SignalSetRequest id + * @property {flyteidl.core.ILiteral|null} [value] SignalSetRequest value */ /** - * Constructs a new TaskExecutionListRequest. + * Constructs a new SignalSetRequest. * @memberof flyteidl.admin - * @classdesc Represents a TaskExecutionListRequest. - * @implements ITaskExecutionListRequest + * @classdesc Represents a SignalSetRequest. + * @implements ISignalSetRequest * @constructor - * @param {flyteidl.admin.ITaskExecutionListRequest=} [properties] Properties to set + * @param {flyteidl.admin.ISignalSetRequest=} [properties] Properties to set */ - function TaskExecutionListRequest(properties) { + function SignalSetRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38331,114 +37945,75 @@ } /** - * 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 + * SignalSetRequest id. + * @member {flyteidl.core.ISignalIdentifier|null|undefined} id + * @memberof flyteidl.admin.SignalSetRequest * @instance */ - TaskExecutionListRequest.prototype.filters = ""; + SignalSetRequest.prototype.id = null; /** - * TaskExecutionListRequest sortBy. - * @member {flyteidl.admin.ISort|null|undefined} sortBy - * @memberof flyteidl.admin.TaskExecutionListRequest + * SignalSetRequest value. + * @member {flyteidl.core.ILiteral|null|undefined} value + * @memberof flyteidl.admin.SignalSetRequest * @instance */ - TaskExecutionListRequest.prototype.sortBy = null; + SignalSetRequest.prototype.value = null; /** - * Creates a new TaskExecutionListRequest instance using the specified properties. + * Creates a new SignalSetRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.TaskExecutionListRequest + * @memberof flyteidl.admin.SignalSetRequest * @static - * @param {flyteidl.admin.ITaskExecutionListRequest=} [properties] Properties to set - * @returns {flyteidl.admin.TaskExecutionListRequest} TaskExecutionListRequest instance + * @param {flyteidl.admin.ISignalSetRequest=} [properties] Properties to set + * @returns {flyteidl.admin.SignalSetRequest} SignalSetRequest instance */ - TaskExecutionListRequest.create = function create(properties) { - return new TaskExecutionListRequest(properties); + SignalSetRequest.create = function create(properties) { + return new SignalSetRequest(properties); }; /** - * Encodes the specified TaskExecutionListRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionListRequest.verify|verify} messages. + * Encodes the specified SignalSetRequest message. Does not implicitly {@link flyteidl.admin.SignalSetRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.TaskExecutionListRequest + * @memberof flyteidl.admin.SignalSetRequest * @static - * @param {flyteidl.admin.ITaskExecutionListRequest} message TaskExecutionListRequest message or plain object to encode + * @param {flyteidl.admin.ISignalSetRequest} message SignalSetRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskExecutionListRequest.encode = function encode(message, writer) { + SignalSetRequest.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(); + 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 TaskExecutionListRequest message from the specified reader or buffer. + * Decodes a SignalSetRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.TaskExecutionListRequest + * @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.TaskExecutionListRequest} TaskExecutionListRequest + * @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 */ - TaskExecutionListRequest.decode = function decode(reader, length) { + 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.TaskExecutionListRequest(); + 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.nodeExecutionId = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + message.id = $root.flyteidl.core.SignalIdentifier.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()); + message.value = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -38449,62 +38024,49 @@ }; /** - * Verifies a TaskExecutionListRequest message. + * Verifies a SignalSetRequest message. * @function verify - * @memberof flyteidl.admin.TaskExecutionListRequest + * @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 */ - TaskExecutionListRequest.verify = function verify(message) { + SignalSetRequest.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 (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.SignalIdentifier.verify(message.id); if (error) - return "nodeExecutionId." + 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 (message.value != null && message.hasOwnProperty("value")) { + var error = $root.flyteidl.core.Literal.verify(message.value); if (error) - return "sortBy." + error; + return "value." + error; } return null; }; - return TaskExecutionListRequest; + return SignalSetRequest; })(); - admin.TaskExecution = (function() { + admin.SignalSetResponse = (function() { /** - * Properties of a TaskExecution. + * Properties of a SignalSetResponse. * @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 + * @interface ISignalSetResponse */ /** - * Constructs a new TaskExecution. + * Constructs a new SignalSetResponse. * @memberof flyteidl.admin - * @classdesc Represents a TaskExecution. - * @implements ITaskExecution + * @classdesc Represents a SignalSetResponse. + * @implements ISignalSetResponse * @constructor - * @param {flyteidl.admin.ITaskExecution=} [properties] Properties to set + * @param {flyteidl.admin.ISignalSetResponse=} [properties] Properties to set */ - function TaskExecution(properties) { + function SignalSetResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38512,102 +38074,50 @@ } /** - * 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. + * Creates a new SignalSetResponse instance using the specified properties. * @function create - * @memberof flyteidl.admin.TaskExecution + * @memberof flyteidl.admin.SignalSetResponse * @static - * @param {flyteidl.admin.ITaskExecution=} [properties] Properties to set - * @returns {flyteidl.admin.TaskExecution} TaskExecution instance + * @param {flyteidl.admin.ISignalSetResponse=} [properties] Properties to set + * @returns {flyteidl.admin.SignalSetResponse} SignalSetResponse instance */ - TaskExecution.create = function create(properties) { - return new TaskExecution(properties); + SignalSetResponse.create = function create(properties) { + return new SignalSetResponse(properties); }; /** - * Encodes the specified TaskExecution message. Does not implicitly {@link flyteidl.admin.TaskExecution.verify|verify} messages. + * Encodes the specified SignalSetResponse message. Does not implicitly {@link flyteidl.admin.SignalSetResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.TaskExecution + * @memberof flyteidl.admin.SignalSetResponse * @static - * @param {flyteidl.admin.ITaskExecution} message TaskExecution message or plain object to encode + * @param {flyteidl.admin.ISignalSetResponse} message SignalSetResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskExecution.encode = function encode(message, writer) { + SignalSetResponse.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. + * Decodes a SignalSetResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.TaskExecution + * @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.TaskExecution} TaskExecution + * @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 */ - TaskExecution.decode = function decode(reader, length) { + 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.TaskExecution(); + 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) { - 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; @@ -38617,58 +38127,42 @@ }; /** - * Verifies a TaskExecution message. + * Verifies a SignalSetResponse message. * @function verify - * @memberof flyteidl.admin.TaskExecution + * @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 */ - TaskExecution.verify = function verify(message) { + SignalSetResponse.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; + return SignalSetResponse; })(); - admin.TaskExecutionList = (function() { + admin.Signal = (function() { /** - * Properties of a TaskExecutionList. + * Properties of a Signal. * @memberof flyteidl.admin - * @interface ITaskExecutionList - * @property {Array.|null} [taskExecutions] TaskExecutionList taskExecutions - * @property {string|null} [token] TaskExecutionList token + * @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 TaskExecutionList. + * Constructs a new Signal. * @memberof flyteidl.admin - * @classdesc Represents a TaskExecutionList. - * @implements ITaskExecutionList + * @classdesc Represents a Signal. + * @implements ISignal * @constructor - * @param {flyteidl.admin.ITaskExecutionList=} [properties] Properties to set + * @param {flyteidl.admin.ISignal=} [properties] Properties to set */ - function TaskExecutionList(properties) { - this.taskExecutions = []; + function Signal(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38676,78 +38170,88 @@ } /** - * TaskExecutionList taskExecutions. - * @member {Array.} taskExecutions - * @memberof flyteidl.admin.TaskExecutionList + * Signal id. + * @member {flyteidl.core.ISignalIdentifier|null|undefined} id + * @memberof flyteidl.admin.Signal * @instance */ - TaskExecutionList.prototype.taskExecutions = $util.emptyArray; + Signal.prototype.id = null; /** - * TaskExecutionList token. - * @member {string} token - * @memberof flyteidl.admin.TaskExecutionList + * Signal type. + * @member {flyteidl.core.ILiteralType|null|undefined} type + * @memberof flyteidl.admin.Signal * @instance */ - TaskExecutionList.prototype.token = ""; + Signal.prototype.type = null; /** - * Creates a new TaskExecutionList instance using the specified properties. + * 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.TaskExecutionList + * @memberof flyteidl.admin.Signal * @static - * @param {flyteidl.admin.ITaskExecutionList=} [properties] Properties to set - * @returns {flyteidl.admin.TaskExecutionList} TaskExecutionList instance + * @param {flyteidl.admin.ISignal=} [properties] Properties to set + * @returns {flyteidl.admin.Signal} Signal instance */ - TaskExecutionList.create = function create(properties) { - return new TaskExecutionList(properties); + Signal.create = function create(properties) { + return new Signal(properties); }; /** - * Encodes the specified TaskExecutionList message. Does not implicitly {@link flyteidl.admin.TaskExecutionList.verify|verify} messages. + * Encodes the specified Signal message. Does not implicitly {@link flyteidl.admin.Signal.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.TaskExecutionList + * @memberof flyteidl.admin.Signal * @static - * @param {flyteidl.admin.ITaskExecutionList} message TaskExecutionList message or plain object to encode + * @param {flyteidl.admin.ISignal} message Signal message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskExecutionList.encode = function encode(message, writer) { + Signal.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); + 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 TaskExecutionList message from the specified reader or buffer. + * Decodes a Signal message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.TaskExecutionList + * @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.TaskExecutionList} TaskExecutionList + * @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 */ - TaskExecutionList.decode = function decode(reader, length) { + 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.TaskExecutionList(); + 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: - if (!(message.taskExecutions && message.taskExecutions.length)) - message.taskExecutions = []; - message.taskExecutions.push($root.flyteidl.admin.TaskExecution.decode(reader, reader.uint32())); + message.id = $root.flyteidl.core.SignalIdentifier.decode(reader, reader.uint32()); break; case 2: - message.token = reader.string(); + 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); @@ -38758,68 +38262,56 @@ }; /** - * Verifies a TaskExecutionList message. + * Verifies a Signal message. * @function verify - * @memberof flyteidl.admin.TaskExecutionList + * @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 */ - TaskExecutionList.verify = function verify(message) { + Signal.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.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; } - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; return null; }; - return TaskExecutionList; + return Signal; })(); - admin.TaskExecutionClosure = (function() { + admin.TaskCreateRequest = (function() { /** - * Properties of a TaskExecutionClosure. + * Properties of a TaskCreateRequest. * @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 + * @interface ITaskCreateRequest + * @property {flyteidl.core.IIdentifier|null} [id] TaskCreateRequest id + * @property {flyteidl.admin.ITaskSpec|null} [spec] TaskCreateRequest spec */ /** - * Constructs a new TaskExecutionClosure. + * Constructs a new TaskCreateRequest. * @memberof flyteidl.admin - * @classdesc Represents a TaskExecutionClosure. - * @implements ITaskExecutionClosure + * @classdesc Represents a TaskCreateRequest. + * @implements ITaskCreateRequest * @constructor - * @param {flyteidl.admin.ITaskExecutionClosure=} [properties] Properties to set + * @param {flyteidl.admin.ITaskCreateRequest=} [properties] Properties to set */ - function TaskExecutionClosure(properties) { - this.logs = []; - this.reasons = []; + function TaskCreateRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38827,264 +38319,313 @@ } /** - * TaskExecutionClosure outputUri. - * @member {string} outputUri - * @memberof flyteidl.admin.TaskExecutionClosure + * TaskCreateRequest id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.TaskCreateRequest * @instance */ - TaskExecutionClosure.prototype.outputUri = ""; + TaskCreateRequest.prototype.id = null; /** - * TaskExecutionClosure error. - * @member {flyteidl.core.IExecutionError|null|undefined} error - * @memberof flyteidl.admin.TaskExecutionClosure + * TaskCreateRequest spec. + * @member {flyteidl.admin.ITaskSpec|null|undefined} spec + * @memberof flyteidl.admin.TaskCreateRequest * @instance */ - TaskExecutionClosure.prototype.error = null; + TaskCreateRequest.prototype.spec = null; /** - * TaskExecutionClosure outputData. - * @member {flyteidl.core.ILiteralMap|null|undefined} outputData - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance + * 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 */ - TaskExecutionClosure.prototype.outputData = null; + TaskCreateRequest.create = function create(properties) { + return new TaskCreateRequest(properties); + }; /** - * TaskExecutionClosure phase. - * @member {flyteidl.core.TaskExecution.Phase} phase - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance + * 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 */ - TaskExecutionClosure.prototype.phase = 0; + 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; + }; /** - * TaskExecutionClosure logs. - * @member {Array.} logs - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance + * 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 */ - TaskExecutionClosure.prototype.logs = $util.emptyArray; + 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; + }; /** - * TaskExecutionClosure startedAt. - * @member {google.protobuf.ITimestamp|null|undefined} startedAt - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.startedAt = null; + * 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() { /** - * TaskExecutionClosure duration. - * @member {google.protobuf.IDuration|null|undefined} duration - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance + * Properties of a TaskCreateResponse. + * @memberof flyteidl.admin + * @interface ITaskCreateResponse */ - TaskExecutionClosure.prototype.duration = null; /** - * TaskExecutionClosure createdAt. - * @member {google.protobuf.ITimestamp|null|undefined} createdAt - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance + * Constructs a new TaskCreateResponse. + * @memberof flyteidl.admin + * @classdesc Represents a TaskCreateResponse. + * @implements ITaskCreateResponse + * @constructor + * @param {flyteidl.admin.ITaskCreateResponse=} [properties] Properties to set */ - TaskExecutionClosure.prototype.createdAt = null; + 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]]; + } /** - * TaskExecutionClosure updatedAt. - * @member {google.protobuf.ITimestamp|null|undefined} updatedAt - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance + * 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 */ - TaskExecutionClosure.prototype.updatedAt = null; + TaskCreateResponse.create = function create(properties) { + return new TaskCreateResponse(properties); + }; /** - * TaskExecutionClosure customInfo. - * @member {google.protobuf.IStruct|null|undefined} customInfo - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance + * 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 */ - TaskExecutionClosure.prototype.customInfo = null; + TaskCreateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; /** - * TaskExecutionClosure reason. - * @member {string} reason - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance + * 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 */ - TaskExecutionClosure.prototype.reason = ""; + 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; + }; /** - * TaskExecutionClosure taskType. - * @member {string} taskType - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance + * 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 */ - TaskExecutionClosure.prototype.taskType = ""; + TaskCreateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return TaskCreateResponse; + })(); + + admin.Task = (function() { /** - * TaskExecutionClosure metadata. - * @member {flyteidl.event.ITaskExecutionMetadata|null|undefined} metadata - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance + * 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 */ - TaskExecutionClosure.prototype.metadata = null; /** - * TaskExecutionClosure eventVersion. - * @member {number} eventVersion - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance + * Constructs a new Task. + * @memberof flyteidl.admin + * @classdesc Represents a Task. + * @implements ITask + * @constructor + * @param {flyteidl.admin.ITask=} [properties] Properties to set */ - TaskExecutionClosure.prototype.eventVersion = 0; + 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]]; + } /** - * TaskExecutionClosure reasons. - * @member {Array.} reasons - * @memberof flyteidl.admin.TaskExecutionClosure + * Task id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.Task * @instance */ - TaskExecutionClosure.prototype.reasons = $util.emptyArray; + Task.prototype.id = null; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Task closure. + * @member {flyteidl.admin.ITaskClosure|null|undefined} closure + * @memberof flyteidl.admin.Task + * @instance + */ + Task.prototype.closure = null; /** - * TaskExecutionClosure outputResult. - * @member {"outputUri"|"error"|"outputData"|undefined} outputResult - * @memberof flyteidl.admin.TaskExecutionClosure + * Task shortDescription. + * @member {string} shortDescription + * @memberof flyteidl.admin.Task * @instance */ - Object.defineProperty(TaskExecutionClosure.prototype, "outputResult", { - get: $util.oneOfGetter($oneOfFields = ["outputUri", "error", "outputData"]), - set: $util.oneOfSetter($oneOfFields) - }); + Task.prototype.shortDescription = ""; /** - * Creates a new TaskExecutionClosure instance using the specified properties. + * Creates a new Task instance using the specified properties. * @function create - * @memberof flyteidl.admin.TaskExecutionClosure + * @memberof flyteidl.admin.Task * @static - * @param {flyteidl.admin.ITaskExecutionClosure=} [properties] Properties to set - * @returns {flyteidl.admin.TaskExecutionClosure} TaskExecutionClosure instance + * @param {flyteidl.admin.ITask=} [properties] Properties to set + * @returns {flyteidl.admin.Task} Task instance */ - TaskExecutionClosure.create = function create(properties) { - return new TaskExecutionClosure(properties); + Task.create = function create(properties) { + return new Task(properties); }; /** - * Encodes the specified TaskExecutionClosure message. Does not implicitly {@link flyteidl.admin.TaskExecutionClosure.verify|verify} messages. + * Encodes the specified Task message. Does not implicitly {@link flyteidl.admin.Task.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.TaskExecutionClosure + * @memberof flyteidl.admin.Task * @static - * @param {flyteidl.admin.ITaskExecutionClosure} message TaskExecutionClosure message or plain object to encode + * @param {flyteidl.admin.ITask} message Task message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskExecutionClosure.encode = function encode(message, writer) { + Task.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(); + 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 TaskExecutionClosure message from the specified reader or buffer. + * Decodes a Task message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.TaskExecutionClosure + * @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.TaskExecutionClosure} TaskExecutionClosure + * @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 */ - TaskExecutionClosure.decode = function decode(reader, length) { + 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.TaskExecutionClosure(); + 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.outputUri = reader.string(); + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); 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()); + message.closure = $root.flyteidl.admin.TaskClosure.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())); + message.shortDescription = reader.string(); break; default: reader.skipType(tag & 7); @@ -39095,138 +38636,55 @@ }; /** - * Verifies a TaskExecutionClosure message. + * Verifies a Task message. * @function verify - * @memberof flyteidl.admin.TaskExecutionClosure + * @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 */ - TaskExecutionClosure.verify = function verify(message) { + Task.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 (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); if (error) - return "customInfo." + error; + return "id." + 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 (message.closure != null && message.hasOwnProperty("closure")) { + var error = $root.flyteidl.admin.TaskClosure.verify(message.closure); 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 "closure." + error; } + if (message.shortDescription != null && message.hasOwnProperty("shortDescription")) + if (!$util.isString(message.shortDescription)) + return "shortDescription: string expected"; return null; }; - return TaskExecutionClosure; + return Task; })(); - admin.Reason = (function() { + admin.TaskList = (function() { /** - * Properties of a Reason. + * Properties of a TaskList. * @memberof flyteidl.admin - * @interface IReason - * @property {google.protobuf.ITimestamp|null} [occurredAt] Reason occurredAt - * @property {string|null} [message] Reason message + * @interface ITaskList + * @property {Array.|null} [tasks] TaskList tasks + * @property {string|null} [token] TaskList token */ /** - * Constructs a new Reason. + * Constructs a new TaskList. * @memberof flyteidl.admin - * @classdesc Represents a Reason. - * @implements IReason + * @classdesc Represents a TaskList. + * @implements ITaskList * @constructor - * @param {flyteidl.admin.IReason=} [properties] Properties to set + * @param {flyteidl.admin.ITaskList=} [properties] Properties to set */ - function Reason(properties) { + function TaskList(properties) { + this.tasks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39234,75 +38692,78 @@ } /** - * Reason occurredAt. - * @member {google.protobuf.ITimestamp|null|undefined} occurredAt - * @memberof flyteidl.admin.Reason + * TaskList tasks. + * @member {Array.} tasks + * @memberof flyteidl.admin.TaskList * @instance */ - Reason.prototype.occurredAt = null; + TaskList.prototype.tasks = $util.emptyArray; /** - * Reason message. - * @member {string} message - * @memberof flyteidl.admin.Reason + * TaskList token. + * @member {string} token + * @memberof flyteidl.admin.TaskList * @instance */ - Reason.prototype.message = ""; + TaskList.prototype.token = ""; /** - * Creates a new Reason instance using the specified properties. + * Creates a new TaskList instance using the specified properties. * @function create - * @memberof flyteidl.admin.Reason + * @memberof flyteidl.admin.TaskList * @static - * @param {flyteidl.admin.IReason=} [properties] Properties to set - * @returns {flyteidl.admin.Reason} Reason instance + * @param {flyteidl.admin.ITaskList=} [properties] Properties to set + * @returns {flyteidl.admin.TaskList} TaskList instance */ - Reason.create = function create(properties) { - return new Reason(properties); + TaskList.create = function create(properties) { + return new TaskList(properties); }; /** - * Encodes the specified Reason message. Does not implicitly {@link flyteidl.admin.Reason.verify|verify} messages. + * Encodes the specified TaskList message. Does not implicitly {@link flyteidl.admin.TaskList.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.Reason + * @memberof flyteidl.admin.TaskList * @static - * @param {flyteidl.admin.IReason} message Reason message or plain object to encode + * @param {flyteidl.admin.ITaskList} message TaskList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Reason.encode = function encode(message, writer) { + TaskList.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); + 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 Reason message from the specified reader or buffer. + * Decodes a TaskList message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.Reason + * @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.Reason} Reason + * @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 */ - Reason.decode = function decode(reader, length) { + 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.Reason(); + 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: - message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + if (!(message.tasks && message.tasks.length)) + message.tasks = []; + message.tasks.push($root.flyteidl.admin.Task.decode(reader, reader.uint32())); break; case 2: - message.message = reader.string(); + message.token = reader.string(); break; default: reader.skipType(tag & 7); @@ -39313,48 +38774,53 @@ }; /** - * Verifies a Reason message. + * Verifies a TaskList message. * @function verify - * @memberof flyteidl.admin.Reason + * @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 */ - Reason.verify = function verify(message) { + TaskList.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; + 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.TaskExecutionGetDataRequest = (function() { + admin.TaskSpec = (function() { /** - * Properties of a TaskExecutionGetDataRequest. + * Properties of a TaskSpec. * @memberof flyteidl.admin - * @interface ITaskExecutionGetDataRequest - * @property {flyteidl.core.ITaskExecutionIdentifier|null} [id] TaskExecutionGetDataRequest id + * @interface ITaskSpec + * @property {flyteidl.core.ITaskTemplate|null} [template] TaskSpec template + * @property {flyteidl.admin.IDescriptionEntity|null} [description] TaskSpec description */ /** - * Constructs a new TaskExecutionGetDataRequest. + * Constructs a new TaskSpec. * @memberof flyteidl.admin - * @classdesc Represents a TaskExecutionGetDataRequest. - * @implements ITaskExecutionGetDataRequest + * @classdesc Represents a TaskSpec. + * @implements ITaskSpec * @constructor - * @param {flyteidl.admin.ITaskExecutionGetDataRequest=} [properties] Properties to set + * @param {flyteidl.admin.ITaskSpec=} [properties] Properties to set */ - function TaskExecutionGetDataRequest(properties) { + function TaskSpec(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39362,62 +38828,75 @@ } /** - * TaskExecutionGetDataRequest id. - * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.TaskExecutionGetDataRequest + * TaskSpec template. + * @member {flyteidl.core.ITaskTemplate|null|undefined} template + * @memberof flyteidl.admin.TaskSpec * @instance */ - TaskExecutionGetDataRequest.prototype.id = null; + TaskSpec.prototype.template = null; /** - * Creates a new TaskExecutionGetDataRequest instance using the specified properties. + * 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.TaskExecutionGetDataRequest + * @memberof flyteidl.admin.TaskSpec * @static - * @param {flyteidl.admin.ITaskExecutionGetDataRequest=} [properties] Properties to set - * @returns {flyteidl.admin.TaskExecutionGetDataRequest} TaskExecutionGetDataRequest instance + * @param {flyteidl.admin.ITaskSpec=} [properties] Properties to set + * @returns {flyteidl.admin.TaskSpec} TaskSpec instance */ - TaskExecutionGetDataRequest.create = function create(properties) { - return new TaskExecutionGetDataRequest(properties); + TaskSpec.create = function create(properties) { + return new TaskSpec(properties); }; /** - * Encodes the specified TaskExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetDataRequest.verify|verify} messages. + * Encodes the specified TaskSpec message. Does not implicitly {@link flyteidl.admin.TaskSpec.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.TaskExecutionGetDataRequest + * @memberof flyteidl.admin.TaskSpec * @static - * @param {flyteidl.admin.ITaskExecutionGetDataRequest} message TaskExecutionGetDataRequest message or plain object to encode + * @param {flyteidl.admin.ITaskSpec} message TaskSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskExecutionGetDataRequest.encode = function encode(message, writer) { + TaskSpec.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.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 TaskExecutionGetDataRequest message from the specified reader or buffer. + * Decodes a TaskSpec message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.TaskExecutionGetDataRequest + * @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.TaskExecutionGetDataRequest} TaskExecutionGetDataRequest + * @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 */ - TaskExecutionGetDataRequest.decode = function decode(reader, length) { + 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.TaskExecutionGetDataRequest(); + 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.id = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); + 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); @@ -39428,49 +38907,51 @@ }; /** - * Verifies a TaskExecutionGetDataRequest message. + * Verifies a TaskSpec message. * @function verify - * @memberof flyteidl.admin.TaskExecutionGetDataRequest + * @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 */ - TaskExecutionGetDataRequest.verify = function verify(message) { + TaskSpec.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 (message.template != null && message.hasOwnProperty("template")) { + var error = $root.flyteidl.core.TaskTemplate.verify(message.template); if (error) - return "id." + 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 TaskExecutionGetDataRequest; + return TaskSpec; })(); - admin.TaskExecutionGetDataResponse = (function() { + admin.TaskClosure = (function() { /** - * Properties of a TaskExecutionGetDataResponse. + * Properties of a TaskClosure. * @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 + * @interface ITaskClosure + * @property {flyteidl.core.ICompiledTask|null} [compiledTask] TaskClosure compiledTask + * @property {google.protobuf.ITimestamp|null} [createdAt] TaskClosure createdAt */ /** - * Constructs a new TaskExecutionGetDataResponse. + * Constructs a new TaskClosure. * @memberof flyteidl.admin - * @classdesc Represents a TaskExecutionGetDataResponse. - * @implements ITaskExecutionGetDataResponse + * @classdesc Represents a TaskClosure. + * @implements ITaskClosure * @constructor - * @param {flyteidl.admin.ITaskExecutionGetDataResponse=} [properties] Properties to set + * @param {flyteidl.admin.ITaskClosure=} [properties] Properties to set */ - function TaskExecutionGetDataResponse(properties) { + function TaskClosure(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39478,114 +38959,75 @@ } /** - * 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 + * TaskClosure compiledTask. + * @member {flyteidl.core.ICompiledTask|null|undefined} compiledTask + * @memberof flyteidl.admin.TaskClosure * @instance */ - TaskExecutionGetDataResponse.prototype.fullOutputs = null; + TaskClosure.prototype.compiledTask = null; /** - * TaskExecutionGetDataResponse flyteUrls. - * @member {flyteidl.admin.IFlyteURLs|null|undefined} flyteUrls - * @memberof flyteidl.admin.TaskExecutionGetDataResponse + * TaskClosure createdAt. + * @member {google.protobuf.ITimestamp|null|undefined} createdAt + * @memberof flyteidl.admin.TaskClosure * @instance */ - TaskExecutionGetDataResponse.prototype.flyteUrls = null; + TaskClosure.prototype.createdAt = null; /** - * Creates a new TaskExecutionGetDataResponse instance using the specified properties. + * Creates a new TaskClosure instance using the specified properties. * @function create - * @memberof flyteidl.admin.TaskExecutionGetDataResponse + * @memberof flyteidl.admin.TaskClosure * @static - * @param {flyteidl.admin.ITaskExecutionGetDataResponse=} [properties] Properties to set - * @returns {flyteidl.admin.TaskExecutionGetDataResponse} TaskExecutionGetDataResponse instance + * @param {flyteidl.admin.ITaskClosure=} [properties] Properties to set + * @returns {flyteidl.admin.TaskClosure} TaskClosure instance */ - TaskExecutionGetDataResponse.create = function create(properties) { - return new TaskExecutionGetDataResponse(properties); + TaskClosure.create = function create(properties) { + return new TaskClosure(properties); }; /** - * Encodes the specified TaskExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetDataResponse.verify|verify} messages. + * Encodes the specified TaskClosure message. Does not implicitly {@link flyteidl.admin.TaskClosure.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.TaskExecutionGetDataResponse + * @memberof flyteidl.admin.TaskClosure * @static - * @param {flyteidl.admin.ITaskExecutionGetDataResponse} message TaskExecutionGetDataResponse message or plain object to encode + * @param {flyteidl.admin.ITaskClosure} message TaskClosure message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskExecutionGetDataResponse.encode = function encode(message, writer) { + TaskClosure.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(); + 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 TaskExecutionGetDataResponse message from the specified reader or buffer. + * Decodes a TaskClosure message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.TaskExecutionGetDataResponse + * @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.TaskExecutionGetDataResponse} TaskExecutionGetDataResponse + * @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 */ - TaskExecutionGetDataResponse.decode = function decode(reader, length) { + 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.TaskExecutionGetDataResponse(); + 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.inputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); + message.compiledTask = $root.flyteidl.core.CompiledTask.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()); + message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -39596,65 +39038,50 @@ }; /** - * Verifies a TaskExecutionGetDataResponse message. + * Verifies a TaskClosure message. * @function verify - * @memberof flyteidl.admin.TaskExecutionGetDataResponse + * @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 */ - TaskExecutionGetDataResponse.verify = function verify(message) { + TaskClosure.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 (message.compiledTask != null && message.hasOwnProperty("compiledTask")) { + var error = $root.flyteidl.core.CompiledTask.verify(message.compiledTask); if (error) - return "outputs." + error; + return "compiledTask." + error; } - if (message.fullInputs != null && message.hasOwnProperty("fullInputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.fullInputs); + if (message.createdAt != null && message.hasOwnProperty("createdAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.createdAt); 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 "createdAt." + error; } return null; }; - return TaskExecutionGetDataResponse; + return TaskClosure; })(); - admin.GetVersionResponse = (function() { + admin.TaskExecutionGetRequest = (function() { /** - * Properties of a GetVersionResponse. + * Properties of a TaskExecutionGetRequest. * @memberof flyteidl.admin - * @interface IGetVersionResponse - * @property {flyteidl.admin.IVersion|null} [controlPlaneVersion] GetVersionResponse controlPlaneVersion + * @interface ITaskExecutionGetRequest + * @property {flyteidl.core.ITaskExecutionIdentifier|null} [id] TaskExecutionGetRequest id */ /** - * Constructs a new GetVersionResponse. + * Constructs a new TaskExecutionGetRequest. * @memberof flyteidl.admin - * @classdesc Represents a GetVersionResponse. - * @implements IGetVersionResponse + * @classdesc Represents a TaskExecutionGetRequest. + * @implements ITaskExecutionGetRequest * @constructor - * @param {flyteidl.admin.IGetVersionResponse=} [properties] Properties to set + * @param {flyteidl.admin.ITaskExecutionGetRequest=} [properties] Properties to set */ - function GetVersionResponse(properties) { + function TaskExecutionGetRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39662,62 +39089,62 @@ } /** - * GetVersionResponse controlPlaneVersion. - * @member {flyteidl.admin.IVersion|null|undefined} controlPlaneVersion - * @memberof flyteidl.admin.GetVersionResponse + * TaskExecutionGetRequest id. + * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.TaskExecutionGetRequest * @instance */ - GetVersionResponse.prototype.controlPlaneVersion = null; + TaskExecutionGetRequest.prototype.id = null; /** - * Creates a new GetVersionResponse instance using the specified properties. + * Creates a new TaskExecutionGetRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.GetVersionResponse + * @memberof flyteidl.admin.TaskExecutionGetRequest * @static - * @param {flyteidl.admin.IGetVersionResponse=} [properties] Properties to set - * @returns {flyteidl.admin.GetVersionResponse} GetVersionResponse instance + * @param {flyteidl.admin.ITaskExecutionGetRequest=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionGetRequest} TaskExecutionGetRequest instance */ - GetVersionResponse.create = function create(properties) { - return new GetVersionResponse(properties); + TaskExecutionGetRequest.create = function create(properties) { + return new TaskExecutionGetRequest(properties); }; /** - * Encodes the specified GetVersionResponse message. Does not implicitly {@link flyteidl.admin.GetVersionResponse.verify|verify} messages. + * Encodes the specified TaskExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.GetVersionResponse + * @memberof flyteidl.admin.TaskExecutionGetRequest * @static - * @param {flyteidl.admin.IGetVersionResponse} message GetVersionResponse message or plain object to encode + * @param {flyteidl.admin.ITaskExecutionGetRequest} message TaskExecutionGetRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetVersionResponse.encode = function encode(message, writer) { + TaskExecutionGetRequest.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(); + 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 GetVersionResponse message from the specified reader or buffer. + * Decodes a TaskExecutionGetRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.GetVersionResponse + * @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.GetVersionResponse} GetVersionResponse + * @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 */ - GetVersionResponse.decode = function decode(reader, length) { + 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.GetVersionResponse(); + 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.controlPlaneVersion = $root.flyteidl.admin.Version.decode(reader, reader.uint32()); + message.id = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -39728,47 +39155,49 @@ }; /** - * Verifies a GetVersionResponse message. + * Verifies a TaskExecutionGetRequest message. * @function verify - * @memberof flyteidl.admin.GetVersionResponse + * @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 */ - GetVersionResponse.verify = function verify(message) { + TaskExecutionGetRequest.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 (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.id); if (error) - return "controlPlaneVersion." + error; + return "id." + error; } return null; }; - return GetVersionResponse; + return TaskExecutionGetRequest; })(); - admin.Version = (function() { + admin.TaskExecutionListRequest = (function() { /** - * Properties of a Version. + * Properties of a TaskExecutionListRequest. * @memberof flyteidl.admin - * @interface IVersion - * @property {string|null} [Build] Version Build - * @property {string|null} [Version] Version Version - * @property {string|null} [BuildTime] Version BuildTime + * @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 Version. + * Constructs a new TaskExecutionListRequest. * @memberof flyteidl.admin - * @classdesc Represents a Version. - * @implements IVersion + * @classdesc Represents a TaskExecutionListRequest. + * @implements ITaskExecutionListRequest * @constructor - * @param {flyteidl.admin.IVersion=} [properties] Properties to set + * @param {flyteidl.admin.ITaskExecutionListRequest=} [properties] Properties to set */ - function Version(properties) { + function TaskExecutionListRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39776,88 +39205,114 @@ } /** - * Version Build. - * @member {string} Build - * @memberof flyteidl.admin.Version + * TaskExecutionListRequest nodeExecutionId. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} nodeExecutionId + * @memberof flyteidl.admin.TaskExecutionListRequest * @instance */ - Version.prototype.Build = ""; + TaskExecutionListRequest.prototype.nodeExecutionId = null; /** - * Version Version. - * @member {string} Version - * @memberof flyteidl.admin.Version + * TaskExecutionListRequest limit. + * @member {number} limit + * @memberof flyteidl.admin.TaskExecutionListRequest * @instance */ - Version.prototype.Version = ""; + TaskExecutionListRequest.prototype.limit = 0; /** - * Version BuildTime. - * @member {string} BuildTime - * @memberof flyteidl.admin.Version + * TaskExecutionListRequest token. + * @member {string} token + * @memberof flyteidl.admin.TaskExecutionListRequest * @instance */ - Version.prototype.BuildTime = ""; + TaskExecutionListRequest.prototype.token = ""; /** - * Creates a new Version instance using the specified properties. + * 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.Version + * @memberof flyteidl.admin.TaskExecutionListRequest * @static - * @param {flyteidl.admin.IVersion=} [properties] Properties to set - * @returns {flyteidl.admin.Version} Version instance + * @param {flyteidl.admin.ITaskExecutionListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionListRequest} TaskExecutionListRequest instance */ - Version.create = function create(properties) { - return new Version(properties); + TaskExecutionListRequest.create = function create(properties) { + return new TaskExecutionListRequest(properties); }; /** - * Encodes the specified Version message. Does not implicitly {@link flyteidl.admin.Version.verify|verify} messages. + * Encodes the specified TaskExecutionListRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionListRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.Version + * @memberof flyteidl.admin.TaskExecutionListRequest * @static - * @param {flyteidl.admin.IVersion} message Version message or plain object to encode + * @param {flyteidl.admin.ITaskExecutionListRequest} message TaskExecutionListRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Version.encode = function encode(message, writer) { + TaskExecutionListRequest.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); + 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 Version message from the specified reader or buffer. + * Decodes a TaskExecutionListRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.Version + * @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.Version} Version + * @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 */ - Version.decode = function decode(reader, length) { + 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.Version(); + 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.Build = reader.string(); + message.nodeExecutionId = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); break; case 2: - message.Version = reader.string(); + message.limit = reader.uint32(); break; case 3: - message.BuildTime = reader.string(); + 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); @@ -39868,48 +39323,62 @@ }; /** - * Verifies a Version message. + * Verifies a TaskExecutionListRequest message. * @function verify - * @memberof flyteidl.admin.Version + * @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 */ - Version.verify = function verify(message) { + TaskExecutionListRequest.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"; + 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 Version; + return TaskExecutionListRequest; })(); - admin.GetVersionRequest = (function() { + admin.TaskExecution = (function() { /** - * Properties of a GetVersionRequest. + * Properties of a TaskExecution. * @memberof flyteidl.admin - * @interface IGetVersionRequest + * @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 GetVersionRequest. + * Constructs a new TaskExecution. * @memberof flyteidl.admin - * @classdesc Represents a GetVersionRequest. - * @implements IGetVersionRequest + * @classdesc Represents a TaskExecution. + * @implements ITaskExecution * @constructor - * @param {flyteidl.admin.IGetVersionRequest=} [properties] Properties to set + * @param {flyteidl.admin.ITaskExecution=} [properties] Properties to set */ - function GetVersionRequest(properties) { + function TaskExecution(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39917,50 +39386,102 @@ } /** - * Creates a new GetVersionRequest instance using the specified properties. + * 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.GetVersionRequest + * @memberof flyteidl.admin.TaskExecution * @static - * @param {flyteidl.admin.IGetVersionRequest=} [properties] Properties to set - * @returns {flyteidl.admin.GetVersionRequest} GetVersionRequest instance + * @param {flyteidl.admin.ITaskExecution=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecution} TaskExecution instance */ - GetVersionRequest.create = function create(properties) { - return new GetVersionRequest(properties); + TaskExecution.create = function create(properties) { + return new TaskExecution(properties); }; /** - * Encodes the specified GetVersionRequest message. Does not implicitly {@link flyteidl.admin.GetVersionRequest.verify|verify} messages. + * Encodes the specified TaskExecution message. Does not implicitly {@link flyteidl.admin.TaskExecution.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.GetVersionRequest + * @memberof flyteidl.admin.TaskExecution * @static - * @param {flyteidl.admin.IGetVersionRequest} message GetVersionRequest message or plain object to encode + * @param {flyteidl.admin.ITaskExecution} message TaskExecution message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetVersionRequest.encode = function encode(message, 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 GetVersionRequest message from the specified reader or buffer. + * Decodes a TaskExecution message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.GetVersionRequest + * @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.GetVersionRequest} GetVersionRequest + * @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 */ - GetVersionRequest.decode = function decode(reader, length) { + 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.GetVersionRequest(); + 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; @@ -39970,41 +39491,58 @@ }; /** - * Verifies a GetVersionRequest message. + * Verifies a TaskExecution message. * @function verify - * @memberof flyteidl.admin.GetVersionRequest + * @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 */ - GetVersionRequest.verify = function verify(message) { + 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 GetVersionRequest; + return TaskExecution; })(); - admin.WorkflowCreateRequest = (function() { + admin.TaskExecutionList = (function() { /** - * Properties of a WorkflowCreateRequest. + * Properties of a TaskExecutionList. * @memberof flyteidl.admin - * @interface IWorkflowCreateRequest - * @property {flyteidl.core.IIdentifier|null} [id] WorkflowCreateRequest id - * @property {flyteidl.admin.IWorkflowSpec|null} [spec] WorkflowCreateRequest spec + * @interface ITaskExecutionList + * @property {Array.|null} [taskExecutions] TaskExecutionList taskExecutions + * @property {string|null} [token] TaskExecutionList token */ /** - * Constructs a new WorkflowCreateRequest. + * Constructs a new TaskExecutionList. * @memberof flyteidl.admin - * @classdesc Represents a WorkflowCreateRequest. - * @implements IWorkflowCreateRequest + * @classdesc Represents a TaskExecutionList. + * @implements ITaskExecutionList * @constructor - * @param {flyteidl.admin.IWorkflowCreateRequest=} [properties] Properties to set + * @param {flyteidl.admin.ITaskExecutionList=} [properties] Properties to set */ - function WorkflowCreateRequest(properties) { + function TaskExecutionList(properties) { + this.taskExecutions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -40012,75 +39550,78 @@ } /** - * WorkflowCreateRequest id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.admin.WorkflowCreateRequest + * TaskExecutionList taskExecutions. + * @member {Array.} taskExecutions + * @memberof flyteidl.admin.TaskExecutionList * @instance */ - WorkflowCreateRequest.prototype.id = null; + TaskExecutionList.prototype.taskExecutions = $util.emptyArray; /** - * WorkflowCreateRequest spec. - * @member {flyteidl.admin.IWorkflowSpec|null|undefined} spec - * @memberof flyteidl.admin.WorkflowCreateRequest + * TaskExecutionList token. + * @member {string} token + * @memberof flyteidl.admin.TaskExecutionList * @instance */ - WorkflowCreateRequest.prototype.spec = null; + TaskExecutionList.prototype.token = ""; /** - * Creates a new WorkflowCreateRequest instance using the specified properties. + * Creates a new TaskExecutionList instance using the specified properties. * @function create - * @memberof flyteidl.admin.WorkflowCreateRequest + * @memberof flyteidl.admin.TaskExecutionList * @static - * @param {flyteidl.admin.IWorkflowCreateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowCreateRequest} WorkflowCreateRequest instance + * @param {flyteidl.admin.ITaskExecutionList=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionList} TaskExecutionList instance */ - WorkflowCreateRequest.create = function create(properties) { - return new WorkflowCreateRequest(properties); + TaskExecutionList.create = function create(properties) { + return new TaskExecutionList(properties); }; /** - * Encodes the specified WorkflowCreateRequest message. Does not implicitly {@link flyteidl.admin.WorkflowCreateRequest.verify|verify} messages. + * Encodes the specified TaskExecutionList message. Does not implicitly {@link flyteidl.admin.TaskExecutionList.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.WorkflowCreateRequest + * @memberof flyteidl.admin.TaskExecutionList * @static - * @param {flyteidl.admin.IWorkflowCreateRequest} message WorkflowCreateRequest message or plain object to encode + * @param {flyteidl.admin.ITaskExecutionList} message TaskExecutionList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkflowCreateRequest.encode = function encode(message, writer) { + TaskExecutionList.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(); + 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 WorkflowCreateRequest message from the specified reader or buffer. + * Decodes a TaskExecutionList message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.WorkflowCreateRequest + * @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.WorkflowCreateRequest} WorkflowCreateRequest + * @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 */ - WorkflowCreateRequest.decode = function decode(reader, length) { + 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.WorkflowCreateRequest(); + 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: - message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + if (!(message.taskExecutions && message.taskExecutions.length)) + message.taskExecutions = []; + message.taskExecutions.push($root.flyteidl.admin.TaskExecution.decode(reader, reader.uint32())); break; case 2: - message.spec = $root.flyteidl.admin.WorkflowSpec.decode(reader, reader.uint32()); + message.token = reader.string(); break; default: reader.skipType(tag & 7); @@ -40091,234 +39632,333 @@ }; /** - * Verifies a WorkflowCreateRequest message. + * Verifies a TaskExecutionList message. * @function verify - * @memberof flyteidl.admin.WorkflowCreateRequest + * @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 */ - WorkflowCreateRequest.verify = function verify(message) { + TaskExecutionList.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; + 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 WorkflowCreateRequest; + return TaskExecutionList; })(); - admin.WorkflowCreateResponse = (function() { + admin.TaskExecutionClosure = (function() { /** - * Properties of a WorkflowCreateResponse. + * Properties of a TaskExecutionClosure. * @memberof flyteidl.admin - * @interface IWorkflowCreateResponse + * @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 WorkflowCreateResponse. + * Constructs a new TaskExecutionClosure. * @memberof flyteidl.admin - * @classdesc Represents a WorkflowCreateResponse. - * @implements IWorkflowCreateResponse + * @classdesc Represents a TaskExecutionClosure. + * @implements ITaskExecutionClosure * @constructor - * @param {flyteidl.admin.IWorkflowCreateResponse=} [properties] Properties to set + * @param {flyteidl.admin.ITaskExecutionClosure=} [properties] Properties to set */ - function WorkflowCreateResponse(properties) { - if (properties) + 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]]; } /** - * 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 + * TaskExecutionClosure outputUri. + * @member {string} outputUri + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance */ - WorkflowCreateResponse.create = function create(properties) { - return new WorkflowCreateResponse(properties); - }; + TaskExecutionClosure.prototype.outputUri = ""; /** - * 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 + * TaskExecutionClosure error. + * @member {flyteidl.core.IExecutionError|null|undefined} error + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance */ - WorkflowCreateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + TaskExecutionClosure.prototype.error = null; /** - * 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 + * TaskExecutionClosure outputData. + * @member {flyteidl.core.ILiteralMap|null|undefined} outputData + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance */ - 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; - }; + TaskExecutionClosure.prototype.outputData = null; /** - * 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 + * TaskExecutionClosure phase. + * @member {flyteidl.core.TaskExecution.Phase} phase + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance */ - WorkflowCreateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + TaskExecutionClosure.prototype.phase = 0; - return WorkflowCreateResponse; - })(); + /** + * TaskExecutionClosure logs. + * @member {Array.} logs + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.logs = $util.emptyArray; - admin.Workflow = (function() { + /** + * TaskExecutionClosure startedAt. + * @member {google.protobuf.ITimestamp|null|undefined} startedAt + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.startedAt = null; /** - * 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 + * TaskExecutionClosure duration. + * @member {google.protobuf.IDuration|null|undefined} duration + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance */ + TaskExecutionClosure.prototype.duration = null; /** - * Constructs a new Workflow. - * @memberof flyteidl.admin - * @classdesc Represents a Workflow. - * @implements IWorkflow - * @constructor - * @param {flyteidl.admin.IWorkflow=} [properties] Properties to set + * TaskExecutionClosure createdAt. + * @member {google.protobuf.ITimestamp|null|undefined} createdAt + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance */ - 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]]; - } + TaskExecutionClosure.prototype.createdAt = null; /** - * Workflow id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.admin.Workflow + * TaskExecutionClosure updatedAt. + * @member {google.protobuf.ITimestamp|null|undefined} updatedAt + * @memberof flyteidl.admin.TaskExecutionClosure * @instance */ - Workflow.prototype.id = null; + TaskExecutionClosure.prototype.updatedAt = null; /** - * Workflow closure. - * @member {flyteidl.admin.IWorkflowClosure|null|undefined} closure - * @memberof flyteidl.admin.Workflow + * TaskExecutionClosure customInfo. + * @member {google.protobuf.IStruct|null|undefined} customInfo + * @memberof flyteidl.admin.TaskExecutionClosure * @instance */ - Workflow.prototype.closure = null; + TaskExecutionClosure.prototype.customInfo = null; /** - * Workflow shortDescription. - * @member {string} shortDescription - * @memberof flyteidl.admin.Workflow + * TaskExecutionClosure reason. + * @member {string} reason + * @memberof flyteidl.admin.TaskExecutionClosure * @instance */ - Workflow.prototype.shortDescription = ""; + TaskExecutionClosure.prototype.reason = ""; /** - * Creates a new Workflow instance using the specified properties. + * 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.Workflow + * @memberof flyteidl.admin.TaskExecutionClosure * @static - * @param {flyteidl.admin.IWorkflow=} [properties] Properties to set - * @returns {flyteidl.admin.Workflow} Workflow instance + * @param {flyteidl.admin.ITaskExecutionClosure=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionClosure} TaskExecutionClosure instance */ - Workflow.create = function create(properties) { - return new Workflow(properties); + TaskExecutionClosure.create = function create(properties) { + return new TaskExecutionClosure(properties); }; /** - * Encodes the specified Workflow message. Does not implicitly {@link flyteidl.admin.Workflow.verify|verify} messages. + * Encodes the specified TaskExecutionClosure message. Does not implicitly {@link flyteidl.admin.TaskExecutionClosure.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.Workflow + * @memberof flyteidl.admin.TaskExecutionClosure * @static - * @param {flyteidl.admin.IWorkflow} message Workflow message or plain object to encode + * @param {flyteidl.admin.ITaskExecutionClosure} message TaskExecutionClosure message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Workflow.encode = function encode(message, writer) { + TaskExecutionClosure.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); + 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 Workflow message from the specified reader or buffer. + * Decodes a TaskExecutionClosure message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.Workflow + * @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.Workflow} Workflow + * @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 */ - Workflow.decode = function decode(reader, length) { + 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.Workflow(); + 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.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + message.outputUri = reader.string(); break; case 2: - message.closure = $root.flyteidl.admin.WorkflowClosure.decode(reader, reader.uint32()); + 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.shortDescription = reader.string(); + 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); @@ -40329,55 +39969,138 @@ }; /** - * Verifies a Workflow message. + * Verifies a TaskExecutionClosure message. * @function verify - * @memberof flyteidl.admin.Workflow + * @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 */ - Workflow.verify = function verify(message) { + TaskExecutionClosure.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); + 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 "id." + error; + return "startedAt." + error; } - if (message.closure != null && message.hasOwnProperty("closure")) { - var error = $root.flyteidl.admin.WorkflowClosure.verify(message.closure); + if (message.duration != null && message.hasOwnProperty("duration")) { + var error = $root.google.protobuf.Duration.verify(message.duration); if (error) - return "closure." + 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; + } } - if (message.shortDescription != null && message.hasOwnProperty("shortDescription")) - if (!$util.isString(message.shortDescription)) - return "shortDescription: string expected"; return null; }; - return Workflow; + return TaskExecutionClosure; })(); - admin.WorkflowList = (function() { + admin.Reason = (function() { /** - * Properties of a WorkflowList. + * Properties of a Reason. * @memberof flyteidl.admin - * @interface IWorkflowList - * @property {Array.|null} [workflows] WorkflowList workflows - * @property {string|null} [token] WorkflowList token + * @interface IReason + * @property {google.protobuf.ITimestamp|null} [occurredAt] Reason occurredAt + * @property {string|null} [message] Reason message */ /** - * Constructs a new WorkflowList. + * Constructs a new Reason. * @memberof flyteidl.admin - * @classdesc Represents a WorkflowList. - * @implements IWorkflowList + * @classdesc Represents a Reason. + * @implements IReason * @constructor - * @param {flyteidl.admin.IWorkflowList=} [properties] Properties to set + * @param {flyteidl.admin.IReason=} [properties] Properties to set */ - function WorkflowList(properties) { - this.workflows = []; + function Reason(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -40385,78 +40108,75 @@ } /** - * WorkflowList workflows. - * @member {Array.} workflows - * @memberof flyteidl.admin.WorkflowList + * Reason occurredAt. + * @member {google.protobuf.ITimestamp|null|undefined} occurredAt + * @memberof flyteidl.admin.Reason * @instance */ - WorkflowList.prototype.workflows = $util.emptyArray; + Reason.prototype.occurredAt = null; /** - * WorkflowList token. - * @member {string} token - * @memberof flyteidl.admin.WorkflowList + * Reason message. + * @member {string} message + * @memberof flyteidl.admin.Reason * @instance */ - WorkflowList.prototype.token = ""; + Reason.prototype.message = ""; /** - * Creates a new WorkflowList instance using the specified properties. + * Creates a new Reason instance using the specified properties. * @function create - * @memberof flyteidl.admin.WorkflowList + * @memberof flyteidl.admin.Reason * @static - * @param {flyteidl.admin.IWorkflowList=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowList} WorkflowList instance + * @param {flyteidl.admin.IReason=} [properties] Properties to set + * @returns {flyteidl.admin.Reason} Reason instance */ - WorkflowList.create = function create(properties) { - return new WorkflowList(properties); + Reason.create = function create(properties) { + return new Reason(properties); }; /** - * Encodes the specified WorkflowList message. Does not implicitly {@link flyteidl.admin.WorkflowList.verify|verify} messages. + * Encodes the specified Reason message. Does not implicitly {@link flyteidl.admin.Reason.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.WorkflowList + * @memberof flyteidl.admin.Reason * @static - * @param {flyteidl.admin.IWorkflowList} message WorkflowList message or plain object to encode + * @param {flyteidl.admin.IReason} message Reason message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkflowList.encode = function encode(message, writer) { + Reason.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); + 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 WorkflowList message from the specified reader or buffer. + * Decodes a Reason message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.WorkflowList + * @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.WorkflowList} WorkflowList + * @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 */ - WorkflowList.decode = function decode(reader, length) { + 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.WorkflowList(); + 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: - if (!(message.workflows && message.workflows.length)) - message.workflows = []; - message.workflows.push($root.flyteidl.admin.Workflow.decode(reader, reader.uint32())); + message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 2: - message.token = reader.string(); + message.message = reader.string(); break; default: reader.skipType(tag & 7); @@ -40467,55 +40187,48 @@ }; /** - * Verifies a WorkflowList message. + * Verifies a Reason message. * @function verify - * @memberof flyteidl.admin.WorkflowList + * @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 */ - WorkflowList.verify = function verify(message) { + Reason.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.occurredAt != null && message.hasOwnProperty("occurredAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.occurredAt); + if (error) + return "occurredAt." + error; } - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; return null; }; - return WorkflowList; + return Reason; })(); - admin.WorkflowSpec = (function() { + admin.TaskExecutionGetDataRequest = (function() { /** - * Properties of a WorkflowSpec. + * Properties of a TaskExecutionGetDataRequest. * @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 + * @interface ITaskExecutionGetDataRequest + * @property {flyteidl.core.ITaskExecutionIdentifier|null} [id] TaskExecutionGetDataRequest id */ /** - * Constructs a new WorkflowSpec. + * Constructs a new TaskExecutionGetDataRequest. * @memberof flyteidl.admin - * @classdesc Represents a WorkflowSpec. - * @implements IWorkflowSpec + * @classdesc Represents a TaskExecutionGetDataRequest. + * @implements ITaskExecutionGetDataRequest * @constructor - * @param {flyteidl.admin.IWorkflowSpec=} [properties] Properties to set + * @param {flyteidl.admin.ITaskExecutionGetDataRequest=} [properties] Properties to set */ - function WorkflowSpec(properties) { - this.subWorkflows = []; + function TaskExecutionGetDataRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -40523,91 +40236,62 @@ } /** - * 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 + * TaskExecutionGetDataRequest id. + * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.TaskExecutionGetDataRequest * @instance */ - WorkflowSpec.prototype.description = null; + TaskExecutionGetDataRequest.prototype.id = null; /** - * Creates a new WorkflowSpec instance using the specified properties. + * Creates a new TaskExecutionGetDataRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.WorkflowSpec + * @memberof flyteidl.admin.TaskExecutionGetDataRequest * @static - * @param {flyteidl.admin.IWorkflowSpec=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowSpec} WorkflowSpec instance + * @param {flyteidl.admin.ITaskExecutionGetDataRequest=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionGetDataRequest} TaskExecutionGetDataRequest instance */ - WorkflowSpec.create = function create(properties) { - return new WorkflowSpec(properties); + TaskExecutionGetDataRequest.create = function create(properties) { + return new TaskExecutionGetDataRequest(properties); }; /** - * Encodes the specified WorkflowSpec message. Does not implicitly {@link flyteidl.admin.WorkflowSpec.verify|verify} messages. + * Encodes the specified TaskExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetDataRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.WorkflowSpec + * @memberof flyteidl.admin.TaskExecutionGetDataRequest * @static - * @param {flyteidl.admin.IWorkflowSpec} message WorkflowSpec message or plain object to encode + * @param {flyteidl.admin.ITaskExecutionGetDataRequest} message TaskExecutionGetDataRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkflowSpec.encode = function encode(message, writer) { + TaskExecutionGetDataRequest.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(); + 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 WorkflowSpec message from the specified reader or buffer. + * Decodes a TaskExecutionGetDataRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.WorkflowSpec + * @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.WorkflowSpec} WorkflowSpec + * @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 */ - WorkflowSpec.decode = function decode(reader, length) { + 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.WorkflowSpec(); + 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.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()); + message.id = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -40618,60 +40302,49 @@ }; /** - * Verifies a WorkflowSpec message. + * Verifies a TaskExecutionGetDataRequest message. * @function verify - * @memberof flyteidl.admin.WorkflowSpec + * @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 */ - WorkflowSpec.verify = function verify(message) { + TaskExecutionGetDataRequest.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 (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.id); if (error) - return "description." + error; + return "id." + error; } return null; }; - return WorkflowSpec; + return TaskExecutionGetDataRequest; })(); - admin.WorkflowClosure = (function() { + admin.TaskExecutionGetDataResponse = (function() { /** - * Properties of a WorkflowClosure. + * Properties of a TaskExecutionGetDataResponse. * @memberof flyteidl.admin - * @interface IWorkflowClosure - * @property {flyteidl.core.ICompiledWorkflowClosure|null} [compiledWorkflow] WorkflowClosure compiledWorkflow - * @property {google.protobuf.ITimestamp|null} [createdAt] WorkflowClosure createdAt + * @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 WorkflowClosure. + * Constructs a new TaskExecutionGetDataResponse. * @memberof flyteidl.admin - * @classdesc Represents a WorkflowClosure. - * @implements IWorkflowClosure + * @classdesc Represents a TaskExecutionGetDataResponse. + * @implements ITaskExecutionGetDataResponse * @constructor - * @param {flyteidl.admin.IWorkflowClosure=} [properties] Properties to set + * @param {flyteidl.admin.ITaskExecutionGetDataResponse=} [properties] Properties to set */ - function WorkflowClosure(properties) { + function TaskExecutionGetDataResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -40679,75 +40352,114 @@ } /** - * WorkflowClosure compiledWorkflow. - * @member {flyteidl.core.ICompiledWorkflowClosure|null|undefined} compiledWorkflow - * @memberof flyteidl.admin.WorkflowClosure + * TaskExecutionGetDataResponse inputs. + * @member {flyteidl.admin.IUrlBlob|null|undefined} inputs + * @memberof flyteidl.admin.TaskExecutionGetDataResponse * @instance */ - WorkflowClosure.prototype.compiledWorkflow = null; + TaskExecutionGetDataResponse.prototype.inputs = null; /** - * WorkflowClosure createdAt. - * @member {google.protobuf.ITimestamp|null|undefined} createdAt - * @memberof flyteidl.admin.WorkflowClosure + * TaskExecutionGetDataResponse outputs. + * @member {flyteidl.admin.IUrlBlob|null|undefined} outputs + * @memberof flyteidl.admin.TaskExecutionGetDataResponse * @instance */ - WorkflowClosure.prototype.createdAt = null; + TaskExecutionGetDataResponse.prototype.outputs = null; /** - * Creates a new WorkflowClosure instance using the specified properties. + * 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.WorkflowClosure + * @memberof flyteidl.admin.TaskExecutionGetDataResponse * @static - * @param {flyteidl.admin.IWorkflowClosure=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowClosure} WorkflowClosure instance + * @param {flyteidl.admin.ITaskExecutionGetDataResponse=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionGetDataResponse} TaskExecutionGetDataResponse instance */ - WorkflowClosure.create = function create(properties) { - return new WorkflowClosure(properties); + TaskExecutionGetDataResponse.create = function create(properties) { + return new TaskExecutionGetDataResponse(properties); }; /** - * Encodes the specified WorkflowClosure message. Does not implicitly {@link flyteidl.admin.WorkflowClosure.verify|verify} messages. + * Encodes the specified TaskExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetDataResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.WorkflowClosure + * @memberof flyteidl.admin.TaskExecutionGetDataResponse * @static - * @param {flyteidl.admin.IWorkflowClosure} message WorkflowClosure message or plain object to encode + * @param {flyteidl.admin.ITaskExecutionGetDataResponse} message TaskExecutionGetDataResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkflowClosure.encode = function encode(message, writer) { + TaskExecutionGetDataResponse.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(); + 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 WorkflowClosure message from the specified reader or buffer. + * Decodes a TaskExecutionGetDataResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.WorkflowClosure + * @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.WorkflowClosure} WorkflowClosure + * @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 */ - WorkflowClosure.decode = function decode(reader, length) { + 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.WorkflowClosure(); + 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.compiledWorkflow = $root.flyteidl.core.CompiledWorkflowClosure.decode(reader, reader.uint32()); + message.inputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); break; case 2: - message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + 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); @@ -40758,50 +40470,65 @@ }; /** - * Verifies a WorkflowClosure message. + * Verifies a TaskExecutionGetDataResponse message. * @function verify - * @memberof flyteidl.admin.WorkflowClosure + * @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 */ - WorkflowClosure.verify = function verify(message) { + TaskExecutionGetDataResponse.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 (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.flyteidl.admin.UrlBlob.verify(message.inputs); if (error) - return "compiledWorkflow." + error; + return "inputs." + error; } - if (message.createdAt != null && message.hasOwnProperty("createdAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.createdAt); + if (message.outputs != null && message.hasOwnProperty("outputs")) { + var error = $root.flyteidl.admin.UrlBlob.verify(message.outputs); if (error) - return "createdAt." + 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 WorkflowClosure; + return TaskExecutionGetDataResponse; })(); - admin.WorkflowErrorExistsDifferentStructure = (function() { + admin.GetVersionResponse = (function() { /** - * Properties of a WorkflowErrorExistsDifferentStructure. + * Properties of a GetVersionResponse. * @memberof flyteidl.admin - * @interface IWorkflowErrorExistsDifferentStructure - * @property {flyteidl.core.IIdentifier|null} [id] WorkflowErrorExistsDifferentStructure id + * @interface IGetVersionResponse + * @property {flyteidl.admin.IVersion|null} [controlPlaneVersion] GetVersionResponse controlPlaneVersion */ /** - * Constructs a new WorkflowErrorExistsDifferentStructure. + * Constructs a new GetVersionResponse. * @memberof flyteidl.admin - * @classdesc Represents a WorkflowErrorExistsDifferentStructure. - * @implements IWorkflowErrorExistsDifferentStructure + * @classdesc Represents a GetVersionResponse. + * @implements IGetVersionResponse * @constructor - * @param {flyteidl.admin.IWorkflowErrorExistsDifferentStructure=} [properties] Properties to set + * @param {flyteidl.admin.IGetVersionResponse=} [properties] Properties to set */ - function WorkflowErrorExistsDifferentStructure(properties) { + function GetVersionResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -40809,62 +40536,62 @@ } /** - * WorkflowErrorExistsDifferentStructure id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure + * GetVersionResponse controlPlaneVersion. + * @member {flyteidl.admin.IVersion|null|undefined} controlPlaneVersion + * @memberof flyteidl.admin.GetVersionResponse * @instance */ - WorkflowErrorExistsDifferentStructure.prototype.id = null; + GetVersionResponse.prototype.controlPlaneVersion = null; /** - * Creates a new WorkflowErrorExistsDifferentStructure instance using the specified properties. + * Creates a new GetVersionResponse instance using the specified properties. * @function create - * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure + * @memberof flyteidl.admin.GetVersionResponse * @static - * @param {flyteidl.admin.IWorkflowErrorExistsDifferentStructure=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowErrorExistsDifferentStructure} WorkflowErrorExistsDifferentStructure instance + * @param {flyteidl.admin.IGetVersionResponse=} [properties] Properties to set + * @returns {flyteidl.admin.GetVersionResponse} GetVersionResponse instance */ - WorkflowErrorExistsDifferentStructure.create = function create(properties) { - return new WorkflowErrorExistsDifferentStructure(properties); + GetVersionResponse.create = function create(properties) { + return new GetVersionResponse(properties); }; /** - * Encodes the specified WorkflowErrorExistsDifferentStructure message. Does not implicitly {@link flyteidl.admin.WorkflowErrorExistsDifferentStructure.verify|verify} messages. + * Encodes the specified GetVersionResponse message. Does not implicitly {@link flyteidl.admin.GetVersionResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure + * @memberof flyteidl.admin.GetVersionResponse * @static - * @param {flyteidl.admin.IWorkflowErrorExistsDifferentStructure} message WorkflowErrorExistsDifferentStructure message or plain object to encode + * @param {flyteidl.admin.IGetVersionResponse} message GetVersionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkflowErrorExistsDifferentStructure.encode = function encode(message, writer) { + GetVersionResponse.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.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 WorkflowErrorExistsDifferentStructure message from the specified reader or buffer. + * Decodes a GetVersionResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure + * @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.WorkflowErrorExistsDifferentStructure} WorkflowErrorExistsDifferentStructure + * @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 */ - WorkflowErrorExistsDifferentStructure.decode = function decode(reader, length) { + 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.WorkflowErrorExistsDifferentStructure(); + 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.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + message.controlPlaneVersion = $root.flyteidl.admin.Version.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -40875,45 +40602,47 @@ }; /** - * Verifies a WorkflowErrorExistsDifferentStructure message. + * Verifies a GetVersionResponse message. * @function verify - * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure + * @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 */ - WorkflowErrorExistsDifferentStructure.verify = function verify(message) { + GetVersionResponse.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 (message.controlPlaneVersion != null && message.hasOwnProperty("controlPlaneVersion")) { + var error = $root.flyteidl.admin.Version.verify(message.controlPlaneVersion); if (error) - return "id." + error; + return "controlPlaneVersion." + error; } return null; }; - return WorkflowErrorExistsDifferentStructure; + return GetVersionResponse; })(); - admin.WorkflowErrorExistsIdenticalStructure = (function() { + admin.Version = (function() { /** - * Properties of a WorkflowErrorExistsIdenticalStructure. + * Properties of a Version. * @memberof flyteidl.admin - * @interface IWorkflowErrorExistsIdenticalStructure - * @property {flyteidl.core.IIdentifier|null} [id] WorkflowErrorExistsIdenticalStructure id + * @interface IVersion + * @property {string|null} [Build] Version Build + * @property {string|null} [Version] Version Version + * @property {string|null} [BuildTime] Version BuildTime */ /** - * Constructs a new WorkflowErrorExistsIdenticalStructure. + * Constructs a new Version. * @memberof flyteidl.admin - * @classdesc Represents a WorkflowErrorExistsIdenticalStructure. - * @implements IWorkflowErrorExistsIdenticalStructure + * @classdesc Represents a Version. + * @implements IVersion * @constructor - * @param {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure=} [properties] Properties to set + * @param {flyteidl.admin.IVersion=} [properties] Properties to set */ - function WorkflowErrorExistsIdenticalStructure(properties) { + function Version(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -40921,62 +40650,88 @@ } /** - * WorkflowErrorExistsIdenticalStructure id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure + * Version Build. + * @member {string} Build + * @memberof flyteidl.admin.Version * @instance */ - WorkflowErrorExistsIdenticalStructure.prototype.id = null; + Version.prototype.Build = ""; /** - * Creates a new WorkflowErrorExistsIdenticalStructure instance using the specified properties. + * 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.WorkflowErrorExistsIdenticalStructure + * @memberof flyteidl.admin.Version * @static - * @param {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowErrorExistsIdenticalStructure} WorkflowErrorExistsIdenticalStructure instance + * @param {flyteidl.admin.IVersion=} [properties] Properties to set + * @returns {flyteidl.admin.Version} Version instance */ - WorkflowErrorExistsIdenticalStructure.create = function create(properties) { - return new WorkflowErrorExistsIdenticalStructure(properties); + Version.create = function create(properties) { + return new Version(properties); }; /** - * Encodes the specified WorkflowErrorExistsIdenticalStructure message. Does not implicitly {@link flyteidl.admin.WorkflowErrorExistsIdenticalStructure.verify|verify} messages. + * Encodes the specified Version message. Does not implicitly {@link flyteidl.admin.Version.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure + * @memberof flyteidl.admin.Version * @static - * @param {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure} message WorkflowErrorExistsIdenticalStructure message or plain object to encode + * @param {flyteidl.admin.IVersion} message Version message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkflowErrorExistsIdenticalStructure.encode = function encode(message, writer) { + Version.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.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 WorkflowErrorExistsIdenticalStructure message from the specified reader or buffer. + * Decodes a Version message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure + * @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.WorkflowErrorExistsIdenticalStructure} WorkflowErrorExistsIdenticalStructure + * @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 */ - WorkflowErrorExistsIdenticalStructure.decode = function decode(reader, length) { + 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.WorkflowErrorExistsIdenticalStructure(); + 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.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + message.Build = reader.string(); + break; + case 2: + message.Version = reader.string(); + break; + case 3: + message.BuildTime = reader.string(); break; default: reader.skipType(tag & 7); @@ -40987,46 +40742,48 @@ }; /** - * Verifies a WorkflowErrorExistsIdenticalStructure message. + * Verifies a Version message. * @function verify - * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure + * @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 */ - WorkflowErrorExistsIdenticalStructure.verify = function verify(message) { + Version.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.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 WorkflowErrorExistsIdenticalStructure; + return Version; })(); - admin.CreateWorkflowFailureReason = (function() { + admin.GetVersionRequest = (function() { /** - * Properties of a CreateWorkflowFailureReason. + * Properties of a GetVersionRequest. * @memberof flyteidl.admin - * @interface ICreateWorkflowFailureReason - * @property {flyteidl.admin.IWorkflowErrorExistsDifferentStructure|null} [existsDifferentStructure] CreateWorkflowFailureReason existsDifferentStructure - * @property {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure|null} [existsIdenticalStructure] CreateWorkflowFailureReason existsIdenticalStructure + * @interface IGetVersionRequest */ /** - * Constructs a new CreateWorkflowFailureReason. + * Constructs a new GetVersionRequest. * @memberof flyteidl.admin - * @classdesc Represents a CreateWorkflowFailureReason. - * @implements ICreateWorkflowFailureReason + * @classdesc Represents a GetVersionRequest. + * @implements IGetVersionRequest * @constructor - * @param {flyteidl.admin.ICreateWorkflowFailureReason=} [properties] Properties to set + * @param {flyteidl.admin.IGetVersionRequest=} [properties] Properties to set */ - function CreateWorkflowFailureReason(properties) { + function GetVersionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41034,90 +40791,50 @@ } /** - * CreateWorkflowFailureReason existsDifferentStructure. - * @member {flyteidl.admin.IWorkflowErrorExistsDifferentStructure|null|undefined} existsDifferentStructure - * @memberof flyteidl.admin.CreateWorkflowFailureReason - * @instance + * 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 */ - CreateWorkflowFailureReason.prototype.existsDifferentStructure = null; + GetVersionRequest.create = function create(properties) { + return new GetVersionRequest(properties); + }; /** - * 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. + * Encodes the specified GetVersionRequest message. Does not implicitly {@link flyteidl.admin.GetVersionRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.CreateWorkflowFailureReason + * @memberof flyteidl.admin.GetVersionRequest * @static - * @param {flyteidl.admin.ICreateWorkflowFailureReason} message CreateWorkflowFailureReason message or plain object to encode + * @param {flyteidl.admin.IGetVersionRequest} message GetVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateWorkflowFailureReason.encode = function encode(message, writer) { + GetVersionRequest.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. + * Decodes a GetVersionRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.CreateWorkflowFailureReason + * @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.CreateWorkflowFailureReason} CreateWorkflowFailureReason + * @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 */ - CreateWorkflowFailureReason.decode = function decode(reader, length) { + 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.CreateWorkflowFailureReason(); + 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) { - 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; @@ -41127,62 +40844,41 @@ }; /** - * Verifies a CreateWorkflowFailureReason message. + * Verifies a GetVersionRequest message. * @function verify - * @memberof flyteidl.admin.CreateWorkflowFailureReason + * @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 */ - CreateWorkflowFailureReason.verify = function verify(message) { + GetVersionRequest.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; + return GetVersionRequest; })(); - admin.WorkflowAttributes = (function() { + admin.WorkflowCreateRequest = (function() { /** - * Properties of a WorkflowAttributes. + * Properties of a WorkflowCreateRequest. * @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 + * @interface IWorkflowCreateRequest + * @property {flyteidl.core.IIdentifier|null} [id] WorkflowCreateRequest id + * @property {flyteidl.admin.IWorkflowSpec|null} [spec] WorkflowCreateRequest spec */ /** - * Constructs a new WorkflowAttributes. + * Constructs a new WorkflowCreateRequest. * @memberof flyteidl.admin - * @classdesc Represents a WorkflowAttributes. - * @implements IWorkflowAttributes + * @classdesc Represents a WorkflowCreateRequest. + * @implements IWorkflowCreateRequest * @constructor - * @param {flyteidl.admin.IWorkflowAttributes=} [properties] Properties to set + * @param {flyteidl.admin.IWorkflowCreateRequest=} [properties] Properties to set */ - function WorkflowAttributes(properties) { + function WorkflowCreateRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41190,101 +40886,75 @@ } /** - * 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 + * WorkflowCreateRequest id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.WorkflowCreateRequest * @instance */ - WorkflowAttributes.prototype.workflow = ""; + WorkflowCreateRequest.prototype.id = null; /** - * WorkflowAttributes matchingAttributes. - * @member {flyteidl.admin.IMatchingAttributes|null|undefined} matchingAttributes - * @memberof flyteidl.admin.WorkflowAttributes + * WorkflowCreateRequest spec. + * @member {flyteidl.admin.IWorkflowSpec|null|undefined} spec + * @memberof flyteidl.admin.WorkflowCreateRequest * @instance */ - WorkflowAttributes.prototype.matchingAttributes = null; + WorkflowCreateRequest.prototype.spec = null; /** - * Creates a new WorkflowAttributes instance using the specified properties. + * Creates a new WorkflowCreateRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.WorkflowAttributes + * @memberof flyteidl.admin.WorkflowCreateRequest * @static - * @param {flyteidl.admin.IWorkflowAttributes=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowAttributes} WorkflowAttributes instance + * @param {flyteidl.admin.IWorkflowCreateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowCreateRequest} WorkflowCreateRequest instance */ - WorkflowAttributes.create = function create(properties) { - return new WorkflowAttributes(properties); + WorkflowCreateRequest.create = function create(properties) { + return new WorkflowCreateRequest(properties); }; /** - * Encodes the specified WorkflowAttributes message. Does not implicitly {@link flyteidl.admin.WorkflowAttributes.verify|verify} messages. + * Encodes the specified WorkflowCreateRequest message. Does not implicitly {@link flyteidl.admin.WorkflowCreateRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.WorkflowAttributes + * @memberof flyteidl.admin.WorkflowCreateRequest * @static - * @param {flyteidl.admin.IWorkflowAttributes} message WorkflowAttributes message or plain object to encode + * @param {flyteidl.admin.IWorkflowCreateRequest} message WorkflowCreateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkflowAttributes.encode = function encode(message, writer) { + WorkflowCreateRequest.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.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 WorkflowAttributes message from the specified reader or buffer. + * Decodes a WorkflowCreateRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.WorkflowAttributes + * @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.WorkflowAttributes} WorkflowAttributes + * @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 */ - WorkflowAttributes.decode = function decode(reader, length) { + 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.WorkflowAttributes(); + 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.project = reader.string(); + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); 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()); + message.spec = $root.flyteidl.admin.WorkflowSpec.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -41295,54 +40965,49 @@ }; /** - * Verifies a WorkflowAttributes message. + * Verifies a WorkflowCreateRequest message. * @function verify - * @memberof flyteidl.admin.WorkflowAttributes + * @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 */ - WorkflowAttributes.verify = function verify(message) { + WorkflowCreateRequest.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 (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); if (error) - return "matchingAttributes." + 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 WorkflowAttributes; + return WorkflowCreateRequest; })(); - admin.WorkflowAttributesUpdateRequest = (function() { + admin.WorkflowCreateResponse = (function() { /** - * Properties of a WorkflowAttributesUpdateRequest. + * Properties of a WorkflowCreateResponse. * @memberof flyteidl.admin - * @interface IWorkflowAttributesUpdateRequest - * @property {flyteidl.admin.IWorkflowAttributes|null} [attributes] WorkflowAttributesUpdateRequest attributes + * @interface IWorkflowCreateResponse */ /** - * Constructs a new WorkflowAttributesUpdateRequest. + * Constructs a new WorkflowCreateResponse. * @memberof flyteidl.admin - * @classdesc Represents a WorkflowAttributesUpdateRequest. - * @implements IWorkflowAttributesUpdateRequest + * @classdesc Represents a WorkflowCreateResponse. + * @implements IWorkflowCreateResponse * @constructor - * @param {flyteidl.admin.IWorkflowAttributesUpdateRequest=} [properties] Properties to set + * @param {flyteidl.admin.IWorkflowCreateResponse=} [properties] Properties to set */ - function WorkflowAttributesUpdateRequest(properties) { + function WorkflowCreateResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41350,63 +41015,50 @@ } /** - * 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. + * Creates a new WorkflowCreateResponse instance using the specified properties. * @function create - * @memberof flyteidl.admin.WorkflowAttributesUpdateRequest + * @memberof flyteidl.admin.WorkflowCreateResponse * @static - * @param {flyteidl.admin.IWorkflowAttributesUpdateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowAttributesUpdateRequest} WorkflowAttributesUpdateRequest instance + * @param {flyteidl.admin.IWorkflowCreateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowCreateResponse} WorkflowCreateResponse instance */ - WorkflowAttributesUpdateRequest.create = function create(properties) { - return new WorkflowAttributesUpdateRequest(properties); + WorkflowCreateResponse.create = function create(properties) { + return new WorkflowCreateResponse(properties); }; /** - * Encodes the specified WorkflowAttributesUpdateRequest message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesUpdateRequest.verify|verify} messages. + * Encodes the specified WorkflowCreateResponse message. Does not implicitly {@link flyteidl.admin.WorkflowCreateResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.WorkflowAttributesUpdateRequest + * @memberof flyteidl.admin.WorkflowCreateResponse * @static - * @param {flyteidl.admin.IWorkflowAttributesUpdateRequest} message WorkflowAttributesUpdateRequest message or plain object to encode + * @param {flyteidl.admin.IWorkflowCreateResponse} message WorkflowCreateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkflowAttributesUpdateRequest.encode = function encode(message, writer) { + WorkflowCreateResponse.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. + * Decodes a WorkflowCreateResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.WorkflowAttributesUpdateRequest + * @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.WorkflowAttributesUpdateRequest} WorkflowAttributesUpdateRequest + * @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 */ - WorkflowAttributesUpdateRequest.decode = function decode(reader, length) { + 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.WorkflowAttributesUpdateRequest(); + 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) { - case 1: - message.attributes = $root.flyteidl.admin.WorkflowAttributes.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -41416,44 +41068,42 @@ }; /** - * Verifies a WorkflowAttributesUpdateRequest message. + * Verifies a WorkflowCreateResponse message. * @function verify - * @memberof flyteidl.admin.WorkflowAttributesUpdateRequest + * @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 */ - WorkflowAttributesUpdateRequest.verify = function verify(message) { + WorkflowCreateResponse.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; + return WorkflowCreateResponse; })(); - admin.WorkflowAttributesUpdateResponse = (function() { + admin.Workflow = (function() { /** - * Properties of a WorkflowAttributesUpdateResponse. + * Properties of a Workflow. * @memberof flyteidl.admin - * @interface IWorkflowAttributesUpdateResponse + * @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 WorkflowAttributesUpdateResponse. + * Constructs a new Workflow. * @memberof flyteidl.admin - * @classdesc Represents a WorkflowAttributesUpdateResponse. - * @implements IWorkflowAttributesUpdateResponse + * @classdesc Represents a Workflow. + * @implements IWorkflow * @constructor - * @param {flyteidl.admin.IWorkflowAttributesUpdateResponse=} [properties] Properties to set + * @param {flyteidl.admin.IWorkflow=} [properties] Properties to set */ - function WorkflowAttributesUpdateResponse(properties) { + function Workflow(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41461,50 +41111,89 @@ } /** - * Creates a new WorkflowAttributesUpdateResponse instance using the specified properties. + * 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.WorkflowAttributesUpdateResponse + * @memberof flyteidl.admin.Workflow * @static - * @param {flyteidl.admin.IWorkflowAttributesUpdateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowAttributesUpdateResponse} WorkflowAttributesUpdateResponse instance + * @param {flyteidl.admin.IWorkflow=} [properties] Properties to set + * @returns {flyteidl.admin.Workflow} Workflow instance */ - WorkflowAttributesUpdateResponse.create = function create(properties) { - return new WorkflowAttributesUpdateResponse(properties); + Workflow.create = function create(properties) { + return new Workflow(properties); }; /** - * Encodes the specified WorkflowAttributesUpdateResponse message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesUpdateResponse.verify|verify} messages. + * Encodes the specified Workflow message. Does not implicitly {@link flyteidl.admin.Workflow.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.WorkflowAttributesUpdateResponse + * @memberof flyteidl.admin.Workflow * @static - * @param {flyteidl.admin.IWorkflowAttributesUpdateResponse} message WorkflowAttributesUpdateResponse message or plain object to encode + * @param {flyteidl.admin.IWorkflow} message Workflow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkflowAttributesUpdateResponse.encode = function encode(message, 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 WorkflowAttributesUpdateResponse message from the specified reader or buffer. + * Decodes a Workflow message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.WorkflowAttributesUpdateResponse + * @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.WorkflowAttributesUpdateResponse} WorkflowAttributesUpdateResponse + * @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 */ - WorkflowAttributesUpdateResponse.decode = function decode(reader, length) { + 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.WorkflowAttributesUpdateResponse(); + 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; @@ -41514,43 +41203,55 @@ }; /** - * Verifies a WorkflowAttributesUpdateResponse message. + * Verifies a Workflow message. * @function verify - * @memberof flyteidl.admin.WorkflowAttributesUpdateResponse + * @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 */ - WorkflowAttributesUpdateResponse.verify = function verify(message) { + 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 WorkflowAttributesUpdateResponse; + return Workflow; })(); - admin.WorkflowAttributesGetRequest = (function() { + admin.WorkflowList = (function() { /** - * Properties of a WorkflowAttributesGetRequest. + * Properties of a WorkflowList. * @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 + * @interface IWorkflowList + * @property {Array.|null} [workflows] WorkflowList workflows + * @property {string|null} [token] WorkflowList token */ /** - * Constructs a new WorkflowAttributesGetRequest. + * Constructs a new WorkflowList. * @memberof flyteidl.admin - * @classdesc Represents a WorkflowAttributesGetRequest. - * @implements IWorkflowAttributesGetRequest + * @classdesc Represents a WorkflowList. + * @implements IWorkflowList * @constructor - * @param {flyteidl.admin.IWorkflowAttributesGetRequest=} [properties] Properties to set + * @param {flyteidl.admin.IWorkflowList=} [properties] Properties to set */ - function WorkflowAttributesGetRequest(properties) { + function WorkflowList(properties) { + this.workflows = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41558,104 +41259,81 @@ } /** - * 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 + * WorkflowList workflows. + * @member {Array.} workflows + * @memberof flyteidl.admin.WorkflowList * @instance */ - WorkflowAttributesGetRequest.prototype.workflow = ""; + WorkflowList.prototype.workflows = $util.emptyArray; /** - * WorkflowAttributesGetRequest resourceType. - * @member {flyteidl.admin.MatchableResource} resourceType - * @memberof flyteidl.admin.WorkflowAttributesGetRequest + * WorkflowList token. + * @member {string} token + * @memberof flyteidl.admin.WorkflowList * @instance */ - WorkflowAttributesGetRequest.prototype.resourceType = 0; + WorkflowList.prototype.token = ""; /** - * Creates a new WorkflowAttributesGetRequest instance using the specified properties. + * Creates a new WorkflowList instance using the specified properties. * @function create - * @memberof flyteidl.admin.WorkflowAttributesGetRequest + * @memberof flyteidl.admin.WorkflowList * @static - * @param {flyteidl.admin.IWorkflowAttributesGetRequest=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowAttributesGetRequest} WorkflowAttributesGetRequest instance + * @param {flyteidl.admin.IWorkflowList=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowList} WorkflowList instance */ - WorkflowAttributesGetRequest.create = function create(properties) { - return new WorkflowAttributesGetRequest(properties); + WorkflowList.create = function create(properties) { + return new WorkflowList(properties); }; /** - * Encodes the specified WorkflowAttributesGetRequest message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesGetRequest.verify|verify} messages. + * Encodes the specified WorkflowList message. Does not implicitly {@link flyteidl.admin.WorkflowList.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.WorkflowAttributesGetRequest + * @memberof flyteidl.admin.WorkflowList * @static - * @param {flyteidl.admin.IWorkflowAttributesGetRequest} message WorkflowAttributesGetRequest message or plain object to encode + * @param {flyteidl.admin.IWorkflowList} message WorkflowList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkflowAttributesGetRequest.encode = function encode(message, writer) { + WorkflowList.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.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 WorkflowAttributesGetRequest message from the specified reader or buffer. + * Decodes a WorkflowList message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.WorkflowAttributesGetRequest + * @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.WorkflowAttributesGetRequest} WorkflowAttributesGetRequest + * @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 */ - WorkflowAttributesGetRequest.decode = function decode(reader, length) { + 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.WorkflowAttributesGetRequest(); + 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: - message.project = reader.string(); + if (!(message.workflows && message.workflows.length)) + message.workflows = []; + message.workflows.push($root.flyteidl.admin.Workflow.decode(reader, reader.uint32())); break; case 2: - message.domain = reader.string(); + message.token = reader.string(); break; - case 3: - message.workflow = reader.string(); - break; - case 4: - message.resourceType = reader.int32(); - break; - default: - reader.skipType(tag & 7); + default: + reader.skipType(tag & 7); break; } } @@ -41663,63 +41341,55 @@ }; /** - * Verifies a WorkflowAttributesGetRequest message. + * Verifies a WorkflowList message. * @function verify - * @memberof flyteidl.admin.WorkflowAttributesGetRequest + * @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 */ - WorkflowAttributesGetRequest.verify = function verify(message) { + WorkflowList.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.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 WorkflowAttributesGetRequest; + return WorkflowList; })(); - admin.WorkflowAttributesGetResponse = (function() { + admin.WorkflowSpec = (function() { /** - * Properties of a WorkflowAttributesGetResponse. + * Properties of a WorkflowSpec. * @memberof flyteidl.admin - * @interface IWorkflowAttributesGetResponse - * @property {flyteidl.admin.IWorkflowAttributes|null} [attributes] WorkflowAttributesGetResponse attributes + * @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 WorkflowAttributesGetResponse. + * Constructs a new WorkflowSpec. * @memberof flyteidl.admin - * @classdesc Represents a WorkflowAttributesGetResponse. - * @implements IWorkflowAttributesGetResponse + * @classdesc Represents a WorkflowSpec. + * @implements IWorkflowSpec * @constructor - * @param {flyteidl.admin.IWorkflowAttributesGetResponse=} [properties] Properties to set + * @param {flyteidl.admin.IWorkflowSpec=} [properties] Properties to set */ - function WorkflowAttributesGetResponse(properties) { + function WorkflowSpec(properties) { + this.subWorkflows = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41727,62 +41397,91 @@ } /** - * WorkflowAttributesGetResponse attributes. - * @member {flyteidl.admin.IWorkflowAttributes|null|undefined} attributes - * @memberof flyteidl.admin.WorkflowAttributesGetResponse + * WorkflowSpec template. + * @member {flyteidl.core.IWorkflowTemplate|null|undefined} template + * @memberof flyteidl.admin.WorkflowSpec * @instance */ - WorkflowAttributesGetResponse.prototype.attributes = null; + WorkflowSpec.prototype.template = null; /** - * Creates a new WorkflowAttributesGetResponse instance using the specified properties. + * 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.WorkflowAttributesGetResponse + * @memberof flyteidl.admin.WorkflowSpec * @static - * @param {flyteidl.admin.IWorkflowAttributesGetResponse=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowAttributesGetResponse} WorkflowAttributesGetResponse instance + * @param {flyteidl.admin.IWorkflowSpec=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowSpec} WorkflowSpec instance */ - WorkflowAttributesGetResponse.create = function create(properties) { - return new WorkflowAttributesGetResponse(properties); + WorkflowSpec.create = function create(properties) { + return new WorkflowSpec(properties); }; /** - * Encodes the specified WorkflowAttributesGetResponse message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesGetResponse.verify|verify} messages. + * Encodes the specified WorkflowSpec message. Does not implicitly {@link flyteidl.admin.WorkflowSpec.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.WorkflowAttributesGetResponse + * @memberof flyteidl.admin.WorkflowSpec * @static - * @param {flyteidl.admin.IWorkflowAttributesGetResponse} message WorkflowAttributesGetResponse message or plain object to encode + * @param {flyteidl.admin.IWorkflowSpec} message WorkflowSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkflowAttributesGetResponse.encode = function encode(message, writer) { + WorkflowSpec.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(); + 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 WorkflowAttributesGetResponse message from the specified reader or buffer. + * Decodes a WorkflowSpec message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.WorkflowAttributesGetResponse + * @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.WorkflowAttributesGetResponse} WorkflowAttributesGetResponse + * @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 */ - WorkflowAttributesGetResponse.decode = function decode(reader, length) { + 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.WorkflowAttributesGetResponse(); + 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.attributes = $root.flyteidl.admin.WorkflowAttributes.decode(reader, reader.uint32()); + 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); @@ -41793,48 +41492,60 @@ }; /** - * Verifies a WorkflowAttributesGetResponse message. + * Verifies a WorkflowSpec message. * @function verify - * @memberof flyteidl.admin.WorkflowAttributesGetResponse + * @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 */ - WorkflowAttributesGetResponse.verify = function verify(message) { + WorkflowSpec.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 (message.template != null && message.hasOwnProperty("template")) { + var error = $root.flyteidl.core.WorkflowTemplate.verify(message.template); if (error) - return "attributes." + 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 WorkflowAttributesGetResponse; + return WorkflowSpec; })(); - admin.WorkflowAttributesDeleteRequest = (function() { + admin.WorkflowClosure = (function() { /** - * Properties of a WorkflowAttributesDeleteRequest. + * Properties of a WorkflowClosure. * @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 + * @interface IWorkflowClosure + * @property {flyteidl.core.ICompiledWorkflowClosure|null} [compiledWorkflow] WorkflowClosure compiledWorkflow + * @property {google.protobuf.ITimestamp|null} [createdAt] WorkflowClosure createdAt */ /** - * Constructs a new WorkflowAttributesDeleteRequest. + * Constructs a new WorkflowClosure. * @memberof flyteidl.admin - * @classdesc Represents a WorkflowAttributesDeleteRequest. - * @implements IWorkflowAttributesDeleteRequest + * @classdesc Represents a WorkflowClosure. + * @implements IWorkflowClosure * @constructor - * @param {flyteidl.admin.IWorkflowAttributesDeleteRequest=} [properties] Properties to set + * @param {flyteidl.admin.IWorkflowClosure=} [properties] Properties to set */ - function WorkflowAttributesDeleteRequest(properties) { + function WorkflowClosure(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41842,101 +41553,75 @@ } /** - * 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 + * WorkflowClosure compiledWorkflow. + * @member {flyteidl.core.ICompiledWorkflowClosure|null|undefined} compiledWorkflow + * @memberof flyteidl.admin.WorkflowClosure * @instance */ - WorkflowAttributesDeleteRequest.prototype.workflow = ""; + WorkflowClosure.prototype.compiledWorkflow = null; /** - * WorkflowAttributesDeleteRequest resourceType. - * @member {flyteidl.admin.MatchableResource} resourceType - * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest + * WorkflowClosure createdAt. + * @member {google.protobuf.ITimestamp|null|undefined} createdAt + * @memberof flyteidl.admin.WorkflowClosure * @instance */ - WorkflowAttributesDeleteRequest.prototype.resourceType = 0; + WorkflowClosure.prototype.createdAt = null; /** - * Creates a new WorkflowAttributesDeleteRequest instance using the specified properties. + * Creates a new WorkflowClosure instance using the specified properties. * @function create - * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest + * @memberof flyteidl.admin.WorkflowClosure * @static - * @param {flyteidl.admin.IWorkflowAttributesDeleteRequest=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowAttributesDeleteRequest} WorkflowAttributesDeleteRequest instance + * @param {flyteidl.admin.IWorkflowClosure=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowClosure} WorkflowClosure instance */ - WorkflowAttributesDeleteRequest.create = function create(properties) { - return new WorkflowAttributesDeleteRequest(properties); + WorkflowClosure.create = function create(properties) { + return new WorkflowClosure(properties); }; /** - * Encodes the specified WorkflowAttributesDeleteRequest message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesDeleteRequest.verify|verify} messages. + * Encodes the specified WorkflowClosure message. Does not implicitly {@link flyteidl.admin.WorkflowClosure.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest + * @memberof flyteidl.admin.WorkflowClosure * @static - * @param {flyteidl.admin.IWorkflowAttributesDeleteRequest} message WorkflowAttributesDeleteRequest message or plain object to encode + * @param {flyteidl.admin.IWorkflowClosure} message WorkflowClosure message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkflowAttributesDeleteRequest.encode = function encode(message, writer) { + WorkflowClosure.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.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 WorkflowAttributesDeleteRequest message from the specified reader or buffer. + * Decodes a WorkflowClosure message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest + * @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.WorkflowAttributesDeleteRequest} WorkflowAttributesDeleteRequest + * @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 */ - WorkflowAttributesDeleteRequest.decode = function decode(reader, length) { + 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.WorkflowAttributesDeleteRequest(); + 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.project = reader.string(); + message.compiledWorkflow = $root.flyteidl.core.CompiledWorkflowClosure.decode(reader, reader.uint32()); break; case 2: - message.domain = reader.string(); - break; - case 3: - message.workflow = reader.string(); - break; - case 4: - message.resourceType = reader.int32(); + message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -41947,62 +41632,50 @@ }; /** - * Verifies a WorkflowAttributesDeleteRequest message. + * Verifies a WorkflowClosure message. * @function verify - * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest + * @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 */ - WorkflowAttributesDeleteRequest.verify = function verify(message) { + WorkflowClosure.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.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 WorkflowAttributesDeleteRequest; + return WorkflowClosure; })(); - admin.WorkflowAttributesDeleteResponse = (function() { + admin.WorkflowErrorExistsDifferentStructure = (function() { /** - * Properties of a WorkflowAttributesDeleteResponse. + * Properties of a WorkflowErrorExistsDifferentStructure. * @memberof flyteidl.admin - * @interface IWorkflowAttributesDeleteResponse + * @interface IWorkflowErrorExistsDifferentStructure + * @property {flyteidl.core.IIdentifier|null} [id] WorkflowErrorExistsDifferentStructure id */ /** - * Constructs a new WorkflowAttributesDeleteResponse. + * Constructs a new WorkflowErrorExistsDifferentStructure. * @memberof flyteidl.admin - * @classdesc Represents a WorkflowAttributesDeleteResponse. - * @implements IWorkflowAttributesDeleteResponse + * @classdesc Represents a WorkflowErrorExistsDifferentStructure. + * @implements IWorkflowErrorExistsDifferentStructure * @constructor - * @param {flyteidl.admin.IWorkflowAttributesDeleteResponse=} [properties] Properties to set + * @param {flyteidl.admin.IWorkflowErrorExistsDifferentStructure=} [properties] Properties to set */ - function WorkflowAttributesDeleteResponse(properties) { + function WorkflowErrorExistsDifferentStructure(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -42010,50 +41683,63 @@ } /** - * Creates a new WorkflowAttributesDeleteResponse instance using the specified properties. + * 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.WorkflowAttributesDeleteResponse + * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure * @static - * @param {flyteidl.admin.IWorkflowAttributesDeleteResponse=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowAttributesDeleteResponse} WorkflowAttributesDeleteResponse instance + * @param {flyteidl.admin.IWorkflowErrorExistsDifferentStructure=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowErrorExistsDifferentStructure} WorkflowErrorExistsDifferentStructure instance */ - WorkflowAttributesDeleteResponse.create = function create(properties) { - return new WorkflowAttributesDeleteResponse(properties); + WorkflowErrorExistsDifferentStructure.create = function create(properties) { + return new WorkflowErrorExistsDifferentStructure(properties); }; /** - * Encodes the specified WorkflowAttributesDeleteResponse message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesDeleteResponse.verify|verify} messages. + * Encodes the specified WorkflowErrorExistsDifferentStructure message. Does not implicitly {@link flyteidl.admin.WorkflowErrorExistsDifferentStructure.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.WorkflowAttributesDeleteResponse + * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure * @static - * @param {flyteidl.admin.IWorkflowAttributesDeleteResponse} message WorkflowAttributesDeleteResponse message or plain object to encode + * @param {flyteidl.admin.IWorkflowErrorExistsDifferentStructure} message WorkflowErrorExistsDifferentStructure message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkflowAttributesDeleteResponse.encode = function encode(message, 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 WorkflowAttributesDeleteResponse message from the specified reader or buffer. + * Decodes a WorkflowErrorExistsDifferentStructure message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.WorkflowAttributesDeleteResponse + * @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.WorkflowAttributesDeleteResponse} WorkflowAttributesDeleteResponse + * @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 */ - WorkflowAttributesDeleteResponse.decode = function decode(reader, length) { + 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.WorkflowAttributesDeleteResponse(); + 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; @@ -42063,1992 +41749,3553 @@ }; /** - * Verifies a WorkflowAttributesDeleteResponse message. + * Verifies a WorkflowErrorExistsDifferentStructure message. * @function verify - * @memberof flyteidl.admin.WorkflowAttributesDeleteResponse + * @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 */ - WorkflowAttributesDeleteResponse.verify = function verify(message) { + 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 WorkflowAttributesDeleteResponse; + return WorkflowErrorExistsDifferentStructure; })(); - return admin; - })(); - - flyteidl.service = (function() { - - /** - * Namespace service. - * @memberof flyteidl - * @namespace - */ - var service = {}; + admin.WorkflowErrorExistsIdenticalStructure = (function() { - service.AdminService = (function() { + /** + * Properties of a WorkflowErrorExistsIdenticalStructure. + * @memberof flyteidl.admin + * @interface IWorkflowErrorExistsIdenticalStructure + * @property {flyteidl.core.IIdentifier|null} [id] WorkflowErrorExistsIdenticalStructure id + */ /** - * Constructs a new AdminService service. - * @memberof flyteidl.service - * @classdesc Represents an AdminService - * @extends $protobuf.rpc.Service + * Constructs a new WorkflowErrorExistsIdenticalStructure. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowErrorExistsIdenticalStructure. + * @implements IWorkflowErrorExistsIdenticalStructure * @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 + * @param {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure=} [properties] Properties to set */ - function AdminService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + 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]]; } - (AdminService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AdminService; + /** + * WorkflowErrorExistsIdenticalStructure id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure + * @instance + */ + WorkflowErrorExistsIdenticalStructure.prototype.id = null; /** - * Creates new AdminService service using the specified rpc implementation. + * Creates a new WorkflowErrorExistsIdenticalStructure instance using the specified properties. * @function create - * @memberof flyteidl.service.AdminService + * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure * @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. + * @param {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowErrorExistsIdenticalStructure} WorkflowErrorExistsIdenticalStructure instance */ - AdminService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); + WorkflowErrorExistsIdenticalStructure.create = function create(properties) { + return new WorkflowErrorExistsIdenticalStructure(properties); }; /** - * 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 + * 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; + }; /** - * 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 + * 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 */ - 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" }); + 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; + }; /** - * Calls CreateTask. - * @function createTask - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.ITaskCreateRequest} request TaskCreateRequest message or plain object - * @returns {Promise} Promise + * 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 + */ + + /** + * 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; + + /** + * 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(); + 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; + 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; + } + 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 + */ + + /** + * 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; + + /** + * 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); + 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; + 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; + } + 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 + */ + + /** + * 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; + + /** + * 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); + 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; + 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; + } + 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#getTask}. + * Callback as used by {@link flyteidl.service.AdminService#getLaunchPlan}. * @memberof flyteidl.service.AdminService - * @typedef GetTaskCallback + * @typedef GetLaunchPlanCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.Task} [response] Task + * @param {flyteidl.admin.LaunchPlan} [response] LaunchPlan */ /** - * Calls GetTask. - * @function getTask + * Calls GetLaunchPlan. + * @function getLaunchPlan * @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 + * @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.getTask = function getTask(request, callback) { - return this.rpcCall(getTask, $root.flyteidl.admin.ObjectGetRequest, $root.flyteidl.admin.Task, request, callback); - }, "name", { value: "GetTask" }); + 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 GetTask. - * @function getTask + * Calls GetLaunchPlan. + * @function getLaunchPlan * @memberof flyteidl.service.AdminService * @instance * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object - * @returns {Promise} Promise + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#listTaskIds}. + * Callback as used by {@link flyteidl.service.AdminService#getActiveLaunchPlan}. * @memberof flyteidl.service.AdminService - * @typedef ListTaskIdsCallback + * @typedef GetActiveLaunchPlanCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.NamedEntityIdentifierList} [response] NamedEntityIdentifierList + * @param {flyteidl.admin.LaunchPlan} [response] LaunchPlan */ /** - * Calls ListTaskIds. - * @function listTaskIds + * Calls GetActiveLaunchPlan. + * @function getActiveLaunchPlan * @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 + * @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.listTaskIds = function listTaskIds(request, callback) { - return this.rpcCall(listTaskIds, $root.flyteidl.admin.NamedEntityIdentifierListRequest, $root.flyteidl.admin.NamedEntityIdentifierList, request, callback); - }, "name", { value: "ListTaskIds" }); + 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 ListTaskIds. - * @function listTaskIds + * Calls GetActiveLaunchPlan. + * @function getActiveLaunchPlan * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.IActiveLaunchPlanRequest} request ActiveLaunchPlanRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#listTasks}. + * Callback as used by {@link flyteidl.service.AdminService#listActiveLaunchPlans}. * @memberof flyteidl.service.AdminService - * @typedef ListTasksCallback + * @typedef ListActiveLaunchPlansCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.TaskList} [response] TaskList + * @param {flyteidl.admin.LaunchPlanList} [response] LaunchPlanList */ /** - * Calls ListTasks. - * @function listTasks + * Calls ListActiveLaunchPlans. + * @function listActiveLaunchPlans * @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 + * @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.listTasks = function listTasks(request, callback) { - return this.rpcCall(listTasks, $root.flyteidl.admin.ResourceListRequest, $root.flyteidl.admin.TaskList, request, callback); - }, "name", { value: "ListTasks" }); + 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 ListTasks. - * @function listTasks + * Calls ListActiveLaunchPlans. + * @function listActiveLaunchPlans * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.IActiveLaunchPlanListRequest} request ActiveLaunchPlanListRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#createWorkflow}. + * Callback as used by {@link flyteidl.service.AdminService#listLaunchPlanIds}. * @memberof flyteidl.service.AdminService - * @typedef CreateWorkflowCallback + * @typedef ListLaunchPlanIdsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.WorkflowCreateResponse} [response] WorkflowCreateResponse + * @param {flyteidl.admin.NamedEntityIdentifierList} [response] NamedEntityIdentifierList */ /** - * Calls CreateWorkflow. - * @function createWorkflow + * Calls ListLaunchPlanIds. + * @function listLaunchPlanIds * @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 + * @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.createWorkflow = function createWorkflow(request, callback) { - return this.rpcCall(createWorkflow, $root.flyteidl.admin.WorkflowCreateRequest, $root.flyteidl.admin.WorkflowCreateResponse, request, callback); - }, "name", { value: "CreateWorkflow" }); + 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 CreateWorkflow. - * @function createWorkflow + * Calls ListLaunchPlanIds. + * @function listLaunchPlanIds * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.IWorkflowCreateRequest} request WorkflowCreateRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#getWorkflow}. + * Callback as used by {@link flyteidl.service.AdminService#listLaunchPlans}. * @memberof flyteidl.service.AdminService - * @typedef GetWorkflowCallback + * @typedef ListLaunchPlansCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.Workflow} [response] Workflow + * @param {flyteidl.admin.LaunchPlanList} [response] LaunchPlanList */ /** - * Calls GetWorkflow. - * @function getWorkflow + * Calls ListLaunchPlans. + * @function listLaunchPlans * @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 + * @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.getWorkflow = function getWorkflow(request, callback) { - return this.rpcCall(getWorkflow, $root.flyteidl.admin.ObjectGetRequest, $root.flyteidl.admin.Workflow, request, callback); - }, "name", { value: "GetWorkflow" }); + 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 GetWorkflow. - * @function getWorkflow + * Calls ListLaunchPlans. + * @function listLaunchPlans * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#listWorkflowIds}. + * Callback as used by {@link flyteidl.service.AdminService#updateLaunchPlan}. * @memberof flyteidl.service.AdminService - * @typedef ListWorkflowIdsCallback + * @typedef UpdateLaunchPlanCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.NamedEntityIdentifierList} [response] NamedEntityIdentifierList + * @param {flyteidl.admin.LaunchPlanUpdateResponse} [response] LaunchPlanUpdateResponse */ /** - * Calls ListWorkflowIds. - * @function listWorkflowIds + * Calls UpdateLaunchPlan. + * @function updateLaunchPlan * @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 + * @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.listWorkflowIds = function listWorkflowIds(request, callback) { - return this.rpcCall(listWorkflowIds, $root.flyteidl.admin.NamedEntityIdentifierListRequest, $root.flyteidl.admin.NamedEntityIdentifierList, request, callback); - }, "name", { value: "ListWorkflowIds" }); + 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 ListWorkflowIds. - * @function listWorkflowIds + * Calls UpdateLaunchPlan. + * @function updateLaunchPlan * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.ILaunchPlanUpdateRequest} request LaunchPlanUpdateRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#listWorkflows}. + * Callback as used by {@link flyteidl.service.AdminService#createExecution}. * @memberof flyteidl.service.AdminService - * @typedef ListWorkflowsCallback + * @typedef CreateExecutionCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.WorkflowList} [response] WorkflowList + * @param {flyteidl.admin.ExecutionCreateResponse} [response] ExecutionCreateResponse */ /** - * Calls ListWorkflows. - * @function listWorkflows + * Calls CreateExecution. + * @function createExecution * @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 + * @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.listWorkflows = function listWorkflows(request, callback) { - return this.rpcCall(listWorkflows, $root.flyteidl.admin.ResourceListRequest, $root.flyteidl.admin.WorkflowList, request, callback); - }, "name", { value: "ListWorkflows" }); + 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 ListWorkflows. - * @function listWorkflows + * Calls CreateExecution. + * @function createExecution * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.IExecutionCreateRequest} request ExecutionCreateRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#createLaunchPlan}. + * Callback as used by {@link flyteidl.service.AdminService#relaunchExecution}. * @memberof flyteidl.service.AdminService - * @typedef CreateLaunchPlanCallback + * @typedef RelaunchExecutionCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.LaunchPlanCreateResponse} [response] LaunchPlanCreateResponse + * @param {flyteidl.admin.ExecutionCreateResponse} [response] ExecutionCreateResponse */ /** - * Calls CreateLaunchPlan. - * @function createLaunchPlan + * Calls RelaunchExecution. + * @function relaunchExecution * @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 + * @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.createLaunchPlan = function createLaunchPlan(request, callback) { - return this.rpcCall(createLaunchPlan, $root.flyteidl.admin.LaunchPlanCreateRequest, $root.flyteidl.admin.LaunchPlanCreateResponse, request, callback); - }, "name", { value: "CreateLaunchPlan" }); + 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 CreateLaunchPlan. - * @function createLaunchPlan + * Calls RelaunchExecution. + * @function relaunchExecution * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.ILaunchPlanCreateRequest} request LaunchPlanCreateRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.IExecutionRelaunchRequest} request ExecutionRelaunchRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#getLaunchPlan}. + * Callback as used by {@link flyteidl.service.AdminService#recoverExecution}. * @memberof flyteidl.service.AdminService - * @typedef GetLaunchPlanCallback + * @typedef RecoverExecutionCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.LaunchPlan} [response] LaunchPlan + * @param {flyteidl.admin.ExecutionCreateResponse} [response] ExecutionCreateResponse */ /** - * Calls GetLaunchPlan. - * @function getLaunchPlan + * Calls RecoverExecution. + * @function recoverExecution * @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 + * @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.getLaunchPlan = function getLaunchPlan(request, callback) { - return this.rpcCall(getLaunchPlan, $root.flyteidl.admin.ObjectGetRequest, $root.flyteidl.admin.LaunchPlan, request, callback); - }, "name", { value: "GetLaunchPlan" }); + 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 GetLaunchPlan. - * @function getLaunchPlan + * Calls RecoverExecution. + * @function recoverExecution * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.IExecutionRecoverRequest} request ExecutionRecoverRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#getActiveLaunchPlan}. + * Callback as used by {@link flyteidl.service.AdminService#getExecution}. * @memberof flyteidl.service.AdminService - * @typedef GetActiveLaunchPlanCallback + * @typedef GetExecutionCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.LaunchPlan} [response] LaunchPlan + * @param {flyteidl.admin.Execution} [response] Execution */ /** - * Calls GetActiveLaunchPlan. - * @function getActiveLaunchPlan + * Calls GetExecution. + * @function getExecution * @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 + * @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.getActiveLaunchPlan = function getActiveLaunchPlan(request, callback) { - return this.rpcCall(getActiveLaunchPlan, $root.flyteidl.admin.ActiveLaunchPlanRequest, $root.flyteidl.admin.LaunchPlan, request, callback); - }, "name", { value: "GetActiveLaunchPlan" }); + 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 GetActiveLaunchPlan. - * @function getActiveLaunchPlan + * Calls GetExecution. + * @function getExecution * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.IActiveLaunchPlanRequest} request ActiveLaunchPlanRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.IWorkflowExecutionGetRequest} request WorkflowExecutionGetRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#listActiveLaunchPlans}. + * Callback as used by {@link flyteidl.service.AdminService#updateExecution}. * @memberof flyteidl.service.AdminService - * @typedef ListActiveLaunchPlansCallback + * @typedef UpdateExecutionCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.LaunchPlanList} [response] LaunchPlanList + * @param {flyteidl.admin.ExecutionUpdateResponse} [response] ExecutionUpdateResponse */ /** - * Calls ListActiveLaunchPlans. - * @function listActiveLaunchPlans + * Calls UpdateExecution. + * @function updateExecution * @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 + * @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.listActiveLaunchPlans = function listActiveLaunchPlans(request, callback) { - return this.rpcCall(listActiveLaunchPlans, $root.flyteidl.admin.ActiveLaunchPlanListRequest, $root.flyteidl.admin.LaunchPlanList, request, callback); - }, "name", { value: "ListActiveLaunchPlans" }); + 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 ListActiveLaunchPlans. - * @function listActiveLaunchPlans + * Calls UpdateExecution. + * @function updateExecution * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.IActiveLaunchPlanListRequest} request ActiveLaunchPlanListRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.IExecutionUpdateRequest} request ExecutionUpdateRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#listLaunchPlanIds}. + * Callback as used by {@link flyteidl.service.AdminService#getExecutionData}. * @memberof flyteidl.service.AdminService - * @typedef ListLaunchPlanIdsCallback + * @typedef GetExecutionDataCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.NamedEntityIdentifierList} [response] NamedEntityIdentifierList + * @param {flyteidl.admin.WorkflowExecutionGetDataResponse} [response] WorkflowExecutionGetDataResponse */ /** - * Calls ListLaunchPlanIds. - * @function listLaunchPlanIds + * Calls GetExecutionData. + * @function getExecutionData * @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 + * @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.listLaunchPlanIds = function listLaunchPlanIds(request, callback) { - return this.rpcCall(listLaunchPlanIds, $root.flyteidl.admin.NamedEntityIdentifierListRequest, $root.flyteidl.admin.NamedEntityIdentifierList, request, callback); - }, "name", { value: "ListLaunchPlanIds" }); + 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 ListLaunchPlanIds. - * @function listLaunchPlanIds + * Calls GetExecutionData. + * @function getExecutionData * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest} request WorkflowExecutionGetDataRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#listLaunchPlans}. + * Callback as used by {@link flyteidl.service.AdminService#listExecutions}. * @memberof flyteidl.service.AdminService - * @typedef ListLaunchPlansCallback + * @typedef ListExecutionsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.LaunchPlanList} [response] LaunchPlanList + * @param {flyteidl.admin.ExecutionList} [response] ExecutionList */ /** - * Calls ListLaunchPlans. - * @function listLaunchPlans + * Calls ListExecutions. + * @function listExecutions * @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 + * @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.listLaunchPlans = function listLaunchPlans(request, callback) { - return this.rpcCall(listLaunchPlans, $root.flyteidl.admin.ResourceListRequest, $root.flyteidl.admin.LaunchPlanList, request, callback); - }, "name", { value: "ListLaunchPlans" }); + 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 ListLaunchPlans. - * @function listLaunchPlans + * Calls ListExecutions. + * @function listExecutions * @memberof flyteidl.service.AdminService * @instance * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object - * @returns {Promise} Promise + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#updateLaunchPlan}. + * Callback as used by {@link flyteidl.service.AdminService#terminateExecution}. * @memberof flyteidl.service.AdminService - * @typedef UpdateLaunchPlanCallback + * @typedef TerminateExecutionCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.LaunchPlanUpdateResponse} [response] LaunchPlanUpdateResponse + * @param {flyteidl.admin.ExecutionTerminateResponse} [response] ExecutionTerminateResponse */ /** - * Calls UpdateLaunchPlan. - * @function updateLaunchPlan + * Calls TerminateExecution. + * @function terminateExecution * @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 + * @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.updateLaunchPlan = function updateLaunchPlan(request, callback) { - return this.rpcCall(updateLaunchPlan, $root.flyteidl.admin.LaunchPlanUpdateRequest, $root.flyteidl.admin.LaunchPlanUpdateResponse, request, callback); - }, "name", { value: "UpdateLaunchPlan" }); + 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 UpdateLaunchPlan. - * @function updateLaunchPlan + * Calls TerminateExecution. + * @function terminateExecution * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.ILaunchPlanUpdateRequest} request LaunchPlanUpdateRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.IExecutionTerminateRequest} request ExecutionTerminateRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#createExecution}. + * Callback as used by {@link flyteidl.service.AdminService#getNodeExecution}. * @memberof flyteidl.service.AdminService - * @typedef CreateExecutionCallback + * @typedef GetNodeExecutionCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ExecutionCreateResponse} [response] ExecutionCreateResponse + * @param {flyteidl.admin.NodeExecution} [response] NodeExecution */ /** - * Calls CreateExecution. - * @function createExecution + * Calls GetNodeExecution. + * @function getNodeExecution * @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 + * @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.createExecution = function createExecution(request, callback) { - return this.rpcCall(createExecution, $root.flyteidl.admin.ExecutionCreateRequest, $root.flyteidl.admin.ExecutionCreateResponse, request, callback); - }, "name", { value: "CreateExecution" }); + 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 CreateExecution. - * @function createExecution + * Calls GetNodeExecution. + * @function getNodeExecution * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.IExecutionCreateRequest} request ExecutionCreateRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.INodeExecutionGetRequest} request NodeExecutionGetRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#relaunchExecution}. + * Callback as used by {@link flyteidl.service.AdminService#listNodeExecutions}. * @memberof flyteidl.service.AdminService - * @typedef RelaunchExecutionCallback + * @typedef ListNodeExecutionsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ExecutionCreateResponse} [response] ExecutionCreateResponse + * @param {flyteidl.admin.NodeExecutionList} [response] NodeExecutionList */ /** - * Calls RelaunchExecution. - * @function relaunchExecution + * Calls ListNodeExecutions. + * @function listNodeExecutions * @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 + * @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.relaunchExecution = function relaunchExecution(request, callback) { - return this.rpcCall(relaunchExecution, $root.flyteidl.admin.ExecutionRelaunchRequest, $root.flyteidl.admin.ExecutionCreateResponse, request, callback); - }, "name", { value: "RelaunchExecution" }); + 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 RelaunchExecution. - * @function relaunchExecution + * Calls ListNodeExecutions. + * @function listNodeExecutions * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.IExecutionRelaunchRequest} request ExecutionRelaunchRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.INodeExecutionListRequest} request NodeExecutionListRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#recoverExecution}. + * Callback as used by {@link flyteidl.service.AdminService#listNodeExecutionsForTask}. * @memberof flyteidl.service.AdminService - * @typedef RecoverExecutionCallback + * @typedef ListNodeExecutionsForTaskCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ExecutionCreateResponse} [response] ExecutionCreateResponse + * @param {flyteidl.admin.NodeExecutionList} [response] NodeExecutionList */ /** - * Calls RecoverExecution. - * @function recoverExecution + * Calls ListNodeExecutionsForTask. + * @function listNodeExecutionsForTask * @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 + * @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.recoverExecution = function recoverExecution(request, callback) { - return this.rpcCall(recoverExecution, $root.flyteidl.admin.ExecutionRecoverRequest, $root.flyteidl.admin.ExecutionCreateResponse, request, callback); - }, "name", { value: "RecoverExecution" }); + 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 RecoverExecution. - * @function recoverExecution + * Calls ListNodeExecutionsForTask. + * @function listNodeExecutionsForTask * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.IExecutionRecoverRequest} request ExecutionRecoverRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.INodeExecutionForTaskListRequest} request NodeExecutionForTaskListRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#getExecution}. + * Callback as used by {@link flyteidl.service.AdminService#getNodeExecutionData}. * @memberof flyteidl.service.AdminService - * @typedef GetExecutionCallback + * @typedef GetNodeExecutionDataCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.Execution} [response] Execution + * @param {flyteidl.admin.NodeExecutionGetDataResponse} [response] NodeExecutionGetDataResponse */ /** - * Calls GetExecution. - * @function getExecution + * Calls GetNodeExecutionData. + * @function getNodeExecutionData * @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 + * @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.getExecution = function getExecution(request, callback) { - return this.rpcCall(getExecution, $root.flyteidl.admin.WorkflowExecutionGetRequest, $root.flyteidl.admin.Execution, request, callback); - }, "name", { value: "GetExecution" }); + 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 GetExecution. - * @function getExecution + * Calls GetNodeExecutionData. + * @function getNodeExecutionData * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.IWorkflowExecutionGetRequest} request WorkflowExecutionGetRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.INodeExecutionGetDataRequest} request NodeExecutionGetDataRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#updateExecution}. + * Callback as used by {@link flyteidl.service.AdminService#registerProject}. * @memberof flyteidl.service.AdminService - * @typedef UpdateExecutionCallback + * @typedef RegisterProjectCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ExecutionUpdateResponse} [response] ExecutionUpdateResponse + * @param {flyteidl.admin.ProjectRegisterResponse} [response] ProjectRegisterResponse */ /** - * Calls UpdateExecution. - * @function updateExecution + * Calls RegisterProject. + * @function registerProject * @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 + * @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.updateExecution = function updateExecution(request, callback) { - return this.rpcCall(updateExecution, $root.flyteidl.admin.ExecutionUpdateRequest, $root.flyteidl.admin.ExecutionUpdateResponse, request, callback); - }, "name", { value: "UpdateExecution" }); + 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 UpdateExecution. - * @function updateExecution + * Calls RegisterProject. + * @function registerProject * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.IExecutionUpdateRequest} request ExecutionUpdateRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.IProjectRegisterRequest} request ProjectRegisterRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#getExecutionData}. + * Callback as used by {@link flyteidl.service.AdminService#updateProject}. * @memberof flyteidl.service.AdminService - * @typedef GetExecutionDataCallback + * @typedef UpdateProjectCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.WorkflowExecutionGetDataResponse} [response] WorkflowExecutionGetDataResponse + * @param {flyteidl.admin.ProjectUpdateResponse} [response] ProjectUpdateResponse */ /** - * Calls GetExecutionData. - * @function getExecutionData + * Calls UpdateProject. + * @function updateProject * @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 + * @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.getExecutionData = function getExecutionData(request, callback) { - return this.rpcCall(getExecutionData, $root.flyteidl.admin.WorkflowExecutionGetDataRequest, $root.flyteidl.admin.WorkflowExecutionGetDataResponse, request, callback); - }, "name", { value: "GetExecutionData" }); + 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 GetExecutionData. - * @function getExecutionData + * Calls UpdateProject. + * @function updateProject * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest} request WorkflowExecutionGetDataRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.IProject} request Project message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#listExecutions}. + * Callback as used by {@link flyteidl.service.AdminService#listProjects}. * @memberof flyteidl.service.AdminService - * @typedef ListExecutionsCallback + * @typedef ListProjectsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ExecutionList} [response] ExecutionList + * @param {flyteidl.admin.Projects} [response] Projects */ /** - * Calls ListExecutions. - * @function listExecutions + * Calls ListProjects. + * @function listProjects * @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 + * @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.listExecutions = function listExecutions(request, callback) { - return this.rpcCall(listExecutions, $root.flyteidl.admin.ResourceListRequest, $root.flyteidl.admin.ExecutionList, request, callback); - }, "name", { value: "ListExecutions" }); + 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 ListExecutions. - * @function listExecutions + * Calls ListProjects. + * @function listProjects * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.IProjectListRequest} request ProjectListRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#terminateExecution}. + * Callback as used by {@link flyteidl.service.AdminService#createWorkflowEvent}. * @memberof flyteidl.service.AdminService - * @typedef TerminateExecutionCallback + * @typedef CreateWorkflowEventCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ExecutionTerminateResponse} [response] ExecutionTerminateResponse + * @param {flyteidl.admin.WorkflowExecutionEventResponse} [response] WorkflowExecutionEventResponse */ /** - * Calls TerminateExecution. - * @function terminateExecution + * Calls CreateWorkflowEvent. + * @function createWorkflowEvent * @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 + * @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.terminateExecution = function terminateExecution(request, callback) { - return this.rpcCall(terminateExecution, $root.flyteidl.admin.ExecutionTerminateRequest, $root.flyteidl.admin.ExecutionTerminateResponse, request, callback); - }, "name", { value: "TerminateExecution" }); + 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 TerminateExecution. - * @function terminateExecution + * Calls CreateWorkflowEvent. + * @function createWorkflowEvent * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.IExecutionTerminateRequest} request ExecutionTerminateRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.IWorkflowExecutionEventRequest} request WorkflowExecutionEventRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#getNodeExecution}. + * Callback as used by {@link flyteidl.service.AdminService#createNodeEvent}. * @memberof flyteidl.service.AdminService - * @typedef GetNodeExecutionCallback + * @typedef CreateNodeEventCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.NodeExecution} [response] NodeExecution + * @param {flyteidl.admin.NodeExecutionEventResponse} [response] NodeExecutionEventResponse */ /** - * Calls GetNodeExecution. - * @function getNodeExecution + * Calls CreateNodeEvent. + * @function createNodeEvent * @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 + * @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.getNodeExecution = function getNodeExecution(request, callback) { - return this.rpcCall(getNodeExecution, $root.flyteidl.admin.NodeExecutionGetRequest, $root.flyteidl.admin.NodeExecution, request, callback); - }, "name", { value: "GetNodeExecution" }); + 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 GetNodeExecution. - * @function getNodeExecution + * Calls CreateNodeEvent. + * @function createNodeEvent * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.INodeExecutionGetRequest} request NodeExecutionGetRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.INodeExecutionEventRequest} request NodeExecutionEventRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#listNodeExecutions}. + * Callback as used by {@link flyteidl.service.AdminService#createTaskEvent}. * @memberof flyteidl.service.AdminService - * @typedef ListNodeExecutionsCallback + * @typedef CreateTaskEventCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.NodeExecutionList} [response] NodeExecutionList + * @param {flyteidl.admin.TaskExecutionEventResponse} [response] TaskExecutionEventResponse */ /** - * Calls ListNodeExecutions. - * @function listNodeExecutions + * Calls CreateTaskEvent. + * @function createTaskEvent * @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 + * @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.listNodeExecutions = function listNodeExecutions(request, callback) { - return this.rpcCall(listNodeExecutions, $root.flyteidl.admin.NodeExecutionListRequest, $root.flyteidl.admin.NodeExecutionList, request, callback); - }, "name", { value: "ListNodeExecutions" }); + 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 ListNodeExecutions. - * @function listNodeExecutions + * Calls CreateTaskEvent. + * @function createTaskEvent * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.INodeExecutionListRequest} request NodeExecutionListRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.ITaskExecutionEventRequest} request TaskExecutionEventRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#listNodeExecutionsForTask}. + * Callback as used by {@link flyteidl.service.AdminService#getTaskExecution}. * @memberof flyteidl.service.AdminService - * @typedef ListNodeExecutionsForTaskCallback + * @typedef GetTaskExecutionCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.NodeExecutionList} [response] NodeExecutionList + * @param {flyteidl.admin.TaskExecution} [response] TaskExecution */ /** - * Calls ListNodeExecutionsForTask. - * @function listNodeExecutionsForTask + * Calls GetTaskExecution. + * @function getTaskExecution * @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 + * @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.listNodeExecutionsForTask = function listNodeExecutionsForTask(request, callback) { - return this.rpcCall(listNodeExecutionsForTask, $root.flyteidl.admin.NodeExecutionForTaskListRequest, $root.flyteidl.admin.NodeExecutionList, request, callback); - }, "name", { value: "ListNodeExecutionsForTask" }); + 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 ListNodeExecutionsForTask. - * @function listNodeExecutionsForTask + * Calls GetTaskExecution. + * @function getTaskExecution * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.INodeExecutionForTaskListRequest} request NodeExecutionForTaskListRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.ITaskExecutionGetRequest} request TaskExecutionGetRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#getNodeExecutionData}. + * Callback as used by {@link flyteidl.service.AdminService#listTaskExecutions}. * @memberof flyteidl.service.AdminService - * @typedef GetNodeExecutionDataCallback + * @typedef ListTaskExecutionsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.NodeExecutionGetDataResponse} [response] NodeExecutionGetDataResponse + * @param {flyteidl.admin.TaskExecutionList} [response] TaskExecutionList */ /** - * Calls GetNodeExecutionData. - * @function getNodeExecutionData + * Calls ListTaskExecutions. + * @function listTaskExecutions * @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 + * @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.getNodeExecutionData = function getNodeExecutionData(request, callback) { - return this.rpcCall(getNodeExecutionData, $root.flyteidl.admin.NodeExecutionGetDataRequest, $root.flyteidl.admin.NodeExecutionGetDataResponse, request, callback); - }, "name", { value: "GetNodeExecutionData" }); + 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 GetNodeExecutionData. - * @function getNodeExecutionData + * Calls ListTaskExecutions. + * @function listTaskExecutions * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.INodeExecutionGetDataRequest} request NodeExecutionGetDataRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.ITaskExecutionListRequest} request TaskExecutionListRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#registerProject}. + * Callback as used by {@link flyteidl.service.AdminService#getTaskExecutionData}. * @memberof flyteidl.service.AdminService - * @typedef RegisterProjectCallback + * @typedef GetTaskExecutionDataCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ProjectRegisterResponse} [response] ProjectRegisterResponse + * @param {flyteidl.admin.TaskExecutionGetDataResponse} [response] TaskExecutionGetDataResponse */ /** - * Calls RegisterProject. - * @function registerProject + * Calls GetTaskExecutionData. + * @function getTaskExecutionData * @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 + * @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.registerProject = function registerProject(request, callback) { - return this.rpcCall(registerProject, $root.flyteidl.admin.ProjectRegisterRequest, $root.flyteidl.admin.ProjectRegisterResponse, request, callback); - }, "name", { value: "RegisterProject" }); + 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 RegisterProject. - * @function registerProject + * Calls GetTaskExecutionData. + * @function getTaskExecutionData * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.IProjectRegisterRequest} request ProjectRegisterRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.ITaskExecutionGetDataRequest} request TaskExecutionGetDataRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#updateProject}. + * Callback as used by {@link flyteidl.service.AdminService#updateProjectDomainAttributes}. * @memberof flyteidl.service.AdminService - * @typedef UpdateProjectCallback + * @typedef UpdateProjectDomainAttributesCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ProjectUpdateResponse} [response] ProjectUpdateResponse + * @param {flyteidl.admin.ProjectDomainAttributesUpdateResponse} [response] ProjectDomainAttributesUpdateResponse */ /** - * Calls UpdateProject. - * @function updateProject + * Calls UpdateProjectDomainAttributes. + * @function updateProjectDomainAttributes * @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 + * @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.updateProject = function updateProject(request, callback) { - return this.rpcCall(updateProject, $root.flyteidl.admin.Project, $root.flyteidl.admin.ProjectUpdateResponse, request, callback); - }, "name", { value: "UpdateProject" }); + 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 UpdateProject. - * @function updateProject + * Calls UpdateProjectDomainAttributes. + * @function updateProjectDomainAttributes * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.IProject} request Project message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.IProjectDomainAttributesUpdateRequest} request ProjectDomainAttributesUpdateRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#listProjects}. + * Callback as used by {@link flyteidl.service.AdminService#getProjectDomainAttributes}. * @memberof flyteidl.service.AdminService - * @typedef ListProjectsCallback + * @typedef GetProjectDomainAttributesCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.Projects} [response] Projects + * @param {flyteidl.admin.ProjectDomainAttributesGetResponse} [response] ProjectDomainAttributesGetResponse */ /** - * Calls ListProjects. - * @function listProjects + * Calls GetProjectDomainAttributes. + * @function getProjectDomainAttributes * @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 + * @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.listProjects = function listProjects(request, callback) { - return this.rpcCall(listProjects, $root.flyteidl.admin.ProjectListRequest, $root.flyteidl.admin.Projects, request, callback); - }, "name", { value: "ListProjects" }); + 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 ListProjects. - * @function listProjects + * Calls GetProjectDomainAttributes. + * @function getProjectDomainAttributes * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.IProjectListRequest} request ProjectListRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.IProjectDomainAttributesGetRequest} request ProjectDomainAttributesGetRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#createWorkflowEvent}. + * Callback as used by {@link flyteidl.service.AdminService#deleteProjectDomainAttributes}. * @memberof flyteidl.service.AdminService - * @typedef CreateWorkflowEventCallback + * @typedef DeleteProjectDomainAttributesCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.WorkflowExecutionEventResponse} [response] WorkflowExecutionEventResponse + * @param {flyteidl.admin.ProjectDomainAttributesDeleteResponse} [response] ProjectDomainAttributesDeleteResponse */ /** - * Calls CreateWorkflowEvent. - * @function createWorkflowEvent + * Calls DeleteProjectDomainAttributes. + * @function deleteProjectDomainAttributes * @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 + * @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.createWorkflowEvent = function createWorkflowEvent(request, callback) { - return this.rpcCall(createWorkflowEvent, $root.flyteidl.admin.WorkflowExecutionEventRequest, $root.flyteidl.admin.WorkflowExecutionEventResponse, request, callback); - }, "name", { value: "CreateWorkflowEvent" }); + 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 CreateWorkflowEvent. - * @function createWorkflowEvent + * Calls DeleteProjectDomainAttributes. + * @function deleteProjectDomainAttributes * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.IWorkflowExecutionEventRequest} request WorkflowExecutionEventRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.IProjectDomainAttributesDeleteRequest} request ProjectDomainAttributesDeleteRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#createNodeEvent}. + * Callback as used by {@link flyteidl.service.AdminService#updateProjectAttributes}. * @memberof flyteidl.service.AdminService - * @typedef CreateNodeEventCallback + * @typedef UpdateProjectAttributesCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.NodeExecutionEventResponse} [response] NodeExecutionEventResponse + * @param {flyteidl.admin.ProjectAttributesUpdateResponse} [response] ProjectAttributesUpdateResponse */ /** - * Calls CreateNodeEvent. - * @function createNodeEvent + * Calls UpdateProjectAttributes. + * @function updateProjectAttributes * @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 + * @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.createNodeEvent = function createNodeEvent(request, callback) { - return this.rpcCall(createNodeEvent, $root.flyteidl.admin.NodeExecutionEventRequest, $root.flyteidl.admin.NodeExecutionEventResponse, request, callback); - }, "name", { value: "CreateNodeEvent" }); + 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 CreateNodeEvent. - * @function createNodeEvent + * Calls UpdateProjectAttributes. + * @function updateProjectAttributes * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.INodeExecutionEventRequest} request NodeExecutionEventRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.IProjectAttributesUpdateRequest} request ProjectAttributesUpdateRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#createTaskEvent}. + * Callback as used by {@link flyteidl.service.AdminService#getProjectAttributes}. * @memberof flyteidl.service.AdminService - * @typedef CreateTaskEventCallback + * @typedef GetProjectAttributesCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.TaskExecutionEventResponse} [response] TaskExecutionEventResponse + * @param {flyteidl.admin.ProjectAttributesGetResponse} [response] ProjectAttributesGetResponse */ /** - * Calls CreateTaskEvent. - * @function createTaskEvent + * Calls GetProjectAttributes. + * @function getProjectAttributes * @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 + * @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.createTaskEvent = function createTaskEvent(request, callback) { - return this.rpcCall(createTaskEvent, $root.flyteidl.admin.TaskExecutionEventRequest, $root.flyteidl.admin.TaskExecutionEventResponse, request, callback); - }, "name", { value: "CreateTaskEvent" }); + 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 CreateTaskEvent. - * @function createTaskEvent + * Calls GetProjectAttributes. + * @function getProjectAttributes * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.ITaskExecutionEventRequest} request TaskExecutionEventRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.IProjectAttributesGetRequest} request ProjectAttributesGetRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#getTaskExecution}. + * Callback as used by {@link flyteidl.service.AdminService#deleteProjectAttributes}. * @memberof flyteidl.service.AdminService - * @typedef GetTaskExecutionCallback + * @typedef DeleteProjectAttributesCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.TaskExecution} [response] TaskExecution + * @param {flyteidl.admin.ProjectAttributesDeleteResponse} [response] ProjectAttributesDeleteResponse */ /** - * Calls GetTaskExecution. - * @function getTaskExecution + * Calls DeleteProjectAttributes. + * @function deleteProjectAttributes * @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 + * @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.getTaskExecution = function getTaskExecution(request, callback) { - return this.rpcCall(getTaskExecution, $root.flyteidl.admin.TaskExecutionGetRequest, $root.flyteidl.admin.TaskExecution, request, callback); - }, "name", { value: "GetTaskExecution" }); + 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 GetTaskExecution. - * @function getTaskExecution + * Calls DeleteProjectAttributes. + * @function deleteProjectAttributes * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.ITaskExecutionGetRequest} request TaskExecutionGetRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.IProjectAttributesDeleteRequest} request ProjectAttributesDeleteRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#listTaskExecutions}. + * Callback as used by {@link flyteidl.service.AdminService#updateWorkflowAttributes}. * @memberof flyteidl.service.AdminService - * @typedef ListTaskExecutionsCallback + * @typedef UpdateWorkflowAttributesCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.TaskExecutionList} [response] TaskExecutionList + * @param {flyteidl.admin.WorkflowAttributesUpdateResponse} [response] WorkflowAttributesUpdateResponse */ /** - * Calls ListTaskExecutions. - * @function listTaskExecutions + * Calls UpdateWorkflowAttributes. + * @function updateWorkflowAttributes * @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 + * @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.listTaskExecutions = function listTaskExecutions(request, callback) { - return this.rpcCall(listTaskExecutions, $root.flyteidl.admin.TaskExecutionListRequest, $root.flyteidl.admin.TaskExecutionList, request, callback); - }, "name", { value: "ListTaskExecutions" }); + 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 ListTaskExecutions. - * @function listTaskExecutions + * Calls UpdateWorkflowAttributes. + * @function updateWorkflowAttributes * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.ITaskExecutionListRequest} request TaskExecutionListRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.IWorkflowAttributesUpdateRequest} request WorkflowAttributesUpdateRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#getTaskExecutionData}. + * Callback as used by {@link flyteidl.service.AdminService#getWorkflowAttributes}. * @memberof flyteidl.service.AdminService - * @typedef GetTaskExecutionDataCallback + * @typedef GetWorkflowAttributesCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.TaskExecutionGetDataResponse} [response] TaskExecutionGetDataResponse + * @param {flyteidl.admin.WorkflowAttributesGetResponse} [response] WorkflowAttributesGetResponse */ /** - * Calls GetTaskExecutionData. - * @function getTaskExecutionData + * Calls GetWorkflowAttributes. + * @function getWorkflowAttributes * @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 + * @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.getTaskExecutionData = function getTaskExecutionData(request, callback) { - return this.rpcCall(getTaskExecutionData, $root.flyteidl.admin.TaskExecutionGetDataRequest, $root.flyteidl.admin.TaskExecutionGetDataResponse, request, callback); - }, "name", { value: "GetTaskExecutionData" }); + 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 GetTaskExecutionData. - * @function getTaskExecutionData + * Calls GetWorkflowAttributes. + * @function getWorkflowAttributes * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.ITaskExecutionGetDataRequest} request TaskExecutionGetDataRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.IWorkflowAttributesGetRequest} request WorkflowAttributesGetRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#updateProjectDomainAttributes}. + * Callback as used by {@link flyteidl.service.AdminService#deleteWorkflowAttributes}. * @memberof flyteidl.service.AdminService - * @typedef UpdateProjectDomainAttributesCallback + * @typedef DeleteWorkflowAttributesCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ProjectDomainAttributesUpdateResponse} [response] ProjectDomainAttributesUpdateResponse + * @param {flyteidl.admin.WorkflowAttributesDeleteResponse} [response] WorkflowAttributesDeleteResponse */ /** - * Calls UpdateProjectDomainAttributes. - * @function updateProjectDomainAttributes + * Calls DeleteWorkflowAttributes. + * @function deleteWorkflowAttributes * @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 + * @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.updateProjectDomainAttributes = function updateProjectDomainAttributes(request, callback) { - return this.rpcCall(updateProjectDomainAttributes, $root.flyteidl.admin.ProjectDomainAttributesUpdateRequest, $root.flyteidl.admin.ProjectDomainAttributesUpdateResponse, request, callback); - }, "name", { value: "UpdateProjectDomainAttributes" }); + 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 UpdateProjectDomainAttributes. - * @function updateProjectDomainAttributes + * Calls DeleteWorkflowAttributes. + * @function deleteWorkflowAttributes * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.IProjectDomainAttributesUpdateRequest} request ProjectDomainAttributesUpdateRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.IWorkflowAttributesDeleteRequest} request WorkflowAttributesDeleteRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#getProjectDomainAttributes}. + * Callback as used by {@link flyteidl.service.AdminService#listMatchableAttributes}. * @memberof flyteidl.service.AdminService - * @typedef GetProjectDomainAttributesCallback + * @typedef ListMatchableAttributesCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ProjectDomainAttributesGetResponse} [response] ProjectDomainAttributesGetResponse + * @param {flyteidl.admin.ListMatchableAttributesResponse} [response] ListMatchableAttributesResponse */ /** - * Calls GetProjectDomainAttributes. - * @function getProjectDomainAttributes + * Calls ListMatchableAttributes. + * @function listMatchableAttributes * @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 + * @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.getProjectDomainAttributes = function getProjectDomainAttributes(request, callback) { - return this.rpcCall(getProjectDomainAttributes, $root.flyteidl.admin.ProjectDomainAttributesGetRequest, $root.flyteidl.admin.ProjectDomainAttributesGetResponse, request, callback); - }, "name", { value: "GetProjectDomainAttributes" }); + 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 GetProjectDomainAttributes. - * @function getProjectDomainAttributes + * Calls ListMatchableAttributes. + * @function listMatchableAttributes * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.IProjectDomainAttributesGetRequest} request ProjectDomainAttributesGetRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.IListMatchableAttributesRequest} request ListMatchableAttributesRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#deleteProjectDomainAttributes}. + * Callback as used by {@link flyteidl.service.AdminService#listNamedEntities}. * @memberof flyteidl.service.AdminService - * @typedef DeleteProjectDomainAttributesCallback + * @typedef ListNamedEntitiesCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ProjectDomainAttributesDeleteResponse} [response] ProjectDomainAttributesDeleteResponse + * @param {flyteidl.admin.NamedEntityList} [response] NamedEntityList */ /** - * Calls DeleteProjectDomainAttributes. - * @function deleteProjectDomainAttributes + * Calls ListNamedEntities. + * @function listNamedEntities * @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 + * @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.deleteProjectDomainAttributes = function deleteProjectDomainAttributes(request, callback) { - return this.rpcCall(deleteProjectDomainAttributes, $root.flyteidl.admin.ProjectDomainAttributesDeleteRequest, $root.flyteidl.admin.ProjectDomainAttributesDeleteResponse, request, callback); - }, "name", { value: "DeleteProjectDomainAttributes" }); + 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 DeleteProjectDomainAttributes. - * @function deleteProjectDomainAttributes + * Calls ListNamedEntities. + * @function listNamedEntities * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.IProjectDomainAttributesDeleteRequest} request ProjectDomainAttributesDeleteRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.INamedEntityListRequest} request NamedEntityListRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#updateProjectAttributes}. + * Callback as used by {@link flyteidl.service.AdminService#getNamedEntity}. * @memberof flyteidl.service.AdminService - * @typedef UpdateProjectAttributesCallback + * @typedef GetNamedEntityCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ProjectAttributesUpdateResponse} [response] ProjectAttributesUpdateResponse + * @param {flyteidl.admin.NamedEntity} [response] NamedEntity */ /** - * Calls UpdateProjectAttributes. - * @function updateProjectAttributes + * Calls GetNamedEntity. + * @function getNamedEntity * @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 + * @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.updateProjectAttributes = function updateProjectAttributes(request, callback) { - return this.rpcCall(updateProjectAttributes, $root.flyteidl.admin.ProjectAttributesUpdateRequest, $root.flyteidl.admin.ProjectAttributesUpdateResponse, request, callback); - }, "name", { value: "UpdateProjectAttributes" }); + 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 UpdateProjectAttributes. - * @function updateProjectAttributes + * Calls GetNamedEntity. + * @function getNamedEntity * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.IProjectAttributesUpdateRequest} request ProjectAttributesUpdateRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.INamedEntityGetRequest} request NamedEntityGetRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#getProjectAttributes}. + * Callback as used by {@link flyteidl.service.AdminService#updateNamedEntity}. * @memberof flyteidl.service.AdminService - * @typedef GetProjectAttributesCallback + * @typedef UpdateNamedEntityCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ProjectAttributesGetResponse} [response] ProjectAttributesGetResponse + * @param {flyteidl.admin.NamedEntityUpdateResponse} [response] NamedEntityUpdateResponse */ /** - * Calls GetProjectAttributes. - * @function getProjectAttributes + * Calls UpdateNamedEntity. + * @function updateNamedEntity * @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 + * @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.getProjectAttributes = function getProjectAttributes(request, callback) { - return this.rpcCall(getProjectAttributes, $root.flyteidl.admin.ProjectAttributesGetRequest, $root.flyteidl.admin.ProjectAttributesGetResponse, request, callback); - }, "name", { value: "GetProjectAttributes" }); + 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 GetProjectAttributes. - * @function getProjectAttributes + * Calls UpdateNamedEntity. + * @function updateNamedEntity * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.IProjectAttributesGetRequest} request ProjectAttributesGetRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.INamedEntityUpdateRequest} request NamedEntityUpdateRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#deleteProjectAttributes}. + * Callback as used by {@link flyteidl.service.AdminService#getVersion}. * @memberof flyteidl.service.AdminService - * @typedef DeleteProjectAttributesCallback + * @typedef GetVersionCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ProjectAttributesDeleteResponse} [response] ProjectAttributesDeleteResponse + * @param {flyteidl.admin.GetVersionResponse} [response] GetVersionResponse */ /** - * Calls DeleteProjectAttributes. - * @function deleteProjectAttributes + * Calls GetVersion. + * @function getVersion * @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 + * @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.deleteProjectAttributes = function deleteProjectAttributes(request, callback) { - return this.rpcCall(deleteProjectAttributes, $root.flyteidl.admin.ProjectAttributesDeleteRequest, $root.flyteidl.admin.ProjectAttributesDeleteResponse, request, callback); - }, "name", { value: "DeleteProjectAttributes" }); + 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 DeleteProjectAttributes. - * @function deleteProjectAttributes + * Calls GetVersion. + * @function getVersion * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.IProjectAttributesDeleteRequest} request ProjectAttributesDeleteRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.IGetVersionRequest} request GetVersionRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#updateWorkflowAttributes}. + * Callback as used by {@link flyteidl.service.AdminService#getDescriptionEntity}. * @memberof flyteidl.service.AdminService - * @typedef UpdateWorkflowAttributesCallback + * @typedef GetDescriptionEntityCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.WorkflowAttributesUpdateResponse} [response] WorkflowAttributesUpdateResponse + * @param {flyteidl.admin.DescriptionEntity} [response] DescriptionEntity */ /** - * Calls UpdateWorkflowAttributes. - * @function updateWorkflowAttributes + * Calls GetDescriptionEntity. + * @function getDescriptionEntity * @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 + * @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.updateWorkflowAttributes = function updateWorkflowAttributes(request, callback) { - return this.rpcCall(updateWorkflowAttributes, $root.flyteidl.admin.WorkflowAttributesUpdateRequest, $root.flyteidl.admin.WorkflowAttributesUpdateResponse, request, callback); - }, "name", { value: "UpdateWorkflowAttributes" }); + 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 UpdateWorkflowAttributes. - * @function updateWorkflowAttributes + * Calls GetDescriptionEntity. + * @function getDescriptionEntity * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.IWorkflowAttributesUpdateRequest} request WorkflowAttributesUpdateRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#getWorkflowAttributes}. + * Callback as used by {@link flyteidl.service.AdminService#listDescriptionEntities}. * @memberof flyteidl.service.AdminService - * @typedef GetWorkflowAttributesCallback + * @typedef ListDescriptionEntitiesCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.WorkflowAttributesGetResponse} [response] WorkflowAttributesGetResponse + * @param {flyteidl.admin.DescriptionEntityList} [response] DescriptionEntityList */ /** - * Calls GetWorkflowAttributes. - * @function getWorkflowAttributes + * Calls ListDescriptionEntities. + * @function listDescriptionEntities * @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 + * @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.getWorkflowAttributes = function getWorkflowAttributes(request, callback) { - return this.rpcCall(getWorkflowAttributes, $root.flyteidl.admin.WorkflowAttributesGetRequest, $root.flyteidl.admin.WorkflowAttributesGetResponse, request, callback); - }, "name", { value: "GetWorkflowAttributes" }); + 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 GetWorkflowAttributes. - * @function getWorkflowAttributes + * Calls ListDescriptionEntities. + * @function listDescriptionEntities * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.IWorkflowAttributesGetRequest} request WorkflowAttributesGetRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.IDescriptionEntityListRequest} request DescriptionEntityListRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#deleteWorkflowAttributes}. + * Callback as used by {@link flyteidl.service.AdminService#getExecutionMetrics}. * @memberof flyteidl.service.AdminService - * @typedef DeleteWorkflowAttributesCallback + * @typedef GetExecutionMetricsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {flyteidl.admin.WorkflowAttributesDeleteResponse} [response] WorkflowAttributesDeleteResponse + * @param {flyteidl.admin.WorkflowExecutionGetMetricsResponse} [response] WorkflowExecutionGetMetricsResponse */ /** - * Calls DeleteWorkflowAttributes. - * @function deleteWorkflowAttributes + * Calls GetExecutionMetrics. + * @function getExecutionMetrics * @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 + * @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.deleteWorkflowAttributes = function deleteWorkflowAttributes(request, callback) { - return this.rpcCall(deleteWorkflowAttributes, $root.flyteidl.admin.WorkflowAttributesDeleteRequest, $root.flyteidl.admin.WorkflowAttributesDeleteResponse, request, callback); - }, "name", { value: "DeleteWorkflowAttributes" }); + 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 DeleteWorkflowAttributes. - * @function deleteWorkflowAttributes + * Calls GetExecutionMetrics. + * @function getExecutionMetrics * @memberof flyteidl.service.AdminService * @instance - * @param {flyteidl.admin.IWorkflowAttributesDeleteRequest} request WorkflowAttributesDeleteRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.IWorkflowExecutionGetMetricsRequest} request WorkflowExecutionGetMetricsRequest 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 - */ + return AdminService; + })(); + + service.AsyncAgentService = (function() { /** - * 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 + * 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 */ - 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" }); + function AsyncAgentService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (AsyncAgentService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AsyncAgentService; /** - * Calls ListMatchableAttributes. - * @function listMatchableAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IListMatchableAttributesRequest} request ListMatchableAttributesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * 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.AdminService#listNamedEntities}. - * @memberof flyteidl.service.AdminService - * @typedef ListNamedEntitiesCallback + * 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.NamedEntityList} [response] NamedEntityList + * @param {flyteidl.admin.CreateTaskResponse} [response] CreateTaskResponse */ /** - * Calls ListNamedEntities. - * @function listNamedEntities - * @memberof flyteidl.service.AdminService + * Calls CreateTask. + * @function createTask + * @memberof flyteidl.service.AsyncAgentService * @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 + * @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(AdminService.prototype.listNamedEntities = function listNamedEntities(request, callback) { - return this.rpcCall(listNamedEntities, $root.flyteidl.admin.NamedEntityListRequest, $root.flyteidl.admin.NamedEntityList, request, callback); - }, "name", { value: "ListNamedEntities" }); + 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 ListNamedEntities. - * @function listNamedEntities - * @memberof flyteidl.service.AdminService + * Calls CreateTask. + * @function createTask + * @memberof flyteidl.service.AsyncAgentService * @instance - * @param {flyteidl.admin.INamedEntityListRequest} request NamedEntityListRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.ICreateTaskRequest} request CreateTaskRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#getNamedEntity}. - * @memberof flyteidl.service.AdminService - * @typedef GetNamedEntityCallback + * 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.NamedEntity} [response] NamedEntity + * @param {flyteidl.admin.GetTaskResponse} [response] GetTaskResponse */ /** - * Calls GetNamedEntity. - * @function getNamedEntity - * @memberof flyteidl.service.AdminService + * Calls GetTask. + * @function getTask + * @memberof flyteidl.service.AsyncAgentService * @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 + * @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(AdminService.prototype.getNamedEntity = function getNamedEntity(request, callback) { - return this.rpcCall(getNamedEntity, $root.flyteidl.admin.NamedEntityGetRequest, $root.flyteidl.admin.NamedEntity, request, callback); - }, "name", { value: "GetNamedEntity" }); + 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 GetNamedEntity. - * @function getNamedEntity - * @memberof flyteidl.service.AdminService + * Calls GetTask. + * @function getTask + * @memberof flyteidl.service.AsyncAgentService * @instance - * @param {flyteidl.admin.INamedEntityGetRequest} request NamedEntityGetRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.IGetTaskRequest} request GetTaskRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link flyteidl.service.AdminService#updateNamedEntity}. - * @memberof flyteidl.service.AdminService - * @typedef UpdateNamedEntityCallback + * 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.NamedEntityUpdateResponse} [response] NamedEntityUpdateResponse + * @param {flyteidl.admin.DeleteTaskResponse} [response] DeleteTaskResponse */ /** - * Calls UpdateNamedEntity. - * @function updateNamedEntity - * @memberof flyteidl.service.AdminService + * Calls DeleteTask. + * @function deleteTask + * @memberof flyteidl.service.AsyncAgentService * @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 + * @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(AdminService.prototype.updateNamedEntity = function updateNamedEntity(request, callback) { - return this.rpcCall(updateNamedEntity, $root.flyteidl.admin.NamedEntityUpdateRequest, $root.flyteidl.admin.NamedEntityUpdateResponse, request, callback); - }, "name", { value: "UpdateNamedEntity" }); + 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 UpdateNamedEntity. - * @function updateNamedEntity - * @memberof flyteidl.service.AdminService + * Calls DeleteTask. + * @function deleteTask + * @memberof flyteidl.service.AsyncAgentService * @instance - * @param {flyteidl.admin.INamedEntityUpdateRequest} request NamedEntityUpdateRequest message or plain object - * @returns {Promise} Promise + * @param {flyteidl.admin.IDeleteTaskRequest} request DeleteTaskRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ + return AsyncAgentService; + })(); + + service.OAuth2MetadataRequest = (function() { + /** - * 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 + * Properties of a OAuth2MetadataRequest. + * @memberof flyteidl.service + * @interface IOAuth2MetadataRequest */ /** - * 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 + * Constructs a new OAuth2MetadataRequest. + * @memberof flyteidl.service + * @classdesc Represents a OAuth2MetadataRequest. + * @implements IOAuth2MetadataRequest + * @constructor + * @param {flyteidl.service.IOAuth2MetadataRequest=} [properties] Properties to set */ - 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" }); + 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]]; + } /** - * Calls GetVersion. - * @function getVersion - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IGetVersionRequest} request GetVersionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * 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); + }; /** - * 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 + * 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; + }; /** - * 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 + * 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 */ - 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" }); + 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; + }; /** - * Calls GetDescriptionEntity. - * @function getDescriptionEntity - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * 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() { /** - * 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 + * 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 */ /** - * 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 + * Constructs a new OAuth2MetadataResponse. + * @memberof flyteidl.service + * @classdesc Represents a OAuth2MetadataResponse. + * @implements IOAuth2MetadataResponse + * @constructor + * @param {flyteidl.service.IOAuth2MetadataResponse=} [properties] Properties to set */ - 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" }); + 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]]; + } /** - * Calls ListDescriptionEntities. - * @function listDescriptionEntities - * @memberof flyteidl.service.AdminService + * OAuth2MetadataResponse issuer. + * @member {string} issuer + * @memberof flyteidl.service.OAuth2MetadataResponse * @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 */ + OAuth2MetadataResponse.prototype.issuer = ""; /** - * Calls GetExecutionMetrics. - * @function getExecutionMetrics - * @memberof flyteidl.service.AdminService + * OAuth2MetadataResponse authorizationEndpoint. + * @member {string} authorizationEndpoint + * @memberof flyteidl.service.OAuth2MetadataResponse * @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" }); + OAuth2MetadataResponse.prototype.authorizationEndpoint = ""; /** - * Calls GetExecutionMetrics. - * @function getExecutionMetrics - * @memberof flyteidl.service.AdminService + * OAuth2MetadataResponse tokenEndpoint. + * @member {string} tokenEndpoint + * @memberof flyteidl.service.OAuth2MetadataResponse * @instance - * @param {flyteidl.admin.IWorkflowExecutionGetMetricsRequest} request WorkflowExecutionGetMetricsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ - - return AdminService; - })(); - - service.AgentService = (function() { + OAuth2MetadataResponse.prototype.tokenEndpoint = ""; /** - * Constructs a new AgentService service. - * @memberof flyteidl.service - * @classdesc Represents an AgentService - * @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 + * OAuth2MetadataResponse responseTypesSupported. + * @member {Array.} responseTypesSupported + * @memberof flyteidl.service.OAuth2MetadataResponse + * @instance */ - function AgentService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (AgentService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AgentService; + OAuth2MetadataResponse.prototype.responseTypesSupported = $util.emptyArray; /** - * Creates new AgentService service using the specified rpc implementation. - * @function create - * @memberof flyteidl.service.AgentService - * @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 {AgentService} RPC service. Useful where requests and/or responses are streamed. + * OAuth2MetadataResponse scopesSupported. + * @member {Array.} scopesSupported + * @memberof flyteidl.service.OAuth2MetadataResponse + * @instance */ - AgentService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; + OAuth2MetadataResponse.prototype.scopesSupported = $util.emptyArray; /** - * Callback as used by {@link flyteidl.service.AgentService#createTask}. - * @memberof flyteidl.service.AgentService - * @typedef CreateTaskCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.service.TaskCreateResponse} [response] TaskCreateResponse + * OAuth2MetadataResponse tokenEndpointAuthMethodsSupported. + * @member {Array.} tokenEndpointAuthMethodsSupported + * @memberof flyteidl.service.OAuth2MetadataResponse + * @instance */ + OAuth2MetadataResponse.prototype.tokenEndpointAuthMethodsSupported = $util.emptyArray; /** - * Calls CreateTask. - * @function createTask - * @memberof flyteidl.service.AgentService + * OAuth2MetadataResponse jwksUri. + * @member {string} jwksUri + * @memberof flyteidl.service.OAuth2MetadataResponse * @instance - * @param {flyteidl.service.ITaskCreateRequest} request TaskCreateRequest message or plain object - * @param {flyteidl.service.AgentService.CreateTaskCallback} callback Node-style callback called with the error, if any, and TaskCreateResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(AgentService.prototype.createTask = function createTask(request, callback) { - return this.rpcCall(createTask, $root.flyteidl.service.TaskCreateRequest, $root.flyteidl.service.TaskCreateResponse, request, callback); - }, "name", { value: "CreateTask" }); + OAuth2MetadataResponse.prototype.jwksUri = ""; /** - * Calls CreateTask. - * @function createTask - * @memberof flyteidl.service.AgentService + * OAuth2MetadataResponse codeChallengeMethodsSupported. + * @member {Array.} codeChallengeMethodsSupported + * @memberof flyteidl.service.OAuth2MetadataResponse * @instance - * @param {flyteidl.service.ITaskCreateRequest} request TaskCreateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + OAuth2MetadataResponse.prototype.codeChallengeMethodsSupported = $util.emptyArray; /** - * Callback as used by {@link flyteidl.service.AgentService#getTask}. - * @memberof flyteidl.service.AgentService - * @typedef GetTaskCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.service.TaskGetResponse} [response] TaskGetResponse + * OAuth2MetadataResponse grantTypesSupported. + * @member {Array.} grantTypesSupported + * @memberof flyteidl.service.OAuth2MetadataResponse + * @instance */ + OAuth2MetadataResponse.prototype.grantTypesSupported = $util.emptyArray; /** - * Calls GetTask. - * @function getTask - * @memberof flyteidl.service.AgentService + * OAuth2MetadataResponse deviceAuthorizationEndpoint. + * @member {string} deviceAuthorizationEndpoint + * @memberof flyteidl.service.OAuth2MetadataResponse * @instance - * @param {flyteidl.service.ITaskGetRequest} request TaskGetRequest message or plain object - * @param {flyteidl.service.AgentService.GetTaskCallback} callback Node-style callback called with the error, if any, and TaskGetResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(AgentService.prototype.getTask = function getTask(request, callback) { - return this.rpcCall(getTask, $root.flyteidl.service.TaskGetRequest, $root.flyteidl.service.TaskGetResponse, request, callback); - }, "name", { value: "GetTask" }); + OAuth2MetadataResponse.prototype.deviceAuthorizationEndpoint = ""; /** - * Calls GetTask. - * @function getTask - * @memberof flyteidl.service.AgentService - * @instance - * @param {flyteidl.service.ITaskGetRequest} request TaskGetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * 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); + }; /** - * Callback as used by {@link flyteidl.service.AgentService#deleteTask}. - * @memberof flyteidl.service.AgentService - * @typedef DeleteTaskCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.service.TaskDeleteResponse} [response] TaskDeleteResponse + * 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; + }; /** - * Calls DeleteTask. - * @function deleteTask - * @memberof flyteidl.service.AgentService - * @instance - * @param {flyteidl.service.ITaskDeleteRequest} request TaskDeleteRequest message or plain object - * @param {flyteidl.service.AgentService.DeleteTaskCallback} callback Node-style callback called with the error, if any, and TaskDeleteResponse - * @returns {undefined} - * @variation 1 + * 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 */ - Object.defineProperty(AgentService.prototype.deleteTask = function deleteTask(request, callback) { - return this.rpcCall(deleteTask, $root.flyteidl.service.TaskDeleteRequest, $root.flyteidl.service.TaskDeleteResponse, request, callback); - }, "name", { value: "DeleteTask" }); + 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; + }; /** - * Calls DeleteTask. - * @function deleteTask - * @memberof flyteidl.service.AgentService - * @instance - * @param {flyteidl.service.ITaskDeleteRequest} request TaskDeleteRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * 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 AgentService; - })(); - - /** - * 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; + return OAuth2MetadataResponse; })(); - service.TaskCreateRequest = (function() { + service.PublicClientAuthConfigRequest = (function() { /** - * Properties of a TaskCreateRequest. + * Properties of a PublicClientAuthConfigRequest. * @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 + * @interface IPublicClientAuthConfigRequest */ /** - * Constructs a new TaskCreateRequest. + * Constructs a new PublicClientAuthConfigRequest. * @memberof flyteidl.service - * @classdesc Represents a TaskCreateRequest. - * @implements ITaskCreateRequest + * @classdesc Represents a PublicClientAuthConfigRequest. + * @implements IPublicClientAuthConfigRequest * @constructor - * @param {flyteidl.service.ITaskCreateRequest=} [properties] Properties to set + * @param {flyteidl.service.IPublicClientAuthConfigRequest=} [properties] Properties to set */ - function TaskCreateRequest(properties) { + function PublicClientAuthConfigRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -44056,89 +45303,50 @@ } /** - * 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. + * Creates a new PublicClientAuthConfigRequest instance using the specified properties. * @function create - * @memberof flyteidl.service.TaskCreateRequest + * @memberof flyteidl.service.PublicClientAuthConfigRequest * @static - * @param {flyteidl.service.ITaskCreateRequest=} [properties] Properties to set - * @returns {flyteidl.service.TaskCreateRequest} TaskCreateRequest instance + * @param {flyteidl.service.IPublicClientAuthConfigRequest=} [properties] Properties to set + * @returns {flyteidl.service.PublicClientAuthConfigRequest} PublicClientAuthConfigRequest instance */ - TaskCreateRequest.create = function create(properties) { - return new TaskCreateRequest(properties); + PublicClientAuthConfigRequest.create = function create(properties) { + return new PublicClientAuthConfigRequest(properties); }; /** - * Encodes the specified TaskCreateRequest message. Does not implicitly {@link flyteidl.service.TaskCreateRequest.verify|verify} messages. + * Encodes the specified PublicClientAuthConfigRequest message. Does not implicitly {@link flyteidl.service.PublicClientAuthConfigRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.service.TaskCreateRequest + * @memberof flyteidl.service.PublicClientAuthConfigRequest * @static - * @param {flyteidl.service.ITaskCreateRequest} message TaskCreateRequest message or plain object to encode + * @param {flyteidl.service.IPublicClientAuthConfigRequest} message PublicClientAuthConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskCreateRequest.encode = function encode(message, writer) { + PublicClientAuthConfigRequest.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. + * Decodes a PublicClientAuthConfigRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.TaskCreateRequest + * @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.TaskCreateRequest} TaskCreateRequest + * @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 */ - TaskCreateRequest.decode = function decode(reader, length) { + 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.TaskCreateRequest(); + 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) { - 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; @@ -44148,116 +45356,177 @@ }; /** - * Verifies a TaskCreateRequest message. + * Verifies a PublicClientAuthConfigRequest message. * @function verify - * @memberof flyteidl.service.TaskCreateRequest + * @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 */ - TaskCreateRequest.verify = function verify(message) { + PublicClientAuthConfigRequest.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; + return PublicClientAuthConfigRequest; })(); - service.TaskCreateResponse = (function() { + service.PublicClientAuthConfigResponse = (function() { /** - * Properties of a TaskCreateResponse. + * Properties of a PublicClientAuthConfigResponse. * @memberof flyteidl.service - * @interface ITaskCreateResponse - * @property {string|null} [jobId] TaskCreateResponse jobId + * @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 TaskCreateResponse. + * Constructs a new PublicClientAuthConfigResponse. * @memberof flyteidl.service - * @classdesc Represents a TaskCreateResponse. - * @implements ITaskCreateResponse + * @classdesc Represents a PublicClientAuthConfigResponse. + * @implements IPublicClientAuthConfigResponse * @constructor - * @param {flyteidl.service.ITaskCreateResponse=} [properties] Properties to set + * @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 */ - 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]]; - } + PublicClientAuthConfigResponse.prototype.serviceHttpEndpoint = ""; /** - * TaskCreateResponse jobId. - * @member {string} jobId - * @memberof flyteidl.service.TaskCreateResponse + * PublicClientAuthConfigResponse audience. + * @member {string} audience + * @memberof flyteidl.service.PublicClientAuthConfigResponse * @instance */ - TaskCreateResponse.prototype.jobId = ""; + PublicClientAuthConfigResponse.prototype.audience = ""; /** - * Creates a new TaskCreateResponse instance using the specified properties. + * Creates a new PublicClientAuthConfigResponse instance using the specified properties. * @function create - * @memberof flyteidl.service.TaskCreateResponse + * @memberof flyteidl.service.PublicClientAuthConfigResponse * @static - * @param {flyteidl.service.ITaskCreateResponse=} [properties] Properties to set - * @returns {flyteidl.service.TaskCreateResponse} TaskCreateResponse instance + * @param {flyteidl.service.IPublicClientAuthConfigResponse=} [properties] Properties to set + * @returns {flyteidl.service.PublicClientAuthConfigResponse} PublicClientAuthConfigResponse instance */ - TaskCreateResponse.create = function create(properties) { - return new TaskCreateResponse(properties); + PublicClientAuthConfigResponse.create = function create(properties) { + return new PublicClientAuthConfigResponse(properties); }; /** - * Encodes the specified TaskCreateResponse message. Does not implicitly {@link flyteidl.service.TaskCreateResponse.verify|verify} messages. + * Encodes the specified PublicClientAuthConfigResponse message. Does not implicitly {@link flyteidl.service.PublicClientAuthConfigResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.service.TaskCreateResponse + * @memberof flyteidl.service.PublicClientAuthConfigResponse * @static - * @param {flyteidl.service.ITaskCreateResponse} message TaskCreateResponse message or plain object to encode + * @param {flyteidl.service.IPublicClientAuthConfigResponse} message PublicClientAuthConfigResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskCreateResponse.encode = function encode(message, writer) { + PublicClientAuthConfigResponse.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); + 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 TaskCreateResponse message from the specified reader or buffer. + * Decodes a PublicClientAuthConfigResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.TaskCreateResponse + * @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.TaskCreateResponse} TaskCreateResponse + * @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 */ - TaskCreateResponse.decode = function decode(reader, length) { + 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.TaskCreateResponse(); + 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.jobId = reader.string(); + 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); @@ -44268,171 +45537,165 @@ }; /** - * Verifies a TaskCreateResponse message. + * Verifies a PublicClientAuthConfigResponse message. * @function verify - * @memberof flyteidl.service.TaskCreateResponse + * @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 */ - TaskCreateResponse.verify = function verify(message) { + PublicClientAuthConfigResponse.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"; + 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 TaskCreateResponse; + return PublicClientAuthConfigResponse; })(); - service.TaskGetRequest = (function() { + service.AuthMetadataService = (function() { /** - * Properties of a TaskGetRequest. + * Constructs a new AuthMetadataService service. * @memberof flyteidl.service - * @interface ITaskGetRequest - * @property {string|null} [taskType] TaskGetRequest taskType - * @property {string|null} [jobId] TaskGetRequest jobId + * @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; /** - * Constructs a new TaskGetRequest. - * @memberof flyteidl.service - * @classdesc Represents a TaskGetRequest. - * @implements ITaskGetRequest - * @constructor - * @param {flyteidl.service.ITaskGetRequest=} [properties] Properties to set + * 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. */ - 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]]; - } + AuthMetadataService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * TaskGetRequest taskType. - * @member {string} taskType - * @memberof flyteidl.service.TaskGetRequest - * @instance + * 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 */ - TaskGetRequest.prototype.taskType = ""; /** - * TaskGetRequest jobId. - * @member {string} jobId - * @memberof flyteidl.service.TaskGetRequest + * 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 */ - TaskGetRequest.prototype.jobId = ""; + 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" }); /** - * 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 + * Calls GetOAuth2Metadata. + * @function getOAuth2Metadata + * @memberof flyteidl.service.AuthMetadataService + * @instance + * @param {flyteidl.service.IOAuth2MetadataRequest} request OAuth2MetadataRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - 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 + * 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 */ - 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; - }; + * 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" }); /** - * 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 + * Calls GetPublicClientConfig. + * @function getPublicClientConfig + * @memberof flyteidl.service.AuthMetadataService + * @instance + * @param {flyteidl.service.IPublicClientAuthConfigRequest} request PublicClientAuthConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - 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; + return AuthMetadataService; })(); - service.TaskGetResponse = (function() { + service.CreateUploadLocationResponse = (function() { /** - * Properties of a TaskGetResponse. + * Properties of a CreateUploadLocationResponse. * @memberof flyteidl.service - * @interface ITaskGetResponse - * @property {flyteidl.service.State|null} [state] TaskGetResponse state - * @property {flyteidl.core.ILiteralMap|null} [outputs] TaskGetResponse outputs + * @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 TaskGetResponse. + * Constructs a new CreateUploadLocationResponse. * @memberof flyteidl.service - * @classdesc Represents a TaskGetResponse. - * @implements ITaskGetResponse + * @classdesc Represents a CreateUploadLocationResponse. + * @implements ICreateUploadLocationResponse * @constructor - * @param {flyteidl.service.ITaskGetResponse=} [properties] Properties to set + * @param {flyteidl.service.ICreateUploadLocationResponse=} [properties] Properties to set */ - function TaskGetResponse(properties) { + function CreateUploadLocationResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -44440,75 +45703,88 @@ } /** - * TaskGetResponse state. - * @member {flyteidl.service.State} state - * @memberof flyteidl.service.TaskGetResponse + * CreateUploadLocationResponse signedUrl. + * @member {string} signedUrl + * @memberof flyteidl.service.CreateUploadLocationResponse * @instance */ - TaskGetResponse.prototype.state = 0; + CreateUploadLocationResponse.prototype.signedUrl = ""; /** - * TaskGetResponse outputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} outputs - * @memberof flyteidl.service.TaskGetResponse + * CreateUploadLocationResponse nativeUrl. + * @member {string} nativeUrl + * @memberof flyteidl.service.CreateUploadLocationResponse * @instance */ - TaskGetResponse.prototype.outputs = null; + CreateUploadLocationResponse.prototype.nativeUrl = ""; /** - * Creates a new TaskGetResponse instance using the specified properties. + * 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.TaskGetResponse + * @memberof flyteidl.service.CreateUploadLocationResponse * @static - * @param {flyteidl.service.ITaskGetResponse=} [properties] Properties to set - * @returns {flyteidl.service.TaskGetResponse} TaskGetResponse instance + * @param {flyteidl.service.ICreateUploadLocationResponse=} [properties] Properties to set + * @returns {flyteidl.service.CreateUploadLocationResponse} CreateUploadLocationResponse instance */ - TaskGetResponse.create = function create(properties) { - return new TaskGetResponse(properties); + CreateUploadLocationResponse.create = function create(properties) { + return new CreateUploadLocationResponse(properties); }; /** - * Encodes the specified TaskGetResponse message. Does not implicitly {@link flyteidl.service.TaskGetResponse.verify|verify} messages. + * Encodes the specified CreateUploadLocationResponse message. Does not implicitly {@link flyteidl.service.CreateUploadLocationResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.service.TaskGetResponse + * @memberof flyteidl.service.CreateUploadLocationResponse * @static - * @param {flyteidl.service.ITaskGetResponse} message TaskGetResponse message or plain object to encode + * @param {flyteidl.service.ICreateUploadLocationResponse} message CreateUploadLocationResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskGetResponse.encode = function encode(message, writer) { + CreateUploadLocationResponse.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.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 TaskGetResponse message from the specified reader or buffer. + * Decodes a CreateUploadLocationResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.TaskGetResponse + * @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.TaskGetResponse} TaskGetResponse + * @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 */ - TaskGetResponse.decode = function decode(reader, length) { + 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.TaskGetResponse(); + 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.state = reader.int32(); + message.signedUrl = reader.string(); break; case 2: - message.outputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + message.nativeUrl = reader.string(); + break; + case 3: + message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -44519,57 +45795,55 @@ }; /** - * Verifies a TaskGetResponse message. + * Verifies a CreateUploadLocationResponse message. * @function verify - * @memberof flyteidl.service.TaskGetResponse + * @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 */ - TaskGetResponse.verify = function verify(message) { + CreateUploadLocationResponse.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 (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 "outputs." + error; + return "expiresAt." + error; } return null; }; - return TaskGetResponse; + return CreateUploadLocationResponse; })(); - service.TaskDeleteRequest = (function() { + service.CreateUploadLocationRequest = (function() { /** - * Properties of a TaskDeleteRequest. + * Properties of a CreateUploadLocationRequest. * @memberof flyteidl.service - * @interface ITaskDeleteRequest - * @property {string|null} [taskType] TaskDeleteRequest taskType - * @property {string|null} [jobId] TaskDeleteRequest jobId + * @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 */ /** - * Constructs a new TaskDeleteRequest. + * Constructs a new CreateUploadLocationRequest. * @memberof flyteidl.service - * @classdesc Represents a TaskDeleteRequest. - * @implements ITaskDeleteRequest + * @classdesc Represents a CreateUploadLocationRequest. + * @implements ICreateUploadLocationRequest * @constructor - * @param {flyteidl.service.ITaskDeleteRequest=} [properties] Properties to set + * @param {flyteidl.service.ICreateUploadLocationRequest=} [properties] Properties to set */ - function TaskDeleteRequest(properties) { + function CreateUploadLocationRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -44577,75 +45851,114 @@ } /** - * TaskDeleteRequest taskType. - * @member {string} taskType - * @memberof flyteidl.service.TaskDeleteRequest + * CreateUploadLocationRequest project. + * @member {string} project + * @memberof flyteidl.service.CreateUploadLocationRequest * @instance */ - TaskDeleteRequest.prototype.taskType = ""; + CreateUploadLocationRequest.prototype.project = ""; /** - * TaskDeleteRequest jobId. - * @member {string} jobId - * @memberof flyteidl.service.TaskDeleteRequest + * CreateUploadLocationRequest domain. + * @member {string} domain + * @memberof flyteidl.service.CreateUploadLocationRequest * @instance */ - TaskDeleteRequest.prototype.jobId = ""; + CreateUploadLocationRequest.prototype.domain = ""; /** - * Creates a new TaskDeleteRequest instance using the specified properties. + * 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([]); + + /** + * Creates a new CreateUploadLocationRequest instance using the specified properties. * @function create - * @memberof flyteidl.service.TaskDeleteRequest + * @memberof flyteidl.service.CreateUploadLocationRequest * @static - * @param {flyteidl.service.ITaskDeleteRequest=} [properties] Properties to set - * @returns {flyteidl.service.TaskDeleteRequest} TaskDeleteRequest instance + * @param {flyteidl.service.ICreateUploadLocationRequest=} [properties] Properties to set + * @returns {flyteidl.service.CreateUploadLocationRequest} CreateUploadLocationRequest instance */ - TaskDeleteRequest.create = function create(properties) { - return new TaskDeleteRequest(properties); + CreateUploadLocationRequest.create = function create(properties) { + return new CreateUploadLocationRequest(properties); }; /** - * Encodes the specified TaskDeleteRequest message. Does not implicitly {@link flyteidl.service.TaskDeleteRequest.verify|verify} messages. + * Encodes the specified CreateUploadLocationRequest message. Does not implicitly {@link flyteidl.service.CreateUploadLocationRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.service.TaskDeleteRequest + * @memberof flyteidl.service.CreateUploadLocationRequest * @static - * @param {flyteidl.service.ITaskDeleteRequest} message TaskDeleteRequest message or plain object to encode + * @param {flyteidl.service.ICreateUploadLocationRequest} message CreateUploadLocationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskDeleteRequest.encode = function encode(message, writer) { + CreateUploadLocationRequest.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); + 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); return writer; }; /** - * Decodes a TaskDeleteRequest message from the specified reader or buffer. + * Decodes a CreateUploadLocationRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.TaskDeleteRequest + * @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.TaskDeleteRequest} TaskDeleteRequest + * @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 */ - TaskDeleteRequest.decode = function decode(reader, length) { + 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.TaskDeleteRequest(); + 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.taskType = reader.string(); + message.project = reader.string(); break; case 2: - message.jobId = reader.string(); + 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; default: reader.skipType(tag & 7); @@ -44656,45 +45969,58 @@ }; /** - * Verifies a TaskDeleteRequest message. + * Verifies a CreateUploadLocationRequest message. * @function verify - * @memberof flyteidl.service.TaskDeleteRequest + * @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 */ - TaskDeleteRequest.verify = function verify(message) { + CreateUploadLocationRequest.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"; + 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"; return null; }; - return TaskDeleteRequest; + return CreateUploadLocationRequest; })(); - service.TaskDeleteResponse = (function() { + service.CreateDownloadLocationRequest = (function() { /** - * Properties of a TaskDeleteResponse. + * Properties of a CreateDownloadLocationRequest. * @memberof flyteidl.service - * @interface ITaskDeleteResponse + * @interface ICreateDownloadLocationRequest + * @property {string|null} [nativeUrl] CreateDownloadLocationRequest nativeUrl + * @property {google.protobuf.IDuration|null} [expiresIn] CreateDownloadLocationRequest expiresIn */ /** - * Constructs a new TaskDeleteResponse. + * Constructs a new CreateDownloadLocationRequest. * @memberof flyteidl.service - * @classdesc Represents a TaskDeleteResponse. - * @implements ITaskDeleteResponse + * @classdesc Represents a CreateDownloadLocationRequest. + * @implements ICreateDownloadLocationRequest * @constructor - * @param {flyteidl.service.ITaskDeleteResponse=} [properties] Properties to set + * @param {flyteidl.service.ICreateDownloadLocationRequest=} [properties] Properties to set */ - function TaskDeleteResponse(properties) { + function CreateDownloadLocationRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -44702,50 +46028,76 @@ } /** - * Creates a new TaskDeleteResponse instance using the specified properties. + * 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.TaskDeleteResponse + * @memberof flyteidl.service.CreateDownloadLocationRequest * @static - * @param {flyteidl.service.ITaskDeleteResponse=} [properties] Properties to set - * @returns {flyteidl.service.TaskDeleteResponse} TaskDeleteResponse instance + * @param {flyteidl.service.ICreateDownloadLocationRequest=} [properties] Properties to set + * @returns {flyteidl.service.CreateDownloadLocationRequest} CreateDownloadLocationRequest instance */ - TaskDeleteResponse.create = function create(properties) { - return new TaskDeleteResponse(properties); + CreateDownloadLocationRequest.create = function create(properties) { + return new CreateDownloadLocationRequest(properties); }; /** - * Encodes the specified TaskDeleteResponse message. Does not implicitly {@link flyteidl.service.TaskDeleteResponse.verify|verify} messages. + * Encodes the specified CreateDownloadLocationRequest message. Does not implicitly {@link flyteidl.service.CreateDownloadLocationRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.service.TaskDeleteResponse + * @memberof flyteidl.service.CreateDownloadLocationRequest * @static - * @param {flyteidl.service.ITaskDeleteResponse} message TaskDeleteResponse message or plain object to encode + * @param {flyteidl.service.ICreateDownloadLocationRequest} message CreateDownloadLocationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskDeleteResponse.encode = function encode(message, 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 TaskDeleteResponse message from the specified reader or buffer. + * Decodes a CreateDownloadLocationRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.TaskDeleteResponse + * @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.TaskDeleteResponse} TaskDeleteResponse + * @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 */ - TaskDeleteResponse.decode = function decode(reader, length) { + 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.TaskDeleteResponse(); + 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; @@ -44755,39 +46107,49 @@ }; /** - * Verifies a TaskDeleteResponse message. + * Verifies a CreateDownloadLocationRequest message. * @function verify - * @memberof flyteidl.service.TaskDeleteResponse + * @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 */ - TaskDeleteResponse.verify = function verify(message) { + 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 TaskDeleteResponse; + return CreateDownloadLocationRequest; })(); - service.OAuth2MetadataRequest = (function() { + service.CreateDownloadLocationResponse = (function() { /** - * Properties of a OAuth2MetadataRequest. + * Properties of a CreateDownloadLocationResponse. * @memberof flyteidl.service - * @interface IOAuth2MetadataRequest + * @interface ICreateDownloadLocationResponse + * @property {string|null} [signedUrl] CreateDownloadLocationResponse signedUrl + * @property {google.protobuf.ITimestamp|null} [expiresAt] CreateDownloadLocationResponse expiresAt */ /** - * Constructs a new OAuth2MetadataRequest. + * Constructs a new CreateDownloadLocationResponse. * @memberof flyteidl.service - * @classdesc Represents a OAuth2MetadataRequest. - * @implements IOAuth2MetadataRequest + * @classdesc Represents a CreateDownloadLocationResponse. + * @implements ICreateDownloadLocationResponse * @constructor - * @param {flyteidl.service.IOAuth2MetadataRequest=} [properties] Properties to set + * @param {flyteidl.service.ICreateDownloadLocationResponse=} [properties] Properties to set */ - function OAuth2MetadataRequest(properties) { + function CreateDownloadLocationResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -44795,50 +46157,76 @@ } /** - * Creates a new OAuth2MetadataRequest instance using the specified properties. + * 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.OAuth2MetadataRequest + * @memberof flyteidl.service.CreateDownloadLocationResponse * @static - * @param {flyteidl.service.IOAuth2MetadataRequest=} [properties] Properties to set - * @returns {flyteidl.service.OAuth2MetadataRequest} OAuth2MetadataRequest instance + * @param {flyteidl.service.ICreateDownloadLocationResponse=} [properties] Properties to set + * @returns {flyteidl.service.CreateDownloadLocationResponse} CreateDownloadLocationResponse instance */ - OAuth2MetadataRequest.create = function create(properties) { - return new OAuth2MetadataRequest(properties); + CreateDownloadLocationResponse.create = function create(properties) { + return new CreateDownloadLocationResponse(properties); }; /** - * Encodes the specified OAuth2MetadataRequest message. Does not implicitly {@link flyteidl.service.OAuth2MetadataRequest.verify|verify} messages. + * Encodes the specified CreateDownloadLocationResponse message. Does not implicitly {@link flyteidl.service.CreateDownloadLocationResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.service.OAuth2MetadataRequest + * @memberof flyteidl.service.CreateDownloadLocationResponse * @static - * @param {flyteidl.service.IOAuth2MetadataRequest} message OAuth2MetadataRequest message or plain object to encode + * @param {flyteidl.service.ICreateDownloadLocationResponse} message CreateDownloadLocationResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OAuth2MetadataRequest.encode = function encode(message, 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 OAuth2MetadataRequest message from the specified reader or buffer. + * Decodes a CreateDownloadLocationResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.OAuth2MetadataRequest + * @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.OAuth2MetadataRequest} OAuth2MetadataRequest + * @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 */ - OAuth2MetadataRequest.decode = function decode(reader, length) { + 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.OAuth2MetadataRequest(); + 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; @@ -44848,54 +46236,64 @@ }; /** - * Verifies a OAuth2MetadataRequest message. + * Verifies a CreateDownloadLocationResponse message. * @function verify - * @memberof flyteidl.service.OAuth2MetadataRequest + * @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 */ - OAuth2MetadataRequest.verify = function verify(message) { + 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 OAuth2MetadataRequest; + return CreateDownloadLocationResponse; })(); - service.OAuth2MetadataResponse = (function() { + /** + * 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; + })(); - /** - * 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 + 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 OAuth2MetadataResponse. + * Constructs a new CreateDownloadLinkRequest. * @memberof flyteidl.service - * @classdesc Represents a OAuth2MetadataResponse. - * @implements IOAuth2MetadataResponse + * @classdesc Represents a CreateDownloadLinkRequest. + * @implements ICreateDownloadLinkRequest * @constructor - * @param {flyteidl.service.IOAuth2MetadataResponse=} [properties] Properties to set + * @param {flyteidl.service.ICreateDownloadLinkRequest=} [properties] Properties to set */ - function OAuth2MetadataResponse(properties) { - this.responseTypesSupported = []; - this.scopesSupported = []; - this.tokenEndpointAuthMethodsSupported = []; - this.codeChallengeMethodsSupported = []; - this.grantTypesSupported = []; + function CreateDownloadLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -44903,194 +46301,102 @@ } /** - * 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 + * CreateDownloadLinkRequest artifactType. + * @member {flyteidl.service.ArtifactType} artifactType + * @memberof flyteidl.service.CreateDownloadLinkRequest * @instance */ - OAuth2MetadataResponse.prototype.tokenEndpointAuthMethodsSupported = $util.emptyArray; + CreateDownloadLinkRequest.prototype.artifactType = 0; /** - * OAuth2MetadataResponse jwksUri. - * @member {string} jwksUri - * @memberof flyteidl.service.OAuth2MetadataResponse + * CreateDownloadLinkRequest expiresIn. + * @member {google.protobuf.IDuration|null|undefined} expiresIn + * @memberof flyteidl.service.CreateDownloadLinkRequest * @instance */ - OAuth2MetadataResponse.prototype.jwksUri = ""; + CreateDownloadLinkRequest.prototype.expiresIn = null; /** - * OAuth2MetadataResponse codeChallengeMethodsSupported. - * @member {Array.} codeChallengeMethodsSupported - * @memberof flyteidl.service.OAuth2MetadataResponse + * CreateDownloadLinkRequest nodeExecutionId. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} nodeExecutionId + * @memberof flyteidl.service.CreateDownloadLinkRequest * @instance */ - OAuth2MetadataResponse.prototype.codeChallengeMethodsSupported = $util.emptyArray; + CreateDownloadLinkRequest.prototype.nodeExecutionId = null; - /** - * OAuth2MetadataResponse grantTypesSupported. - * @member {Array.} grantTypesSupported - * @memberof flyteidl.service.OAuth2MetadataResponse - * @instance - */ - OAuth2MetadataResponse.prototype.grantTypesSupported = $util.emptyArray; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * OAuth2MetadataResponse deviceAuthorizationEndpoint. - * @member {string} deviceAuthorizationEndpoint - * @memberof flyteidl.service.OAuth2MetadataResponse + * CreateDownloadLinkRequest source. + * @member {"nodeExecutionId"|undefined} source + * @memberof flyteidl.service.CreateDownloadLinkRequest * @instance */ - OAuth2MetadataResponse.prototype.deviceAuthorizationEndpoint = ""; + Object.defineProperty(CreateDownloadLinkRequest.prototype, "source", { + get: $util.oneOfGetter($oneOfFields = ["nodeExecutionId"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new OAuth2MetadataResponse instance using the specified properties. + * Creates a new CreateDownloadLinkRequest instance using the specified properties. * @function create - * @memberof flyteidl.service.OAuth2MetadataResponse + * @memberof flyteidl.service.CreateDownloadLinkRequest * @static - * @param {flyteidl.service.IOAuth2MetadataResponse=} [properties] Properties to set - * @returns {flyteidl.service.OAuth2MetadataResponse} OAuth2MetadataResponse instance + * @param {flyteidl.service.ICreateDownloadLinkRequest=} [properties] Properties to set + * @returns {flyteidl.service.CreateDownloadLinkRequest} CreateDownloadLinkRequest instance */ - OAuth2MetadataResponse.create = function create(properties) { - return new OAuth2MetadataResponse(properties); + CreateDownloadLinkRequest.create = function create(properties) { + return new CreateDownloadLinkRequest(properties); }; /** - * Encodes the specified OAuth2MetadataResponse message. Does not implicitly {@link flyteidl.service.OAuth2MetadataResponse.verify|verify} messages. + * Encodes the specified CreateDownloadLinkRequest message. Does not implicitly {@link flyteidl.service.CreateDownloadLinkRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.service.OAuth2MetadataResponse + * @memberof flyteidl.service.CreateDownloadLinkRequest * @static - * @param {flyteidl.service.IOAuth2MetadataResponse} message OAuth2MetadataResponse message or plain object to encode + * @param {flyteidl.service.ICreateDownloadLinkRequest} message CreateDownloadLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OAuth2MetadataResponse.encode = function encode(message, writer) { + CreateDownloadLinkRequest.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); + 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 OAuth2MetadataResponse message from the specified reader or buffer. + * Decodes a CreateDownloadLinkRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.OAuth2MetadataResponse + * @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.OAuth2MetadataResponse} OAuth2MetadataResponse + * @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 */ - OAuth2MetadataResponse.decode = function decode(reader, length) { + 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.OAuth2MetadataResponse(); + 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.issuer = reader.string(); + message.artifactType = reader.int32(); break; case 2: - message.authorizationEndpoint = reader.string(); + message.expiresIn = $root.google.protobuf.Duration.decode(reader, reader.uint32()); 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(); + message.nodeExecutionId = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -45101,89 +46407,65 @@ }; /** - * Verifies a OAuth2MetadataResponse message. + * Verifies a CreateDownloadLinkRequest message. * @function verify - * @memberof flyteidl.service.OAuth2MetadataResponse + * @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 */ - OAuth2MetadataResponse.verify = function verify(message) { + CreateDownloadLinkRequest.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"; + 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.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.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) { + properties.source = 1; + { + var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.nodeExecutionId); + if (error) + return "nodeExecutionId." + error; + } } - if (message.deviceAuthorizationEndpoint != null && message.hasOwnProperty("deviceAuthorizationEndpoint")) - if (!$util.isString(message.deviceAuthorizationEndpoint)) - return "deviceAuthorizationEndpoint: string expected"; return null; }; - return OAuth2MetadataResponse; + return CreateDownloadLinkRequest; })(); - service.PublicClientAuthConfigRequest = (function() { + service.CreateDownloadLinkResponse = (function() { /** - * Properties of a PublicClientAuthConfigRequest. + * Properties of a CreateDownloadLinkResponse. * @memberof flyteidl.service - * @interface IPublicClientAuthConfigRequest + * @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 PublicClientAuthConfigRequest. + * Constructs a new CreateDownloadLinkResponse. * @memberof flyteidl.service - * @classdesc Represents a PublicClientAuthConfigRequest. - * @implements IPublicClientAuthConfigRequest + * @classdesc Represents a CreateDownloadLinkResponse. + * @implements ICreateDownloadLinkResponse * @constructor - * @param {flyteidl.service.IPublicClientAuthConfigRequest=} [properties] Properties to set + * @param {flyteidl.service.ICreateDownloadLinkResponse=} [properties] Properties to set */ - function PublicClientAuthConfigRequest(properties) { + function CreateDownloadLinkResponse(properties) { + this.signedUrl = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45191,50 +46473,92 @@ } /** - * Creates a new PublicClientAuthConfigRequest instance using the specified properties. + * 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.PublicClientAuthConfigRequest + * @memberof flyteidl.service.CreateDownloadLinkResponse * @static - * @param {flyteidl.service.IPublicClientAuthConfigRequest=} [properties] Properties to set - * @returns {flyteidl.service.PublicClientAuthConfigRequest} PublicClientAuthConfigRequest instance + * @param {flyteidl.service.ICreateDownloadLinkResponse=} [properties] Properties to set + * @returns {flyteidl.service.CreateDownloadLinkResponse} CreateDownloadLinkResponse instance */ - PublicClientAuthConfigRequest.create = function create(properties) { - return new PublicClientAuthConfigRequest(properties); + CreateDownloadLinkResponse.create = function create(properties) { + return new CreateDownloadLinkResponse(properties); }; /** - * Encodes the specified PublicClientAuthConfigRequest message. Does not implicitly {@link flyteidl.service.PublicClientAuthConfigRequest.verify|verify} messages. + * Encodes the specified CreateDownloadLinkResponse message. Does not implicitly {@link flyteidl.service.CreateDownloadLinkResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.service.PublicClientAuthConfigRequest + * @memberof flyteidl.service.CreateDownloadLinkResponse * @static - * @param {flyteidl.service.IPublicClientAuthConfigRequest} message PublicClientAuthConfigRequest message or plain object to encode + * @param {flyteidl.service.ICreateDownloadLinkResponse} message CreateDownloadLinkResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PublicClientAuthConfigRequest.encode = function encode(message, 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 PublicClientAuthConfigRequest message from the specified reader or buffer. + * Decodes a CreateDownloadLinkResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.PublicClientAuthConfigRequest + * @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.PublicClientAuthConfigRequest} PublicClientAuthConfigRequest + * @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 */ - PublicClientAuthConfigRequest.decode = function decode(reader, length) { + 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.PublicClientAuthConfigRequest(); + 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; @@ -45244,46 +46568,59 @@ }; /** - * Verifies a PublicClientAuthConfigRequest message. + * Verifies a CreateDownloadLinkResponse message. * @function verify - * @memberof flyteidl.service.PublicClientAuthConfigRequest + * @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 */ - PublicClientAuthConfigRequest.verify = function verify(message) { + 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 PublicClientAuthConfigRequest; + return CreateDownloadLinkResponse; })(); - service.PublicClientAuthConfigResponse = (function() { + service.PreSignedURLs = (function() { /** - * Properties of a PublicClientAuthConfigResponse. + * Properties of a PreSignedURLs. * @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 + * @interface IPreSignedURLs + * @property {Array.|null} [signedUrl] PreSignedURLs signedUrl + * @property {google.protobuf.ITimestamp|null} [expiresAt] PreSignedURLs expiresAt */ /** - * Constructs a new PublicClientAuthConfigResponse. + * Constructs a new PreSignedURLs. * @memberof flyteidl.service - * @classdesc Represents a PublicClientAuthConfigResponse. - * @implements IPublicClientAuthConfigResponse + * @classdesc Represents a PreSignedURLs. + * @implements IPreSignedURLs * @constructor - * @param {flyteidl.service.IPublicClientAuthConfigResponse=} [properties] Properties to set + * @param {flyteidl.service.IPreSignedURLs=} [properties] Properties to set */ - function PublicClientAuthConfigResponse(properties) { - this.scopes = []; + function PreSignedURLs(properties) { + this.signedUrl = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45291,130 +46628,78 @@ } /** - * 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 + * PreSignedURLs signedUrl. + * @member {Array.} signedUrl + * @memberof flyteidl.service.PreSignedURLs * @instance */ - PublicClientAuthConfigResponse.prototype.serviceHttpEndpoint = ""; + PreSignedURLs.prototype.signedUrl = $util.emptyArray; /** - * PublicClientAuthConfigResponse audience. - * @member {string} audience - * @memberof flyteidl.service.PublicClientAuthConfigResponse + * PreSignedURLs expiresAt. + * @member {google.protobuf.ITimestamp|null|undefined} expiresAt + * @memberof flyteidl.service.PreSignedURLs * @instance */ - PublicClientAuthConfigResponse.prototype.audience = ""; + PreSignedURLs.prototype.expiresAt = null; /** - * Creates a new PublicClientAuthConfigResponse instance using the specified properties. + * Creates a new PreSignedURLs instance using the specified properties. * @function create - * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @memberof flyteidl.service.PreSignedURLs * @static - * @param {flyteidl.service.IPublicClientAuthConfigResponse=} [properties] Properties to set - * @returns {flyteidl.service.PublicClientAuthConfigResponse} PublicClientAuthConfigResponse instance + * @param {flyteidl.service.IPreSignedURLs=} [properties] Properties to set + * @returns {flyteidl.service.PreSignedURLs} PreSignedURLs instance */ - PublicClientAuthConfigResponse.create = function create(properties) { - return new PublicClientAuthConfigResponse(properties); + PreSignedURLs.create = function create(properties) { + return new PreSignedURLs(properties); }; /** - * Encodes the specified PublicClientAuthConfigResponse message. Does not implicitly {@link flyteidl.service.PublicClientAuthConfigResponse.verify|verify} messages. + * Encodes the specified PreSignedURLs message. Does not implicitly {@link flyteidl.service.PreSignedURLs.verify|verify} messages. * @function encode - * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @memberof flyteidl.service.PreSignedURLs * @static - * @param {flyteidl.service.IPublicClientAuthConfigResponse} message PublicClientAuthConfigResponse message or plain object to encode + * @param {flyteidl.service.IPreSignedURLs} message PreSignedURLs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PublicClientAuthConfigResponse.encode = function encode(message, writer) { + PreSignedURLs.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); + 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 PublicClientAuthConfigResponse message from the specified reader or buffer. + * Decodes a PreSignedURLs message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @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.PublicClientAuthConfigResponse} PublicClientAuthConfigResponse + * @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 */ - PublicClientAuthConfigResponse.decode = function decode(reader, length) { + 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.PublicClientAuthConfigResponse(); + 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: - message.clientId = reader.string(); + if (!(message.signedUrl && message.signedUrl.length)) + message.signedUrl = []; + message.signedUrl.push(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(); + message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -45425,165 +46710,164 @@ }; /** - * Verifies a PublicClientAuthConfigResponse message. + * Verifies a PreSignedURLs message. * @function verify - * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @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 */ - PublicClientAuthConfigResponse.verify = function verify(message) { + PreSignedURLs.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.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.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; + return PreSignedURLs; })(); - service.AuthMetadataService = (function() { + service.GetDataRequest = (function() { /** - * Constructs a new AuthMetadataService service. + * Properties of a GetDataRequest. * @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. + * @interface IGetDataRequest + * @property {string|null} [flyteUrl] GetDataRequest flyteUrl */ - 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 + * 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]]; + } /** - * Calls GetOAuth2Metadata. - * @function getOAuth2Metadata - * @memberof flyteidl.service.AuthMetadataService + * GetDataRequest flyteUrl. + * @member {string} flyteUrl + * @memberof flyteidl.service.GetDataRequest * @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" }); + GetDataRequest.prototype.flyteUrl = ""; /** - * Calls GetOAuth2Metadata. - * @function getOAuth2Metadata - * @memberof flyteidl.service.AuthMetadataService - * @instance - * @param {flyteidl.service.IOAuth2MetadataRequest} request OAuth2MetadataRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * 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); + }; /** - * 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 + * 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; + }; /** - * 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 + * 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 */ - 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" }); + 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; + }; /** - * Calls GetPublicClientConfig. - * @function getPublicClientConfig - * @memberof flyteidl.service.AuthMetadataService - * @instance - * @param {flyteidl.service.IPublicClientAuthConfigRequest} request PublicClientAuthConfigRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * 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 AuthMetadataService; + return GetDataRequest; })(); - service.CreateUploadLocationResponse = (function() { + service.GetDataResponse = (function() { /** - * Properties of a CreateUploadLocationResponse. + * Properties of a GetDataResponse. * @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 + * @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 CreateUploadLocationResponse. + * Constructs a new GetDataResponse. * @memberof flyteidl.service - * @classdesc Represents a CreateUploadLocationResponse. - * @implements ICreateUploadLocationResponse + * @classdesc Represents a GetDataResponse. + * @implements IGetDataResponse * @constructor - * @param {flyteidl.service.ICreateUploadLocationResponse=} [properties] Properties to set + * @param {flyteidl.service.IGetDataResponse=} [properties] Properties to set */ - function CreateUploadLocationResponse(properties) { + function GetDataResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45591,88 +46875,102 @@ } /** - * CreateUploadLocationResponse signedUrl. - * @member {string} signedUrl - * @memberof flyteidl.service.CreateUploadLocationResponse + * 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 */ - CreateUploadLocationResponse.prototype.signedUrl = ""; + GetDataResponse.prototype.preSignedUrls = null; /** - * CreateUploadLocationResponse nativeUrl. - * @member {string} nativeUrl - * @memberof flyteidl.service.CreateUploadLocationResponse + * GetDataResponse literal. + * @member {flyteidl.core.ILiteral|null|undefined} literal + * @memberof flyteidl.service.GetDataResponse * @instance */ - CreateUploadLocationResponse.prototype.nativeUrl = ""; + GetDataResponse.prototype.literal = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * CreateUploadLocationResponse expiresAt. - * @member {google.protobuf.ITimestamp|null|undefined} expiresAt - * @memberof flyteidl.service.CreateUploadLocationResponse + * GetDataResponse data. + * @member {"literalMap"|"preSignedUrls"|"literal"|undefined} data + * @memberof flyteidl.service.GetDataResponse * @instance */ - CreateUploadLocationResponse.prototype.expiresAt = null; + Object.defineProperty(GetDataResponse.prototype, "data", { + get: $util.oneOfGetter($oneOfFields = ["literalMap", "preSignedUrls", "literal"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new CreateUploadLocationResponse instance using the specified properties. + * Creates a new GetDataResponse instance using the specified properties. * @function create - * @memberof flyteidl.service.CreateUploadLocationResponse + * @memberof flyteidl.service.GetDataResponse * @static - * @param {flyteidl.service.ICreateUploadLocationResponse=} [properties] Properties to set - * @returns {flyteidl.service.CreateUploadLocationResponse} CreateUploadLocationResponse instance + * @param {flyteidl.service.IGetDataResponse=} [properties] Properties to set + * @returns {flyteidl.service.GetDataResponse} GetDataResponse instance */ - CreateUploadLocationResponse.create = function create(properties) { - return new CreateUploadLocationResponse(properties); + GetDataResponse.create = function create(properties) { + return new GetDataResponse(properties); }; /** - * Encodes the specified CreateUploadLocationResponse message. Does not implicitly {@link flyteidl.service.CreateUploadLocationResponse.verify|verify} messages. + * Encodes the specified GetDataResponse message. Does not implicitly {@link flyteidl.service.GetDataResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.service.CreateUploadLocationResponse + * @memberof flyteidl.service.GetDataResponse * @static - * @param {flyteidl.service.ICreateUploadLocationResponse} message CreateUploadLocationResponse message or plain object to encode + * @param {flyteidl.service.IGetDataResponse} message GetDataResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateUploadLocationResponse.encode = function encode(message, writer) { + GetDataResponse.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(); + 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 CreateUploadLocationResponse message from the specified reader or buffer. + * Decodes a GetDataResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.CreateUploadLocationResponse + * @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.CreateUploadLocationResponse} CreateUploadLocationResponse + * @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 */ - CreateUploadLocationResponse.decode = function decode(reader, length) { + 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.CreateUploadLocationResponse(); + 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.signedUrl = reader.string(); + message.literalMap = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); break; case 2: - message.nativeUrl = reader.string(); + message.preSignedUrls = $root.flyteidl.service.PreSignedURLs.decode(reader, reader.uint32()); break; case 3: - message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.literal = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -45683,361 +46981,392 @@ }; /** - * Verifies a CreateUploadLocationResponse message. + * Verifies a GetDataResponse message. * @function verify - * @memberof flyteidl.service.CreateUploadLocationResponse + * @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 */ - CreateUploadLocationResponse.verify = function verify(message) { + GetDataResponse.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; + 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 CreateUploadLocationResponse; + return GetDataResponse; })(); - service.CreateUploadLocationRequest = (function() { + service.DataProxyService = (function() { /** - * Properties of a CreateUploadLocationRequest. + * Constructs a new DataProxyService service. * @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 + * @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; /** - * Constructs a new CreateUploadLocationRequest. - * @memberof flyteidl.service - * @classdesc Represents a CreateUploadLocationRequest. - * @implements ICreateUploadLocationRequest - * @constructor - * @param {flyteidl.service.ICreateUploadLocationRequest=} [properties] Properties to set + * 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. */ - 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]]; - } + DataProxyService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * CreateUploadLocationRequest project. - * @member {string} project - * @memberof flyteidl.service.CreateUploadLocationRequest + * 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 */ - CreateUploadLocationRequest.prototype.project = ""; + 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" }); /** - * CreateUploadLocationRequest domain. - * @member {string} domain - * @memberof flyteidl.service.CreateUploadLocationRequest + * Calls CreateDownloadLink. + * @function createDownloadLink + * @memberof flyteidl.service.DataProxyService * @instance + * @param {flyteidl.service.ICreateDownloadLinkRequest} request CreateDownloadLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateUploadLocationRequest.prototype.domain = ""; /** - * CreateUploadLocationRequest filename. - * @member {string} filename - * @memberof flyteidl.service.CreateUploadLocationRequest - * @instance + * 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 */ - CreateUploadLocationRequest.prototype.filename = ""; /** - * CreateUploadLocationRequest expiresIn. - * @member {google.protobuf.IDuration|null|undefined} expiresIn - * @memberof flyteidl.service.CreateUploadLocationRequest + * 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 */ - CreateUploadLocationRequest.prototype.expiresIn = null; + 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" }); /** - * CreateUploadLocationRequest contentMd5. - * @member {Uint8Array} contentMd5 - * @memberof flyteidl.service.CreateUploadLocationRequest + * Calls GetData. + * @function getData + * @memberof flyteidl.service.DataProxyService * @instance + * @param {flyteidl.service.IGetDataRequest} request GetDataRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateUploadLocationRequest.prototype.contentMd5 = $util.newBuffer([]); - /** - * 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); - }; + return DataProxyService; + })(); + + service.ExternalPluginService = (function() { /** - * 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 + * 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 */ - 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); - return writer; - }; + function ExternalPluginService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (ExternalPluginService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ExternalPluginService; /** - * Decodes a CreateUploadLocationRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.CreateUploadLocationRequest + * Creates new ExternalPluginService service using the specified rpc implementation. + * @function create + * @memberof flyteidl.service.ExternalPluginService * @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 + * @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. */ - 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; - default: - reader.skipType(tag & 7); - break; - } - } - return message; + ExternalPluginService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * 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 + * 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 */ - 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"; - 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 + * 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" }); /** - * Constructs a new CreateDownloadLocationRequest. - * @memberof flyteidl.service - * @classdesc Represents a CreateDownloadLocationRequest. - * @implements ICreateDownloadLocationRequest - * @constructor - * @param {flyteidl.service.ICreateDownloadLocationRequest=} [properties] Properties to set + * Calls CreateTask. + * @function createTask + * @memberof flyteidl.service.ExternalPluginService + * @instance + * @param {flyteidl.service.ITaskCreateRequest} request TaskCreateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - 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 + * 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 */ - CreateDownloadLocationRequest.prototype.nativeUrl = ""; /** - * CreateDownloadLocationRequest expiresIn. - * @member {google.protobuf.IDuration|null|undefined} expiresIn - * @memberof flyteidl.service.CreateDownloadLocationRequest + * 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 */ - CreateDownloadLocationRequest.prototype.expiresIn = null; + 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" }); /** - * 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 + * Calls GetTask. + * @function getTask + * @memberof flyteidl.service.ExternalPluginService + * @instance + * @param {flyteidl.service.ITaskGetRequest} request TaskGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - 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; - }; + * 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 + */ /** - * 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 + * 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 */ - 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; - }; + 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" }); /** - * 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 + * Calls DeleteTask. + * @function deleteTask + * @memberof flyteidl.service.ExternalPluginService + * @instance + * @param {flyteidl.service.ITaskDeleteRequest} request TaskDeleteRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - 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; + return ExternalPluginService; })(); - service.CreateDownloadLocationResponse = (function() { + /** + * 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 CreateDownloadLocationResponse. + * Properties of a TaskCreateRequest. * @memberof flyteidl.service - * @interface ICreateDownloadLocationResponse - * @property {string|null} [signedUrl] CreateDownloadLocationResponse signedUrl - * @property {google.protobuf.ITimestamp|null} [expiresAt] CreateDownloadLocationResponse expiresAt + * @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 CreateDownloadLocationResponse. + * Constructs a new TaskCreateRequest. * @memberof flyteidl.service - * @classdesc Represents a CreateDownloadLocationResponse. - * @implements ICreateDownloadLocationResponse + * @classdesc Represents a TaskCreateRequest. + * @implements ITaskCreateRequest * @constructor - * @param {flyteidl.service.ICreateDownloadLocationResponse=} [properties] Properties to set + * @param {flyteidl.service.ITaskCreateRequest=} [properties] Properties to set */ - function CreateDownloadLocationResponse(properties) { + function TaskCreateRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46045,75 +47374,88 @@ } /** - * CreateDownloadLocationResponse signedUrl. - * @member {string} signedUrl - * @memberof flyteidl.service.CreateDownloadLocationResponse + * TaskCreateRequest inputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} inputs + * @memberof flyteidl.service.TaskCreateRequest * @instance */ - CreateDownloadLocationResponse.prototype.signedUrl = ""; + TaskCreateRequest.prototype.inputs = null; /** - * CreateDownloadLocationResponse expiresAt. - * @member {google.protobuf.ITimestamp|null|undefined} expiresAt - * @memberof flyteidl.service.CreateDownloadLocationResponse + * TaskCreateRequest template. + * @member {flyteidl.core.ITaskTemplate|null|undefined} template + * @memberof flyteidl.service.TaskCreateRequest * @instance */ - CreateDownloadLocationResponse.prototype.expiresAt = null; + TaskCreateRequest.prototype.template = null; /** - * Creates a new CreateDownloadLocationResponse instance using the specified properties. + * 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.CreateDownloadLocationResponse + * @memberof flyteidl.service.TaskCreateRequest * @static - * @param {flyteidl.service.ICreateDownloadLocationResponse=} [properties] Properties to set - * @returns {flyteidl.service.CreateDownloadLocationResponse} CreateDownloadLocationResponse instance + * @param {flyteidl.service.ITaskCreateRequest=} [properties] Properties to set + * @returns {flyteidl.service.TaskCreateRequest} TaskCreateRequest instance */ - CreateDownloadLocationResponse.create = function create(properties) { - return new CreateDownloadLocationResponse(properties); + TaskCreateRequest.create = function create(properties) { + return new TaskCreateRequest(properties); }; /** - * Encodes the specified CreateDownloadLocationResponse message. Does not implicitly {@link flyteidl.service.CreateDownloadLocationResponse.verify|verify} messages. + * Encodes the specified TaskCreateRequest message. Does not implicitly {@link flyteidl.service.TaskCreateRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.service.CreateDownloadLocationResponse + * @memberof flyteidl.service.TaskCreateRequest * @static - * @param {flyteidl.service.ICreateDownloadLocationResponse} message CreateDownloadLocationResponse message or plain object to encode + * @param {flyteidl.service.ITaskCreateRequest} message TaskCreateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateDownloadLocationResponse.encode = function encode(message, writer) { + TaskCreateRequest.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(); + 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 CreateDownloadLocationResponse message from the specified reader or buffer. + * Decodes a TaskCreateRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.CreateDownloadLocationResponse + * @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.CreateDownloadLocationResponse} CreateDownloadLocationResponse + * @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 */ - CreateDownloadLocationResponse.decode = function decode(reader, length) { + 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.CreateDownloadLocationResponse(); + 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.signedUrl = reader.string(); + message.inputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); break; case 2: - message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.template = $root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32()); + break; + case 3: + message.outputPrefix = reader.string(); break; default: reader.skipType(tag & 7); @@ -46124,167 +47466,116 @@ }; /** - * Verifies a CreateDownloadLocationResponse message. + * Verifies a TaskCreateRequest message. * @function verify - * @memberof flyteidl.service.CreateDownloadLocationResponse + * @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 */ - CreateDownloadLocationResponse.verify = function verify(message) { + TaskCreateRequest.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 (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.inputs); if (error) - return "expiresAt." + 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 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; + return TaskCreateRequest; })(); - 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; + service.TaskCreateResponse = (function() { /** - * CreateDownloadLinkRequest expiresIn. - * @member {google.protobuf.IDuration|null|undefined} expiresIn - * @memberof flyteidl.service.CreateDownloadLinkRequest - * @instance + * Properties of a TaskCreateResponse. + * @memberof flyteidl.service + * @interface ITaskCreateResponse + * @property {string|null} [jobId] TaskCreateResponse jobId */ - CreateDownloadLinkRequest.prototype.expiresIn = null; /** - * CreateDownloadLinkRequest nodeExecutionId. - * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} nodeExecutionId - * @memberof flyteidl.service.CreateDownloadLinkRequest - * @instance + * Constructs a new TaskCreateResponse. + * @memberof flyteidl.service + * @classdesc Represents a TaskCreateResponse. + * @implements ITaskCreateResponse + * @constructor + * @param {flyteidl.service.ITaskCreateResponse=} [properties] Properties to set */ - CreateDownloadLinkRequest.prototype.nodeExecutionId = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + 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]]; + } /** - * CreateDownloadLinkRequest source. - * @member {"nodeExecutionId"|undefined} source - * @memberof flyteidl.service.CreateDownloadLinkRequest + * TaskCreateResponse jobId. + * @member {string} jobId + * @memberof flyteidl.service.TaskCreateResponse * @instance */ - Object.defineProperty(CreateDownloadLinkRequest.prototype, "source", { - get: $util.oneOfGetter($oneOfFields = ["nodeExecutionId"]), - set: $util.oneOfSetter($oneOfFields) - }); + TaskCreateResponse.prototype.jobId = ""; /** - * Creates a new CreateDownloadLinkRequest instance using the specified properties. + * Creates a new TaskCreateResponse instance using the specified properties. * @function create - * @memberof flyteidl.service.CreateDownloadLinkRequest + * @memberof flyteidl.service.TaskCreateResponse * @static - * @param {flyteidl.service.ICreateDownloadLinkRequest=} [properties] Properties to set - * @returns {flyteidl.service.CreateDownloadLinkRequest} CreateDownloadLinkRequest instance + * @param {flyteidl.service.ITaskCreateResponse=} [properties] Properties to set + * @returns {flyteidl.service.TaskCreateResponse} TaskCreateResponse instance */ - CreateDownloadLinkRequest.create = function create(properties) { - return new CreateDownloadLinkRequest(properties); + TaskCreateResponse.create = function create(properties) { + return new TaskCreateResponse(properties); }; /** - * Encodes the specified CreateDownloadLinkRequest message. Does not implicitly {@link flyteidl.service.CreateDownloadLinkRequest.verify|verify} messages. + * Encodes the specified TaskCreateResponse message. Does not implicitly {@link flyteidl.service.TaskCreateResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.service.CreateDownloadLinkRequest + * @memberof flyteidl.service.TaskCreateResponse * @static - * @param {flyteidl.service.ICreateDownloadLinkRequest} message CreateDownloadLinkRequest message or plain object to encode + * @param {flyteidl.service.ITaskCreateResponse} message TaskCreateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateDownloadLinkRequest.encode = function encode(message, writer) { + TaskCreateResponse.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(); + if (message.jobId != null && message.hasOwnProperty("jobId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.jobId); return writer; }; /** - * Decodes a CreateDownloadLinkRequest message from the specified reader or buffer. + * Decodes a TaskCreateResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.CreateDownloadLinkRequest + * @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.CreateDownloadLinkRequest} CreateDownloadLinkRequest + * @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 */ - CreateDownloadLinkRequest.decode = function decode(reader, length) { + 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.CreateDownloadLinkRequest(); + 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.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()); + message.jobId = reader.string(); break; default: reader.skipType(tag & 7); @@ -46295,65 +47586,44 @@ }; /** - * Verifies a CreateDownloadLinkRequest message. + * Verifies a TaskCreateResponse message. * @function verify - * @memberof flyteidl.service.CreateDownloadLinkRequest + * @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 */ - CreateDownloadLinkRequest.verify = function verify(message) { + TaskCreateResponse.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; - } - } + if (message.jobId != null && message.hasOwnProperty("jobId")) + if (!$util.isString(message.jobId)) + return "jobId: string expected"; return null; }; - return CreateDownloadLinkRequest; + return TaskCreateResponse; })(); - service.CreateDownloadLinkResponse = (function() { + service.TaskGetRequest = (function() { /** - * Properties of a CreateDownloadLinkResponse. + * Properties of a TaskGetRequest. * @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 + * @interface ITaskGetRequest + * @property {string|null} [taskType] TaskGetRequest taskType + * @property {string|null} [jobId] TaskGetRequest jobId */ /** - * Constructs a new CreateDownloadLinkResponse. + * Constructs a new TaskGetRequest. * @memberof flyteidl.service - * @classdesc Represents a CreateDownloadLinkResponse. - * @implements ICreateDownloadLinkResponse + * @classdesc Represents a TaskGetRequest. + * @implements ITaskGetRequest * @constructor - * @param {flyteidl.service.ICreateDownloadLinkResponse=} [properties] Properties to set + * @param {flyteidl.service.ITaskGetRequest=} [properties] Properties to set */ - function CreateDownloadLinkResponse(properties) { - this.signedUrl = []; + function TaskGetRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46361,91 +47631,75 @@ } /** - * 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 + * TaskGetRequest taskType. + * @member {string} taskType + * @memberof flyteidl.service.TaskGetRequest * @instance */ - CreateDownloadLinkResponse.prototype.expiresAt = null; + TaskGetRequest.prototype.taskType = ""; /** - * CreateDownloadLinkResponse preSignedUrls. - * @member {flyteidl.service.IPreSignedURLs|null|undefined} preSignedUrls - * @memberof flyteidl.service.CreateDownloadLinkResponse + * TaskGetRequest jobId. + * @member {string} jobId + * @memberof flyteidl.service.TaskGetRequest * @instance */ - CreateDownloadLinkResponse.prototype.preSignedUrls = null; + TaskGetRequest.prototype.jobId = ""; /** - * Creates a new CreateDownloadLinkResponse instance using the specified properties. + * Creates a new TaskGetRequest instance using the specified properties. * @function create - * @memberof flyteidl.service.CreateDownloadLinkResponse + * @memberof flyteidl.service.TaskGetRequest * @static - * @param {flyteidl.service.ICreateDownloadLinkResponse=} [properties] Properties to set - * @returns {flyteidl.service.CreateDownloadLinkResponse} CreateDownloadLinkResponse instance + * @param {flyteidl.service.ITaskGetRequest=} [properties] Properties to set + * @returns {flyteidl.service.TaskGetRequest} TaskGetRequest instance */ - CreateDownloadLinkResponse.create = function create(properties) { - return new CreateDownloadLinkResponse(properties); + TaskGetRequest.create = function create(properties) { + return new TaskGetRequest(properties); }; /** - * Encodes the specified CreateDownloadLinkResponse message. Does not implicitly {@link flyteidl.service.CreateDownloadLinkResponse.verify|verify} messages. + * Encodes the specified TaskGetRequest message. Does not implicitly {@link flyteidl.service.TaskGetRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.service.CreateDownloadLinkResponse + * @memberof flyteidl.service.TaskGetRequest * @static - * @param {flyteidl.service.ICreateDownloadLinkResponse} message CreateDownloadLinkResponse message or plain object to encode + * @param {flyteidl.service.ITaskGetRequest} message TaskGetRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateDownloadLinkResponse.encode = function encode(message, writer) { + TaskGetRequest.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(); + 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 CreateDownloadLinkResponse message from the specified reader or buffer. + * Decodes a TaskGetRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.CreateDownloadLinkResponse + * @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.CreateDownloadLinkResponse} CreateDownloadLinkResponse + * @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 */ - CreateDownloadLinkResponse.decode = function decode(reader, length) { + 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.CreateDownloadLinkResponse(); + 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: - if (!(message.signedUrl && message.signedUrl.length)) - message.signedUrl = []; - message.signedUrl.push(reader.string()); + message.taskType = 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()); + message.jobId = reader.string(); break; default: reader.skipType(tag & 7); @@ -46456,59 +47710,47 @@ }; /** - * Verifies a CreateDownloadLinkResponse message. + * Verifies a TaskGetRequest message. * @function verify - * @memberof flyteidl.service.CreateDownloadLinkResponse + * @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 */ - CreateDownloadLinkResponse.verify = function verify(message) { + TaskGetRequest.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; - } + 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 CreateDownloadLinkResponse; + return TaskGetRequest; })(); - service.PreSignedURLs = (function() { + service.TaskGetResponse = (function() { /** - * Properties of a PreSignedURLs. + * Properties of a TaskGetResponse. * @memberof flyteidl.service - * @interface IPreSignedURLs - * @property {Array.|null} [signedUrl] PreSignedURLs signedUrl - * @property {google.protobuf.ITimestamp|null} [expiresAt] PreSignedURLs expiresAt + * @interface ITaskGetResponse + * @property {flyteidl.service.State|null} [state] TaskGetResponse state + * @property {flyteidl.core.ILiteralMap|null} [outputs] TaskGetResponse outputs */ /** - * Constructs a new PreSignedURLs. - * @memberof flyteidl.service - * @classdesc Represents a PreSignedURLs. - * @implements IPreSignedURLs + * Constructs a new TaskGetResponse. + * @memberof flyteidl.service + * @classdesc Represents a TaskGetResponse. + * @implements ITaskGetResponse * @constructor - * @param {flyteidl.service.IPreSignedURLs=} [properties] Properties to set + * @param {flyteidl.service.ITaskGetResponse=} [properties] Properties to set */ - function PreSignedURLs(properties) { - this.signedUrl = []; + function TaskGetResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46516,78 +47758,75 @@ } /** - * PreSignedURLs signedUrl. - * @member {Array.} signedUrl - * @memberof flyteidl.service.PreSignedURLs + * TaskGetResponse state. + * @member {flyteidl.service.State} state + * @memberof flyteidl.service.TaskGetResponse * @instance */ - PreSignedURLs.prototype.signedUrl = $util.emptyArray; + TaskGetResponse.prototype.state = 0; /** - * PreSignedURLs expiresAt. - * @member {google.protobuf.ITimestamp|null|undefined} expiresAt - * @memberof flyteidl.service.PreSignedURLs + * TaskGetResponse outputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} outputs + * @memberof flyteidl.service.TaskGetResponse * @instance */ - PreSignedURLs.prototype.expiresAt = null; + TaskGetResponse.prototype.outputs = null; /** - * Creates a new PreSignedURLs instance using the specified properties. + * Creates a new TaskGetResponse instance using the specified properties. * @function create - * @memberof flyteidl.service.PreSignedURLs + * @memberof flyteidl.service.TaskGetResponse * @static - * @param {flyteidl.service.IPreSignedURLs=} [properties] Properties to set - * @returns {flyteidl.service.PreSignedURLs} PreSignedURLs instance + * @param {flyteidl.service.ITaskGetResponse=} [properties] Properties to set + * @returns {flyteidl.service.TaskGetResponse} TaskGetResponse instance */ - PreSignedURLs.create = function create(properties) { - return new PreSignedURLs(properties); + TaskGetResponse.create = function create(properties) { + return new TaskGetResponse(properties); }; /** - * Encodes the specified PreSignedURLs message. Does not implicitly {@link flyteidl.service.PreSignedURLs.verify|verify} messages. + * Encodes the specified TaskGetResponse message. Does not implicitly {@link flyteidl.service.TaskGetResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.service.PreSignedURLs + * @memberof flyteidl.service.TaskGetResponse * @static - * @param {flyteidl.service.IPreSignedURLs} message PreSignedURLs message or plain object to encode + * @param {flyteidl.service.ITaskGetResponse} message TaskGetResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PreSignedURLs.encode = function encode(message, writer) { + TaskGetResponse.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.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 PreSignedURLs message from the specified reader or buffer. + * Decodes a TaskGetResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.PreSignedURLs + * @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.PreSignedURLs} PreSignedURLs + * @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 */ - PreSignedURLs.decode = function decode(reader, length) { + 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.PreSignedURLs(); + 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: - if (!(message.signedUrl && message.signedUrl.length)) - message.signedUrl = []; - message.signedUrl.push(reader.string()); + message.state = reader.int32(); break; case 2: - message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.outputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -46598,52 +47837,57 @@ }; /** - * Verifies a PreSignedURLs message. + * Verifies a TaskGetResponse message. * @function verify - * @memberof flyteidl.service.PreSignedURLs + * @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 */ - PreSignedURLs.verify = function verify(message) { + TaskGetResponse.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 (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 "expiresAt." + error; + return "outputs." + error; } return null; }; - return PreSignedURLs; + return TaskGetResponse; })(); - service.GetDataRequest = (function() { + service.TaskDeleteRequest = (function() { /** - * Properties of a GetDataRequest. + * Properties of a TaskDeleteRequest. * @memberof flyteidl.service - * @interface IGetDataRequest - * @property {string|null} [flyteUrl] GetDataRequest flyteUrl + * @interface ITaskDeleteRequest + * @property {string|null} [taskType] TaskDeleteRequest taskType + * @property {string|null} [jobId] TaskDeleteRequest jobId */ /** - * Constructs a new GetDataRequest. + * Constructs a new TaskDeleteRequest. * @memberof flyteidl.service - * @classdesc Represents a GetDataRequest. - * @implements IGetDataRequest + * @classdesc Represents a TaskDeleteRequest. + * @implements ITaskDeleteRequest * @constructor - * @param {flyteidl.service.IGetDataRequest=} [properties] Properties to set + * @param {flyteidl.service.ITaskDeleteRequest=} [properties] Properties to set */ - function GetDataRequest(properties) { + function TaskDeleteRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46651,62 +47895,75 @@ } /** - * GetDataRequest flyteUrl. - * @member {string} flyteUrl - * @memberof flyteidl.service.GetDataRequest + * TaskDeleteRequest taskType. + * @member {string} taskType + * @memberof flyteidl.service.TaskDeleteRequest * @instance */ - GetDataRequest.prototype.flyteUrl = ""; + TaskDeleteRequest.prototype.taskType = ""; /** - * Creates a new GetDataRequest instance using the specified properties. + * 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.GetDataRequest + * @memberof flyteidl.service.TaskDeleteRequest * @static - * @param {flyteidl.service.IGetDataRequest=} [properties] Properties to set - * @returns {flyteidl.service.GetDataRequest} GetDataRequest instance + * @param {flyteidl.service.ITaskDeleteRequest=} [properties] Properties to set + * @returns {flyteidl.service.TaskDeleteRequest} TaskDeleteRequest instance */ - GetDataRequest.create = function create(properties) { - return new GetDataRequest(properties); + TaskDeleteRequest.create = function create(properties) { + return new TaskDeleteRequest(properties); }; /** - * Encodes the specified GetDataRequest message. Does not implicitly {@link flyteidl.service.GetDataRequest.verify|verify} messages. + * Encodes the specified TaskDeleteRequest message. Does not implicitly {@link flyteidl.service.TaskDeleteRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.service.GetDataRequest + * @memberof flyteidl.service.TaskDeleteRequest * @static - * @param {flyteidl.service.IGetDataRequest} message GetDataRequest message or plain object to encode + * @param {flyteidl.service.ITaskDeleteRequest} message TaskDeleteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDataRequest.encode = function encode(message, writer) { + TaskDeleteRequest.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); + 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 GetDataRequest message from the specified reader or buffer. + * Decodes a TaskDeleteRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.GetDataRequest + * @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.GetDataRequest} GetDataRequest + * @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 */ - GetDataRequest.decode = function decode(reader, length) { + 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.GetDataRequest(); + 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.flyteUrl = reader.string(); + message.taskType = reader.string(); + break; + case 2: + message.jobId = reader.string(); break; default: reader.skipType(tag & 7); @@ -46717,149 +47974,96 @@ }; /** - * Verifies a GetDataRequest message. + * Verifies a TaskDeleteRequest message. * @function verify - * @memberof flyteidl.service.GetDataRequest + * @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 */ - GetDataRequest.verify = function verify(message) { + TaskDeleteRequest.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"; + 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 GetDataRequest; + return TaskDeleteRequest; })(); - service.GetDataResponse = (function() { + service.TaskDeleteResponse = (function() { /** - * Properties of a GetDataResponse. + * Properties of a TaskDeleteResponse. * @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 + * @interface ITaskDeleteResponse */ /** - * Constructs a new GetDataResponse. + * Constructs a new TaskDeleteResponse. * @memberof flyteidl.service - * @classdesc Represents a GetDataResponse. - * @implements IGetDataResponse + * @classdesc Represents a TaskDeleteResponse. + * @implements ITaskDeleteResponse * @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) - }); + * @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 GetDataResponse instance using the specified properties. + * Creates a new TaskDeleteResponse instance using the specified properties. * @function create - * @memberof flyteidl.service.GetDataResponse + * @memberof flyteidl.service.TaskDeleteResponse * @static - * @param {flyteidl.service.IGetDataResponse=} [properties] Properties to set - * @returns {flyteidl.service.GetDataResponse} GetDataResponse instance + * @param {flyteidl.service.ITaskDeleteResponse=} [properties] Properties to set + * @returns {flyteidl.service.TaskDeleteResponse} TaskDeleteResponse instance */ - GetDataResponse.create = function create(properties) { - return new GetDataResponse(properties); + TaskDeleteResponse.create = function create(properties) { + return new TaskDeleteResponse(properties); }; /** - * Encodes the specified GetDataResponse message. Does not implicitly {@link flyteidl.service.GetDataResponse.verify|verify} messages. + * Encodes the specified TaskDeleteResponse message. Does not implicitly {@link flyteidl.service.TaskDeleteResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.service.GetDataResponse + * @memberof flyteidl.service.TaskDeleteResponse * @static - * @param {flyteidl.service.IGetDataResponse} message GetDataResponse message or plain object to encode + * @param {flyteidl.service.ITaskDeleteResponse} message TaskDeleteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDataResponse.encode = function encode(message, writer) { + TaskDeleteResponse.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. + * Decodes a TaskDeleteResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.GetDataResponse + * @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.GetDataResponse} GetDataResponse + * @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 */ - GetDataResponse.decode = function decode(reader, length) { + 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.GetDataResponse(); + 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) { - 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; @@ -46869,216 +48073,20 @@ }; /** - * Verifies a GetDataResponse message. + * Verifies a TaskDeleteResponse message. * @function verify - * @memberof flyteidl.service.GetDataResponse + * @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 */ - GetDataResponse.verify = function verify(message) { + TaskDeleteResponse.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; + return TaskDeleteResponse; })(); service.UserInfoRequest = (function() { 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 00000000000..9f4ce06bc69 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py @@ -0,0 +1,44 @@ +# -*- 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 interface_pb2 as flyteidl_dot_core_dot_interface__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\x1d\x66lyteidl/core/interface.proto\"\xa4\x01\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\"9\n\x12\x43reateTaskResponse\x12#\n\rresource_meta\x18\x01 \x01(\x0cR\x0cresourceMeta\"R\n\x0eGetTaskRequest\x12\x1b\n\ttask_type\x18\x01 \x01(\tR\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\"l\n\x08Resource\x12+\n\x05state\x18\x01 \x01(\x0e\x32\x15.flyteidl.admin.StateR\x05state\x12\x33\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x07outputs\"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*^\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\xb0\x01\n\x12\x63om.flyteidl.adminB\nAgentProtoP\x01Z5github.com/flyteorg/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\001Z5github.com/flyteorg/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['_STATE']._serialized_start=736 + _globals['_STATE']._serialized_end=830 + _globals['_CREATETASKREQUEST']._serialized_start=135 + _globals['_CREATETASKREQUEST']._serialized_end=299 + _globals['_CREATETASKRESPONSE']._serialized_start=301 + _globals['_CREATETASKRESPONSE']._serialized_end=358 + _globals['_GETTASKREQUEST']._serialized_start=360 + _globals['_GETTASKREQUEST']._serialized_end=442 + _globals['_GETTASKRESPONSE']._serialized_start=444 + _globals['_GETTASKRESPONSE']._serialized_end=515 + _globals['_RESOURCE']._serialized_start=517 + _globals['_RESOURCE']._serialized_end=625 + _globals['_DELETETASKREQUEST']._serialized_start=627 + _globals['_DELETETASKREQUEST']._serialized_end=712 + _globals['_DELETETASKRESPONSE']._serialized_start=714 + _globals['_DELETETASKRESPONSE']._serialized_end=734 +# @@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 00000000000..d18fe6f1cbb --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi @@ -0,0 +1,72 @@ +from flyteidl.core import literals_pb2 as _literals_pb2 +from flyteidl.core import tasks_pb2 as _tasks_pb2 +from flyteidl.core import interface_pb2 as _interface_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 CreateTaskRequest(_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 CreateTaskResponse(_message.Message): + __slots__ = ["resource_meta"] + RESOURCE_META_FIELD_NUMBER: _ClassVar[int] + resource_meta: bytes + def __init__(self, resource_meta: _Optional[bytes] = ...) -> 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 + resource_meta: bytes + def __init__(self, task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ...) -> 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"] + 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 DeleteTaskRequest(_message.Message): + __slots__ = ["task_type", "resource_meta"] + TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + RESOURCE_META_FIELD_NUMBER: _ClassVar[int] + task_type: str + resource_meta: bytes + def __init__(self, task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ...) -> None: ... + +class DeleteTaskResponse(_message.Message): + __slots__ = [] + def __init__(self) -> 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 00000000000..2daafffebfc --- /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/service/agent_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py new file mode 100644 index 00000000000..f4510ca2f2c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/service/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.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\x1a\x66lyteidl/admin/agent.proto2\x8f\x02\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\x42\xbc\x01\n\x14\x63om.flyteidl.serviceB\nAgentProtoP\x01Z7github.com/flyteorg/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.agent_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.serviceB\nAgentProtoP\001Z7github.com/flyteorg/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' + _globals['_ASYNCAGENTSERVICE']._serialized_start=79 + _globals['_ASYNCAGENTSERVICE']._serialized_end=350 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.pyi new file mode 100644 index 00000000000..8c85e57d2d0 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.pyi @@ -0,0 +1,5 @@ +from flyteidl.admin import agent_pb2 as _agent_pb2 +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/agent_service_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2_grpc.py similarity index 59% rename from flyteidl/gen/pb_python/flyteidl/service/agent_service_pb2_grpc.py rename to flyteidl/gen/pb_python/flyteidl/service/agent_pb2_grpc.py index 5d5dd8351bd..3ef2af39c42 100644 --- a/flyteidl/gen/pb_python/flyteidl/service/agent_service_pb2_grpc.py +++ b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2_grpc.py @@ -2,10 +2,10 @@ """Client and server classes corresponding to protobuf-defined services.""" import grpc -from flyteidl.service import agent_service_pb2 as flyteidl_dot_service_dot_agent__service__pb2 +from flyteidl.admin import agent_pb2 as flyteidl_dot_admin_dot_agent__pb2 -class AgentServiceStub(object): +class AsyncAgentServiceStub(object): """AgentService defines an RPC Service that allows propeller to send the request to the agent server. """ @@ -16,23 +16,23 @@ def __init__(self, channel): channel: A grpc.Channel. """ self.CreateTask = channel.unary_unary( - '/flyteidl.service.AgentService/CreateTask', - request_serializer=flyteidl_dot_service_dot_agent__service__pb2.TaskCreateRequest.SerializeToString, - response_deserializer=flyteidl_dot_service_dot_agent__service__pb2.TaskCreateResponse.FromString, + '/flyteidl.service.AsyncAgentService/CreateTask', + request_serializer=flyteidl_dot_admin_dot_agent__pb2.CreateTaskRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_agent__pb2.CreateTaskResponse.FromString, ) self.GetTask = channel.unary_unary( - '/flyteidl.service.AgentService/GetTask', - request_serializer=flyteidl_dot_service_dot_agent__service__pb2.TaskGetRequest.SerializeToString, - response_deserializer=flyteidl_dot_service_dot_agent__service__pb2.TaskGetResponse.FromString, + '/flyteidl.service.AsyncAgentService/GetTask', + request_serializer=flyteidl_dot_admin_dot_agent__pb2.GetTaskRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_agent__pb2.GetTaskResponse.FromString, ) self.DeleteTask = channel.unary_unary( - '/flyteidl.service.AgentService/DeleteTask', - request_serializer=flyteidl_dot_service_dot_agent__service__pb2.TaskDeleteRequest.SerializeToString, - response_deserializer=flyteidl_dot_service_dot_agent__service__pb2.TaskDeleteResponse.FromString, + '/flyteidl.service.AsyncAgentService/DeleteTask', + request_serializer=flyteidl_dot_admin_dot_agent__pb2.DeleteTaskRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_agent__pb2.DeleteTaskResponse.FromString, ) -class AgentServiceServicer(object): +class AsyncAgentServiceServicer(object): """AgentService defines an RPC Service that allows propeller to send the request to the agent server. """ @@ -58,31 +58,31 @@ def DeleteTask(self, request, context): raise NotImplementedError('Method not implemented!') -def add_AgentServiceServicer_to_server(servicer, server): +def add_AsyncAgentServiceServicer_to_server(servicer, server): rpc_method_handlers = { 'CreateTask': grpc.unary_unary_rpc_method_handler( servicer.CreateTask, - request_deserializer=flyteidl_dot_service_dot_agent__service__pb2.TaskCreateRequest.FromString, - response_serializer=flyteidl_dot_service_dot_agent__service__pb2.TaskCreateResponse.SerializeToString, + request_deserializer=flyteidl_dot_admin_dot_agent__pb2.CreateTaskRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_agent__pb2.CreateTaskResponse.SerializeToString, ), 'GetTask': grpc.unary_unary_rpc_method_handler( servicer.GetTask, - request_deserializer=flyteidl_dot_service_dot_agent__service__pb2.TaskGetRequest.FromString, - response_serializer=flyteidl_dot_service_dot_agent__service__pb2.TaskGetResponse.SerializeToString, + request_deserializer=flyteidl_dot_admin_dot_agent__pb2.GetTaskRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_agent__pb2.GetTaskResponse.SerializeToString, ), 'DeleteTask': grpc.unary_unary_rpc_method_handler( servicer.DeleteTask, - request_deserializer=flyteidl_dot_service_dot_agent__service__pb2.TaskDeleteRequest.FromString, - response_serializer=flyteidl_dot_service_dot_agent__service__pb2.TaskDeleteResponse.SerializeToString, + request_deserializer=flyteidl_dot_admin_dot_agent__pb2.DeleteTaskRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_agent__pb2.DeleteTaskResponse.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( - 'flyteidl.service.AgentService', rpc_method_handlers) + 'flyteidl.service.AsyncAgentService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) # This class is part of an EXPERIMENTAL API. -class AgentService(object): +class AsyncAgentService(object): """AgentService defines an RPC Service that allows propeller to send the request to the agent server. """ @@ -97,9 +97,9 @@ def CreateTask(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AgentService/CreateTask', - flyteidl_dot_service_dot_agent__service__pb2.TaskCreateRequest.SerializeToString, - flyteidl_dot_service_dot_agent__service__pb2.TaskCreateResponse.FromString, + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AsyncAgentService/CreateTask', + flyteidl_dot_admin_dot_agent__pb2.CreateTaskRequest.SerializeToString, + flyteidl_dot_admin_dot_agent__pb2.CreateTaskResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @@ -114,9 +114,9 @@ def GetTask(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AgentService/GetTask', - flyteidl_dot_service_dot_agent__service__pb2.TaskGetRequest.SerializeToString, - flyteidl_dot_service_dot_agent__service__pb2.TaskGetResponse.FromString, + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AsyncAgentService/GetTask', + flyteidl_dot_admin_dot_agent__pb2.GetTaskRequest.SerializeToString, + flyteidl_dot_admin_dot_agent__pb2.GetTaskResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @@ -131,8 +131,8 @@ def DeleteTask(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AgentService/DeleteTask', - flyteidl_dot_service_dot_agent__service__pb2.TaskDeleteRequest.SerializeToString, - flyteidl_dot_service_dot_agent__service__pb2.TaskDeleteResponse.FromString, + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AsyncAgentService/DeleteTask', + flyteidl_dot_admin_dot_agent__pb2.DeleteTaskRequest.SerializeToString, + flyteidl_dot_admin_dot_agent__pb2.DeleteTaskResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_python/flyteidl/service/agent_service_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/agent_service_pb2.py deleted file mode 100644 index 0e342324936..00000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/agent_service_pb2.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/service/agent_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 -from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$flyteidl/service/agent_service.proto\x12\x10\x66lyteidl.service\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1d\x66lyteidl/core/interface.proto\"\xa4\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\"+\n\x12TaskCreateResponse\x12\x15\n\x06job_id\x18\x01 \x01(\tR\x05jobId\"D\n\x0eTaskGetRequest\x12\x1b\n\ttask_type\x18\x01 \x01(\tR\x08taskType\x12\x15\n\x06job_id\x18\x02 \x01(\tR\x05jobId\"u\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\"G\n\x11TaskDeleteRequest\x12\x1b\n\ttask_type\x18\x01 \x01(\tR\x08taskType\x12\x15\n\x06job_id\x18\x02 \x01(\tR\x05jobId\"\x14\n\x12TaskDeleteResponse*^\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\x32\x96\x02\n\x0c\x41gentService\x12Y\n\nCreateTask\x12#.flyteidl.service.TaskCreateRequest\x1a$.flyteidl.service.TaskCreateResponse\"\x00\x12P\n\x07GetTask\x12 .flyteidl.service.TaskGetRequest\x1a!.flyteidl.service.TaskGetResponse\"\x00\x12Y\n\nDeleteTask\x12#.flyteidl.service.TaskDeleteRequest\x1a$.flyteidl.service.TaskDeleteResponse\"\x00\x42\xc3\x01\n\x14\x63om.flyteidl.serviceB\x11\x41gentServiceProtoP\x01Z7github.com/flyteorg/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.agent_service_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.serviceB\021AgentServiceProtoP\001Z7github.com/flyteorg/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' - _globals['_STATE']._serialized_start=642 - _globals['_STATE']._serialized_end=736 - _globals['_TASKCREATEREQUEST']._serialized_start=147 - _globals['_TASKCREATEREQUEST']._serialized_end=311 - _globals['_TASKCREATERESPONSE']._serialized_start=313 - _globals['_TASKCREATERESPONSE']._serialized_end=356 - _globals['_TASKGETREQUEST']._serialized_start=358 - _globals['_TASKGETREQUEST']._serialized_end=426 - _globals['_TASKGETRESPONSE']._serialized_start=428 - _globals['_TASKGETRESPONSE']._serialized_end=545 - _globals['_TASKDELETEREQUEST']._serialized_start=547 - _globals['_TASKDELETEREQUEST']._serialized_end=618 - _globals['_TASKDELETERESPONSE']._serialized_start=620 - _globals['_TASKDELETERESPONSE']._serialized_end=640 - _globals['_AGENTSERVICE']._serialized_start=739 - _globals['_AGENTSERVICE']._serialized_end=1017 -# @@protoc_insertion_point(module_scope) 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 00000000000..a6558228d50 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.py @@ -0,0 +1,64 @@ +# -*- 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 +from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__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\x1a\x1d\x66lyteidl/core/interface.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\xcc\x01\n\x14\x63om.flyteidl.serviceB\x1a\x45xternalPluginServiceProtoP\x01Z7github.com/flyteorg/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\001Z7github.com/flyteorg/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=676 + _globals['_STATE']._serialized_end=774 + _globals['_TASKCREATEREQUEST']._serialized_start=157 + _globals['_TASKCREATEREQUEST']._serialized_end=325 + _globals['_TASKCREATERESPONSE']._serialized_start=327 + _globals['_TASKCREATERESPONSE']._serialized_end=374 + _globals['_TASKGETREQUEST']._serialized_start=376 + _globals['_TASKGETREQUEST']._serialized_end=448 + _globals['_TASKGETRESPONSE']._serialized_start=450 + _globals['_TASKGETRESPONSE']._serialized_end=571 + _globals['_TASKDELETEREQUEST']._serialized_start=573 + _globals['_TASKDELETEREQUEST']._serialized_end=648 + _globals['_TASKDELETERESPONSE']._serialized_start=650 + _globals['_TASKDELETERESPONSE']._serialized_end=674 + _globals['_EXTERNALPLUGINSERVICE']._serialized_start=777 + _globals['_EXTERNALPLUGINSERVICE']._serialized_end=1073 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/service/agent_service_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.pyi similarity index 100% rename from flyteidl/gen/pb_python/flyteidl/service/agent_service_pb2.pyi rename to flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.pyi 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 00000000000..6607d367103 --- /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_rust/flyteidl.admin.rs b/flyteidl/gen/pb_rust/flyteidl.admin.rs index 18325970f8d..ac4129ca10d 100644 --- a/flyteidl/gen/pb_rust/flyteidl.admin.rs +++ b/flyteidl/gen/pb_rust/flyteidl.admin.rs @@ -1,4 +1,110 @@ // @generated +/// 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, +} +/// Represents a create response structure. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateTaskResponse { + /// Metadata 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, +} +/// 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. + #[prost(string, tag="1")] + 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, +} +/// 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 { + /// 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. 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 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. + #[prost(string, tag="1")] + 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, +} +/// Response to delete a task. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DeleteTaskResponse { +} +/// 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)] diff --git a/flyteidl/gen/pb_rust/flyteidl.core.rs b/flyteidl/gen/pb_rust/flyteidl.core.rs index 12fdf649876..b232b63f2d2 100644 --- a/flyteidl/gen/pb_rust/flyteidl.core.rs +++ b/flyteidl/gen/pb_rust/flyteidl.core.rs @@ -1,808 +1,373 @@ // @generated -/// Indicates various phases of Workflow Execution +/// 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 WorkflowExecution { +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 `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, +/// 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, } - 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", - } + /// 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, } - /// 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, + 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, + } } } } } -/// 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 { +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 `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, - } - } +/// 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, } } -/// 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. +/// Defines type behavior for blob objects #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskExecution { +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 `TaskExecution`. -pub mod task_execution { +/// 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 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, + pub enum BlobDimensionality { + Single = 0, + Multipart = 1, } - impl Phase { + 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 { - 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", + 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 { - "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), + "SINGLE" => Some(Self::Single), + "MULTIPART" => Some(Self::Multipart), _ => None, } } } } -/// Represents the error message from the execution. +/// 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 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, - } - } - } +pub struct EnumType { + /// Predefined set of enum values. + #[prost(string, repeated, tag="1")] + pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } -/// 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 +/// 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 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>, +pub struct UnionType { + /// Predefined set of variants in union. + #[prost(message, repeated, tag="1")] + pub variants: ::prost::alloc::vec::Vec, } -/// 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, - } - } - } +/// 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, } -/// Represents customized execution run-time attributes. +/// 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 QualityOfServiceSpec { - /// Indicates how much queueing delay an execution can tolerate. +pub struct TypeAnnotation { + /// A arbitrary JSON payload to describe a type. #[prost(message, optional, tag="1")] - pub queueing_budget: ::core::option::Option<::prost_types::Duration>, + pub annotations: ::core::option::Option<::prost_types::Struct>, } -/// Indicates the priority of an execution. +/// Defines a strong type to allow type checking between interfaces. #[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, +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 `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, - } - } - } +/// 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 Designation { - #[prost(enumeration="Tier", tag="1")] - Tier(i32), + 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")] - Spec(super::QualityOfServiceSpec), + 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), } } -/// 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, -} -/// Encapsulation of fields that uniquely identifies a Flyte workflow execution +/// 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 WorkflowExecutionIdentifier { - /// Name of the project the resource belongs to. +pub struct OutputReference { + /// Node id must exist at the graph layer. #[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. + pub node_id: ::prost::alloc::string::String, + /// Variable name must refer to an output variable for the node. #[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, + pub var: ::prost::alloc::string::String, } -/// Encapsulation of fields that identify a Flyte node execution entity. +/// Represents an error thrown from a node. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeExecutionIdentifier { +pub struct Error { + /// The node id that threw the error. #[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, + pub failed_node_id: ::prost::alloc::string::String, + /// Error message thrown. + #[prost(string, tag="2")] + pub message: ::prost::alloc::string::String, } -/// 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. +/// Define a set of simple types. #[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, +pub enum SimpleType { + None = 0, + Integer = 1, + Float = 2, + String = 3, + Boolean = 4, + Datetime = 5, + Duration = 6, + Binary = 7, + Error = 8, + Struct = 9, } -impl ResourceType { +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 { - ResourceType::Unspecified => "UNSPECIFIED", - ResourceType::Task => "TASK", - ResourceType::Workflow => "WORKFLOW", - ResourceType::LaunchPlan => "LAUNCH_PLAN", - ResourceType::Dataset => "DATASET", + 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 { - "UNSPECIFIED" => Some(Self::Unspecified), - "TASK" => Some(Self::Task), - "WORKFLOW" => Some(Self::Workflow), - "LAUNCH_PLAN" => Some(Self::LaunchPlan), - "DATASET" => Some(Self::Dataset), + "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, } } } -/// Defines schema columns and types to strongly type-validate schemas interoperability. +/// Primitive Types #[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, +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 `SchemaType`. -pub mod schema_type { +/// 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::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, - } - } - } +#[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 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, +pub struct Void { } -/// Nested message and enum types in `StructuredDatasetType`. -pub mod structured_dataset_type { - #[allow(clippy::derive_partial_eq_without_eq)] +/// 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 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, - } +pub struct Blob { + #[prost(message, optional, tag="1")] + pub metadata: ::core::option::Option, + #[prost(string, tag="3")] + pub uri: ::prost::alloc::string::String, } -/// 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, - } - } - } +pub struct BlobMetadata { + #[prost(message, optional, tag="1")] + pub r#type: ::core::option::Option, } -/// 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. +/// 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 EnumType { - /// Predefined set of enum values. - #[prost(string, repeated, tag="1")] - pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +pub struct Binary { + #[prost(bytes="vec", tag="1")] + pub value: ::prost::alloc::vec::Vec, + #[prost(string, tag="2")] + pub tag: ::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, -} -/// 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, -} -/// 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. +/// 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 { @@ -945,993 +510,1428 @@ pub struct BindingData { #[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 { +/// 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, +} +/// 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, +} +/// 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, + } + } +} +/// 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, +} +/// 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")] + 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), + } +} +/// 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, + } + } + } +} +/// 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, + // 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, + /// 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 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), + pub enum Target { + #[prost(message, tag="6")] + Container(super::Container), + #[prost(message, tag="17")] + K8sPod(super::K8sPod), + #[prost(message, tag="18")] + Sql(super::Sql), } } -/// An input/output binding of a variable to either static value or a node output. +// ----------------- First class Plugins + +/// Defines port properties for a container. #[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, +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, } -/// A generic key value pair. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] -pub struct KeyValuePair { - /// required. +pub struct Container { + /// Container image url. Eg: docker/redis:latest #[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, -} -/// 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, + 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 `ComparisonExpression`. -pub mod comparison_expression { - /// Binary Operator for each expression +/// 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 Operator { - Eq = 0, - Neq = 1, - /// Greater Than - Gt = 2, - Gte = 3, - /// Less Than - Lt = 4, - Lte = 5, + pub enum Architecture { + Unknown = 0, + Amd64 = 1, + Arm64 = 2, + ArmV6 = 3, + ArmV7 = 4, } - impl Operator { + 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 { - Operator::Eq => "EQ", - Operator::Neq => "NEQ", - Operator::Gt => "GT", - Operator::Gte => "GTE", - Operator::Lt => "LT", - Operator::Lte => "LTE", + 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 { - "EQ" => Some(Self::Eq), - "NEQ" => Some(Self::Neq), - "GT" => Some(Self::Gt), - "GTE" => Some(Self::Gte), - "LT" => Some(Self::Lt), - "LTE" => Some(Self::Lte), + "UNKNOWN" => Some(Self::Unknown), + "AMD64" => Some(Self::Amd64), + "ARM64" => Some(Self::Arm64), + "ARM_V6" => Some(Self::ArmV6), + "ARM_V7" => Some(Self::ArmV7), _ => None, } } } } -/// Defines an operand to a comparison expression. +/// 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 Operand { - #[prost(oneof="operand::Val", tags="1, 2")] - pub val: ::core::option::Option, +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 `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), +/// 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, } -} -/// 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), + 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, + } + } } -} -/// 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 + /// Mode to use for uploading #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] - pub enum LogicalOperator { - /// Conjunction - And = 0, - Or = 1, + 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 LogicalOperator { + 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 { - LogicalOperator::And => "AND", - LogicalOperator::Or => "OR", + 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 { - "AND" => Some(Self::And), - "OR" => Some(Self::Or), + "UPLOAD_ON_EXIT" => Some(Self::UploadOnExit), + "UPLOAD_EAGER" => Some(Self::UploadEager), + "DO_NOT_UPLOAD" => Some(Self::DoNotUpload), _ => None, } } } } -/// 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, -} -/// 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")] - 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), - } -} -/// 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. +/// 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 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 +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 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 + 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 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, + 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 `Secret`. -pub mod secret { +/// 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 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, + 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 MountType { + 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 { - MountType::Any => "ANY", - MountType::EnvVar => "ENV_VAR", - MountType::File => "FILE", + 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 { - "ANY" => Some(Self::Any), - "ENV_VAR" => Some(Self::EnvVar), - "FILE" => Some(Self::File), + "JSON" => Some(Self::Json), + "YAML" => Some(Self::Yaml), + "PROTO" => Some(Self::Proto), _ => None, } } } } -/// OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task. +/// 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 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 +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 client_secret: ::core::option::Option, + 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, } -/// 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. +/// 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 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, +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>, } -/// 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. +/// 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 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, +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 `OAuth2TokenRequest`. -pub mod o_auth2_token_request { - /// Type of the token requested. +/// 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 Type { - /// CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials. - ClientCredentials = 0, + pub enum Dialect { + Undefined = 0, + Ansi = 1, + Hive = 2, + Other = 3, } - impl Type { + 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 { - Type::ClientCredentials => "CLIENT_CREDENTIALS", + 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 { - "CLIENT_CREDENTIALS" => Some(Self::ClientCredentials), + "UNDEFINED" => Some(Self::Undefined), + "ANSI" => Some(Self::Ansi), + "HIVE" => Some(Self::Hive), + "OTHER" => Some(Self::Other), _ => 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. +/// Indicates various phases of Workflow Execution #[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, +pub struct WorkflowExecution { } -/// 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. +/// 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 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, + pub enum Phase { + Undefined = 0, + Queued = 1, + Running = 2, + Succeeding = 3, + Succeeded = 4, + Failing = 5, + Failed = 6, + Aborted = 7, + TimedOut = 8, + Aborting = 9, } - impl ResourceName { + 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 { - ResourceName::Unknown => "UNKNOWN", - ResourceName::Cpu => "CPU", - ResourceName::Gpu => "GPU", - ResourceName::Memory => "MEMORY", - ResourceName::Storage => "STORAGE", - ResourceName::EphemeralStorage => "EPHEMERAL_STORAGE", + 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 { - "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), + "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, } } } } -/// Runtime information. This is loosely defined to allow for extensibility. +/// 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 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, +pub struct NodeExecution { } -/// Nested message and enum types in `RuntimeMetadata`. -pub mod runtime_metadata { +/// 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 RuntimeType { - Other = 0, - FlyteSdk = 1, + 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 RuntimeType { + 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 { - 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, - // 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), + 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, + } + } } } -/// A Task structure that uniquely identifies a task in the system -/// Tasks are registered as a first step in the system. +/// 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 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, - /// 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, +pub struct TaskExecution { } -/// 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), +/// 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, + } + } } } -// ----------------- 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, -} +/// Represents the error message from the execution. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] -pub struct Container { - /// Container image url. Eg: docker/redis:latest +pub struct ExecutionError { + /// Error code indicates a grouping of a type of error. + /// More Info: #[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, + 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 `Container`. -pub mod container { - /// Architecture-type the container image supports. +/// 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 Architecture { + pub enum ErrorKind { Unknown = 0, - Amd64 = 1, - Arm64 = 2, - ArmV6 = 3, - ArmV7 = 4, + User = 1, + System = 2, } - impl Architecture { + 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 { - Architecture::Unknown => "UNKNOWN", - Architecture::Amd64 => "AMD64", - Architecture::Arm64 => "ARM64", - Architecture::ArmV6 => "ARM_V6", - Architecture::ArmV7 => "ARM_V7", + 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), - "AMD64" => Some(Self::Amd64), - "ARM64" => Some(Self::Arm64), - "ARM_V6" => Some(Self::ArmV6), - "ARM_V7" => Some(Self::ArmV7), + "USER" => Some(Self::User), + "SYSTEM" => Some(Self::System), _ => None, } } } } -/// Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets) +/// 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 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, +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 `IOStrategy`. -pub mod io_strategy { - /// Mode to use for downloading +/// 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 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, + pub enum MessageFormat { + Unknown = 0, + Csv = 1, + Json = 2, } - impl DownloadMode { + 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 { - DownloadMode::DownloadEager => "DOWNLOAD_EAGER", - DownloadMode::DownloadStream => "DOWNLOAD_STREAM", - DownloadMode::DoNotDownload => "DO_NOT_DOWNLOAD", + 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 { - "DOWNLOAD_EAGER" => Some(Self::DownloadEager), - "DOWNLOAD_STREAM" => Some(Self::DownloadStream), - "DO_NOT_DOWNLOAD" => Some(Self::DoNotDownload), + "UNKNOWN" => Some(Self::Unknown), + "CSV" => Some(Self::Csv), + "JSON" => Some(Self::Json), _ => None, } } } - /// Mode to use for uploading +} +/// 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 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, + pub enum Tier { + /// Default: no quality of service specified. + Undefined = 0, + High = 1, + Medium = 2, + Low = 3, } - impl UploadMode { + 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 { - UploadMode::UploadOnExit => "UPLOAD_ON_EXIT", - UploadMode::UploadEager => "UPLOAD_EAGER", - UploadMode::DoNotUpload => "DO_NOT_UPLOAD", + 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 { - "UPLOAD_ON_EXIT" => Some(Self::UploadOnExit), - "UPLOAD_EAGER" => Some(Self::UploadEager), - "DO_NOT_UPLOAD" => Some(Self::DoNotUpload), + "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), + } } -/// 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. +/// 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 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, +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 `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) +/// 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 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, + pub enum Operator { + Eq = 0, + Neq = 1, + /// Greater Than + Gt = 2, + Gte = 3, + /// Less Than + Lt = 4, + Lte = 5, } - impl LiteralMapFormat { + 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 { - LiteralMapFormat::Json => "JSON", - LiteralMapFormat::Yaml => "YAML", - LiteralMapFormat::Proto => "PROTO", + 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 { - "JSON" => Some(Self::Json), - "YAML" => Some(Self::Yaml), - "PROTO" => Some(Self::Proto), + "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 a pod spec and additional pod metadata that is created when a task is executed. +/// Defines an operand to a comparison expression. #[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, +pub struct Operand { + #[prost(oneof="operand::Val", tags="1, 2")] + pub val: ::core::option::Option, } -/// Metadata for building a kubernetes object when a task is executed. +/// 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), + } +} +/// 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 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>, +pub struct BooleanExpression { + #[prost(oneof="boolean_expression::Expr", tags="1, 2")] + pub expr: ::core::option::Option, } -/// Sql represents a generic sql workload with a statement and dialect. +/// 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 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, +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 `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. +/// 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 Dialect { - Undefined = 0, - Ansi = 1, - Hive = 2, - Other = 3, + pub enum LogicalOperator { + /// Conjunction + And = 0, + Or = 1, } - impl Dialect { + 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 { - Dialect::Undefined => "UNDEFINED", - Dialect::Ansi => "ANSI", - Dialect::Hive => "HIVE", - Dialect::Other => "OTHER", + 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 { - "UNDEFINED" => Some(Self::Undefined), - "ANSI" => Some(Self::Ansi), - "HIVE" => Some(Self::Hive), - "OTHER" => Some(Self::Other), + "AND" => Some(Self::And), + "OR" => Some(Self::Or), _ => None, } } diff --git a/flyteidl/gen/pb_rust/flyteidl.service.rs b/flyteidl/gen/pb_rust/flyteidl.service.rs index 3da35ee1e9e..d7b7ee83a5a 100644 --- a/flyteidl/gen/pb_rust/flyteidl.service.rs +++ b/flyteidl/gen/pb_rust/flyteidl.service.rs @@ -1,103 +1,4 @@ // @generated -/// 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 flyte agent 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. 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 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 OAuth2MetadataRequest { @@ -353,6 +254,105 @@ impl ArtifactType { } } } +/// 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 { diff --git a/flyteidl/protos/flyteidl/admin/agent.proto b/flyteidl/protos/flyteidl/admin/agent.proto new file mode 100644 index 00000000000..312ac57fcb1 --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/agent.proto @@ -0,0 +1,69 @@ +syntax = "proto3"; + +package flyteidl.admin; +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin"; + +import "flyteidl/core/literals.proto"; +import "flyteidl/core/tasks.proto"; +import "flyteidl/core/interface.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; +} + +// 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; + // 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; +} + +// Represents a create response structure. +message CreateTaskResponse { + // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + bytes resource_meta = 1; +} + +// 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; + // 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; +} + +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; +} + +// A message used to delete a task. +message DeleteTaskRequest { + // A predefined yet extensible Task type identifier. + string task_type = 1; + // Metadata about the resource to be pass to the agent. + bytes resource_meta = 2; +} + +// Response to delete a task. +message DeleteTaskResponse { +} diff --git a/flyteidl/protos/flyteidl/service/agent.proto b/flyteidl/protos/flyteidl/service/agent.proto new file mode 100644 index 00000000000..2a1a143705b --- /dev/null +++ b/flyteidl/protos/flyteidl/service/agent.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; +package flyteidl.service; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service"; +import "flyteidl/admin/agent.proto"; + +// AgentService 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){}; + // Get job status. + rpc GetTask (flyteidl.admin.GetTaskRequest) returns (flyteidl.admin.GetTaskResponse){}; + // Delete the task resource. + rpc DeleteTask (flyteidl.admin.DeleteTaskRequest) returns (flyteidl.admin.DeleteTaskResponse){}; +} diff --git a/flyteidl/protos/flyteidl/service/agent_service.proto b/flyteidl/protos/flyteidl/service/external_plugin_service.proto similarity index 75% rename from flyteidl/protos/flyteidl/service/agent_service.proto rename to flyteidl/protos/flyteidl/service/external_plugin_service.proto index 516da92eaf5..18f60a7d93d 100644 --- a/flyteidl/protos/flyteidl/service/agent_service.proto +++ b/flyteidl/protos/flyteidl/service/external_plugin_service.proto @@ -6,18 +6,19 @@ import "flyteidl/core/literals.proto"; import "flyteidl/core/tasks.proto"; import "flyteidl/core/interface.proto"; -// AgentService defines an RPC Service that allows propeller to send the request to the agent server. -service AgentService { - // Send a task create request to the agent server. - rpc CreateTask (TaskCreateRequest) returns (TaskCreateResponse){}; +// ExternalPluginService defines an RPC Service that allows propeller to send the request to the backend plugin server. +service ExternalPluginService { + // Send a task create request to the backend plugin server. + rpc CreateTask (TaskCreateRequest) returns (TaskCreateResponse){option deprecated = true;}; // Get job status. - rpc GetTask (TaskGetRequest) returns (TaskGetResponse){}; + rpc GetTask (TaskGetRequest) returns (TaskGetResponse){option deprecated = true;}; // Delete the task resource. - rpc DeleteTask (TaskDeleteRequest) returns (TaskDeleteResponse){}; + rpc DeleteTask (TaskDeleteRequest) returns (TaskDeleteResponse){option deprecated = true;}; } // 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; @@ -27,6 +28,7 @@ enum State { // Represents a request structure to create task. message TaskCreateRequest { + option deprecated = true; // 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 @@ -39,11 +41,13 @@ message TaskCreateRequest { // Represents a create response structure. message TaskCreateResponse { + option deprecated = true; string job_id = 1; } -// A message used to fetch a job state from flyte agent server. +// A message used to fetch a job state from backend plugin server. message TaskGetRequest { + option deprecated = true; // A predefined yet extensible Task type identifier. string task_type = 1; // The unique id identifying the job. @@ -52,9 +56,10 @@ message TaskGetRequest { // Response to get an individual task state. message TaskGetResponse { + option deprecated = true; // 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 + // 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 core.LiteralMap outputs = 2; @@ -62,6 +67,7 @@ message TaskGetResponse { // A message used to delete a task. message TaskDeleteRequest { + option deprecated = true; // A predefined yet extensible Task type identifier. string task_type = 1; // The unique id identifying the job. @@ -70,5 +76,5 @@ message TaskDeleteRequest { // Response to delete a task. message TaskDeleteResponse { + option deprecated = true; } -