diff --git a/clients/go/admin/config_flags.go b/clients/go/admin/config_flags.go index 53a6a4421..0472413b5 100755 --- a/clients/go/admin/config_flags.go +++ b/clients/go/admin/config_flags.go @@ -76,5 +76,6 @@ func (cfg Config) GetPFlagSet(prefix string) *pflag.FlagSet { cmdFlags.String(fmt.Sprintf("%v%v", prefix, "deviceFlowConfig.pollInterval"), defaultConfig.DeviceFlowConfig.PollInterval.String(), "amount of time the device flow would poll the token endpoint if auth server doesn't return a polling interval. Okta and google IDP do return an interval'") cmdFlags.StringSlice(fmt.Sprintf("%v%v", prefix, "command"), defaultConfig.Command, "Command for external authentication token generation") cmdFlags.String(fmt.Sprintf("%v%v", prefix, "defaultServiceConfig"), defaultConfig.DefaultServiceConfig, "") + cmdFlags.String(fmt.Sprintf("%v%v", prefix, "httpProxyURL"), defaultConfig.HTTPProxyURL.String(), "OPTIONAL: HTTP Proxy to be used for OAuth requests.") return cmdFlags } diff --git a/clients/go/admin/config_flags_test.go b/clients/go/admin/config_flags_test.go index bdcec55f6..1fb1e2a21 100755 --- a/clients/go/admin/config_flags_test.go +++ b/clients/go/admin/config_flags_test.go @@ -463,4 +463,18 @@ func TestConfig_SetFlags(t *testing.T) { } }) }) + t.Run("Test_httpProxyURL", func(t *testing.T) { + + t.Run("Override", func(t *testing.T) { + testValue := defaultConfig.HTTPProxyURL.String() + + cmdFlags.Set("httpProxyURL", testValue) + if vString, err := cmdFlags.GetString("httpProxyURL"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vString), &actual.HTTPProxyURL) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) } diff --git a/clients/go/admin/mocks/AgentServiceClient.go b/clients/go/admin/mocks/AgentServiceClient.go new file mode 100644 index 000000000..82434852d --- /dev/null +++ b/clients/go/admin/mocks/AgentServiceClient.go @@ -0,0 +1,162 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + grpc "google.golang.org/grpc" + + mock "github.com/stretchr/testify/mock" + + service "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service" +) + +// AgentServiceClient is an autogenerated mock type for the AgentServiceClient type +type AgentServiceClient struct { + mock.Mock +} + +type AgentServiceClient_CreateTask struct { + *mock.Call +} + +func (_m AgentServiceClient_CreateTask) Return(_a0 *service.TaskCreateResponse, _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 { + c_call := _m.On("CreateTask", ctx, in, opts) + return &AgentServiceClient_CreateTask{Call: c_call} +} + +func (_m *AgentServiceClient) OnCreateTaskMatch(matchers ...interface{}) *AgentServiceClient_CreateTask { + c_call := _m.On("CreateTask", matchers...) + return &AgentServiceClient_CreateTask{Call: c_call} +} + +// 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) { + _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 *service.TaskCreateResponse + if rf, ok := ret.Get(0).(func(context.Context, *service.TaskCreateRequest, ...grpc.CallOption) *service.TaskCreateResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*service.TaskCreateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *service.TaskCreateRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AgentServiceClient_DeleteTask struct { + *mock.Call +} + +func (_m AgentServiceClient_DeleteTask) Return(_a0 *service.TaskDeleteResponse, _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 { + c_call := _m.On("DeleteTask", ctx, in, opts) + return &AgentServiceClient_DeleteTask{Call: c_call} +} + +func (_m *AgentServiceClient) OnDeleteTaskMatch(matchers ...interface{}) *AgentServiceClient_DeleteTask { + c_call := _m.On("DeleteTask", matchers...) + return &AgentServiceClient_DeleteTask{Call: c_call} +} + +// 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) { + _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 *service.TaskDeleteResponse + if rf, ok := ret.Get(0).(func(context.Context, *service.TaskDeleteRequest, ...grpc.CallOption) *service.TaskDeleteResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*service.TaskDeleteResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *service.TaskDeleteRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AgentServiceClient_GetTask struct { + *mock.Call +} + +func (_m AgentServiceClient_GetTask) Return(_a0 *service.TaskGetResponse, _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 { + c_call := _m.On("GetTask", ctx, in, opts) + return &AgentServiceClient_GetTask{Call: c_call} +} + +func (_m *AgentServiceClient) OnGetTaskMatch(matchers ...interface{}) *AgentServiceClient_GetTask { + c_call := _m.On("GetTask", matchers...) + return &AgentServiceClient_GetTask{Call: c_call} +} + +// 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) { + _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 *service.TaskGetResponse + if rf, ok := ret.Get(0).(func(context.Context, *service.TaskGetRequest, ...grpc.CallOption) *service.TaskGetResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*service.TaskGetResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *service.TaskGetRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/clients/go/admin/mocks/AgentServiceServer.go b/clients/go/admin/mocks/AgentServiceServer.go new file mode 100644 index 000000000..0c593cfe8 --- /dev/null +++ b/clients/go/admin/mocks/AgentServiceServer.go @@ -0,0 +1,138 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + service "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service" + mock "github.com/stretchr/testify/mock" +) + +// AgentServiceServer is an autogenerated mock type for the AgentServiceServer type +type AgentServiceServer struct { + mock.Mock +} + +type AgentServiceServer_CreateTask struct { + *mock.Call +} + +func (_m AgentServiceServer_CreateTask) Return(_a0 *service.TaskCreateResponse, _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 { + c_call := _m.On("CreateTask", _a0, _a1) + return &AgentServiceServer_CreateTask{Call: c_call} +} + +func (_m *AgentServiceServer) OnCreateTaskMatch(matchers ...interface{}) *AgentServiceServer_CreateTask { + c_call := _m.On("CreateTask", matchers...) + return &AgentServiceServer_CreateTask{Call: c_call} +} + +// CreateTask provides a mock function with given fields: _a0, _a1 +func (_m *AgentServiceServer) CreateTask(_a0 context.Context, _a1 *service.TaskCreateRequest) (*service.TaskCreateResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *service.TaskCreateResponse + if rf, ok := ret.Get(0).(func(context.Context, *service.TaskCreateRequest) *service.TaskCreateResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*service.TaskCreateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *service.TaskCreateRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AgentServiceServer_DeleteTask struct { + *mock.Call +} + +func (_m AgentServiceServer_DeleteTask) Return(_a0 *service.TaskDeleteResponse, _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 { + c_call := _m.On("DeleteTask", _a0, _a1) + return &AgentServiceServer_DeleteTask{Call: c_call} +} + +func (_m *AgentServiceServer) OnDeleteTaskMatch(matchers ...interface{}) *AgentServiceServer_DeleteTask { + c_call := _m.On("DeleteTask", matchers...) + return &AgentServiceServer_DeleteTask{Call: c_call} +} + +// DeleteTask provides a mock function with given fields: _a0, _a1 +func (_m *AgentServiceServer) DeleteTask(_a0 context.Context, _a1 *service.TaskDeleteRequest) (*service.TaskDeleteResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *service.TaskDeleteResponse + if rf, ok := ret.Get(0).(func(context.Context, *service.TaskDeleteRequest) *service.TaskDeleteResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*service.TaskDeleteResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *service.TaskDeleteRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AgentServiceServer_GetTask struct { + *mock.Call +} + +func (_m AgentServiceServer_GetTask) Return(_a0 *service.TaskGetResponse, _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 { + c_call := _m.On("GetTask", _a0, _a1) + return &AgentServiceServer_GetTask{Call: c_call} +} + +func (_m *AgentServiceServer) OnGetTaskMatch(matchers ...interface{}) *AgentServiceServer_GetTask { + c_call := _m.On("GetTask", matchers...) + return &AgentServiceServer_GetTask{Call: c_call} +} + +// GetTask provides a mock function with given fields: _a0, _a1 +func (_m *AgentServiceServer) GetTask(_a0 context.Context, _a1 *service.TaskGetRequest) (*service.TaskGetResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *service.TaskGetResponse + if rf, ok := ret.Get(0).(func(context.Context, *service.TaskGetRequest) *service.TaskGetResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*service.TaskGetResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *service.TaskGetRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/gen/pb-cpp/flyteidl/service/agent_service.grpc.pb.cc b/gen/pb-cpp/flyteidl/service/agent_service.grpc.pb.cc new file mode 100644 index 000000000..45705ad3d --- /dev/null +++ b/gen/pb-cpp/flyteidl/service/agent_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/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/gen/pb-cpp/flyteidl/service/external_plugin_service.grpc.pb.h b/gen/pb-cpp/flyteidl/service/agent_service.grpc.pb.h similarity index 98% rename from gen/pb-cpp/flyteidl/service/external_plugin_service.grpc.pb.h rename to gen/pb-cpp/flyteidl/service/agent_service.grpc.pb.h index bd26ab180..939c85ed7 100644 --- a/gen/pb-cpp/flyteidl/service/external_plugin_service.grpc.pb.h +++ b/gen/pb-cpp/flyteidl/service/agent_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/external_plugin_service.proto -#ifndef GRPC_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto__INCLUDED -#define GRPC_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto__INCLUDED +// source: flyteidl/service/agent_service.proto +#ifndef GRPC_flyteidl_2fservice_2fagent_5fservice_2eproto__INCLUDED +#define GRPC_flyteidl_2fservice_2fagent_5fservice_2eproto__INCLUDED -#include "flyteidl/service/external_plugin_service.pb.h" +#include "flyteidl/service/agent_service.pb.h" #include #include @@ -40,16 +40,16 @@ class ServerContext; namespace flyteidl { namespace service { -// ExternalPluginService defines an RPC Service that allows propeller to send the request to the backend plugin server. -class ExternalPluginService final { +// AgentService defines an RPC Service that allows propeller to send the request to the agent server. +class AgentService final { public: static constexpr char const* service_full_name() { - return "flyteidl.service.ExternalPluginService"; + return "flyteidl.service.AgentService"; } class StubInterface { public: virtual ~StubInterface() {} - // Send a task create request to the backend plugin server. + // Send a task create request to the agent 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 ExternalPluginService final { class experimental_async_interface { public: virtual ~experimental_async_interface() {} - // Send a task create request to the backend plugin server. + // Send a task create request to the agent 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 ExternalPluginService final { public: Service(); virtual ~Service(); - // Send a task create request to the backend plugin server. + // Send a task create request to the agent 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 ExternalPluginService final { } // namespace flyteidl -#endif // GRPC_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto__INCLUDED +#endif // GRPC_flyteidl_2fservice_2fagent_5fservice_2eproto__INCLUDED diff --git a/gen/pb-cpp/flyteidl/service/external_plugin_service.pb.cc b/gen/pb-cpp/flyteidl/service/agent_service.pb.cc similarity index 92% rename from gen/pb-cpp/flyteidl/service/external_plugin_service.pb.cc rename to gen/pb-cpp/flyteidl/service/agent_service.pb.cc index e4b6a79c4..ed248cee2 100644 --- a/gen/pb-cpp/flyteidl/service/external_plugin_service.pb.cc +++ b/gen/pb-cpp/flyteidl/service/agent_service.pb.cc @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/service/external_plugin_service.proto +// source: flyteidl/service/agent_service.proto -#include "flyteidl/service/external_plugin_service.pb.h" +#include "flyteidl/service/agent_service.pb.h" #include @@ -46,7 +46,7 @@ class TaskDeleteResponseDefaultTypeInternal { } _TaskDeleteResponse_default_instance_; } // namespace service } // namespace flyteidl -static void InitDefaultsTaskCreateRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { +static void InitDefaultsTaskCreateRequest_flyteidl_2fservice_2fagent_5fservice_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -57,12 +57,12 @@ static void InitDefaultsTaskCreateRequest_flyteidl_2fservice_2fexternal_5fplugin ::flyteidl::service::TaskCreateRequest::InitAsDefaultInstance(); } -::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}, { +::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}, { &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, &scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto.base,}}; -static void InitDefaultsTaskCreateResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { +static void InitDefaultsTaskCreateResponse_flyteidl_2fservice_2fagent_5fservice_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -73,10 +73,10 @@ static void InitDefaultsTaskCreateResponse_flyteidl_2fservice_2fexternal_5fplugi ::flyteidl::service::TaskCreateResponse::InitAsDefaultInstance(); } -::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}, {}}; +::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}, {}}; -static void InitDefaultsTaskGetRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { +static void InitDefaultsTaskGetRequest_flyteidl_2fservice_2fagent_5fservice_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -87,10 +87,10 @@ static void InitDefaultsTaskGetRequest_flyteidl_2fservice_2fexternal_5fplugin_5f ::flyteidl::service::TaskGetRequest::InitAsDefaultInstance(); } -::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}, {}}; +::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}, {}}; -static void InitDefaultsTaskGetResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { +static void InitDefaultsTaskGetResponse_flyteidl_2fservice_2fagent_5fservice_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -101,11 +101,11 @@ static void InitDefaultsTaskGetResponse_flyteidl_2fservice_2fexternal_5fplugin_5 ::flyteidl::service::TaskGetResponse::InitAsDefaultInstance(); } -::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}, { +::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}, { &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base,}}; -static void InitDefaultsTaskDeleteRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { +static void InitDefaultsTaskDeleteRequest_flyteidl_2fservice_2fagent_5fservice_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -116,10 +116,10 @@ static void InitDefaultsTaskDeleteRequest_flyteidl_2fservice_2fexternal_5fplugin ::flyteidl::service::TaskDeleteRequest::InitAsDefaultInstance(); } -::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}, {}}; +::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}, {}}; -static void InitDefaultsTaskDeleteResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { +static void InitDefaultsTaskDeleteResponse_flyteidl_2fservice_2fagent_5fservice_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -130,23 +130,23 @@ static void InitDefaultsTaskDeleteResponse_flyteidl_2fservice_2fexternal_5fplugi ::flyteidl::service::TaskDeleteResponse::InitAsDefaultInstance(); } -::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}, {}}; +::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}, {}}; -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); +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); } -::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; +::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; -const ::google::protobuf::uint32 TableStruct_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const ::google::protobuf::uint32 TableStruct_flyteidl_2fservice_2fagent_5fservice_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskCreateRequest, _internal_metadata_), ~0u, // no _extensions_ @@ -206,63 +206,62 @@ 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_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, +::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, }; -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\"\204\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\"$\n\022TaskCreateResponse\022\016\n\006job_i" - "d\030\001 \001(\t\"3\n\016TaskGetRequest\022\021\n\ttask_type\030\001" - " \001(\t\022\016\n\006job_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.Literal" - "Map\"6\n\021TaskDeleteRequest\022\021\n\ttask_type\030\001 " - "\001(\t\022\016\n\006job_id\030\002 \001(\t\"\024\n\022TaskDeleteRespons" - "e*^\n\005State\022\025\n\021RETRYABLE_FAILURE\020\000\022\025\n\021PER" - "MANENT_FAILURE\020\001\022\013\n\007PENDING\020\002\022\013\n\007RUNNING" - "\020\003\022\r\n\tSUCCEEDED\020\0042\237\002\n\025ExternalPluginServ" - "ice\022Y\n\nCreateTask\022#.flyteidl.service.Tas" - "kCreateRequest\032$.flyteidl.service.TaskCr" - "eateResponse\"\000\022P\n\007GetTask\022 .flyteidl.ser" - "vice.TaskGetRequest\032!.flyteidl.service.T" - "askGetResponse\"\000\022Y\n\nDeleteTask\022#.flyteid" - "l.service.TaskDeleteRequest\032$.flyteidl.s" - "ervice.TaskDeleteResponse\"\000B9Z7github.co" - "m/flyteorg/flyteidl/gen/pb-go/flyteidl/s" - "erviceb\006proto3" +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" ; -::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, 1014, +::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, }; -void AddDescriptors_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { +void AddDescriptors_flyteidl_2fservice_2fagent_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_2fexternal_5fplugin_5fservice_2eproto, deps, 3); + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fservice_2fagent_5fservice_2eproto, deps, 3); } // Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = []() { AddDescriptors_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto(); return true; }(); +static bool dynamic_init_dummy_flyteidl_2fservice_2fagent_5fservice_2eproto = []() { AddDescriptors_flyteidl_2fservice_2fagent_5fservice_2eproto(); return true; }(); namespace flyteidl { namespace service { const ::google::protobuf::EnumDescriptor* State_descriptor() { - ::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]; + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fservice_2fagent_5fservice_2eproto); + return file_level_enum_descriptors_flyteidl_2fservice_2fagent_5fservice_2eproto[0]; } bool State_IsValid(int value) { switch (value) { @@ -346,7 +345,7 @@ TaskCreateRequest::TaskCreateRequest(const TaskCreateRequest& from) void TaskCreateRequest::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_TaskCreateRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); + &scc_info_TaskCreateRequest_flyteidl_2fservice_2fagent_5fservice_2eproto.base); output_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&inputs_, 0, static_cast( reinterpret_cast(&template__) - @@ -368,7 +367,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_2fexternal_5fplugin_5fservice_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_TaskCreateRequest_flyteidl_2fservice_2fagent_5fservice_2eproto.base); return *internal_default_instance(); } @@ -717,8 +716,8 @@ void TaskCreateRequest::InternalSwap(TaskCreateRequest* other) { } ::google::protobuf::Metadata TaskCreateRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fagent_5fservice_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fagent_5fservice_2eproto[kIndexInFileMessages]; } @@ -752,7 +751,7 @@ TaskCreateResponse::TaskCreateResponse(const TaskCreateResponse& from) void TaskCreateResponse::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_TaskCreateResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); + &scc_info_TaskCreateResponse_flyteidl_2fservice_2fagent_5fservice_2eproto.base); job_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -769,7 +768,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_2fexternal_5fplugin_5fservice_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_TaskCreateResponse_flyteidl_2fservice_2fagent_5fservice_2eproto.base); return *internal_default_instance(); } @@ -1014,8 +1013,8 @@ void TaskCreateResponse::InternalSwap(TaskCreateResponse* other) { } ::google::protobuf::Metadata TaskCreateResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fagent_5fservice_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fagent_5fservice_2eproto[kIndexInFileMessages]; } @@ -1054,7 +1053,7 @@ TaskGetRequest::TaskGetRequest(const TaskGetRequest& from) void TaskGetRequest::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_TaskGetRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); + &scc_info_TaskGetRequest_flyteidl_2fservice_2fagent_5fservice_2eproto.base); task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); job_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -1073,7 +1072,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_2fexternal_5fplugin_5fservice_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_TaskGetRequest_flyteidl_2fservice_2fagent_5fservice_2eproto.base); return *internal_default_instance(); } @@ -1384,8 +1383,8 @@ void TaskGetRequest::InternalSwap(TaskGetRequest* other) { } ::google::protobuf::Metadata TaskGetRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fagent_5fservice_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fagent_5fservice_2eproto[kIndexInFileMessages]; } @@ -1435,7 +1434,7 @@ TaskGetResponse::TaskGetResponse(const TaskGetResponse& from) void TaskGetResponse::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_TaskGetResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); + &scc_info_TaskGetResponse_flyteidl_2fservice_2fagent_5fservice_2eproto.base); ::memset(&outputs_, 0, static_cast( reinterpret_cast(&state_) - reinterpret_cast(&outputs_)) + sizeof(state_)); @@ -1454,7 +1453,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_2fexternal_5fplugin_5fservice_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_TaskGetResponse_flyteidl_2fservice_2fagent_5fservice_2eproto.base); return *internal_default_instance(); } @@ -1726,8 +1725,8 @@ void TaskGetResponse::InternalSwap(TaskGetResponse* other) { } ::google::protobuf::Metadata TaskGetResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fagent_5fservice_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fagent_5fservice_2eproto[kIndexInFileMessages]; } @@ -1766,7 +1765,7 @@ TaskDeleteRequest::TaskDeleteRequest(const TaskDeleteRequest& from) void TaskDeleteRequest::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_TaskDeleteRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); + &scc_info_TaskDeleteRequest_flyteidl_2fservice_2fagent_5fservice_2eproto.base); task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); job_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -1785,7 +1784,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_2fexternal_5fplugin_5fservice_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_TaskDeleteRequest_flyteidl_2fservice_2fagent_5fservice_2eproto.base); return *internal_default_instance(); } @@ -2096,8 +2095,8 @@ void TaskDeleteRequest::InternalSwap(TaskDeleteRequest* other) { } ::google::protobuf::Metadata TaskDeleteRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fagent_5fservice_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fagent_5fservice_2eproto[kIndexInFileMessages]; } @@ -2139,7 +2138,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_2fexternal_5fplugin_5fservice_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_TaskDeleteResponse_flyteidl_2fservice_2fagent_5fservice_2eproto.base); return *internal_default_instance(); } @@ -2305,8 +2304,8 @@ void TaskDeleteResponse::InternalSwap(TaskDeleteResponse* other) { } ::google::protobuf::Metadata TaskDeleteResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[kIndexInFileMessages]; + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fagent_5fservice_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fagent_5fservice_2eproto[kIndexInFileMessages]; } diff --git a/gen/pb-cpp/flyteidl/service/external_plugin_service.pb.h b/gen/pb-cpp/flyteidl/service/agent_service.pb.h similarity index 97% rename from gen/pb-cpp/flyteidl/service/external_plugin_service.pb.h rename to gen/pb-cpp/flyteidl/service/agent_service.pb.h index 82d5616c5..e05d33c39 100644 --- a/gen/pb-cpp/flyteidl/service/external_plugin_service.pb.h +++ b/gen/pb-cpp/flyteidl/service/agent_service.pb.h @@ -1,8 +1,8 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/service/external_plugin_service.proto +// source: flyteidl/service/agent_service.proto -#ifndef PROTOBUF_INCLUDED_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto +#ifndef PROTOBUF_INCLUDED_flyteidl_2fservice_2fagent_5fservice_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fservice_2fagent_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_2fexternal_5fplugin_5fservice_2eproto +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fservice_2fagent_5fservice_2eproto // Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto { +struct TableStruct_flyteidl_2fservice_2fagent_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_2fexternal_5fplugin_5fservice_2eproto { static const ::google::protobuf::internal::SerializationTable serialization_table[]; static const ::google::protobuf::uint32 offsets[]; }; -void AddDescriptors_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto(); +void AddDescriptors_flyteidl_2fservice_2fagent_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_2fexternal_5fplugin_5fservice_2eproto; + friend struct ::TableStruct_flyteidl_2fservice_2fagent_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_2fexternal_5fplugin_5fservice_2eproto; + friend struct ::TableStruct_flyteidl_2fservice_2fagent_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_2fexternal_5fplugin_5fservice_2eproto; + friend struct ::TableStruct_flyteidl_2fservice_2fagent_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_2fexternal_5fplugin_5fservice_2eproto; + friend struct ::TableStruct_flyteidl_2fservice_2fagent_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_2fexternal_5fplugin_5fservice_2eproto; + friend struct ::TableStruct_flyteidl_2fservice_2fagent_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_2fexternal_5fplugin_5fservice_2eproto; + friend struct ::TableStruct_flyteidl_2fservice_2fagent_5fservice_2eproto; }; // =================================================================== @@ -1400,4 +1400,4 @@ inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::service::State>() { // @@protoc_insertion_point(global_scope) #include -#endif // PROTOBUF_INCLUDED_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto +#endif // PROTOBUF_INCLUDED_flyteidl_2fservice_2fagent_5fservice_2eproto diff --git a/gen/pb-cpp/flyteidl/service/external_plugin_service.grpc.pb.cc b/gen/pb-cpp/flyteidl/service/external_plugin_service.grpc.pb.cc deleted file mode 100644 index be7a2ec52..000000000 --- a/gen/pb-cpp/flyteidl/service/external_plugin_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/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/gen/pb-go/flyteidl/service/external_plugin_service.pb.go b/gen/pb-go/flyteidl/service/agent_service.pb.go similarity index 66% rename from gen/pb-go/flyteidl/service/external_plugin_service.pb.go rename to gen/pb-go/flyteidl/service/agent_service.pb.go index 5d61ac453..d61d3b925 100644 --- a/gen/pb-go/flyteidl/service/external_plugin_service.pb.go +++ b/gen/pb-go/flyteidl/service/agent_service.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/service/external_plugin_service.proto +// source: flyteidl/service/agent_service.proto package service @@ -57,7 +57,7 @@ func (x State) String() string { } func (State) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_74cbdb08eef5b1d1, []int{0} + return fileDescriptor_ee8a9b6d59cb7a89, []int{0} } // Represents a request structure to create task. @@ -79,7 +79,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_74cbdb08eef5b1d1, []int{0} + return fileDescriptor_ee8a9b6d59cb7a89, []int{0} } func (m *TaskCreateRequest) XXX_Unmarshal(b []byte) error { @@ -133,7 +133,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_74cbdb08eef5b1d1, []int{1} + return fileDescriptor_ee8a9b6d59cb7a89, []int{1} } func (m *TaskCreateResponse) XXX_Unmarshal(b []byte) error { @@ -161,7 +161,7 @@ func (m *TaskCreateResponse) GetJobId() string { return "" } -// A message used to fetch a job state from backend plugin server. +// A message used to fetch a job state from flyte agent server. 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 +176,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_74cbdb08eef5b1d1, []int{2} + return fileDescriptor_ee8a9b6d59cb7a89, []int{2} } func (m *TaskGetRequest) XXX_Unmarshal(b []byte) error { @@ -215,7 +215,7 @@ func (m *TaskGetRequest) GetJobId() string { 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. Flyteplugins service will create a + // 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"` @@ -228,7 +228,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_74cbdb08eef5b1d1, []int{3} + return fileDescriptor_ee8a9b6d59cb7a89, []int{3} } func (m *TaskGetResponse) XXX_Unmarshal(b []byte) error { @@ -278,7 +278,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_74cbdb08eef5b1d1, []int{4} + return fileDescriptor_ee8a9b6d59cb7a89, []int{4} } func (m *TaskDeleteRequest) XXX_Unmarshal(b []byte) error { @@ -324,7 +324,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_74cbdb08eef5b1d1, []int{5} + return fileDescriptor_ee8a9b6d59cb7a89, []int{5} } func (m *TaskDeleteResponse) XXX_Unmarshal(b []byte) error { @@ -356,44 +356,44 @@ func init() { } func init() { - proto.RegisterFile("flyteidl/service/external_plugin_service.proto", fileDescriptor_74cbdb08eef5b1d1) -} - -var fileDescriptor_74cbdb08eef5b1d1 = []byte{ - // 525 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xc1, 0x6e, 0xda, 0x40, - 0x10, 0x05, 0x52, 0x20, 0x4c, 0x9a, 0x94, 0xac, 0x8a, 0x4a, 0x48, 0x2b, 0x51, 0xa7, 0x87, 0xa8, - 0x55, 0x6c, 0x95, 0x1c, 0xa2, 0x1e, 0x09, 0xb8, 0x08, 0x89, 0x58, 0x68, 0x81, 0x03, 0x3d, 0xd4, - 0x32, 0x30, 0xb8, 0x4e, 0x1c, 0x7b, 0x6b, 0xaf, 0xab, 0xf0, 0x35, 0xbd, 0xf4, 0x43, 0xab, 0xf5, - 0xda, 0x0e, 0x90, 0x96, 0x43, 0x8e, 0x9e, 0x79, 0xf3, 0xe6, 0xcd, 0x9b, 0x59, 0x83, 0xba, 0x74, - 0x57, 0x1c, 0x9d, 0x85, 0xab, 0x85, 0x18, 0xfc, 0x72, 0xe6, 0xa8, 0xe1, 0x03, 0xc7, 0xc0, 0xb3, - 0x5c, 0x93, 0xb9, 0x91, 0xed, 0x78, 0x66, 0x12, 0x57, 0x59, 0xe0, 0x73, 0x9f, 0x54, 0x53, 0xbc, - 0x9a, 0xc4, 0x1b, 0x6f, 0x33, 0x86, 0xb9, 0x1f, 0xa0, 0xe6, 0x3a, 0x1c, 0x03, 0xcb, 0x0d, 0x25, - 0xbe, 0x71, 0xb2, 0x99, 0xe5, 0x56, 0x78, 0x97, 0xa6, 0xde, 0x6d, 0xa6, 0x1c, 0x8f, 0x63, 0xb0, - 0xb4, 0xd2, 0x4e, 0xca, 0x9f, 0x3c, 0x1c, 0x8f, 0xad, 0xf0, 0xae, 0x13, 0xa0, 0xc5, 0x91, 0xe2, - 0xcf, 0x08, 0x43, 0x4e, 0x3e, 0x43, 0xc9, 0xf1, 0x58, 0xc4, 0xc3, 0x7a, 0xbe, 0x99, 0x3f, 0x3f, - 0x68, 0x9d, 0x64, 0x03, 0xa8, 0x82, 0x45, 0x1d, 0xc8, 0xf6, 0x37, 0x16, 0xa3, 0x09, 0x90, 0x5c, - 0xc1, 0x3e, 0xc7, 0x7b, 0xe6, 0x5a, 0x1c, 0xeb, 0x85, 0xb8, 0xe8, 0x74, 0xab, 0x48, 0xb4, 0x19, - 0x27, 0x10, 0x9a, 0x81, 0xc9, 0x19, 0x1c, 0xfa, 0x11, 0x67, 0x11, 0x37, 0x59, 0x80, 0x4b, 0xe7, - 0xa1, 0xbe, 0xd7, 0xcc, 0x9f, 0x57, 0xe8, 0x4b, 0x19, 0x1c, 0xc6, 0x31, 0xe5, 0x13, 0x90, 0x75, - 0x95, 0x21, 0xf3, 0xbd, 0x10, 0x49, 0x0d, 0x4a, 0xb7, 0xfe, 0xcc, 0x74, 0x16, 0xb1, 0xcc, 0x0a, - 0x2d, 0xde, 0xfa, 0xb3, 0xfe, 0x42, 0xe9, 0xc2, 0x91, 0x00, 0xf7, 0x90, 0xa7, 0xf3, 0x9c, 0x42, - 0x45, 0x78, 0x62, 0xf2, 0x15, 0xc3, 0x04, 0xbb, 0x2f, 0x02, 0xe3, 0x15, 0x5b, 0x67, 0x29, 0xac, - 0xb3, 0x44, 0xf0, 0x2a, 0x63, 0x49, 0xfa, 0x5d, 0x40, 0x31, 0xe4, 0x62, 0x40, 0x41, 0x71, 0xd4, - 0x7a, 0xa3, 0x6e, 0xaf, 0x49, 0x1d, 0x89, 0x34, 0x95, 0x28, 0x72, 0x09, 0x65, 0x39, 0x44, 0x98, - 0x38, 0xb2, 0xc3, 0xc6, 0x14, 0xa9, 0xf4, 0xe4, 0x3e, 0xba, 0xe8, 0xe2, 0xe3, 0x3e, 0x9e, 0xa3, - 0xff, 0xb5, 0xb4, 0x2c, 0x25, 0x92, 0x23, 0x7c, 0xfc, 0x0e, 0xc5, 0x58, 0x23, 0xa9, 0xc1, 0x31, - 0xd5, 0xc7, 0x74, 0xda, 0xbe, 0x1e, 0xe8, 0xe6, 0xd7, 0x76, 0x7f, 0x30, 0xa1, 0x7a, 0x35, 0x27, - 0xc2, 0x43, 0x9d, 0xde, 0xb4, 0x0d, 0xdd, 0x18, 0x67, 0xe1, 0x3c, 0x39, 0x80, 0xf2, 0x50, 0x37, - 0xba, 0x7d, 0xa3, 0x57, 0x2d, 0x88, 0x0f, 0x3a, 0x31, 0x0c, 0xf1, 0xb1, 0x47, 0x0e, 0xa1, 0x32, - 0x9a, 0x74, 0x3a, 0xba, 0xde, 0xd5, 0xbb, 0xd5, 0x17, 0xad, 0xdf, 0x05, 0xa8, 0xe9, 0xc9, 0x6d, - 0x0f, 0xe3, 0xd3, 0x1e, 0x49, 0x6b, 0xc8, 0x14, 0x40, 0xae, 0x4f, 0xa8, 0x22, 0x67, 0x4f, 0xbd, - 0x7b, 0x72, 0x86, 0x8d, 0x0f, 0xbb, 0x41, 0x72, 0x24, 0x25, 0x47, 0x86, 0x50, 0xee, 0x21, 0x8f, - 0x79, 0x9b, 0xff, 0x2e, 0x79, 0xbc, 0x85, 0xc6, 0xfb, 0x1d, 0x88, 0x8c, 0x71, 0x0a, 0x20, 0x8d, - 0xdb, 0x25, 0x76, 0x63, 0x47, 0xff, 0x13, 0xbb, 0xe9, 0xbf, 0x92, 0xbb, 0xfe, 0xf2, 0xed, 0xca, - 0x76, 0xf8, 0x8f, 0x68, 0xa6, 0xce, 0xfd, 0x7b, 0x2d, 0xae, 0xf1, 0x03, 0x5b, 0xcb, 0x9e, 0xa9, - 0x8d, 0x9e, 0xc6, 0x66, 0x17, 0xb6, 0xaf, 0x6d, 0xff, 0x34, 0x66, 0xa5, 0xf8, 0xcd, 0x5e, 0xfe, - 0x0d, 0x00, 0x00, 0xff, 0xff, 0x18, 0xdb, 0xdc, 0xc4, 0x4f, 0x04, 0x00, 0x00, + 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, } // Reference imports to suppress errors if they are not otherwise used. @@ -404,11 +404,11 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// ExternalPluginServiceClient is the client API for ExternalPluginService service. +// AgentServiceClient is the client API for AgentService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ExternalPluginServiceClient interface { - // Send a task create request to the backend plugin server. +type AgentServiceClient interface { + // Send a task create request to the agent 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 +416,44 @@ type ExternalPluginServiceClient interface { DeleteTask(ctx context.Context, in *TaskDeleteRequest, opts ...grpc.CallOption) (*TaskDeleteResponse, error) } -type externalPluginServiceClient struct { +type agentServiceClient struct { cc *grpc.ClientConn } -func NewExternalPluginServiceClient(cc *grpc.ClientConn) ExternalPluginServiceClient { - return &externalPluginServiceClient{cc} +func NewAgentServiceClient(cc *grpc.ClientConn) AgentServiceClient { + return &agentServiceClient{cc} } -func (c *externalPluginServiceClient) CreateTask(ctx context.Context, in *TaskCreateRequest, opts ...grpc.CallOption) (*TaskCreateResponse, error) { +func (c *agentServiceClient) CreateTask(ctx context.Context, in *TaskCreateRequest, opts ...grpc.CallOption) (*TaskCreateResponse, error) { out := new(TaskCreateResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.ExternalPluginService/CreateTask", in, out, opts...) + err := c.cc.Invoke(ctx, "/flyteidl.service.AgentService/CreateTask", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *externalPluginServiceClient) GetTask(ctx context.Context, in *TaskGetRequest, opts ...grpc.CallOption) (*TaskGetResponse, error) { +func (c *agentServiceClient) GetTask(ctx context.Context, in *TaskGetRequest, opts ...grpc.CallOption) (*TaskGetResponse, error) { out := new(TaskGetResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.ExternalPluginService/GetTask", in, out, opts...) + err := c.cc.Invoke(ctx, "/flyteidl.service.AgentService/GetTask", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *externalPluginServiceClient) DeleteTask(ctx context.Context, in *TaskDeleteRequest, opts ...grpc.CallOption) (*TaskDeleteResponse, error) { +func (c *agentServiceClient) DeleteTask(ctx context.Context, in *TaskDeleteRequest, opts ...grpc.CallOption) (*TaskDeleteResponse, error) { out := new(TaskDeleteResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.ExternalPluginService/DeleteTask", in, out, opts...) + err := c.cc.Invoke(ctx, "/flyteidl.service.AgentService/DeleteTask", in, out, opts...) if err != nil { return nil, err } return out, nil } -// ExternalPluginServiceServer is the server API for ExternalPluginService service. -type ExternalPluginServiceServer interface { - // Send a task create request to the backend plugin server. +// AgentServiceServer is the server API for AgentService service. +type AgentServiceServer interface { + // Send a task create request to the agent server. CreateTask(context.Context, *TaskCreateRequest) (*TaskCreateResponse, error) // Get job status. GetTask(context.Context, *TaskGetRequest) (*TaskGetResponse, error) @@ -461,95 +461,95 @@ type ExternalPluginServiceServer interface { DeleteTask(context.Context, *TaskDeleteRequest) (*TaskDeleteResponse, error) } -// UnimplementedExternalPluginServiceServer can be embedded to have forward compatible implementations. -type UnimplementedExternalPluginServiceServer struct { +// UnimplementedAgentServiceServer can be embedded to have forward compatible implementations. +type UnimplementedAgentServiceServer struct { } -func (*UnimplementedExternalPluginServiceServer) CreateTask(ctx context.Context, req *TaskCreateRequest) (*TaskCreateResponse, error) { +func (*UnimplementedAgentServiceServer) CreateTask(ctx context.Context, req *TaskCreateRequest) (*TaskCreateResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateTask not implemented") } -func (*UnimplementedExternalPluginServiceServer) GetTask(ctx context.Context, req *TaskGetRequest) (*TaskGetResponse, error) { +func (*UnimplementedAgentServiceServer) GetTask(ctx context.Context, req *TaskGetRequest) (*TaskGetResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTask not implemented") } -func (*UnimplementedExternalPluginServiceServer) DeleteTask(ctx context.Context, req *TaskDeleteRequest) (*TaskDeleteResponse, error) { +func (*UnimplementedAgentServiceServer) DeleteTask(ctx context.Context, req *TaskDeleteRequest) (*TaskDeleteResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteTask not implemented") } -func RegisterExternalPluginServiceServer(s *grpc.Server, srv ExternalPluginServiceServer) { - s.RegisterService(&_ExternalPluginService_serviceDesc, srv) +func RegisterAgentServiceServer(s *grpc.Server, srv AgentServiceServer) { + s.RegisterService(&_AgentService_serviceDesc, srv) } -func _ExternalPluginService_CreateTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _AgentService_CreateTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(TaskCreateRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ExternalPluginServiceServer).CreateTask(ctx, in) + return srv.(AgentServiceServer).CreateTask(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flyteidl.service.ExternalPluginService/CreateTask", + FullMethod: "/flyteidl.service.AgentService/CreateTask", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ExternalPluginServiceServer).CreateTask(ctx, req.(*TaskCreateRequest)) + return srv.(AgentServiceServer).CreateTask(ctx, req.(*TaskCreateRequest)) } return interceptor(ctx, in, info, handler) } -func _ExternalPluginService_GetTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _AgentService_GetTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(TaskGetRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ExternalPluginServiceServer).GetTask(ctx, in) + return srv.(AgentServiceServer).GetTask(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flyteidl.service.ExternalPluginService/GetTask", + FullMethod: "/flyteidl.service.AgentService/GetTask", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ExternalPluginServiceServer).GetTask(ctx, req.(*TaskGetRequest)) + return srv.(AgentServiceServer).GetTask(ctx, req.(*TaskGetRequest)) } return interceptor(ctx, in, info, handler) } -func _ExternalPluginService_DeleteTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _AgentService_DeleteTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(TaskDeleteRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ExternalPluginServiceServer).DeleteTask(ctx, in) + return srv.(AgentServiceServer).DeleteTask(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flyteidl.service.ExternalPluginService/DeleteTask", + FullMethod: "/flyteidl.service.AgentService/DeleteTask", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ExternalPluginServiceServer).DeleteTask(ctx, req.(*TaskDeleteRequest)) + return srv.(AgentServiceServer).DeleteTask(ctx, req.(*TaskDeleteRequest)) } return interceptor(ctx, in, info, handler) } -var _ExternalPluginService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "flyteidl.service.ExternalPluginService", - HandlerType: (*ExternalPluginServiceServer)(nil), +var _AgentService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "flyteidl.service.AgentService", + HandlerType: (*AgentServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateTask", - Handler: _ExternalPluginService_CreateTask_Handler, + Handler: _AgentService_CreateTask_Handler, }, { MethodName: "GetTask", - Handler: _ExternalPluginService_GetTask_Handler, + Handler: _AgentService_GetTask_Handler, }, { MethodName: "DeleteTask", - Handler: _ExternalPluginService_DeleteTask_Handler, + Handler: _AgentService_DeleteTask_Handler, }, }, Streams: []grpc.StreamDesc{}, - Metadata: "flyteidl/service/external_plugin_service.proto", + Metadata: "flyteidl/service/agent_service.proto", } diff --git a/gen/pb-go/flyteidl/service/external_plugin_service.swagger.json b/gen/pb-go/flyteidl/service/agent_service.swagger.json similarity index 99% rename from gen/pb-go/flyteidl/service/external_plugin_service.swagger.json rename to gen/pb-go/flyteidl/service/agent_service.swagger.json index 3fe262d48..67245f999 100644 --- a/gen/pb-go/flyteidl/service/external_plugin_service.swagger.json +++ b/gen/pb-go/flyteidl/service/agent_service.swagger.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "title": "flyteidl/service/external_plugin_service.proto", + "title": "flyteidl/service/agent_service.proto", "version": "version not set" }, "schemes": [ @@ -1149,7 +1149,7 @@ }, "outputs": { "$ref": "#/definitions/coreLiteralMap", - "title": "The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a\nStructured dataset pointing to the query result table.\n+optional" + "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" } }, "description": "Response to get an individual task state." diff --git a/gen/pb-java/flyteidl/service/ExternalPluginServiceOuterClass.java b/gen/pb-java/flyteidl/service/AgentServiceOuterClass.java similarity index 81% rename from gen/pb-java/flyteidl/service/ExternalPluginServiceOuterClass.java rename to gen/pb-java/flyteidl/service/AgentServiceOuterClass.java index a1131d753..cb06919e6 100644 --- a/gen/pb-java/flyteidl/service/ExternalPluginServiceOuterClass.java +++ b/gen/pb-java/flyteidl/service/AgentServiceOuterClass.java @@ -1,10 +1,10 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/service/external_plugin_service.proto +// source: flyteidl/service/agent_service.proto package flyteidl.service; -public final class ExternalPluginServiceOuterClass { - private ExternalPluginServiceOuterClass() {} +public final class AgentServiceOuterClass { + private AgentServiceOuterClass() {} 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.ExternalPluginServiceOuterClass.getDescriptor().getEnumTypes().get(0); + return flyteidl.service.AgentServiceOuterClass.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); @@ -318,15 +318,15 @@ private TaskCreateRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateRequest_descriptor; + return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskCreateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateRequest_fieldAccessorTable + return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskCreateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest.Builder.class); + flyteidl.service.AgentServiceOuterClass.TaskCreateRequest.class, flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskCreateRequest)) { + if (!(obj instanceof flyteidl.service.AgentServiceOuterClass.TaskCreateRequest)) { return super.equals(obj); } - flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest other = (flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest) obj; + flyteidl.service.AgentServiceOuterClass.TaskCreateRequest other = (flyteidl.service.AgentServiceOuterClass.TaskCreateRequest) obj; if (hasInputs() != other.hasInputs()) return false; if (hasInputs()) { @@ -539,69 +539,69 @@ public int hashCode() { return hash; } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom( + public static flyteidl.service.AgentServiceOuterClass.TaskCreateRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom( + public static flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom( + public static flyteidl.service.AgentServiceOuterClass.TaskCreateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom( + public static flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom(byte[] data) + public static flyteidl.service.AgentServiceOuterClass.TaskCreateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom( + public static flyteidl.service.AgentServiceOuterClass.TaskCreateRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom(java.io.InputStream input) + public static flyteidl.service.AgentServiceOuterClass.TaskCreateRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom( + public static flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskCreateRequest parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.service.AgentServiceOuterClass.TaskCreateRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseDelimitedFrom( + public static flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom( + public static flyteidl.service.AgentServiceOuterClass.TaskCreateRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom( + public static flyteidl.service.AgentServiceOuterClass.TaskCreateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -614,7 +614,7 @@ public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest prototype) { + public static Builder newBuilder(flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskCreateRequestOrBuilder { + flyteidl.service.AgentServiceOuterClass.TaskCreateRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateRequest_descriptor; + return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskCreateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateRequest_fieldAccessorTable + return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskCreateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest.Builder.class); + flyteidl.service.AgentServiceOuterClass.TaskCreateRequest.class, flyteidl.service.AgentServiceOuterClass.TaskCreateRequest.Builder.class); } - // Construct using flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest.newBuilder() + // Construct using flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateRequest_descriptor; + return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskCreateRequest_descriptor; } @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest getDefaultInstanceForType() { - return flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest.getDefaultInstance(); + public flyteidl.service.AgentServiceOuterClass.TaskCreateRequest getDefaultInstanceForType() { + return flyteidl.service.AgentServiceOuterClass.TaskCreateRequest.getDefaultInstance(); } @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest build() { - flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest result = buildPartial(); + public flyteidl.service.AgentServiceOuterClass.TaskCreateRequest build() { + flyteidl.service.AgentServiceOuterClass.TaskCreateRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -709,8 +709,8 @@ public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest build( } @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest buildPartial() { - flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest result = new flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest(this); + public flyteidl.service.AgentServiceOuterClass.TaskCreateRequest buildPartial() { + flyteidl.service.AgentServiceOuterClass.TaskCreateRequest result = new flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskCreateRequest) { - return mergeFrom((flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest)other); + if (other instanceof flyteidl.service.AgentServiceOuterClass.TaskCreateRequest) { + return mergeFrom((flyteidl.service.AgentServiceOuterClass.TaskCreateRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest other) { - if (other == flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.service.AgentServiceOuterClass.TaskCreateRequest other) { + if (other == flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskCreateRequest parsedMessage = null; + flyteidl.service.AgentServiceOuterClass.TaskCreateRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskCreateRequest DEFAULT_INSTANCE; + private static final flyteidl.service.AgentServiceOuterClass.TaskCreateRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest(); + DEFAULT_INSTANCE = new flyteidl.service.AgentServiceOuterClass.TaskCreateRequest(); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest getDefaultInstance() { + public static flyteidl.service.AgentServiceOuterClass.TaskCreateRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1268,7 +1268,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest getDefaultInstanceForType() { + public flyteidl.service.AgentServiceOuterClass.TaskCreateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -1359,15 +1359,15 @@ private TaskCreateResponse( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateResponse_descriptor; + return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskCreateResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateResponse_fieldAccessorTable + return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskCreateResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse.Builder.class); + flyteidl.service.AgentServiceOuterClass.TaskCreateResponse.class, flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskCreateResponse)) { + if (!(obj instanceof flyteidl.service.AgentServiceOuterClass.TaskCreateResponse)) { return super.equals(obj); } - flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse other = (flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse) obj; + flyteidl.service.AgentServiceOuterClass.TaskCreateResponse other = (flyteidl.service.AgentServiceOuterClass.TaskCreateResponse) obj; if (!getJobId() .equals(other.getJobId())) return false; @@ -1468,69 +1468,69 @@ public int hashCode() { return hash; } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom( + public static flyteidl.service.AgentServiceOuterClass.TaskCreateResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom( + public static flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom( + public static flyteidl.service.AgentServiceOuterClass.TaskCreateResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom( + public static flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom(byte[] data) + public static flyteidl.service.AgentServiceOuterClass.TaskCreateResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom( + public static flyteidl.service.AgentServiceOuterClass.TaskCreateResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom(java.io.InputStream input) + public static flyteidl.service.AgentServiceOuterClass.TaskCreateResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom( + public static flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskCreateResponse parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.service.AgentServiceOuterClass.TaskCreateResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseDelimitedFrom( + public static flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom( + public static flyteidl.service.AgentServiceOuterClass.TaskCreateResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom( + public static flyteidl.service.AgentServiceOuterClass.TaskCreateResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1543,7 +1543,7 @@ public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRespons public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse prototype) { + public static Builder newBuilder(flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskCreateResponseOrBuilder { + flyteidl.service.AgentServiceOuterClass.TaskCreateResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateResponse_descriptor; + return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskCreateResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateResponse_fieldAccessorTable + return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskCreateResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse.Builder.class); + flyteidl.service.AgentServiceOuterClass.TaskCreateResponse.class, flyteidl.service.AgentServiceOuterClass.TaskCreateResponse.Builder.class); } - // Construct using flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse.newBuilder() + // Construct using flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateResponse_descriptor; + return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskCreateResponse_descriptor; } @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse getDefaultInstanceForType() { - return flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse.getDefaultInstance(); + public flyteidl.service.AgentServiceOuterClass.TaskCreateResponse getDefaultInstanceForType() { + return flyteidl.service.AgentServiceOuterClass.TaskCreateResponse.getDefaultInstance(); } @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse build() { - flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse result = buildPartial(); + public flyteidl.service.AgentServiceOuterClass.TaskCreateResponse build() { + flyteidl.service.AgentServiceOuterClass.TaskCreateResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1626,8 +1626,8 @@ public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse build } @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse buildPartial() { - flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse result = new flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse(this); + public flyteidl.service.AgentServiceOuterClass.TaskCreateResponse buildPartial() { + flyteidl.service.AgentServiceOuterClass.TaskCreateResponse result = new flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskCreateResponse) { - return mergeFrom((flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse)other); + if (other instanceof flyteidl.service.AgentServiceOuterClass.TaskCreateResponse) { + return mergeFrom((flyteidl.service.AgentServiceOuterClass.TaskCreateResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse other) { - if (other == flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.service.AgentServiceOuterClass.TaskCreateResponse other) { + if (other == flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskCreateResponse parsedMessage = null; + flyteidl.service.AgentServiceOuterClass.TaskCreateResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskCreateResponse DEFAULT_INSTANCE; + private static final flyteidl.service.AgentServiceOuterClass.TaskCreateResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse(); + DEFAULT_INSTANCE = new flyteidl.service.AgentServiceOuterClass.TaskCreateResponse(); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse getDefaultInstance() { + public static flyteidl.service.AgentServiceOuterClass.TaskCreateResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1825,7 +1825,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse getDefaultInstanceForType() { + public flyteidl.service.AgentServiceOuterClass.TaskCreateResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -1873,7 +1873,7 @@ public interface TaskGetRequestOrBuilder extends } /** *
-   * A message used to fetch a job state from backend plugin server.
+   * A message used to fetch a job state from flyte agent server.
    * 
* * Protobuf type {@code flyteidl.service.TaskGetRequest} @@ -1949,15 +1949,15 @@ private TaskGetRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetRequest_descriptor; + return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskGetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetRequest_fieldAccessorTable + return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskGetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest.Builder.class); + flyteidl.service.AgentServiceOuterClass.TaskGetRequest.class, flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskGetRequest)) { + if (!(obj instanceof flyteidl.service.AgentServiceOuterClass.TaskGetRequest)) { return super.equals(obj); } - flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest other = (flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest) obj; + flyteidl.service.AgentServiceOuterClass.TaskGetRequest other = (flyteidl.service.AgentServiceOuterClass.TaskGetRequest) obj; if (!getTaskType() .equals(other.getTaskType())) return false; @@ -2118,69 +2118,69 @@ public int hashCode() { return hash; } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom( + public static flyteidl.service.AgentServiceOuterClass.TaskGetRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom( + public static flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom( + public static flyteidl.service.AgentServiceOuterClass.TaskGetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom( + public static flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom(byte[] data) + public static flyteidl.service.AgentServiceOuterClass.TaskGetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom( + public static flyteidl.service.AgentServiceOuterClass.TaskGetRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom(java.io.InputStream input) + public static flyteidl.service.AgentServiceOuterClass.TaskGetRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom( + public static flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskGetRequest parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.service.AgentServiceOuterClass.TaskGetRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseDelimitedFrom( + public static flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom( + public static flyteidl.service.AgentServiceOuterClass.TaskGetRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom( + public static flyteidl.service.AgentServiceOuterClass.TaskGetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2193,7 +2193,7 @@ public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest pa public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest prototype) { + public static Builder newBuilder(flyteidl.service.AgentServiceOuterClass.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 backend plugin server.
+     * A message used to fetch a job state from flyte agent 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.ExternalPluginServiceOuterClass.TaskGetRequestOrBuilder { + flyteidl.service.AgentServiceOuterClass.TaskGetRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetRequest_descriptor; + return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskGetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetRequest_fieldAccessorTable + return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskGetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest.Builder.class); + flyteidl.service.AgentServiceOuterClass.TaskGetRequest.class, flyteidl.service.AgentServiceOuterClass.TaskGetRequest.Builder.class); } - // Construct using flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest.newBuilder() + // Construct using flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetRequest_descriptor; + return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskGetRequest_descriptor; } @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest getDefaultInstanceForType() { - return flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest.getDefaultInstance(); + public flyteidl.service.AgentServiceOuterClass.TaskGetRequest getDefaultInstanceForType() { + return flyteidl.service.AgentServiceOuterClass.TaskGetRequest.getDefaultInstance(); } @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest build() { - flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest result = buildPartial(); + public flyteidl.service.AgentServiceOuterClass.TaskGetRequest build() { + flyteidl.service.AgentServiceOuterClass.TaskGetRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2278,8 +2278,8 @@ public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest build() { } @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest buildPartial() { - flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest result = new flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest(this); + public flyteidl.service.AgentServiceOuterClass.TaskGetRequest buildPartial() { + flyteidl.service.AgentServiceOuterClass.TaskGetRequest result = new flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskGetRequest) { - return mergeFrom((flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest)other); + if (other instanceof flyteidl.service.AgentServiceOuterClass.TaskGetRequest) { + return mergeFrom((flyteidl.service.AgentServiceOuterClass.TaskGetRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest other) { - if (other == flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.service.AgentServiceOuterClass.TaskGetRequest other) { + if (other == flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskGetRequest parsedMessage = null; + flyteidl.service.AgentServiceOuterClass.TaskGetRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskGetRequest DEFAULT_INSTANCE; + private static final flyteidl.service.AgentServiceOuterClass.TaskGetRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest(); + DEFAULT_INSTANCE = new flyteidl.service.AgentServiceOuterClass.TaskGetRequest(); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest getDefaultInstance() { + public static flyteidl.service.AgentServiceOuterClass.TaskGetRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -2591,7 +2591,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest getDefaultInstanceForType() { + public flyteidl.service.AgentServiceOuterClass.TaskGetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -2616,11 +2616,11 @@ public interface TaskGetResponseOrBuilder extends * * .flyteidl.service.State state = 1; */ - flyteidl.service.ExternalPluginServiceOuterClass.State getState(); + flyteidl.service.AgentServiceOuterClass.State getState(); /** *
-     * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
+     * 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
      * 
@@ -2630,7 +2630,7 @@ public interface TaskGetResponseOrBuilder extends boolean hasOutputs(); /** *
-     * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
+     * 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
      * 
@@ -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. Flyteplugins service will create a
+     * 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
      * 
@@ -2733,15 +2733,15 @@ private TaskGetResponse( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetResponse_descriptor; + return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskGetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetResponse_fieldAccessorTable + return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskGetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse.Builder.class); + flyteidl.service.AgentServiceOuterClass.TaskGetResponse.class, flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.State getState() { + public flyteidl.service.AgentServiceOuterClass.State getState() { @SuppressWarnings("deprecation") - flyteidl.service.ExternalPluginServiceOuterClass.State result = flyteidl.service.ExternalPluginServiceOuterClass.State.valueOf(state_); - return result == null ? flyteidl.service.ExternalPluginServiceOuterClass.State.UNRECOGNIZED : result; + flyteidl.service.AgentServiceOuterClass.State result = flyteidl.service.AgentServiceOuterClass.State.valueOf(state_); + return result == null ? flyteidl.service.AgentServiceOuterClass.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. Flyteplugins service will create a
+     * 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
      * 
@@ -2785,7 +2785,7 @@ public boolean hasOutputs() { } /** *
-     * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
+     * 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
      * 
@@ -2797,7 +2797,7 @@ public flyteidl.core.Literals.LiteralMap getOutputs() { } /** *
-     * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
+     * 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
      * 
@@ -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.ExternalPluginServiceOuterClass.State.RETRYABLE_FAILURE.getNumber()) { + if (state_ != flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.State.RETRYABLE_FAILURE.getNumber()) { + if (state_ != flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskGetResponse)) { + if (!(obj instanceof flyteidl.service.AgentServiceOuterClass.TaskGetResponse)) { return super.equals(obj); } - flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse other = (flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse) obj; + flyteidl.service.AgentServiceOuterClass.TaskGetResponse other = (flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom( + public static flyteidl.service.AgentServiceOuterClass.TaskGetResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom( + public static flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom( + public static flyteidl.service.AgentServiceOuterClass.TaskGetResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom( + public static flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom(byte[] data) + public static flyteidl.service.AgentServiceOuterClass.TaskGetResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom( + public static flyteidl.service.AgentServiceOuterClass.TaskGetResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom(java.io.InputStream input) + public static flyteidl.service.AgentServiceOuterClass.TaskGetResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom( + public static flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskGetResponse parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.service.AgentServiceOuterClass.TaskGetResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseDelimitedFrom( + public static flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom( + public static flyteidl.service.AgentServiceOuterClass.TaskGetResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom( + public static flyteidl.service.AgentServiceOuterClass.TaskGetResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2963,7 +2963,7 @@ public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse p public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse prototype) { + public static Builder newBuilder(flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskGetResponseOrBuilder { + flyteidl.service.AgentServiceOuterClass.TaskGetResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetResponse_descriptor; + return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskGetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetResponse_fieldAccessorTable + return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskGetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse.Builder.class); + flyteidl.service.AgentServiceOuterClass.TaskGetResponse.class, flyteidl.service.AgentServiceOuterClass.TaskGetResponse.Builder.class); } - // Construct using flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse.newBuilder() + // Construct using flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetResponse_descriptor; + return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskGetResponse_descriptor; } @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse getDefaultInstanceForType() { - return flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse.getDefaultInstance(); + public flyteidl.service.AgentServiceOuterClass.TaskGetResponse getDefaultInstanceForType() { + return flyteidl.service.AgentServiceOuterClass.TaskGetResponse.getDefaultInstance(); } @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse build() { - flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse result = buildPartial(); + public flyteidl.service.AgentServiceOuterClass.TaskGetResponse build() { + flyteidl.service.AgentServiceOuterClass.TaskGetResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3052,8 +3052,8 @@ public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse build() } @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse buildPartial() { - flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse result = new flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse(this); + public flyteidl.service.AgentServiceOuterClass.TaskGetResponse buildPartial() { + flyteidl.service.AgentServiceOuterClass.TaskGetResponse result = new flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskGetResponse) { - return mergeFrom((flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse)other); + if (other instanceof flyteidl.service.AgentServiceOuterClass.TaskGetResponse) { + return mergeFrom((flyteidl.service.AgentServiceOuterClass.TaskGetResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse other) { - if (other == flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.service.AgentServiceOuterClass.TaskGetResponse other) { + if (other == flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskGetResponse parsedMessage = null; + flyteidl.service.AgentServiceOuterClass.TaskGetResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.State getState() { + public flyteidl.service.AgentServiceOuterClass.State getState() { @SuppressWarnings("deprecation") - flyteidl.service.ExternalPluginServiceOuterClass.State result = flyteidl.service.ExternalPluginServiceOuterClass.State.valueOf(state_); - return result == null ? flyteidl.service.ExternalPluginServiceOuterClass.State.UNRECOGNIZED : result; + flyteidl.service.AgentServiceOuterClass.State result = flyteidl.service.AgentServiceOuterClass.State.valueOf(state_); + return result == null ? flyteidl.service.AgentServiceOuterClass.State.UNRECOGNIZED : result; } /** *
@@ -3185,7 +3185,7 @@ public flyteidl.service.ExternalPluginServiceOuterClass.State getState() {
        *
        * .flyteidl.service.State state = 1;
        */
-      public Builder setState(flyteidl.service.ExternalPluginServiceOuterClass.State value) {
+      public Builder setState(flyteidl.service.AgentServiceOuterClass.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. Flyteplugins service will create a
+       * 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
        * 
@@ -3225,7 +3225,7 @@ public boolean hasOutputs() { } /** *
-       * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
+       * 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
        * 
@@ -3241,7 +3241,7 @@ public flyteidl.core.Literals.LiteralMap getOutputs() { } /** *
-       * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
+       * 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
        * 
@@ -3263,7 +3263,7 @@ public Builder setOutputs(flyteidl.core.Literals.LiteralMap value) { } /** *
-       * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
+       * 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
        * 
@@ -3283,7 +3283,7 @@ public Builder setOutputs( } /** *
-       * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
+       * 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
        * 
@@ -3307,7 +3307,7 @@ public Builder mergeOutputs(flyteidl.core.Literals.LiteralMap value) { } /** *
-       * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
+       * 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
        * 
@@ -3327,7 +3327,7 @@ public Builder clearOutputs() { } /** *
-       * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
+       * 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
        * 
@@ -3341,7 +3341,7 @@ public flyteidl.core.Literals.LiteralMap.Builder getOutputsBuilder() { } /** *
-       * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
+       * 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
        * 
@@ -3358,7 +3358,7 @@ public flyteidl.core.Literals.LiteralMapOrBuilder getOutputsOrBuilder() { } /** *
-       * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
+       * 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
        * 
@@ -3395,12 +3395,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:flyteidl.service.TaskGetResponse) - private static final flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse DEFAULT_INSTANCE; + private static final flyteidl.service.AgentServiceOuterClass.TaskGetResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse(); + DEFAULT_INSTANCE = new flyteidl.service.AgentServiceOuterClass.TaskGetResponse(); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse getDefaultInstance() { + public static flyteidl.service.AgentServiceOuterClass.TaskGetResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -3425,7 +3425,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse getDefaultInstanceForType() { + public flyteidl.service.AgentServiceOuterClass.TaskGetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -3549,15 +3549,15 @@ private TaskDeleteRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteRequest_descriptor; + return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskDeleteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteRequest_fieldAccessorTable + return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskDeleteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest.Builder.class); + flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest.class, flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskDeleteRequest)) { + if (!(obj instanceof flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest)) { return super.equals(obj); } - flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest other = (flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest) obj; + flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest other = (flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest) obj; if (!getTaskType() .equals(other.getTaskType())) return false; @@ -3718,69 +3718,69 @@ public int hashCode() { return hash; } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom( + public static flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom( + public static flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom( + public static flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom( + public static flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom(byte[] data) + public static flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom( + public static flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom(java.io.InputStream input) + public static flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom( + public static flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskDeleteRequest parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseDelimitedFrom( + public static flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom( + public static flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom( + public static flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -3793,7 +3793,7 @@ public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest prototype) { + public static Builder newBuilder(flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskDeleteRequestOrBuilder { + flyteidl.service.AgentServiceOuterClass.TaskDeleteRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteRequest_descriptor; + return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskDeleteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteRequest_fieldAccessorTable + return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskDeleteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest.Builder.class); + flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest.class, flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest.Builder.class); } - // Construct using flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest.newBuilder() + // Construct using flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteRequest_descriptor; + return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskDeleteRequest_descriptor; } @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest getDefaultInstanceForType() { - return flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest.getDefaultInstance(); + public flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest getDefaultInstanceForType() { + return flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest.getDefaultInstance(); } @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest build() { - flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest result = buildPartial(); + public flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest build() { + flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3878,8 +3878,8 @@ public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest build( } @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest buildPartial() { - flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest result = new flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest(this); + public flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest buildPartial() { + flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest result = new flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskDeleteRequest) { - return mergeFrom((flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest)other); + if (other instanceof flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest) { + return mergeFrom((flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest other) { - if (other == flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest other) { + if (other == flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskDeleteRequest parsedMessage = null; + flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskDeleteRequest DEFAULT_INSTANCE; + private static final flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest(); + DEFAULT_INSTANCE = new flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest(); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest getDefaultInstance() { + public static flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -4191,7 +4191,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest getDefaultInstanceForType() { + public flyteidl.service.AgentServiceOuterClass.TaskDeleteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -4264,15 +4264,15 @@ private TaskDeleteResponse( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteResponse_descriptor; + return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskDeleteResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteResponse_fieldAccessorTable + return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskDeleteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse.Builder.class); + flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse.class, flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskDeleteResponse)) { + if (!(obj instanceof flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse)) { return super.equals(obj); } - flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse other = (flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse) obj; + flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse other = (flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -4329,69 +4329,69 @@ public int hashCode() { return hash; } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom( + public static flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom( + public static flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom( + public static flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom( + public static flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom(byte[] data) + public static flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom( + public static flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom(java.io.InputStream input) + public static flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom( + public static flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskDeleteResponse parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseDelimitedFrom( + public static flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom( + public static flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom( + public static flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -4404,7 +4404,7 @@ public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRespons public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse prototype) { + public static Builder newBuilder(flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskDeleteResponseOrBuilder { + flyteidl.service.AgentServiceOuterClass.TaskDeleteResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteResponse_descriptor; + return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskDeleteResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteResponse_fieldAccessorTable + return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskDeleteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse.Builder.class); + flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse.class, flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse.Builder.class); } - // Construct using flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse.newBuilder() + // Construct using flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteResponse_descriptor; + return flyteidl.service.AgentServiceOuterClass.internal_static_flyteidl_service_TaskDeleteResponse_descriptor; } @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse getDefaultInstanceForType() { - return flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse.getDefaultInstance(); + public flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse getDefaultInstanceForType() { + return flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse.getDefaultInstance(); } @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse build() { - flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse result = buildPartial(); + public flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse build() { + flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4485,8 +4485,8 @@ public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse build } @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse buildPartial() { - flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse result = new flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse(this); + public flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse buildPartial() { + flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse result = new flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskDeleteResponse) { - return mergeFrom((flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse)other); + if (other instanceof flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse) { + return mergeFrom((flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse other) { - if (other == flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse other) { + if (other == flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskDeleteResponse parsedMessage = null; + flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.service.AgentServiceOuterClass.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.ExternalPluginServiceOuterClass.TaskDeleteResponse DEFAULT_INSTANCE; + private static final flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse(); + DEFAULT_INSTANCE = new flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse(); } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse getDefaultInstance() { + public static flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -4610,7 +4610,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse getDefaultInstanceForType() { + public flyteidl.service.AgentServiceOuterClass.TaskDeleteResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -4655,32 +4655,31 @@ public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse getDe descriptor; static { java.lang.String[] descriptorData = { - "\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\"\204\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\"$\n\022TaskCreateResponse\022\016\n\006job_i" + - "d\030\001 \001(\t\"3\n\016TaskGetRequest\022\021\n\ttask_type\030\001" + - " \001(\t\022\016\n\006job_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.Literal" + - "Map\"6\n\021TaskDeleteRequest\022\021\n\ttask_type\030\001 " + - "\001(\t\022\016\n\006job_id\030\002 \001(\t\"\024\n\022TaskDeleteRespons" + - "e*^\n\005State\022\025\n\021RETRYABLE_FAILURE\020\000\022\025\n\021PER" + - "MANENT_FAILURE\020\001\022\013\n\007PENDING\020\002\022\013\n\007RUNNING" + - "\020\003\022\r\n\tSUCCEEDED\020\0042\237\002\n\025ExternalPluginServ" + - "ice\022Y\n\nCreateTask\022#.flyteidl.service.Tas" + - "kCreateRequest\032$.flyteidl.service.TaskCr" + - "eateResponse\"\000\022P\n\007GetTask\022 .flyteidl.ser" + - "vice.TaskGetRequest\032!.flyteidl.service.T" + - "askGetResponse\"\000\022Y\n\nDeleteTask\022#.flyteid" + - "l.service.TaskDeleteRequest\032$.flyteidl.s" + - "ervice.TaskDeleteResponse\"\000B9Z7github.co" + - "m/flyteorg/flyteidl/gen/pb-go/flyteidl/s" + - "erviceb\006proto3" + "\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" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/gen/pb-js/flyteidl.d.ts b/gen/pb-js/flyteidl.d.ts index a93468635..4ddd78e38 100644 --- a/gen/pb-js/flyteidl.d.ts +++ b/gen/pb-js/flyteidl.d.ts @@ -18775,1460 +18775,1460 @@ export namespace flyteidl { type GetExecutionMetricsCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowExecutionGetMetricsResponse) => void; } - /** Properties of a OAuth2MetadataRequest. */ - interface IOAuth2MetadataRequest { - } + /** Represents an AgentService */ + class AgentService extends $protobuf.rpc.Service { - /** Represents a OAuth2MetadataRequest. */ - class OAuth2MetadataRequest implements IOAuth2MetadataRequest { + /** + * Constructs a new AgentService 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 OAuth2MetadataRequest. - * @param [properties] Properties to set + * Creates new AgentService 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.IOAuth2MetadataRequest); + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AgentService; /** - * Creates a new OAuth2MetadataRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns OAuth2MetadataRequest instance + * Calls CreateTask. + * @param request TaskCreateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TaskCreateResponse */ - public static create(properties?: flyteidl.service.IOAuth2MetadataRequest): flyteidl.service.OAuth2MetadataRequest; + public createTask(request: flyteidl.service.ITaskCreateRequest, callback: flyteidl.service.AgentService.CreateTaskCallback): void; /** - * 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 + * Calls CreateTask. + * @param request TaskCreateRequest message or plain object + * @returns Promise */ - public static encode(message: flyteidl.service.IOAuth2MetadataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createTask(request: flyteidl.service.ITaskCreateRequest): Promise; /** - * Decodes a OAuth2MetadataRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OAuth2MetadataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetTask. + * @param request TaskGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TaskGetResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.OAuth2MetadataRequest; + public getTask(request: flyteidl.service.ITaskGetRequest, callback: flyteidl.service.AgentService.GetTaskCallback): void; /** - * Verifies a OAuth2MetadataRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls GetTask. + * @param request TaskGetRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); - } + public getTask(request: flyteidl.service.ITaskGetRequest): Promise; - /** Properties of a OAuth2MetadataResponse. */ - interface IOAuth2MetadataResponse { + /** + * 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.AgentService.DeleteTaskCallback): void; - /** OAuth2MetadataResponse issuer */ - issuer?: (string|null); + /** + * Calls DeleteTask. + * @param request TaskDeleteRequest message or plain object + * @returns Promise + */ + public deleteTask(request: flyteidl.service.ITaskDeleteRequest): Promise; + } - /** OAuth2MetadataResponse authorizationEndpoint */ - authorizationEndpoint?: (string|null); + namespace AgentService { - /** OAuth2MetadataResponse tokenEndpoint */ - tokenEndpoint?: (string|null); + /** + * Callback as used by {@link flyteidl.service.AgentService#createTask}. + * @param error Error, if any + * @param [response] TaskCreateResponse + */ + type CreateTaskCallback = (error: (Error|null), response?: flyteidl.service.TaskCreateResponse) => void; - /** OAuth2MetadataResponse responseTypesSupported */ - responseTypesSupported?: (string[]|null); + /** + * Callback as used by {@link flyteidl.service.AgentService#getTask}. + * @param error Error, if any + * @param [response] TaskGetResponse + */ + type GetTaskCallback = (error: (Error|null), response?: flyteidl.service.TaskGetResponse) => void; - /** OAuth2MetadataResponse scopesSupported */ - scopesSupported?: (string[]|null); + /** + * Callback as used by {@link flyteidl.service.AgentService#deleteTask}. + * @param error Error, if any + * @param [response] TaskDeleteResponse + */ + type DeleteTaskCallback = (error: (Error|null), response?: flyteidl.service.TaskDeleteResponse) => void; + } - /** OAuth2MetadataResponse tokenEndpointAuthMethodsSupported */ - tokenEndpointAuthMethodsSupported?: (string[]|null); + /** State enum. */ + enum State { + RETRYABLE_FAILURE = 0, + PERMANENT_FAILURE = 1, + PENDING = 2, + RUNNING = 3, + SUCCEEDED = 4 + } - /** OAuth2MetadataResponse jwksUri */ - jwksUri?: (string|null); + /** Properties of a TaskCreateRequest. */ + interface ITaskCreateRequest { - /** OAuth2MetadataResponse codeChallengeMethodsSupported */ - codeChallengeMethodsSupported?: (string[]|null); + /** TaskCreateRequest inputs */ + inputs?: (flyteidl.core.ILiteralMap|null); - /** OAuth2MetadataResponse grantTypesSupported */ - grantTypesSupported?: (string[]|null); + /** TaskCreateRequest template */ + template?: (flyteidl.core.ITaskTemplate|null); - /** OAuth2MetadataResponse deviceAuthorizationEndpoint */ - deviceAuthorizationEndpoint?: (string|null); + /** TaskCreateRequest outputPrefix */ + outputPrefix?: (string|null); } - /** Represents a OAuth2MetadataResponse. */ - class OAuth2MetadataResponse implements IOAuth2MetadataResponse { + /** Represents a TaskCreateRequest. */ + class TaskCreateRequest implements ITaskCreateRequest { /** - * Constructs a new OAuth2MetadataResponse. + * Constructs a new TaskCreateRequest. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.service.IOAuth2MetadataResponse); - - /** OAuth2MetadataResponse issuer. */ - public issuer: string; - - /** OAuth2MetadataResponse authorizationEndpoint. */ - public authorizationEndpoint: string; - - /** OAuth2MetadataResponse tokenEndpoint. */ - public tokenEndpoint: string; - - /** OAuth2MetadataResponse responseTypesSupported. */ - public responseTypesSupported: string[]; - - /** OAuth2MetadataResponse scopesSupported. */ - public scopesSupported: string[]; - - /** OAuth2MetadataResponse tokenEndpointAuthMethodsSupported. */ - public tokenEndpointAuthMethodsSupported: string[]; - - /** OAuth2MetadataResponse jwksUri. */ - public jwksUri: string; + constructor(properties?: flyteidl.service.ITaskCreateRequest); - /** OAuth2MetadataResponse codeChallengeMethodsSupported. */ - public codeChallengeMethodsSupported: string[]; + /** TaskCreateRequest inputs. */ + public inputs?: (flyteidl.core.ILiteralMap|null); - /** OAuth2MetadataResponse grantTypesSupported. */ - public grantTypesSupported: string[]; + /** TaskCreateRequest template. */ + public template?: (flyteidl.core.ITaskTemplate|null); - /** OAuth2MetadataResponse deviceAuthorizationEndpoint. */ - public deviceAuthorizationEndpoint: string; + /** TaskCreateRequest outputPrefix. */ + public outputPrefix: string; /** - * Creates a new OAuth2MetadataResponse instance using the specified properties. + * Creates a new TaskCreateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns OAuth2MetadataResponse instance + * @returns TaskCreateRequest instance */ - public static create(properties?: flyteidl.service.IOAuth2MetadataResponse): flyteidl.service.OAuth2MetadataResponse; + public static create(properties?: flyteidl.service.ITaskCreateRequest): flyteidl.service.TaskCreateRequest; /** - * 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 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.IOAuth2MetadataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.ITaskCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a OAuth2MetadataResponse 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 OAuth2MetadataResponse + * @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.OAuth2MetadataResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskCreateRequest; /** - * Verifies a OAuth2MetadataResponse 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 PublicClientAuthConfigRequest. */ - interface IPublicClientAuthConfigRequest { + /** Properties of a TaskCreateResponse. */ + interface ITaskCreateResponse { + + /** TaskCreateResponse jobId */ + jobId?: (string|null); } - /** Represents a PublicClientAuthConfigRequest. */ - class PublicClientAuthConfigRequest implements IPublicClientAuthConfigRequest { + /** Represents a TaskCreateResponse. */ + class TaskCreateResponse implements ITaskCreateResponse { /** - * Constructs a new PublicClientAuthConfigRequest. + * Constructs a new TaskCreateResponse. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.service.IPublicClientAuthConfigRequest); + constructor(properties?: flyteidl.service.ITaskCreateResponse); + + /** TaskCreateResponse jobId. */ + public jobId: string; /** - * Creates a new PublicClientAuthConfigRequest instance using the specified properties. + * Creates a new TaskCreateResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PublicClientAuthConfigRequest instance + * @returns TaskCreateResponse instance */ - public static create(properties?: flyteidl.service.IPublicClientAuthConfigRequest): flyteidl.service.PublicClientAuthConfigRequest; + public static create(properties?: flyteidl.service.ITaskCreateResponse): flyteidl.service.TaskCreateResponse; /** - * 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 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.IPublicClientAuthConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.ITaskCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PublicClientAuthConfigRequest 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 PublicClientAuthConfigRequest + * @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.PublicClientAuthConfigRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskCreateResponse; /** - * Verifies a PublicClientAuthConfigRequest 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 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 TaskGetRequest. */ + interface ITaskGetRequest { - /** PublicClientAuthConfigResponse serviceHttpEndpoint */ - serviceHttpEndpoint?: (string|null); + /** TaskGetRequest taskType */ + taskType?: (string|null); - /** PublicClientAuthConfigResponse audience */ - audience?: (string|null); + /** TaskGetRequest jobId */ + jobId?: (string|null); } - /** Represents a PublicClientAuthConfigResponse. */ - class PublicClientAuthConfigResponse implements IPublicClientAuthConfigResponse { + /** Represents a TaskGetRequest. */ + class TaskGetRequest implements ITaskGetRequest { /** - * Constructs a new PublicClientAuthConfigResponse. + * Constructs a new TaskGetRequest. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.service.IPublicClientAuthConfigResponse); + constructor(properties?: flyteidl.service.ITaskGetRequest); - /** PublicClientAuthConfigResponse clientId. */ - public clientId: string; + /** TaskGetRequest taskType. */ + public taskType: 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; + /** TaskGetRequest jobId. */ + public jobId: string; /** - * Creates a new PublicClientAuthConfigResponse instance using the specified properties. + * Creates a new TaskGetRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PublicClientAuthConfigResponse instance + * @returns TaskGetRequest instance */ - public static create(properties?: flyteidl.service.IPublicClientAuthConfigResponse): flyteidl.service.PublicClientAuthConfigResponse; + public static create(properties?: flyteidl.service.ITaskGetRequest): flyteidl.service.TaskGetRequest; /** - * 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 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.IPublicClientAuthConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.ITaskGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PublicClientAuthConfigResponse 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 PublicClientAuthConfigResponse + * @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.PublicClientAuthConfigResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskGetRequest; /** - * Verifies a PublicClientAuthConfigResponse 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); } - /** Represents an AuthMetadataService */ - class AuthMetadataService extends $protobuf.rpc.Service { + /** Properties of a TaskGetResponse. */ + interface ITaskGetResponse { - /** - * 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); + /** TaskGetResponse state */ + state?: (flyteidl.service.State|null); - /** - * 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; + /** TaskGetResponse outputs */ + outputs?: (flyteidl.core.ILiteralMap|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; + /** Represents a TaskGetResponse. */ + class TaskGetResponse implements ITaskGetResponse { /** - * Calls GetOAuth2Metadata. - * @param request OAuth2MetadataRequest message or plain object - * @returns Promise + * Constructs a new TaskGetResponse. + * @param [properties] Properties to set */ - public getOAuth2Metadata(request: flyteidl.service.IOAuth2MetadataRequest): Promise; + constructor(properties?: flyteidl.service.ITaskGetResponse); + + /** TaskGetResponse state. */ + public state: flyteidl.service.State; + + /** TaskGetResponse outputs. */ + public outputs?: (flyteidl.core.ILiteralMap|null); /** - * 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 TaskGetResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskGetResponse instance */ - public getPublicClientConfig(request: flyteidl.service.IPublicClientAuthConfigRequest, callback: flyteidl.service.AuthMetadataService.GetPublicClientConfigCallback): void; + public static create(properties?: flyteidl.service.ITaskGetResponse): flyteidl.service.TaskGetResponse; /** - * Calls GetPublicClientConfig. - * @param request PublicClientAuthConfigRequest message or plain object - * @returns Promise + * 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 getPublicClientConfig(request: flyteidl.service.IPublicClientAuthConfigRequest): Promise; - } - - namespace AuthMetadataService { + public static encode(message: flyteidl.service.ITaskGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link flyteidl.service.AuthMetadataService#getOAuth2Metadata}. - * @param error Error, if any - * @param [response] OAuth2MetadataResponse + * Decodes a TaskGetResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskGetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type GetOAuth2MetadataCallback = (error: (Error|null), response?: flyteidl.service.OAuth2MetadataResponse) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskGetResponse; /** - * Callback as used by {@link flyteidl.service.AuthMetadataService#getPublicClientConfig}. - * @param error Error, if any - * @param [response] PublicClientAuthConfigResponse + * Verifies a TaskGetResponse 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 TaskDeleteRequest. */ + interface ITaskDeleteRequest { - /** CreateUploadLocationResponse nativeUrl */ - nativeUrl?: (string|null); + /** TaskDeleteRequest taskType */ + taskType?: (string|null); - /** CreateUploadLocationResponse expiresAt */ - expiresAt?: (google.protobuf.ITimestamp|null); + /** TaskDeleteRequest jobId */ + jobId?: (string|null); } - /** Represents a CreateUploadLocationResponse. */ - class CreateUploadLocationResponse implements ICreateUploadLocationResponse { + /** Represents a TaskDeleteRequest. */ + class TaskDeleteRequest implements ITaskDeleteRequest { /** - * Constructs a new CreateUploadLocationResponse. + * Constructs a new TaskDeleteRequest. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.service.ICreateUploadLocationResponse); - - /** CreateUploadLocationResponse signedUrl. */ - public signedUrl: string; + constructor(properties?: flyteidl.service.ITaskDeleteRequest); - /** CreateUploadLocationResponse nativeUrl. */ - public nativeUrl: string; + /** TaskDeleteRequest taskType. */ + public taskType: string; - /** CreateUploadLocationResponse expiresAt. */ - public expiresAt?: (google.protobuf.ITimestamp|null); + /** TaskDeleteRequest jobId. */ + public jobId: string; /** - * Creates a new CreateUploadLocationResponse instance using the specified properties. + * Creates a new TaskDeleteRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateUploadLocationResponse instance + * @returns TaskDeleteRequest instance */ - public static create(properties?: flyteidl.service.ICreateUploadLocationResponse): flyteidl.service.CreateUploadLocationResponse; + public static create(properties?: flyteidl.service.ITaskDeleteRequest): flyteidl.service.TaskDeleteRequest; /** - * 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 TaskDeleteRequest message. Does not implicitly {@link flyteidl.service.TaskDeleteRequest.verify|verify} messages. + * @param message TaskDeleteRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.service.ICreateUploadLocationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.ITaskDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateUploadLocationResponse message from the specified reader or buffer. + * 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 CreateUploadLocationResponse + * @returns TaskDeleteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateUploadLocationResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskDeleteRequest; /** - * Verifies a CreateUploadLocationResponse message. + * Verifies a TaskDeleteRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a CreateUploadLocationRequest. */ - interface ICreateUploadLocationRequest { - - /** CreateUploadLocationRequest project */ - project?: (string|null); - - /** CreateUploadLocationRequest domain */ - domain?: (string|null); - - /** CreateUploadLocationRequest filename */ - filename?: (string|null); - - /** CreateUploadLocationRequest expiresIn */ - expiresIn?: (google.protobuf.IDuration|null); - - /** CreateUploadLocationRequest contentMd5 */ - contentMd5?: (Uint8Array|null); + /** Properties of a TaskDeleteResponse. */ + interface ITaskDeleteResponse { } - /** Represents a CreateUploadLocationRequest. */ - class CreateUploadLocationRequest implements ICreateUploadLocationRequest { + /** Represents a TaskDeleteResponse. */ + class TaskDeleteResponse implements ITaskDeleteResponse { /** - * Constructs a new CreateUploadLocationRequest. + * Constructs a new TaskDeleteResponse. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.service.ICreateUploadLocationRequest); - - /** CreateUploadLocationRequest project. */ - public project: string; - - /** CreateUploadLocationRequest domain. */ - public domain: string; - - /** CreateUploadLocationRequest filename. */ - public filename: string; - - /** CreateUploadLocationRequest expiresIn. */ - public expiresIn?: (google.protobuf.IDuration|null); - - /** CreateUploadLocationRequest contentMd5. */ - public contentMd5: Uint8Array; + constructor(properties?: flyteidl.service.ITaskDeleteResponse); /** - * Creates a new CreateUploadLocationRequest instance using the specified properties. + * Creates a new TaskDeleteResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateUploadLocationRequest instance + * @returns TaskDeleteResponse instance */ - public static create(properties?: flyteidl.service.ICreateUploadLocationRequest): flyteidl.service.CreateUploadLocationRequest; + public static create(properties?: flyteidl.service.ITaskDeleteResponse): flyteidl.service.TaskDeleteResponse; /** - * 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 TaskDeleteResponse message. Does not implicitly {@link flyteidl.service.TaskDeleteResponse.verify|verify} messages. + * @param message TaskDeleteResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.service.ICreateUploadLocationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.ITaskDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateUploadLocationRequest message from the specified reader or buffer. + * 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 CreateUploadLocationRequest + * @returns TaskDeleteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateUploadLocationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskDeleteResponse; /** - * Verifies a CreateUploadLocationRequest message. + * 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 CreateDownloadLocationRequest. */ - interface ICreateDownloadLocationRequest { - - /** CreateDownloadLocationRequest nativeUrl */ - nativeUrl?: (string|null); - - /** CreateDownloadLocationRequest expiresIn */ - expiresIn?: (google.protobuf.IDuration|null); + /** Properties of a OAuth2MetadataRequest. */ + interface IOAuth2MetadataRequest { } - /** Represents a CreateDownloadLocationRequest. */ - class CreateDownloadLocationRequest implements ICreateDownloadLocationRequest { + /** Represents a OAuth2MetadataRequest. */ + class OAuth2MetadataRequest implements IOAuth2MetadataRequest { /** - * Constructs a new CreateDownloadLocationRequest. + * Constructs a new OAuth2MetadataRequest. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.service.ICreateDownloadLocationRequest); - - /** CreateDownloadLocationRequest nativeUrl. */ - public nativeUrl: string; - - /** CreateDownloadLocationRequest expiresIn. */ - public expiresIn?: (google.protobuf.IDuration|null); + constructor(properties?: flyteidl.service.IOAuth2MetadataRequest); /** - * Creates a new CreateDownloadLocationRequest instance using the specified properties. + * Creates a new OAuth2MetadataRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateDownloadLocationRequest instance + * @returns OAuth2MetadataRequest instance */ - public static create(properties?: flyteidl.service.ICreateDownloadLocationRequest): flyteidl.service.CreateDownloadLocationRequest; + public static create(properties?: flyteidl.service.IOAuth2MetadataRequest): flyteidl.service.OAuth2MetadataRequest; /** - * 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 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.ICreateDownloadLocationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.IOAuth2MetadataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateDownloadLocationRequest 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 CreateDownloadLocationRequest + * @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.CreateDownloadLocationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.OAuth2MetadataRequest; /** - * Verifies a CreateDownloadLocationRequest 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 CreateDownloadLocationResponse. */ - interface ICreateDownloadLocationResponse { + /** Properties of a OAuth2MetadataResponse. */ + interface IOAuth2MetadataResponse { - /** CreateDownloadLocationResponse signedUrl */ - signedUrl?: (string|null); + /** OAuth2MetadataResponse issuer */ + issuer?: (string|null); - /** CreateDownloadLocationResponse expiresAt */ - expiresAt?: (google.protobuf.ITimestamp|null); + /** OAuth2MetadataResponse authorizationEndpoint */ + authorizationEndpoint?: (string|null); + + /** OAuth2MetadataResponse tokenEndpoint */ + tokenEndpoint?: (string|null); + + /** OAuth2MetadataResponse responseTypesSupported */ + responseTypesSupported?: (string[]|null); + + /** OAuth2MetadataResponse scopesSupported */ + scopesSupported?: (string[]|null); + + /** OAuth2MetadataResponse tokenEndpointAuthMethodsSupported */ + tokenEndpointAuthMethodsSupported?: (string[]|null); + + /** OAuth2MetadataResponse jwksUri */ + jwksUri?: (string|null); + + /** OAuth2MetadataResponse codeChallengeMethodsSupported */ + codeChallengeMethodsSupported?: (string[]|null); + + /** OAuth2MetadataResponse grantTypesSupported */ + grantTypesSupported?: (string[]|null); + + /** OAuth2MetadataResponse deviceAuthorizationEndpoint */ + deviceAuthorizationEndpoint?: (string|null); } - /** Represents a CreateDownloadLocationResponse. */ - class CreateDownloadLocationResponse implements ICreateDownloadLocationResponse { + /** Represents a OAuth2MetadataResponse. */ + class OAuth2MetadataResponse implements IOAuth2MetadataResponse { /** - * Constructs a new CreateDownloadLocationResponse. + * Constructs a new OAuth2MetadataResponse. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.service.ICreateDownloadLocationResponse); + constructor(properties?: flyteidl.service.IOAuth2MetadataResponse); - /** CreateDownloadLocationResponse signedUrl. */ - public signedUrl: string; + /** OAuth2MetadataResponse issuer. */ + public issuer: string; - /** CreateDownloadLocationResponse expiresAt. */ - public expiresAt?: (google.protobuf.ITimestamp|null); + /** 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 CreateDownloadLocationResponse instance using the specified properties. + * Creates a new OAuth2MetadataResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateDownloadLocationResponse instance + * @returns OAuth2MetadataResponse instance */ - public static create(properties?: flyteidl.service.ICreateDownloadLocationResponse): flyteidl.service.CreateDownloadLocationResponse; + public static create(properties?: flyteidl.service.IOAuth2MetadataResponse): flyteidl.service.OAuth2MetadataResponse; /** - * 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 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.ICreateDownloadLocationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.IOAuth2MetadataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateDownloadLocationResponse 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 CreateDownloadLocationResponse + * @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.CreateDownloadLocationResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.OAuth2MetadataResponse; /** - * Verifies a CreateDownloadLocationResponse 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); } - /** 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); + /** Properties of a PublicClientAuthConfigRequest. */ + interface IPublicClientAuthConfigRequest { } - /** Represents a CreateDownloadLinkRequest. */ - class CreateDownloadLinkRequest implements ICreateDownloadLinkRequest { + /** Represents a PublicClientAuthConfigRequest. */ + class PublicClientAuthConfigRequest implements IPublicClientAuthConfigRequest { /** - * Constructs a new CreateDownloadLinkRequest. + * Constructs a new PublicClientAuthConfigRequest. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.service.ICreateDownloadLinkRequest); - - /** CreateDownloadLinkRequest artifactType. */ - public artifactType: flyteidl.service.ArtifactType; - - /** CreateDownloadLinkRequest expiresIn. */ - public expiresIn?: (google.protobuf.IDuration|null); - - /** CreateDownloadLinkRequest nodeExecutionId. */ - public nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** CreateDownloadLinkRequest source. */ - public source?: "nodeExecutionId"; + constructor(properties?: flyteidl.service.IPublicClientAuthConfigRequest); /** - * Creates a new CreateDownloadLinkRequest instance using the specified properties. + * Creates a new PublicClientAuthConfigRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateDownloadLinkRequest instance + * @returns PublicClientAuthConfigRequest instance */ - public static create(properties?: flyteidl.service.ICreateDownloadLinkRequest): flyteidl.service.CreateDownloadLinkRequest; + public static create(properties?: flyteidl.service.IPublicClientAuthConfigRequest): flyteidl.service.PublicClientAuthConfigRequest; /** - * Encodes the specified CreateDownloadLinkRequest message. Does not implicitly {@link flyteidl.service.CreateDownloadLinkRequest.verify|verify} messages. - * @param message CreateDownloadLinkRequest 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.ICreateDownloadLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.IPublicClientAuthConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateDownloadLinkRequest 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 CreateDownloadLinkRequest + * @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.CreateDownloadLinkRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.PublicClientAuthConfigRequest; /** - * Verifies a CreateDownloadLinkRequest 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 CreateDownloadLinkResponse. */ - interface ICreateDownloadLinkResponse { + /** Properties of a PublicClientAuthConfigResponse. */ + interface IPublicClientAuthConfigResponse { - /** CreateDownloadLinkResponse signedUrl */ - signedUrl?: (string[]|null); + /** PublicClientAuthConfigResponse clientId */ + clientId?: (string|null); - /** CreateDownloadLinkResponse expiresAt */ - expiresAt?: (google.protobuf.ITimestamp|null); + /** PublicClientAuthConfigResponse redirectUri */ + redirectUri?: (string|null); - /** CreateDownloadLinkResponse preSignedUrls */ - preSignedUrls?: (flyteidl.service.IPreSignedURLs|null); + /** PublicClientAuthConfigResponse scopes */ + scopes?: (string[]|null); + + /** PublicClientAuthConfigResponse authorizationMetadataKey */ + authorizationMetadataKey?: (string|null); + + /** PublicClientAuthConfigResponse serviceHttpEndpoint */ + serviceHttpEndpoint?: (string|null); + + /** PublicClientAuthConfigResponse audience */ + audience?: (string|null); } - /** Represents a CreateDownloadLinkResponse. */ - class CreateDownloadLinkResponse implements ICreateDownloadLinkResponse { + /** Represents a PublicClientAuthConfigResponse. */ + class PublicClientAuthConfigResponse implements IPublicClientAuthConfigResponse { /** - * Constructs a new CreateDownloadLinkResponse. + * Constructs a new PublicClientAuthConfigResponse. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.service.ICreateDownloadLinkResponse); + constructor(properties?: flyteidl.service.IPublicClientAuthConfigResponse); - /** CreateDownloadLinkResponse signedUrl. */ - public signedUrl: string[]; + /** PublicClientAuthConfigResponse clientId. */ + public clientId: string; - /** CreateDownloadLinkResponse expiresAt. */ - public expiresAt?: (google.protobuf.ITimestamp|null); + /** PublicClientAuthConfigResponse redirectUri. */ + public redirectUri: string; - /** CreateDownloadLinkResponse preSignedUrls. */ - public preSignedUrls?: (flyteidl.service.IPreSignedURLs|null); + /** PublicClientAuthConfigResponse scopes. */ + public scopes: string[]; + + /** PublicClientAuthConfigResponse authorizationMetadataKey. */ + public authorizationMetadataKey: string; + + /** PublicClientAuthConfigResponse serviceHttpEndpoint. */ + public serviceHttpEndpoint: string; + + /** PublicClientAuthConfigResponse audience. */ + public audience: string; /** - * Creates a new CreateDownloadLinkResponse instance using the specified properties. + * Creates a new PublicClientAuthConfigResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateDownloadLinkResponse instance + * @returns PublicClientAuthConfigResponse instance */ - public static create(properties?: flyteidl.service.ICreateDownloadLinkResponse): flyteidl.service.CreateDownloadLinkResponse; + public static create(properties?: flyteidl.service.IPublicClientAuthConfigResponse): flyteidl.service.PublicClientAuthConfigResponse; /** - * 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 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.ICreateDownloadLinkResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.IPublicClientAuthConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateDownloadLinkResponse 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 CreateDownloadLinkResponse + * @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.CreateDownloadLinkResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.PublicClientAuthConfigResponse; /** - * Verifies a CreateDownloadLinkResponse 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 PreSignedURLs. */ - interface IPreSignedURLs { + /** Represents an AuthMetadataService */ + class AuthMetadataService extends $protobuf.rpc.Service { - /** PreSignedURLs signedUrl */ - signedUrl?: (string[]|null); + /** + * 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); - /** PreSignedURLs expiresAt */ + /** + * Creates new AuthMetadataService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AuthMetadataService; + + /** + * Calls GetOAuth2Metadata. + * @param request OAuth2MetadataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and OAuth2MetadataResponse + */ + public getOAuth2Metadata(request: flyteidl.service.IOAuth2MetadataRequest, callback: flyteidl.service.AuthMetadataService.GetOAuth2MetadataCallback): void; + + /** + * Calls GetOAuth2Metadata. + * @param request OAuth2MetadataRequest message or plain object + * @returns Promise + */ + public getOAuth2Metadata(request: flyteidl.service.IOAuth2MetadataRequest): Promise; + + /** + * Calls GetPublicClientConfig. + * @param request PublicClientAuthConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and PublicClientAuthConfigResponse + */ + public getPublicClientConfig(request: flyteidl.service.IPublicClientAuthConfigRequest, callback: flyteidl.service.AuthMetadataService.GetPublicClientConfigCallback): void; + + /** + * Calls GetPublicClientConfig. + * @param request PublicClientAuthConfigRequest message or plain object + * @returns Promise + */ + public getPublicClientConfig(request: flyteidl.service.IPublicClientAuthConfigRequest): Promise; + } + + namespace AuthMetadataService { + + /** + * Callback as used by {@link flyteidl.service.AuthMetadataService#getOAuth2Metadata}. + * @param error Error, if any + * @param [response] OAuth2MetadataResponse + */ + type GetOAuth2MetadataCallback = (error: (Error|null), response?: flyteidl.service.OAuth2MetadataResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AuthMetadataService#getPublicClientConfig}. + * @param error Error, if any + * @param [response] PublicClientAuthConfigResponse + */ + type GetPublicClientConfigCallback = (error: (Error|null), response?: flyteidl.service.PublicClientAuthConfigResponse) => void; + } + + /** Properties of a CreateUploadLocationResponse. */ + interface ICreateUploadLocationResponse { + + /** CreateUploadLocationResponse signedUrl */ + signedUrl?: (string|null); + + /** CreateUploadLocationResponse nativeUrl */ + nativeUrl?: (string|null); + + /** CreateUploadLocationResponse expiresAt */ expiresAt?: (google.protobuf.ITimestamp|null); } - /** Represents a PreSignedURLs. */ - class PreSignedURLs implements IPreSignedURLs { + /** Represents a CreateUploadLocationResponse. */ + class CreateUploadLocationResponse implements ICreateUploadLocationResponse { /** - * Constructs a new PreSignedURLs. + * Constructs a new CreateUploadLocationResponse. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.service.IPreSignedURLs); + constructor(properties?: flyteidl.service.ICreateUploadLocationResponse); - /** PreSignedURLs signedUrl. */ - public signedUrl: string[]; + /** CreateUploadLocationResponse signedUrl. */ + public signedUrl: string; - /** PreSignedURLs expiresAt. */ + /** CreateUploadLocationResponse nativeUrl. */ + public nativeUrl: string; + + /** CreateUploadLocationResponse expiresAt. */ public expiresAt?: (google.protobuf.ITimestamp|null); /** - * Creates a new PreSignedURLs instance using the specified properties. + * Creates a new CreateUploadLocationResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PreSignedURLs instance + * @returns CreateUploadLocationResponse instance */ - public static create(properties?: flyteidl.service.IPreSignedURLs): flyteidl.service.PreSignedURLs; + public static create(properties?: flyteidl.service.ICreateUploadLocationResponse): flyteidl.service.CreateUploadLocationResponse; /** - * 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 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.IPreSignedURLs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.ICreateUploadLocationResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PreSignedURLs 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 PreSignedURLs + * @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.PreSignedURLs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateUploadLocationResponse; /** - * Verifies a PreSignedURLs 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 GetDataRequest. */ - interface IGetDataRequest { + /** Properties of a CreateUploadLocationRequest. */ + interface ICreateUploadLocationRequest { - /** GetDataRequest flyteUrl */ - flyteUrl?: (string|null); + /** CreateUploadLocationRequest project */ + project?: (string|null); + + /** CreateUploadLocationRequest domain */ + domain?: (string|null); + + /** CreateUploadLocationRequest filename */ + filename?: (string|null); + + /** CreateUploadLocationRequest expiresIn */ + expiresIn?: (google.protobuf.IDuration|null); + + /** CreateUploadLocationRequest contentMd5 */ + contentMd5?: (Uint8Array|null); } - /** Represents a GetDataRequest. */ - class GetDataRequest implements IGetDataRequest { + /** Represents a CreateUploadLocationRequest. */ + class CreateUploadLocationRequest implements ICreateUploadLocationRequest { /** - * Constructs a new GetDataRequest. + * Constructs a new CreateUploadLocationRequest. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.service.IGetDataRequest); + constructor(properties?: flyteidl.service.ICreateUploadLocationRequest); - /** GetDataRequest flyteUrl. */ - public flyteUrl: string; + /** CreateUploadLocationRequest project. */ + public project: string; + + /** CreateUploadLocationRequest domain. */ + public domain: string; + + /** CreateUploadLocationRequest filename. */ + public filename: string; + + /** CreateUploadLocationRequest expiresIn. */ + public expiresIn?: (google.protobuf.IDuration|null); + + /** CreateUploadLocationRequest contentMd5. */ + public contentMd5: Uint8Array; /** - * Creates a new GetDataRequest instance using the specified properties. + * Creates a new CreateUploadLocationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetDataRequest instance + * @returns CreateUploadLocationRequest instance */ - public static create(properties?: flyteidl.service.IGetDataRequest): flyteidl.service.GetDataRequest; + public static create(properties?: flyteidl.service.ICreateUploadLocationRequest): flyteidl.service.CreateUploadLocationRequest; /** - * 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 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.IGetDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.ICreateUploadLocationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetDataRequest 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 GetDataRequest + * @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.GetDataRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateUploadLocationRequest; /** - * Verifies a GetDataRequest 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 GetDataResponse. */ - interface IGetDataResponse { - - /** GetDataResponse literalMap */ - literalMap?: (flyteidl.core.ILiteralMap|null); + /** Properties of a CreateDownloadLocationRequest. */ + interface ICreateDownloadLocationRequest { - /** GetDataResponse preSignedUrls */ - preSignedUrls?: (flyteidl.service.IPreSignedURLs|null); + /** CreateDownloadLocationRequest nativeUrl */ + nativeUrl?: (string|null); - /** GetDataResponse literal */ - literal?: (flyteidl.core.ILiteral|null); + /** CreateDownloadLocationRequest expiresIn */ + expiresIn?: (google.protobuf.IDuration|null); } - /** Represents a GetDataResponse. */ - class GetDataResponse implements IGetDataResponse { + /** Represents a CreateDownloadLocationRequest. */ + class CreateDownloadLocationRequest implements ICreateDownloadLocationRequest { /** - * Constructs a new GetDataResponse. + * Constructs a new CreateDownloadLocationRequest. * @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.ICreateDownloadLocationRequest); - /** GetDataResponse literal. */ - public literal?: (flyteidl.core.ILiteral|null); + /** CreateDownloadLocationRequest nativeUrl. */ + public nativeUrl: string; - /** GetDataResponse data. */ - public data?: ("literalMap"|"preSignedUrls"|"literal"); + /** CreateDownloadLocationRequest expiresIn. */ + public expiresIn?: (google.protobuf.IDuration|null); /** - * Creates a new GetDataResponse instance using the specified properties. + * Creates a new CreateDownloadLocationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetDataResponse instance + * @returns CreateDownloadLocationRequest instance */ - public static create(properties?: flyteidl.service.IGetDataResponse): flyteidl.service.GetDataResponse; + public static create(properties?: flyteidl.service.ICreateDownloadLocationRequest): flyteidl.service.CreateDownloadLocationRequest; /** - * 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 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.IGetDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.ICreateDownloadLocationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetDataResponse 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 GetDataResponse + * @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.GetDataResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateDownloadLocationRequest; /** - * Verifies a GetDataResponse 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); } - /** Represents a DataProxyService */ - class DataProxyService extends $protobuf.rpc.Service { + /** Properties of a CreateDownloadLocationResponse. */ + interface ICreateDownloadLocationResponse { + + /** CreateDownloadLocationResponse signedUrl */ + signedUrl?: (string|null); + + /** CreateDownloadLocationResponse expiresAt */ + expiresAt?: (google.protobuf.ITimestamp|null); + } + + /** Represents a CreateDownloadLocationResponse. */ + class CreateDownloadLocationResponse implements ICreateDownloadLocationResponse { /** - * Constructs a new DataProxyService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Constructs a new CreateDownloadLocationResponse. + * @param [properties] Properties to set */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + constructor(properties?: flyteidl.service.ICreateDownloadLocationResponse); - /** - * Creates new DataProxyService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DataProxyService; - - /** - * Calls CreateUploadLocation. - * @param request CreateUploadLocationRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CreateUploadLocationResponse - */ - public createUploadLocation(request: flyteidl.service.ICreateUploadLocationRequest, callback: flyteidl.service.DataProxyService.CreateUploadLocationCallback): void; - - /** - * Calls CreateUploadLocation. - * @param request CreateUploadLocationRequest message or plain object - * @returns Promise - */ - public createUploadLocation(request: flyteidl.service.ICreateUploadLocationRequest): Promise; - - /** - * Calls CreateDownloadLocation. - * @param request CreateDownloadLocationRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CreateDownloadLocationResponse - */ - public createDownloadLocation(request: flyteidl.service.ICreateDownloadLocationRequest, callback: flyteidl.service.DataProxyService.CreateDownloadLocationCallback): void; + /** CreateDownloadLocationResponse signedUrl. */ + public signedUrl: string; - /** - * Calls CreateDownloadLocation. - * @param request CreateDownloadLocationRequest message or plain object - * @returns Promise - */ - public createDownloadLocation(request: flyteidl.service.ICreateDownloadLocationRequest): Promise; + /** CreateDownloadLocationResponse expiresAt. */ + public expiresAt?: (google.protobuf.ITimestamp|null); /** - * 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 CreateDownloadLocationResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateDownloadLocationResponse instance */ - public createDownloadLink(request: flyteidl.service.ICreateDownloadLinkRequest, callback: flyteidl.service.DataProxyService.CreateDownloadLinkCallback): void; + public static create(properties?: flyteidl.service.ICreateDownloadLocationResponse): flyteidl.service.CreateDownloadLocationResponse; /** - * Calls CreateDownloadLink. - * @param request CreateDownloadLinkRequest message or plain object - * @returns Promise + * 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 createDownloadLink(request: flyteidl.service.ICreateDownloadLinkRequest): Promise; + public static encode(message: flyteidl.service.ICreateDownloadLocationResponse, 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 CreateDownloadLocationResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateDownloadLocationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getData(request: flyteidl.service.IGetDataRequest, callback: flyteidl.service.DataProxyService.GetDataCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateDownloadLocationResponse; /** - * Calls GetData. - * @param request GetDataRequest message or plain object - * @returns Promise + * Verifies a CreateDownloadLocationResponse 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 { + /** ArtifactType enum. */ + enum ArtifactType { + ARTIFACT_TYPE_UNDEFINED = 0, + ARTIFACT_TYPE_DECK = 1 + } - /** - * 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; + /** Properties of a CreateDownloadLinkRequest. */ + interface ICreateDownloadLinkRequest { - /** - * 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; + /** CreateDownloadLinkRequest artifactType */ + artifactType?: (flyteidl.service.ArtifactType|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; + /** CreateDownloadLinkRequest expiresIn */ + expiresIn?: (google.protobuf.IDuration|null); - /** - * 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; + /** CreateDownloadLinkRequest nodeExecutionId */ + nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); } - /** Represents an ExternalPluginService */ - class ExternalPluginService extends $protobuf.rpc.Service { - - /** - * Constructs a new ExternalPluginService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new ExternalPluginService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ExternalPluginService; + /** Represents a CreateDownloadLinkRequest. */ + class CreateDownloadLinkRequest implements ICreateDownloadLinkRequest { /** - * Calls CreateTask. - * @param request TaskCreateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TaskCreateResponse + * Constructs a new CreateDownloadLinkRequest. + * @param [properties] Properties to set */ - public createTask(request: flyteidl.service.ITaskCreateRequest, callback: flyteidl.service.ExternalPluginService.CreateTaskCallback): void; + constructor(properties?: flyteidl.service.ICreateDownloadLinkRequest); - /** - * Calls CreateTask. - * @param request TaskCreateRequest message or plain object - * @returns Promise - */ - public createTask(request: flyteidl.service.ITaskCreateRequest): Promise; + /** CreateDownloadLinkRequest artifactType. */ + public artifactType: flyteidl.service.ArtifactType; - /** - * 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; + /** CreateDownloadLinkRequest expiresIn. */ + public expiresIn?: (google.protobuf.IDuration|null); - /** - * Calls GetTask. - * @param request TaskGetRequest message or plain object - * @returns Promise - */ - public getTask(request: flyteidl.service.ITaskGetRequest): Promise; + /** CreateDownloadLinkRequest nodeExecutionId. */ + public nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); - /** - * 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; + /** CreateDownloadLinkRequest source. */ + public source?: "nodeExecutionId"; /** - * Calls DeleteTask. - * @param request TaskDeleteRequest message or plain object - * @returns Promise + * Creates a new CreateDownloadLinkRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateDownloadLinkRequest instance */ - public deleteTask(request: flyteidl.service.ITaskDeleteRequest): Promise; - } - - namespace ExternalPluginService { + public static create(properties?: flyteidl.service.ICreateDownloadLinkRequest): flyteidl.service.CreateDownloadLinkRequest; /** - * Callback as used by {@link flyteidl.service.ExternalPluginService#createTask}. - * @param error Error, if any - * @param [response] TaskCreateResponse + * 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 */ - type CreateTaskCallback = (error: (Error|null), response?: flyteidl.service.TaskCreateResponse) => void; + public static encode(message: flyteidl.service.ICreateDownloadLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link flyteidl.service.ExternalPluginService#getTask}. - * @param error Error, if any - * @param [response] TaskGetResponse + * 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 GetTaskCallback = (error: (Error|null), response?: flyteidl.service.TaskGetResponse) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateDownloadLinkRequest; /** - * Callback as used by {@link flyteidl.service.ExternalPluginService#deleteTask}. - * @param error Error, if any - * @param [response] TaskDeleteResponse + * Verifies a CreateDownloadLinkRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - 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 + public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a TaskCreateRequest. */ - interface ITaskCreateRequest { + /** Properties of a CreateDownloadLinkResponse. */ + interface ICreateDownloadLinkResponse { - /** TaskCreateRequest inputs */ - inputs?: (flyteidl.core.ILiteralMap|null); + /** CreateDownloadLinkResponse signedUrl */ + signedUrl?: (string[]|null); - /** TaskCreateRequest template */ - template?: (flyteidl.core.ITaskTemplate|null); + /** CreateDownloadLinkResponse expiresAt */ + expiresAt?: (google.protobuf.ITimestamp|null); - /** TaskCreateRequest outputPrefix */ - outputPrefix?: (string|null); + /** CreateDownloadLinkResponse preSignedUrls */ + preSignedUrls?: (flyteidl.service.IPreSignedURLs|null); } - /** Represents a TaskCreateRequest. */ - class TaskCreateRequest implements ITaskCreateRequest { + /** Represents a CreateDownloadLinkResponse. */ + class CreateDownloadLinkResponse implements ICreateDownloadLinkResponse { /** - * Constructs a new TaskCreateRequest. + * Constructs a new CreateDownloadLinkResponse. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.service.ITaskCreateRequest); + constructor(properties?: flyteidl.service.ICreateDownloadLinkResponse); - /** TaskCreateRequest inputs. */ - public inputs?: (flyteidl.core.ILiteralMap|null); + /** CreateDownloadLinkResponse signedUrl. */ + public signedUrl: string[]; - /** TaskCreateRequest template. */ - public template?: (flyteidl.core.ITaskTemplate|null); + /** CreateDownloadLinkResponse expiresAt. */ + public expiresAt?: (google.protobuf.ITimestamp|null); - /** TaskCreateRequest outputPrefix. */ - public outputPrefix: string; + /** CreateDownloadLinkResponse preSignedUrls. */ + public preSignedUrls?: (flyteidl.service.IPreSignedURLs|null); /** - * Creates a new TaskCreateRequest instance using the specified properties. + * Creates a new CreateDownloadLinkResponse instance using the specified properties. * @param [properties] Properties to set - * @returns TaskCreateRequest instance + * @returns CreateDownloadLinkResponse instance */ - public static create(properties?: flyteidl.service.ITaskCreateRequest): flyteidl.service.TaskCreateRequest; + public static create(properties?: flyteidl.service.ICreateDownloadLinkResponse): flyteidl.service.CreateDownloadLinkResponse; /** - * 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 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.ITaskCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.ICreateDownloadLinkResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TaskCreateRequest 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 TaskCreateRequest + * @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.TaskCreateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateDownloadLinkResponse; /** - * Verifies a TaskCreateRequest 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 TaskCreateResponse. */ - interface ITaskCreateResponse { + /** Properties of a PreSignedURLs. */ + interface IPreSignedURLs { - /** TaskCreateResponse jobId */ - jobId?: (string|null); + /** PreSignedURLs signedUrl */ + signedUrl?: (string[]|null); + + /** PreSignedURLs expiresAt */ + expiresAt?: (google.protobuf.ITimestamp|null); } - /** Represents a TaskCreateResponse. */ - class TaskCreateResponse implements ITaskCreateResponse { + /** Represents a PreSignedURLs. */ + class PreSignedURLs implements IPreSignedURLs { /** - * Constructs a new TaskCreateResponse. + * Constructs a new PreSignedURLs. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.service.ITaskCreateResponse); + constructor(properties?: flyteidl.service.IPreSignedURLs); - /** TaskCreateResponse jobId. */ - public jobId: string; + /** PreSignedURLs signedUrl. */ + public signedUrl: string[]; + + /** PreSignedURLs expiresAt. */ + public expiresAt?: (google.protobuf.ITimestamp|null); /** - * Creates a new TaskCreateResponse instance using the specified properties. + * Creates a new PreSignedURLs instance using the specified properties. * @param [properties] Properties to set - * @returns TaskCreateResponse instance + * @returns PreSignedURLs instance */ - public static create(properties?: flyteidl.service.ITaskCreateResponse): flyteidl.service.TaskCreateResponse; + public static create(properties?: flyteidl.service.IPreSignedURLs): flyteidl.service.PreSignedURLs; - /** - * Encodes the specified TaskCreateResponse message. Does not implicitly {@link flyteidl.service.TaskCreateResponse.verify|verify} messages. - * @param message TaskCreateResponse 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.ITaskCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.IPreSignedURLs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TaskCreateResponse 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 TaskCreateResponse + * @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.TaskCreateResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.PreSignedURLs; /** - * Verifies a TaskCreateResponse 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 TaskGetRequest. */ - interface ITaskGetRequest { - - /** TaskGetRequest taskType */ - taskType?: (string|null); + /** Properties of a GetDataRequest. */ + interface IGetDataRequest { - /** TaskGetRequest jobId */ - jobId?: (string|null); + /** GetDataRequest flyteUrl */ + flyteUrl?: (string|null); } - /** Represents a TaskGetRequest. */ - class TaskGetRequest implements ITaskGetRequest { + /** Represents a GetDataRequest. */ + class GetDataRequest implements IGetDataRequest { /** - * Constructs a new TaskGetRequest. + * Constructs a new GetDataRequest. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.service.ITaskGetRequest); - - /** TaskGetRequest taskType. */ - public taskType: string; + constructor(properties?: flyteidl.service.IGetDataRequest); - /** TaskGetRequest jobId. */ - public jobId: string; + /** GetDataRequest flyteUrl. */ + public flyteUrl: string; /** - * Creates a new TaskGetRequest instance using the specified properties. + * Creates a new GetDataRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TaskGetRequest instance + * @returns GetDataRequest instance */ - public static create(properties?: flyteidl.service.ITaskGetRequest): flyteidl.service.TaskGetRequest; + public static create(properties?: flyteidl.service.IGetDataRequest): flyteidl.service.GetDataRequest; /** - * 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 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.ITaskGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.IGetDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TaskGetRequest 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 TaskGetRequest + * @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.TaskGetRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.GetDataRequest; /** - * Verifies a TaskGetRequest 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 TaskGetResponse. */ - interface ITaskGetResponse { + /** Properties of a GetDataResponse. */ + interface IGetDataResponse { - /** TaskGetResponse state */ - state?: (flyteidl.service.State|null); + /** GetDataResponse literalMap */ + literalMap?: (flyteidl.core.ILiteralMap|null); - /** TaskGetResponse outputs */ - outputs?: (flyteidl.core.ILiteralMap|null); + /** GetDataResponse preSignedUrls */ + preSignedUrls?: (flyteidl.service.IPreSignedURLs|null); + + /** GetDataResponse literal */ + literal?: (flyteidl.core.ILiteral|null); } - /** Represents a TaskGetResponse. */ - class TaskGetResponse implements ITaskGetResponse { + /** Represents a GetDataResponse. */ + class GetDataResponse implements IGetDataResponse { /** - * Constructs a new TaskGetResponse. + * Constructs a new GetDataResponse. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.service.ITaskGetResponse); + constructor(properties?: flyteidl.service.IGetDataResponse); - /** TaskGetResponse state. */ - public state: flyteidl.service.State; + /** GetDataResponse literalMap. */ + public literalMap?: (flyteidl.core.ILiteralMap|null); - /** TaskGetResponse outputs. */ - public outputs?: (flyteidl.core.ILiteralMap|null); + /** GetDataResponse preSignedUrls. */ + public preSignedUrls?: (flyteidl.service.IPreSignedURLs|null); + + /** GetDataResponse literal. */ + public literal?: (flyteidl.core.ILiteral|null); + + /** GetDataResponse data. */ + public data?: ("literalMap"|"preSignedUrls"|"literal"); /** - * Creates a new TaskGetResponse instance using the specified properties. + * Creates a new GetDataResponse instance using the specified properties. * @param [properties] Properties to set - * @returns TaskGetResponse instance + * @returns GetDataResponse instance */ - public static create(properties?: flyteidl.service.ITaskGetResponse): flyteidl.service.TaskGetResponse; + public static create(properties?: flyteidl.service.IGetDataResponse): flyteidl.service.GetDataResponse; /** - * 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 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.ITaskGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.IGetDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TaskGetResponse 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 TaskGetResponse + * @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.TaskGetResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.GetDataResponse; /** - * Verifies a TaskGetResponse 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); } - /** Properties of a TaskDeleteRequest. */ - interface ITaskDeleteRequest { - - /** TaskDeleteRequest taskType */ - taskType?: (string|null); - - /** TaskDeleteRequest jobId */ - jobId?: (string|null); - } - - /** Represents a TaskDeleteRequest. */ - class TaskDeleteRequest implements ITaskDeleteRequest { + /** Represents a DataProxyService */ + class DataProxyService extends $protobuf.rpc.Service { /** - * Constructs a new TaskDeleteRequest. - * @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.ITaskDeleteRequest); + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** TaskDeleteRequest taskType. */ - public taskType: string; + /** + * 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. */ - public jobId: string; + /** + * 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; /** - * Creates a new TaskDeleteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskDeleteRequest instance + * Calls CreateUploadLocation. + * @param request CreateUploadLocationRequest message or plain object + * @returns Promise */ - public static create(properties?: flyteidl.service.ITaskDeleteRequest): flyteidl.service.TaskDeleteRequest; + public createUploadLocation(request: flyteidl.service.ICreateUploadLocationRequest): 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 + * Calls CreateDownloadLocation. + * @param request CreateDownloadLocationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CreateDownloadLocationResponse */ - public static encode(message: flyteidl.service.ITaskDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createDownloadLocation(request: flyteidl.service.ICreateDownloadLocationRequest, callback: flyteidl.service.DataProxyService.CreateDownloadLocationCallback): void; /** - * 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 + * Calls CreateDownloadLocation. + * @param request CreateDownloadLocationRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskDeleteRequest; + public createDownloadLocation(request: flyteidl.service.ICreateDownloadLocationRequest): Promise; /** - * Verifies a TaskDeleteRequest 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 + * @param callback Node-style callback called with the error, if any, and CreateDownloadLinkResponse */ - public static verify(message: { [k: string]: any }): (string|null); - } + public createDownloadLink(request: flyteidl.service.ICreateDownloadLinkRequest, callback: flyteidl.service.DataProxyService.CreateDownloadLinkCallback): void; - /** Properties of a TaskDeleteResponse. */ - interface ITaskDeleteResponse { - } + /** + * Calls CreateDownloadLink. + * @param request CreateDownloadLinkRequest message or plain object + * @returns Promise + */ + public createDownloadLink(request: flyteidl.service.ICreateDownloadLinkRequest): Promise; - /** Represents a TaskDeleteResponse. */ - class TaskDeleteResponse implements ITaskDeleteResponse { + /** + * 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; /** - * Constructs a new TaskDeleteResponse. - * @param [properties] Properties to set + * Calls GetData. + * @param request GetDataRequest message or plain object + * @returns Promise */ - constructor(properties?: flyteidl.service.ITaskDeleteResponse); + public getData(request: flyteidl.service.IGetDataRequest): Promise; + } + + namespace DataProxyService { /** - * Creates a new TaskDeleteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskDeleteResponse instance + * Callback as used by {@link flyteidl.service.DataProxyService#createUploadLocation}. + * @param error Error, if any + * @param [response] CreateUploadLocationResponse */ - public static create(properties?: flyteidl.service.ITaskDeleteResponse): flyteidl.service.TaskDeleteResponse; + type CreateUploadLocationCallback = (error: (Error|null), response?: flyteidl.service.CreateUploadLocationResponse) => 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 + * Callback as used by {@link flyteidl.service.DataProxyService#createDownloadLocation}. + * @param error Error, if any + * @param [response] CreateDownloadLocationResponse */ - public static encode(message: flyteidl.service.ITaskDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + type CreateDownloadLocationCallback = (error: (Error|null), response?: flyteidl.service.CreateDownloadLocationResponse) => void; /** - * 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 + * Callback as used by {@link flyteidl.service.DataProxyService#createDownloadLink}. + * @param error Error, if any + * @param [response] CreateDownloadLinkResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskDeleteResponse; + type CreateDownloadLinkCallback = (error: (Error|null), response?: flyteidl.service.CreateDownloadLinkResponse) => void; /** - * Verifies a TaskDeleteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link flyteidl.service.DataProxyService#getData}. + * @param error Error, if any + * @param [response] GetDataResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type GetDataCallback = (error: (Error|null), response?: flyteidl.service.GetDataResponse) => void; } /** Properties of a UserInfoRequest. */ diff --git a/gen/pb-js/flyteidl.js b/gen/pb-js/flyteidl.js index 0c4701d02..c90890eac 100644 --- a/gen/pb-js/flyteidl.js +++ b/gen/pb-js/flyteidl.js @@ -43875,23 +43875,180 @@ return AdminService; })(); - service.OAuth2MetadataRequest = (function() { + service.AgentService = (function() { /** - * Properties of a OAuth2MetadataRequest. + * Constructs a new AgentService service. * @memberof flyteidl.service - * @interface IOAuth2MetadataRequest + * @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 */ + function AgentService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (AgentService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AgentService; /** - * Constructs a new OAuth2MetadataRequest. + * 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. + */ + AgentService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * 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 + */ + + /** + * Calls CreateTask. + * @function createTask + * @memberof flyteidl.service.AgentService + * @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" }); + + /** + * Calls CreateTask. + * @function createTask + * @memberof flyteidl.service.AgentService + * @instance + * @param {flyteidl.service.ITaskCreateRequest} request TaskCreateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * 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 + */ + + /** + * Calls GetTask. + * @function getTask + * @memberof flyteidl.service.AgentService + * @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" }); + + /** + * Calls GetTask. + * @function getTask + * @memberof flyteidl.service.AgentService + * @instance + * @param {flyteidl.service.ITaskGetRequest} request TaskGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * 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 + */ + + /** + * 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 + */ + 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" }); + + /** + * Calls DeleteTask. + * @function deleteTask + * @memberof flyteidl.service.AgentService + * @instance + * @param {flyteidl.service.ITaskDeleteRequest} request TaskDeleteRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + 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; + })(); + + service.TaskCreateRequest = (function() { + + /** + * Properties of a TaskCreateRequest. * @memberof flyteidl.service - * @classdesc Represents a OAuth2MetadataRequest. - * @implements IOAuth2MetadataRequest + * @interface ITaskCreateRequest + * @property {flyteidl.core.ILiteralMap|null} [inputs] TaskCreateRequest inputs + * @property {flyteidl.core.ITaskTemplate|null} [template] TaskCreateRequest template + * @property {string|null} [outputPrefix] TaskCreateRequest outputPrefix + */ + + /** + * Constructs a new TaskCreateRequest. + * @memberof flyteidl.service + * @classdesc Represents a TaskCreateRequest. + * @implements ITaskCreateRequest * @constructor - * @param {flyteidl.service.IOAuth2MetadataRequest=} [properties] Properties to set + * @param {flyteidl.service.ITaskCreateRequest=} [properties] Properties to set */ - function OAuth2MetadataRequest(properties) { + function TaskCreateRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -43899,50 +44056,89 @@ } /** - * Creates a new OAuth2MetadataRequest instance using the specified properties. + * TaskCreateRequest inputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} inputs + * @memberof flyteidl.service.TaskCreateRequest + * @instance + */ + TaskCreateRequest.prototype.inputs = null; + + /** + * TaskCreateRequest template. + * @member {flyteidl.core.ITaskTemplate|null|undefined} template + * @memberof flyteidl.service.TaskCreateRequest + * @instance + */ + TaskCreateRequest.prototype.template = null; + + /** + * TaskCreateRequest outputPrefix. + * @member {string} outputPrefix + * @memberof flyteidl.service.TaskCreateRequest + * @instance + */ + TaskCreateRequest.prototype.outputPrefix = ""; + + /** + * Creates a new TaskCreateRequest instance using the specified properties. * @function create - * @memberof flyteidl.service.OAuth2MetadataRequest + * @memberof flyteidl.service.TaskCreateRequest * @static - * @param {flyteidl.service.IOAuth2MetadataRequest=} [properties] Properties to set - * @returns {flyteidl.service.OAuth2MetadataRequest} OAuth2MetadataRequest instance + * @param {flyteidl.service.ITaskCreateRequest=} [properties] Properties to set + * @returns {flyteidl.service.TaskCreateRequest} TaskCreateRequest instance */ - OAuth2MetadataRequest.create = function create(properties) { - return new OAuth2MetadataRequest(properties); + TaskCreateRequest.create = function create(properties) { + return new TaskCreateRequest(properties); }; /** - * Encodes the specified OAuth2MetadataRequest message. Does not implicitly {@link flyteidl.service.OAuth2MetadataRequest.verify|verify} messages. + * Encodes the specified TaskCreateRequest message. Does not implicitly {@link flyteidl.service.TaskCreateRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.service.OAuth2MetadataRequest + * @memberof flyteidl.service.TaskCreateRequest * @static - * @param {flyteidl.service.IOAuth2MetadataRequest} message OAuth2MetadataRequest 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 */ - OAuth2MetadataRequest.encode = function encode(message, writer) { + TaskCreateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.inputs != null && message.hasOwnProperty("inputs")) + $root.flyteidl.core.LiteralMap.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.template != null && message.hasOwnProperty("template")) + $root.flyteidl.core.TaskTemplate.encode(message.template, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputPrefix); return writer; }; /** - * Decodes a OAuth2MetadataRequest message from the specified reader or buffer. + * Decodes a TaskCreateRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.OAuth2MetadataRequest + * @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.OAuth2MetadataRequest} OAuth2MetadataRequest + * @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 */ - OAuth2MetadataRequest.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.OAuth2MetadataRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.TaskCreateRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.inputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 2: + message.template = $root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32()); + break; + case 3: + message.outputPrefix = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -43952,54 +44148,53 @@ }; /** - * Verifies a OAuth2MetadataRequest message. + * Verifies a TaskCreateRequest message. * @function verify - * @memberof flyteidl.service.OAuth2MetadataRequest + * @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 */ - OAuth2MetadataRequest.verify = function verify(message) { + TaskCreateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.inputs); + if (error) + return "inputs." + error; + } + if (message.template != null && message.hasOwnProperty("template")) { + var error = $root.flyteidl.core.TaskTemplate.verify(message.template); + if (error) + return "template." + error; + } + if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix")) + if (!$util.isString(message.outputPrefix)) + return "outputPrefix: string expected"; return null; }; - return OAuth2MetadataRequest; + return TaskCreateRequest; })(); - service.OAuth2MetadataResponse = (function() { + service.TaskCreateResponse = (function() { /** - * Properties of a OAuth2MetadataResponse. + * Properties of a TaskCreateResponse. * @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 + * @interface ITaskCreateResponse + * @property {string|null} [jobId] TaskCreateResponse jobId */ /** - * Constructs a new OAuth2MetadataResponse. + * Constructs a new TaskCreateResponse. * @memberof flyteidl.service - * @classdesc Represents a OAuth2MetadataResponse. - * @implements IOAuth2MetadataResponse + * @classdesc Represents a TaskCreateResponse. + * @implements ITaskCreateResponse * @constructor - * @param {flyteidl.service.IOAuth2MetadataResponse=} [properties] Properties to set + * @param {flyteidl.service.ITaskCreateResponse=} [properties] Properties to set */ - function OAuth2MetadataResponse(properties) { - this.responseTypesSupported = []; - this.scopesSupported = []; - this.tokenEndpointAuthMethodsSupported = []; - this.codeChallengeMethodsSupported = []; - this.grantTypesSupported = []; + function TaskCreateResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -44007,194 +44202,186 @@ } /** - * OAuth2MetadataResponse issuer. - * @member {string} issuer - * @memberof flyteidl.service.OAuth2MetadataResponse + * TaskCreateResponse jobId. + * @member {string} jobId + * @memberof flyteidl.service.TaskCreateResponse * @instance */ - OAuth2MetadataResponse.prototype.issuer = ""; + TaskCreateResponse.prototype.jobId = ""; /** - * OAuth2MetadataResponse authorizationEndpoint. - * @member {string} authorizationEndpoint - * @memberof flyteidl.service.OAuth2MetadataResponse - * @instance + * Creates a new TaskCreateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.service.TaskCreateResponse + * @static + * @param {flyteidl.service.ITaskCreateResponse=} [properties] Properties to set + * @returns {flyteidl.service.TaskCreateResponse} TaskCreateResponse instance */ - OAuth2MetadataResponse.prototype.authorizationEndpoint = ""; + TaskCreateResponse.create = function create(properties) { + return new TaskCreateResponse(properties); + }; /** - * OAuth2MetadataResponse tokenEndpoint. - * @member {string} tokenEndpoint - * @memberof flyteidl.service.OAuth2MetadataResponse - * @instance + * Encodes the specified TaskCreateResponse message. Does not implicitly {@link flyteidl.service.TaskCreateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.TaskCreateResponse + * @static + * @param {flyteidl.service.ITaskCreateResponse} message TaskCreateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - OAuth2MetadataResponse.prototype.tokenEndpoint = ""; + TaskCreateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.jobId != null && message.hasOwnProperty("jobId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.jobId); + return writer; + }; /** - * OAuth2MetadataResponse responseTypesSupported. - * @member {Array.} responseTypesSupported - * @memberof flyteidl.service.OAuth2MetadataResponse - * @instance + * Decodes a TaskCreateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.TaskCreateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.TaskCreateResponse} TaskCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OAuth2MetadataResponse.prototype.responseTypesSupported = $util.emptyArray; + TaskCreateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.TaskCreateResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.jobId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * OAuth2MetadataResponse scopesSupported. - * @member {Array.} scopesSupported - * @memberof flyteidl.service.OAuth2MetadataResponse - * @instance + * Verifies a TaskCreateResponse message. + * @function verify + * @memberof flyteidl.service.TaskCreateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - OAuth2MetadataResponse.prototype.scopesSupported = $util.emptyArray; + TaskCreateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.jobId != null && message.hasOwnProperty("jobId")) + if (!$util.isString(message.jobId)) + return "jobId: string expected"; + return null; + }; - /** - * OAuth2MetadataResponse tokenEndpointAuthMethodsSupported. - * @member {Array.} tokenEndpointAuthMethodsSupported - * @memberof flyteidl.service.OAuth2MetadataResponse - * @instance - */ - OAuth2MetadataResponse.prototype.tokenEndpointAuthMethodsSupported = $util.emptyArray; + return TaskCreateResponse; + })(); + + service.TaskGetRequest = (function() { /** - * OAuth2MetadataResponse jwksUri. - * @member {string} jwksUri - * @memberof flyteidl.service.OAuth2MetadataResponse - * @instance + * Properties of a TaskGetRequest. + * @memberof flyteidl.service + * @interface ITaskGetRequest + * @property {string|null} [taskType] TaskGetRequest taskType + * @property {string|null} [jobId] TaskGetRequest jobId */ - OAuth2MetadataResponse.prototype.jwksUri = ""; /** - * OAuth2MetadataResponse codeChallengeMethodsSupported. - * @member {Array.} codeChallengeMethodsSupported - * @memberof flyteidl.service.OAuth2MetadataResponse - * @instance + * Constructs a new TaskGetRequest. + * @memberof flyteidl.service + * @classdesc Represents a TaskGetRequest. + * @implements ITaskGetRequest + * @constructor + * @param {flyteidl.service.ITaskGetRequest=} [properties] Properties to set */ - OAuth2MetadataResponse.prototype.codeChallengeMethodsSupported = $util.emptyArray; + 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]]; + } /** - * OAuth2MetadataResponse grantTypesSupported. - * @member {Array.} grantTypesSupported - * @memberof flyteidl.service.OAuth2MetadataResponse + * TaskGetRequest taskType. + * @member {string} taskType + * @memberof flyteidl.service.TaskGetRequest * @instance */ - OAuth2MetadataResponse.prototype.grantTypesSupported = $util.emptyArray; + TaskGetRequest.prototype.taskType = ""; /** - * OAuth2MetadataResponse deviceAuthorizationEndpoint. - * @member {string} deviceAuthorizationEndpoint - * @memberof flyteidl.service.OAuth2MetadataResponse + * TaskGetRequest jobId. + * @member {string} jobId + * @memberof flyteidl.service.TaskGetRequest * @instance */ - OAuth2MetadataResponse.prototype.deviceAuthorizationEndpoint = ""; + TaskGetRequest.prototype.jobId = ""; /** - * Creates a new OAuth2MetadataResponse instance using the specified properties. + * Creates a new TaskGetRequest instance using the specified properties. * @function create - * @memberof flyteidl.service.OAuth2MetadataResponse + * @memberof flyteidl.service.TaskGetRequest * @static - * @param {flyteidl.service.IOAuth2MetadataResponse=} [properties] Properties to set - * @returns {flyteidl.service.OAuth2MetadataResponse} OAuth2MetadataResponse instance + * @param {flyteidl.service.ITaskGetRequest=} [properties] Properties to set + * @returns {flyteidl.service.TaskGetRequest} TaskGetRequest instance */ - OAuth2MetadataResponse.create = function create(properties) { - return new OAuth2MetadataResponse(properties); + TaskGetRequest.create = function create(properties) { + return new TaskGetRequest(properties); }; /** - * Encodes the specified OAuth2MetadataResponse message. Does not implicitly {@link flyteidl.service.OAuth2MetadataResponse.verify|verify} messages. + * Encodes the specified TaskGetRequest message. Does not implicitly {@link flyteidl.service.TaskGetRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.service.OAuth2MetadataResponse + * @memberof flyteidl.service.TaskGetRequest * @static - * @param {flyteidl.service.IOAuth2MetadataResponse} message OAuth2MetadataResponse 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 */ - OAuth2MetadataResponse.encode = function encode(message, writer) { + TaskGetRequest.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.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 OAuth2MetadataResponse message from the specified reader or buffer. + * Decodes a TaskGetRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.OAuth2MetadataResponse + * @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.OAuth2MetadataResponse} OAuth2MetadataResponse + * @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 */ - OAuth2MetadataResponse.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.OAuth2MetadataResponse(); + 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.issuer = reader.string(); + message.taskType = 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(); + message.jobId = reader.string(); break; default: reader.skipType(tag & 7); @@ -44205,89 +44392,47 @@ }; /** - * Verifies a OAuth2MetadataResponse message. + * Verifies a TaskGetRequest message. * @function verify - * @memberof flyteidl.service.OAuth2MetadataResponse + * @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 */ - OAuth2MetadataResponse.verify = function verify(message) { + TaskGetRequest.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"; + 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 OAuth2MetadataResponse; + return TaskGetRequest; })(); - service.PublicClientAuthConfigRequest = (function() { + service.TaskGetResponse = (function() { /** - * Properties of a PublicClientAuthConfigRequest. + * Properties of a TaskGetResponse. * @memberof flyteidl.service - * @interface IPublicClientAuthConfigRequest + * @interface ITaskGetResponse + * @property {flyteidl.service.State|null} [state] TaskGetResponse state + * @property {flyteidl.core.ILiteralMap|null} [outputs] TaskGetResponse outputs */ /** - * Constructs a new PublicClientAuthConfigRequest. + * Constructs a new TaskGetResponse. * @memberof flyteidl.service - * @classdesc Represents a PublicClientAuthConfigRequest. - * @implements IPublicClientAuthConfigRequest + * @classdesc Represents a TaskGetResponse. + * @implements ITaskGetResponse * @constructor - * @param {flyteidl.service.IPublicClientAuthConfigRequest=} [properties] Properties to set + * @param {flyteidl.service.ITaskGetResponse=} [properties] Properties to set */ - function PublicClientAuthConfigRequest(properties) { + function TaskGetResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -44295,50 +44440,76 @@ } /** - * Creates a new PublicClientAuthConfigRequest instance using the specified properties. + * TaskGetResponse state. + * @member {flyteidl.service.State} state + * @memberof flyteidl.service.TaskGetResponse + * @instance + */ + TaskGetResponse.prototype.state = 0; + + /** + * TaskGetResponse outputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} outputs + * @memberof flyteidl.service.TaskGetResponse + * @instance + */ + TaskGetResponse.prototype.outputs = null; + + /** + * Creates a new TaskGetResponse instance using the specified properties. * @function create - * @memberof flyteidl.service.PublicClientAuthConfigRequest + * @memberof flyteidl.service.TaskGetResponse * @static - * @param {flyteidl.service.IPublicClientAuthConfigRequest=} [properties] Properties to set - * @returns {flyteidl.service.PublicClientAuthConfigRequest} PublicClientAuthConfigRequest instance + * @param {flyteidl.service.ITaskGetResponse=} [properties] Properties to set + * @returns {flyteidl.service.TaskGetResponse} TaskGetResponse instance */ - PublicClientAuthConfigRequest.create = function create(properties) { - return new PublicClientAuthConfigRequest(properties); + TaskGetResponse.create = function create(properties) { + return new TaskGetResponse(properties); }; /** - * Encodes the specified PublicClientAuthConfigRequest message. Does not implicitly {@link flyteidl.service.PublicClientAuthConfigRequest.verify|verify} messages. + * Encodes the specified TaskGetResponse message. Does not implicitly {@link flyteidl.service.TaskGetResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.service.PublicClientAuthConfigRequest + * @memberof flyteidl.service.TaskGetResponse * @static - * @param {flyteidl.service.IPublicClientAuthConfigRequest} message PublicClientAuthConfigRequest 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 */ - PublicClientAuthConfigRequest.encode = function encode(message, writer) { + TaskGetResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.state != null && message.hasOwnProperty("state")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); + if (message.outputs != null && message.hasOwnProperty("outputs")) + $root.flyteidl.core.LiteralMap.encode(message.outputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Decodes a PublicClientAuthConfigRequest message from the specified reader or buffer. + * Decodes a TaskGetResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.PublicClientAuthConfigRequest + * @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.PublicClientAuthConfigRequest} PublicClientAuthConfigRequest + * @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 */ - PublicClientAuthConfigRequest.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.PublicClientAuthConfigRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.TaskGetResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.state = reader.int32(); + break; + case 2: + message.outputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -44348,46 +44519,57 @@ }; /** - * Verifies a PublicClientAuthConfigRequest message. + * Verifies a TaskGetResponse message. * @function verify - * @memberof flyteidl.service.PublicClientAuthConfigRequest + * @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 */ - PublicClientAuthConfigRequest.verify = function verify(message) { + TaskGetResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.outputs != null && message.hasOwnProperty("outputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.outputs); + if (error) + return "outputs." + error; + } return null; }; - return PublicClientAuthConfigRequest; + return TaskGetResponse; })(); - service.PublicClientAuthConfigResponse = (function() { + service.TaskDeleteRequest = (function() { /** - * Properties of a PublicClientAuthConfigResponse. + * Properties of a TaskDeleteRequest. * @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 ITaskDeleteRequest + * @property {string|null} [taskType] TaskDeleteRequest taskType + * @property {string|null} [jobId] TaskDeleteRequest jobId */ /** - * Constructs a new PublicClientAuthConfigResponse. + * Constructs a new TaskDeleteRequest. * @memberof flyteidl.service - * @classdesc Represents a PublicClientAuthConfigResponse. - * @implements IPublicClientAuthConfigResponse + * @classdesc Represents a TaskDeleteRequest. + * @implements ITaskDeleteRequest * @constructor - * @param {flyteidl.service.IPublicClientAuthConfigResponse=} [properties] Properties to set + * @param {flyteidl.service.ITaskDeleteRequest=} [properties] Properties to set */ - function PublicClientAuthConfigResponse(properties) { - this.scopes = []; + function TaskDeleteRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -44395,130 +44577,75 @@ } /** - * 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 + * TaskDeleteRequest taskType. + * @member {string} taskType + * @memberof flyteidl.service.TaskDeleteRequest * @instance */ - PublicClientAuthConfigResponse.prototype.serviceHttpEndpoint = ""; + TaskDeleteRequest.prototype.taskType = ""; /** - * PublicClientAuthConfigResponse audience. - * @member {string} audience - * @memberof flyteidl.service.PublicClientAuthConfigResponse + * TaskDeleteRequest jobId. + * @member {string} jobId + * @memberof flyteidl.service.TaskDeleteRequest * @instance */ - PublicClientAuthConfigResponse.prototype.audience = ""; + TaskDeleteRequest.prototype.jobId = ""; /** - * Creates a new PublicClientAuthConfigResponse instance using the specified properties. + * Creates a new TaskDeleteRequest instance using the specified properties. * @function create - * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @memberof flyteidl.service.TaskDeleteRequest * @static - * @param {flyteidl.service.IPublicClientAuthConfigResponse=} [properties] Properties to set - * @returns {flyteidl.service.PublicClientAuthConfigResponse} PublicClientAuthConfigResponse instance + * @param {flyteidl.service.ITaskDeleteRequest=} [properties] Properties to set + * @returns {flyteidl.service.TaskDeleteRequest} TaskDeleteRequest instance */ - PublicClientAuthConfigResponse.create = function create(properties) { - return new PublicClientAuthConfigResponse(properties); + TaskDeleteRequest.create = function create(properties) { + return new TaskDeleteRequest(properties); }; /** - * Encodes the specified PublicClientAuthConfigResponse message. Does not implicitly {@link flyteidl.service.PublicClientAuthConfigResponse.verify|verify} messages. + * Encodes the specified TaskDeleteRequest message. Does not implicitly {@link flyteidl.service.TaskDeleteRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @memberof flyteidl.service.TaskDeleteRequest * @static - * @param {flyteidl.service.IPublicClientAuthConfigResponse} message PublicClientAuthConfigResponse 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 */ - PublicClientAuthConfigResponse.encode = function encode(message, writer) { + TaskDeleteRequest.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.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 PublicClientAuthConfigResponse message from the specified reader or buffer. + * Decodes a TaskDeleteRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @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.PublicClientAuthConfigResponse} PublicClientAuthConfigResponse + * @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 */ - PublicClientAuthConfigResponse.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.PublicClientAuthConfigResponse(); + 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.clientId = reader.string(); + message.taskType = 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.jobId = reader.string(); break; default: reader.skipType(tag & 7); @@ -44529,165 +44656,138 @@ }; /** - * Verifies a PublicClientAuthConfigResponse message. + * Verifies a TaskDeleteRequest message. * @function verify - * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @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 */ - PublicClientAuthConfigResponse.verify = function verify(message) { + TaskDeleteRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.clientId != null && message.hasOwnProperty("clientId")) - if (!$util.isString(message.clientId)) - return "clientId: string expected"; - if (message.redirectUri != null && message.hasOwnProperty("redirectUri")) - if (!$util.isString(message.redirectUri)) - return "redirectUri: string expected"; - if (message.scopes != null && message.hasOwnProperty("scopes")) { - if (!Array.isArray(message.scopes)) - return "scopes: array expected"; - for (var i = 0; i < message.scopes.length; ++i) - if (!$util.isString(message.scopes[i])) - return "scopes: string[] expected"; - } - if (message.authorizationMetadataKey != null && message.hasOwnProperty("authorizationMetadataKey")) - if (!$util.isString(message.authorizationMetadataKey)) - return "authorizationMetadataKey: string expected"; - if (message.serviceHttpEndpoint != null && message.hasOwnProperty("serviceHttpEndpoint")) - if (!$util.isString(message.serviceHttpEndpoint)) - return "serviceHttpEndpoint: string expected"; - if (message.audience != null && message.hasOwnProperty("audience")) - if (!$util.isString(message.audience)) - return "audience: string expected"; + 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 PublicClientAuthConfigResponse; + return TaskDeleteRequest; })(); - service.AuthMetadataService = (function() { + service.TaskDeleteResponse = (function() { /** - * Constructs a new AuthMetadataService service. + * Properties of a TaskDeleteResponse. * @memberof flyteidl.service - * @classdesc Represents an AuthMetadataService - * @extends $protobuf.rpc.Service + * @interface ITaskDeleteResponse + */ + + /** + * Constructs a new TaskDeleteResponse. + * @memberof flyteidl.service + * @classdesc Represents a TaskDeleteResponse. + * @implements ITaskDeleteResponse * @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.service.ITaskDeleteResponse=} [properties] Properties to set */ - function AuthMetadataService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + 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]]; } - (AuthMetadataService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AuthMetadataService; - /** - * Creates new AuthMetadataService service using the specified rpc implementation. + * Creates a new TaskDeleteResponse instance using the specified properties. * @function create - * @memberof flyteidl.service.AuthMetadataService + * @memberof flyteidl.service.TaskDeleteResponse * @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. + * @param {flyteidl.service.ITaskDeleteResponse=} [properties] Properties to set + * @returns {flyteidl.service.TaskDeleteResponse} TaskDeleteResponse instance */ - AuthMetadataService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); + TaskDeleteResponse.create = function create(properties) { + return new TaskDeleteResponse(properties); }; /** - * Callback as used by {@link flyteidl.service.AuthMetadataService#getOAuth2Metadata}. - * @memberof flyteidl.service.AuthMetadataService - * @typedef GetOAuth2MetadataCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.service.OAuth2MetadataResponse} [response] OAuth2MetadataResponse - */ - - /** - * Calls GetOAuth2Metadata. - * @function getOAuth2Metadata - * @memberof flyteidl.service.AuthMetadataService - * @instance - * @param {flyteidl.service.IOAuth2MetadataRequest} request OAuth2MetadataRequest message or plain object - * @param {flyteidl.service.AuthMetadataService.GetOAuth2MetadataCallback} callback Node-style callback called with the error, if any, and OAuth2MetadataResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AuthMetadataService.prototype.getOAuth2Metadata = function getOAuth2Metadata(request, callback) { - return this.rpcCall(getOAuth2Metadata, $root.flyteidl.service.OAuth2MetadataRequest, $root.flyteidl.service.OAuth2MetadataResponse, request, callback); - }, "name", { value: "GetOAuth2Metadata" }); - - /** - * Calls GetOAuth2Metadata. - * @function getOAuth2Metadata - * @memberof flyteidl.service.AuthMetadataService - * @instance - * @param {flyteidl.service.IOAuth2MetadataRequest} request OAuth2MetadataRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AuthMetadataService#getPublicClientConfig}. - * @memberof flyteidl.service.AuthMetadataService - * @typedef GetPublicClientConfigCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.service.PublicClientAuthConfigResponse} [response] PublicClientAuthConfigResponse + * Encodes the specified TaskDeleteResponse message. Does not implicitly {@link flyteidl.service.TaskDeleteResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.TaskDeleteResponse + * @static + * @param {flyteidl.service.ITaskDeleteResponse} message TaskDeleteResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + TaskDeleteResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; /** - * 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 TaskDeleteResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.TaskDeleteResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.TaskDeleteResponse} TaskDeleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - 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" }); + TaskDeleteResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.TaskDeleteResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * 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 TaskDeleteResponse message. + * @function verify + * @memberof flyteidl.service.TaskDeleteResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + TaskDeleteResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - return AuthMetadataService; + return TaskDeleteResponse; })(); - service.CreateUploadLocationResponse = (function() { + service.OAuth2MetadataRequest = (function() { /** - * Properties of a CreateUploadLocationResponse. + * Properties of a OAuth2MetadataRequest. * @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 IOAuth2MetadataRequest */ /** - * Constructs a new CreateUploadLocationResponse. + * Constructs a new OAuth2MetadataRequest. * @memberof flyteidl.service - * @classdesc Represents a CreateUploadLocationResponse. - * @implements ICreateUploadLocationResponse + * @classdesc Represents a OAuth2MetadataRequest. + * @implements IOAuth2MetadataRequest * @constructor - * @param {flyteidl.service.ICreateUploadLocationResponse=} [properties] Properties to set + * @param {flyteidl.service.IOAuth2MetadataRequest=} [properties] Properties to set */ - function CreateUploadLocationResponse(properties) { + function OAuth2MetadataRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -44695,89 +44795,50 @@ } /** - * CreateUploadLocationResponse signedUrl. - * @member {string} signedUrl - * @memberof flyteidl.service.CreateUploadLocationResponse - * @instance + * 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 */ - CreateUploadLocationResponse.prototype.signedUrl = ""; + OAuth2MetadataRequest.create = function create(properties) { + return new OAuth2MetadataRequest(properties); + }; /** - * CreateUploadLocationResponse nativeUrl. - * @member {string} nativeUrl - * @memberof flyteidl.service.CreateUploadLocationResponse - * @instance - */ - CreateUploadLocationResponse.prototype.nativeUrl = ""; - - /** - * CreateUploadLocationResponse expiresAt. - * @member {google.protobuf.ITimestamp|null|undefined} expiresAt - * @memberof flyteidl.service.CreateUploadLocationResponse - * @instance - */ - CreateUploadLocationResponse.prototype.expiresAt = null; - - /** - * Creates a new CreateUploadLocationResponse instance using the specified properties. - * @function create - * @memberof flyteidl.service.CreateUploadLocationResponse - * @static - * @param {flyteidl.service.ICreateUploadLocationResponse=} [properties] Properties to set - * @returns {flyteidl.service.CreateUploadLocationResponse} CreateUploadLocationResponse instance - */ - CreateUploadLocationResponse.create = function create(properties) { - return new CreateUploadLocationResponse(properties); - }; - - /** - * Encodes the specified CreateUploadLocationResponse message. Does not implicitly {@link flyteidl.service.CreateUploadLocationResponse.verify|verify} messages. + * Encodes the specified OAuth2MetadataRequest message. Does not implicitly {@link flyteidl.service.OAuth2MetadataRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.service.CreateUploadLocationResponse + * @memberof flyteidl.service.OAuth2MetadataRequest * @static - * @param {flyteidl.service.ICreateUploadLocationResponse} message CreateUploadLocationResponse message or plain object to encode + * @param {flyteidl.service.IOAuth2MetadataRequest} message OAuth2MetadataRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateUploadLocationResponse.encode = function encode(message, writer) { + OAuth2MetadataRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.signedUrl); - if (message.nativeUrl != null && message.hasOwnProperty("nativeUrl")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nativeUrl); - if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) - $root.google.protobuf.Timestamp.encode(message.expiresAt, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Decodes a CreateUploadLocationResponse message from the specified reader or buffer. + * Decodes a OAuth2MetadataRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.CreateUploadLocationResponse + * @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.CreateUploadLocationResponse} CreateUploadLocationResponse + * @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 */ - CreateUploadLocationResponse.decode = function decode(reader, length) { + 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.CreateUploadLocationResponse(); + 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) { - case 1: - message.signedUrl = reader.string(); - break; - case 2: - message.nativeUrl = reader.string(); - break; - case 3: - message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -44787,55 +44848,54 @@ }; /** - * Verifies a CreateUploadLocationResponse message. + * Verifies a OAuth2MetadataRequest message. * @function verify - * @memberof flyteidl.service.CreateUploadLocationResponse + * @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 */ - CreateUploadLocationResponse.verify = function verify(message) { + OAuth2MetadataRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) - if (!$util.isString(message.signedUrl)) - return "signedUrl: string expected"; - if (message.nativeUrl != null && message.hasOwnProperty("nativeUrl")) - if (!$util.isString(message.nativeUrl)) - return "nativeUrl: string expected"; - if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.expiresAt); - if (error) - return "expiresAt." + error; - } return null; }; - return CreateUploadLocationResponse; + return OAuth2MetadataRequest; })(); - service.CreateUploadLocationRequest = (function() { + service.OAuth2MetadataResponse = (function() { /** - * Properties of a CreateUploadLocationRequest. + * Properties of a OAuth2MetadataResponse. * @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 + * @interface IOAuth2MetadataResponse + * @property {string|null} [issuer] OAuth2MetadataResponse issuer + * @property {string|null} [authorizationEndpoint] OAuth2MetadataResponse authorizationEndpoint + * @property {string|null} [tokenEndpoint] OAuth2MetadataResponse tokenEndpoint + * @property {Array.|null} [responseTypesSupported] OAuth2MetadataResponse responseTypesSupported + * @property {Array.|null} [scopesSupported] OAuth2MetadataResponse scopesSupported + * @property {Array.|null} [tokenEndpointAuthMethodsSupported] OAuth2MetadataResponse tokenEndpointAuthMethodsSupported + * @property {string|null} [jwksUri] OAuth2MetadataResponse jwksUri + * @property {Array.|null} [codeChallengeMethodsSupported] OAuth2MetadataResponse codeChallengeMethodsSupported + * @property {Array.|null} [grantTypesSupported] OAuth2MetadataResponse grantTypesSupported + * @property {string|null} [deviceAuthorizationEndpoint] OAuth2MetadataResponse deviceAuthorizationEndpoint */ /** - * Constructs a new CreateUploadLocationRequest. + * Constructs a new OAuth2MetadataResponse. * @memberof flyteidl.service - * @classdesc Represents a CreateUploadLocationRequest. - * @implements ICreateUploadLocationRequest + * @classdesc Represents a OAuth2MetadataResponse. + * @implements IOAuth2MetadataResponse * @constructor - * @param {flyteidl.service.ICreateUploadLocationRequest=} [properties] Properties to set + * @param {flyteidl.service.IOAuth2MetadataResponse=} [properties] Properties to set */ - function CreateUploadLocationRequest(properties) { + 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) @@ -44843,114 +44903,194 @@ } /** - * CreateUploadLocationRequest project. - * @member {string} project - * @memberof flyteidl.service.CreateUploadLocationRequest + * OAuth2MetadataResponse issuer. + * @member {string} issuer + * @memberof flyteidl.service.OAuth2MetadataResponse * @instance */ - CreateUploadLocationRequest.prototype.project = ""; + OAuth2MetadataResponse.prototype.issuer = ""; /** - * CreateUploadLocationRequest domain. - * @member {string} domain - * @memberof flyteidl.service.CreateUploadLocationRequest + * OAuth2MetadataResponse authorizationEndpoint. + * @member {string} authorizationEndpoint + * @memberof flyteidl.service.OAuth2MetadataResponse * @instance */ - CreateUploadLocationRequest.prototype.domain = ""; + OAuth2MetadataResponse.prototype.authorizationEndpoint = ""; /** - * CreateUploadLocationRequest filename. - * @member {string} filename - * @memberof flyteidl.service.CreateUploadLocationRequest + * OAuth2MetadataResponse tokenEndpoint. + * @member {string} tokenEndpoint + * @memberof flyteidl.service.OAuth2MetadataResponse * @instance */ - CreateUploadLocationRequest.prototype.filename = ""; + OAuth2MetadataResponse.prototype.tokenEndpoint = ""; /** - * CreateUploadLocationRequest expiresIn. - * @member {google.protobuf.IDuration|null|undefined} expiresIn - * @memberof flyteidl.service.CreateUploadLocationRequest + * OAuth2MetadataResponse responseTypesSupported. + * @member {Array.} responseTypesSupported + * @memberof flyteidl.service.OAuth2MetadataResponse * @instance */ - CreateUploadLocationRequest.prototype.expiresIn = null; + OAuth2MetadataResponse.prototype.responseTypesSupported = $util.emptyArray; /** - * CreateUploadLocationRequest contentMd5. - * @member {Uint8Array} contentMd5 - * @memberof flyteidl.service.CreateUploadLocationRequest + * OAuth2MetadataResponse scopesSupported. + * @member {Array.} scopesSupported + * @memberof flyteidl.service.OAuth2MetadataResponse * @instance */ - CreateUploadLocationRequest.prototype.contentMd5 = $util.newBuffer([]); + OAuth2MetadataResponse.prototype.scopesSupported = $util.emptyArray; /** - * Creates a new CreateUploadLocationRequest instance using the specified properties. + * OAuth2MetadataResponse tokenEndpointAuthMethodsSupported. + * @member {Array.} tokenEndpointAuthMethodsSupported + * @memberof flyteidl.service.OAuth2MetadataResponse + * @instance + */ + OAuth2MetadataResponse.prototype.tokenEndpointAuthMethodsSupported = $util.emptyArray; + + /** + * OAuth2MetadataResponse jwksUri. + * @member {string} jwksUri + * @memberof flyteidl.service.OAuth2MetadataResponse + * @instance + */ + OAuth2MetadataResponse.prototype.jwksUri = ""; + + /** + * OAuth2MetadataResponse codeChallengeMethodsSupported. + * @member {Array.} codeChallengeMethodsSupported + * @memberof flyteidl.service.OAuth2MetadataResponse + * @instance + */ + OAuth2MetadataResponse.prototype.codeChallengeMethodsSupported = $util.emptyArray; + + /** + * OAuth2MetadataResponse grantTypesSupported. + * @member {Array.} grantTypesSupported + * @memberof flyteidl.service.OAuth2MetadataResponse + * @instance + */ + OAuth2MetadataResponse.prototype.grantTypesSupported = $util.emptyArray; + + /** + * OAuth2MetadataResponse deviceAuthorizationEndpoint. + * @member {string} deviceAuthorizationEndpoint + * @memberof flyteidl.service.OAuth2MetadataResponse + * @instance + */ + OAuth2MetadataResponse.prototype.deviceAuthorizationEndpoint = ""; + + /** + * Creates a new OAuth2MetadataResponse instance using the specified properties. * @function create - * @memberof flyteidl.service.CreateUploadLocationRequest + * @memberof flyteidl.service.OAuth2MetadataResponse * @static - * @param {flyteidl.service.ICreateUploadLocationRequest=} [properties] Properties to set - * @returns {flyteidl.service.CreateUploadLocationRequest} CreateUploadLocationRequest instance + * @param {flyteidl.service.IOAuth2MetadataResponse=} [properties] Properties to set + * @returns {flyteidl.service.OAuth2MetadataResponse} OAuth2MetadataResponse instance */ - CreateUploadLocationRequest.create = function create(properties) { - return new CreateUploadLocationRequest(properties); + OAuth2MetadataResponse.create = function create(properties) { + return new OAuth2MetadataResponse(properties); }; /** - * Encodes the specified CreateUploadLocationRequest message. Does not implicitly {@link flyteidl.service.CreateUploadLocationRequest.verify|verify} messages. + * Encodes the specified OAuth2MetadataResponse message. Does not implicitly {@link flyteidl.service.OAuth2MetadataResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.service.CreateUploadLocationRequest + * @memberof flyteidl.service.OAuth2MetadataResponse * @static - * @param {flyteidl.service.ICreateUploadLocationRequest} message CreateUploadLocationRequest message or plain object to encode + * @param {flyteidl.service.IOAuth2MetadataResponse} message OAuth2MetadataResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateUploadLocationRequest.encode = function encode(message, writer) { + OAuth2MetadataResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); - if (message.filename != null && message.hasOwnProperty("filename")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.filename); - if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) - $root.google.protobuf.Duration.encode(message.expiresIn, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.contentMd5 != null && message.hasOwnProperty("contentMd5")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.contentMd5); + if (message.issuer != null && message.hasOwnProperty("issuer")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.issuer); + if (message.authorizationEndpoint != null && message.hasOwnProperty("authorizationEndpoint")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.authorizationEndpoint); + if (message.tokenEndpoint != null && message.hasOwnProperty("tokenEndpoint")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.tokenEndpoint); + if (message.responseTypesSupported != null && message.responseTypesSupported.length) + for (var i = 0; i < message.responseTypesSupported.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.responseTypesSupported[i]); + if (message.scopesSupported != null && message.scopesSupported.length) + for (var i = 0; i < message.scopesSupported.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.scopesSupported[i]); + if (message.tokenEndpointAuthMethodsSupported != null && message.tokenEndpointAuthMethodsSupported.length) + for (var i = 0; i < message.tokenEndpointAuthMethodsSupported.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.tokenEndpointAuthMethodsSupported[i]); + if (message.jwksUri != null && message.hasOwnProperty("jwksUri")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.jwksUri); + if (message.codeChallengeMethodsSupported != null && message.codeChallengeMethodsSupported.length) + for (var i = 0; i < message.codeChallengeMethodsSupported.length; ++i) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.codeChallengeMethodsSupported[i]); + if (message.grantTypesSupported != null && message.grantTypesSupported.length) + for (var i = 0; i < message.grantTypesSupported.length; ++i) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.grantTypesSupported[i]); + if (message.deviceAuthorizationEndpoint != null && message.hasOwnProperty("deviceAuthorizationEndpoint")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.deviceAuthorizationEndpoint); return writer; }; /** - * Decodes a CreateUploadLocationRequest message from the specified reader or buffer. + * Decodes a OAuth2MetadataResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.CreateUploadLocationRequest + * @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.CreateUploadLocationRequest} CreateUploadLocationRequest + * @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 */ - CreateUploadLocationRequest.decode = function decode(reader, length) { + 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.CreateUploadLocationRequest(); + 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.project = reader.string(); + message.issuer = reader.string(); break; case 2: - message.domain = reader.string(); + message.authorizationEndpoint = reader.string(); break; case 3: - message.filename = reader.string(); + message.tokenEndpoint = reader.string(); break; case 4: - message.expiresIn = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + if (!(message.responseTypesSupported && message.responseTypesSupported.length)) + message.responseTypesSupported = []; + message.responseTypesSupported.push(reader.string()); break; case 5: - message.contentMd5 = reader.bytes(); + 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); @@ -44961,58 +45101,89 @@ }; /** - * Verifies a CreateUploadLocationRequest message. + * Verifies a OAuth2MetadataResponse message. * @function verify - * @memberof flyteidl.service.CreateUploadLocationRequest + * @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 */ - CreateUploadLocationRequest.verify = function verify(message) { + OAuth2MetadataResponse.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.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.contentMd5 != null && message.hasOwnProperty("contentMd5")) - if (!(message.contentMd5 && typeof message.contentMd5.length === "number" || $util.isString(message.contentMd5))) - return "contentMd5: buffer 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 CreateUploadLocationRequest; + return OAuth2MetadataResponse; })(); - service.CreateDownloadLocationRequest = (function() { + service.PublicClientAuthConfigRequest = (function() { /** - * Properties of a CreateDownloadLocationRequest. + * Properties of a PublicClientAuthConfigRequest. * @memberof flyteidl.service - * @interface ICreateDownloadLocationRequest - * @property {string|null} [nativeUrl] CreateDownloadLocationRequest nativeUrl - * @property {google.protobuf.IDuration|null} [expiresIn] CreateDownloadLocationRequest expiresIn + * @interface IPublicClientAuthConfigRequest */ /** - * Constructs a new CreateDownloadLocationRequest. + * Constructs a new PublicClientAuthConfigRequest. * @memberof flyteidl.service - * @classdesc Represents a CreateDownloadLocationRequest. - * @implements ICreateDownloadLocationRequest + * @classdesc Represents a PublicClientAuthConfigRequest. + * @implements IPublicClientAuthConfigRequest * @constructor - * @param {flyteidl.service.ICreateDownloadLocationRequest=} [properties] Properties to set + * @param {flyteidl.service.IPublicClientAuthConfigRequest=} [properties] Properties to set */ - function CreateDownloadLocationRequest(properties) { + function PublicClientAuthConfigRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45020,76 +45191,50 @@ } /** - * 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. + * Creates a new PublicClientAuthConfigRequest instance using the specified properties. * @function create - * @memberof flyteidl.service.CreateDownloadLocationRequest + * @memberof flyteidl.service.PublicClientAuthConfigRequest * @static - * @param {flyteidl.service.ICreateDownloadLocationRequest=} [properties] Properties to set - * @returns {flyteidl.service.CreateDownloadLocationRequest} CreateDownloadLocationRequest instance + * @param {flyteidl.service.IPublicClientAuthConfigRequest=} [properties] Properties to set + * @returns {flyteidl.service.PublicClientAuthConfigRequest} PublicClientAuthConfigRequest instance */ - CreateDownloadLocationRequest.create = function create(properties) { - return new CreateDownloadLocationRequest(properties); + PublicClientAuthConfigRequest.create = function create(properties) { + return new PublicClientAuthConfigRequest(properties); }; /** - * Encodes the specified CreateDownloadLocationRequest message. Does not implicitly {@link flyteidl.service.CreateDownloadLocationRequest.verify|verify} messages. + * Encodes the specified PublicClientAuthConfigRequest message. Does not implicitly {@link flyteidl.service.PublicClientAuthConfigRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.service.CreateDownloadLocationRequest + * @memberof flyteidl.service.PublicClientAuthConfigRequest * @static - * @param {flyteidl.service.ICreateDownloadLocationRequest} message CreateDownloadLocationRequest 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 */ - CreateDownloadLocationRequest.encode = function encode(message, writer) { + PublicClientAuthConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.nativeUrl != null && message.hasOwnProperty("nativeUrl")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.nativeUrl); - if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) - $root.google.protobuf.Duration.encode(message.expiresIn, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Decodes a CreateDownloadLocationRequest message from the specified reader or buffer. + * Decodes a PublicClientAuthConfigRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.CreateDownloadLocationRequest + * @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.CreateDownloadLocationRequest} CreateDownloadLocationRequest + * @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 */ - CreateDownloadLocationRequest.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.CreateDownloadLocationRequest(); + 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.nativeUrl = reader.string(); - break; - case 2: - message.expiresIn = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -45099,49 +45244,46 @@ }; /** - * Verifies a CreateDownloadLocationRequest message. + * Verifies a PublicClientAuthConfigRequest message. * @function verify - * @memberof flyteidl.service.CreateDownloadLocationRequest + * @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 */ - CreateDownloadLocationRequest.verify = function verify(message) { + PublicClientAuthConfigRequest.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 PublicClientAuthConfigRequest; })(); - service.CreateDownloadLocationResponse = (function() { + service.PublicClientAuthConfigResponse = (function() { /** - * Properties of a CreateDownloadLocationResponse. + * Properties of a PublicClientAuthConfigResponse. * @memberof flyteidl.service - * @interface ICreateDownloadLocationResponse - * @property {string|null} [signedUrl] CreateDownloadLocationResponse signedUrl - * @property {google.protobuf.ITimestamp|null} [expiresAt] CreateDownloadLocationResponse expiresAt + * @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 CreateDownloadLocationResponse. + * Constructs a new PublicClientAuthConfigResponse. * @memberof flyteidl.service - * @classdesc Represents a CreateDownloadLocationResponse. - * @implements ICreateDownloadLocationResponse + * @classdesc Represents a PublicClientAuthConfigResponse. + * @implements IPublicClientAuthConfigResponse * @constructor - * @param {flyteidl.service.ICreateDownloadLocationResponse=} [properties] Properties to set + * @param {flyteidl.service.IPublicClientAuthConfigResponse=} [properties] Properties to set */ - function CreateDownloadLocationResponse(properties) { + function PublicClientAuthConfigResponse(properties) { + this.scopes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45149,75 +45291,130 @@ } /** - * CreateDownloadLocationResponse signedUrl. - * @member {string} signedUrl - * @memberof flyteidl.service.CreateDownloadLocationResponse + * PublicClientAuthConfigResponse clientId. + * @member {string} clientId + * @memberof flyteidl.service.PublicClientAuthConfigResponse * @instance */ - CreateDownloadLocationResponse.prototype.signedUrl = ""; + PublicClientAuthConfigResponse.prototype.clientId = ""; /** - * CreateDownloadLocationResponse expiresAt. - * @member {google.protobuf.ITimestamp|null|undefined} expiresAt - * @memberof flyteidl.service.CreateDownloadLocationResponse + * PublicClientAuthConfigResponse redirectUri. + * @member {string} redirectUri + * @memberof flyteidl.service.PublicClientAuthConfigResponse * @instance */ - CreateDownloadLocationResponse.prototype.expiresAt = null; + PublicClientAuthConfigResponse.prototype.redirectUri = ""; /** - * Creates a new CreateDownloadLocationResponse instance using the specified properties. - * @function create - * @memberof flyteidl.service.CreateDownloadLocationResponse - * @static - * @param {flyteidl.service.ICreateDownloadLocationResponse=} [properties] Properties to set - * @returns {flyteidl.service.CreateDownloadLocationResponse} CreateDownloadLocationResponse instance + * PublicClientAuthConfigResponse scopes. + * @member {Array.} scopes + * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @instance */ - CreateDownloadLocationResponse.create = function create(properties) { - return new CreateDownloadLocationResponse(properties); + PublicClientAuthConfigResponse.prototype.scopes = $util.emptyArray; + + /** + * PublicClientAuthConfigResponse authorizationMetadataKey. + * @member {string} authorizationMetadataKey + * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @instance + */ + PublicClientAuthConfigResponse.prototype.authorizationMetadataKey = ""; + + /** + * PublicClientAuthConfigResponse serviceHttpEndpoint. + * @member {string} serviceHttpEndpoint + * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @instance + */ + PublicClientAuthConfigResponse.prototype.serviceHttpEndpoint = ""; + + /** + * PublicClientAuthConfigResponse audience. + * @member {string} audience + * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @instance + */ + PublicClientAuthConfigResponse.prototype.audience = ""; + + /** + * Creates a new PublicClientAuthConfigResponse instance using the specified properties. + * @function create + * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @static + * @param {flyteidl.service.IPublicClientAuthConfigResponse=} [properties] Properties to set + * @returns {flyteidl.service.PublicClientAuthConfigResponse} PublicClientAuthConfigResponse instance + */ + PublicClientAuthConfigResponse.create = function create(properties) { + return new PublicClientAuthConfigResponse(properties); }; /** - * Encodes the specified CreateDownloadLocationResponse message. Does not implicitly {@link flyteidl.service.CreateDownloadLocationResponse.verify|verify} messages. + * Encodes the specified PublicClientAuthConfigResponse message. Does not implicitly {@link flyteidl.service.PublicClientAuthConfigResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.service.CreateDownloadLocationResponse + * @memberof flyteidl.service.PublicClientAuthConfigResponse * @static - * @param {flyteidl.service.ICreateDownloadLocationResponse} message CreateDownloadLocationResponse 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 */ - CreateDownloadLocationResponse.encode = function encode(message, writer) { + PublicClientAuthConfigResponse.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.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 CreateDownloadLocationResponse message from the specified reader or buffer. + * Decodes a PublicClientAuthConfigResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.CreateDownloadLocationResponse + * @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.CreateDownloadLocationResponse} CreateDownloadLocationResponse + * @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 */ - CreateDownloadLocationResponse.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.CreateDownloadLocationResponse(); + 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.signedUrl = reader.string(); + message.clientId = reader.string(); break; case 2: - message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + 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); @@ -45228,236 +45425,165 @@ }; /** - * Verifies a CreateDownloadLocationResponse message. + * Verifies a PublicClientAuthConfigResponse message. * @function verify - * @memberof flyteidl.service.CreateDownloadLocationResponse + * @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 */ - CreateDownloadLocationResponse.verify = function verify(message) { + PublicClientAuthConfigResponse.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; + 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 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 PublicClientAuthConfigResponse; })(); - 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 - */ + service.AuthMetadataService = (function() { /** - * Constructs a new CreateDownloadLinkRequest. + * Constructs a new AuthMetadataService service. * @memberof flyteidl.service - * @classdesc Represents a CreateDownloadLinkRequest. - * @implements ICreateDownloadLinkRequest + * @classdesc Represents an AuthMetadataService + * @extends $protobuf.rpc.Service * @constructor - * @param {flyteidl.service.ICreateDownloadLinkRequest=} [properties] Properties to set + * @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 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]]; + function AuthMetadataService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } + (AuthMetadataService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AuthMetadataService; + /** - * CreateDownloadLinkRequest artifactType. - * @member {flyteidl.service.ArtifactType} artifactType - * @memberof flyteidl.service.CreateDownloadLinkRequest - * @instance + * 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. */ - CreateDownloadLinkRequest.prototype.artifactType = 0; + AuthMetadataService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * CreateDownloadLinkRequest expiresIn. - * @member {google.protobuf.IDuration|null|undefined} expiresIn - * @memberof flyteidl.service.CreateDownloadLinkRequest - * @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 */ - CreateDownloadLinkRequest.prototype.expiresIn = null; /** - * CreateDownloadLinkRequest nodeExecutionId. - * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} nodeExecutionId - * @memberof flyteidl.service.CreateDownloadLinkRequest + * 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 */ - CreateDownloadLinkRequest.prototype.nodeExecutionId = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + 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" }); /** - * CreateDownloadLinkRequest source. - * @member {"nodeExecutionId"|undefined} source - * @memberof flyteidl.service.CreateDownloadLinkRequest + * Calls GetOAuth2Metadata. + * @function getOAuth2Metadata + * @memberof flyteidl.service.AuthMetadataService * @instance + * @param {flyteidl.service.IOAuth2MetadataRequest} request OAuth2MetadataRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - Object.defineProperty(CreateDownloadLinkRequest.prototype, "source", { - get: $util.oneOfGetter($oneOfFields = ["nodeExecutionId"]), - set: $util.oneOfSetter($oneOfFields) - }); /** - * Creates a new CreateDownloadLinkRequest instance using the specified properties. - * @function create - * @memberof flyteidl.service.CreateDownloadLinkRequest - * @static - * @param {flyteidl.service.ICreateDownloadLinkRequest=} [properties] Properties to set - * @returns {flyteidl.service.CreateDownloadLinkRequest} CreateDownloadLinkRequest instance + * 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 */ - CreateDownloadLinkRequest.create = function create(properties) { - return new CreateDownloadLinkRequest(properties); - }; /** - * Encodes the specified CreateDownloadLinkRequest message. Does not implicitly {@link flyteidl.service.CreateDownloadLinkRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.CreateDownloadLinkRequest - * @static - * @param {flyteidl.service.ICreateDownloadLinkRequest} message CreateDownloadLinkRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * 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 */ - CreateDownloadLinkRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.artifactType != null && message.hasOwnProperty("artifactType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.artifactType); - if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) - $root.google.protobuf.Duration.encode(message.expiresIn, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) - $root.flyteidl.core.NodeExecutionIdentifier.encode(message.nodeExecutionId, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a CreateDownloadLinkRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.CreateDownloadLinkRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.CreateDownloadLinkRequest} CreateDownloadLinkRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateDownloadLinkRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.CreateDownloadLinkRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.artifactType = reader.int32(); - break; - case 2: - message.expiresIn = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 3: - message.nodeExecutionId = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + 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 CreateDownloadLinkRequest message. - * @function verify - * @memberof flyteidl.service.CreateDownloadLinkRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls GetPublicClientConfig. + * @function getPublicClientConfig + * @memberof flyteidl.service.AuthMetadataService + * @instance + * @param {flyteidl.service.IPublicClientAuthConfigRequest} request PublicClientAuthConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateDownloadLinkRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.artifactType != null && message.hasOwnProperty("artifactType")) - switch (message.artifactType) { - default: - return "artifactType: enum value expected"; - case 0: - case 1: - break; - } - if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) { - var error = $root.google.protobuf.Duration.verify(message.expiresIn); - if (error) - return "expiresIn." + error; - } - if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) { - properties.source = 1; - { - var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.nodeExecutionId); - if (error) - return "nodeExecutionId." + error; - } - } - return null; - }; - return CreateDownloadLinkRequest; + return AuthMetadataService; })(); - service.CreateDownloadLinkResponse = (function() { + service.CreateUploadLocationResponse = (function() { /** - * Properties of a CreateDownloadLinkResponse. + * Properties of a CreateUploadLocationResponse. * @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 ICreateUploadLocationResponse + * @property {string|null} [signedUrl] CreateUploadLocationResponse signedUrl + * @property {string|null} [nativeUrl] CreateUploadLocationResponse nativeUrl + * @property {google.protobuf.ITimestamp|null} [expiresAt] CreateUploadLocationResponse expiresAt */ /** - * Constructs a new CreateDownloadLinkResponse. + * Constructs a new CreateUploadLocationResponse. * @memberof flyteidl.service - * @classdesc Represents a CreateDownloadLinkResponse. - * @implements ICreateDownloadLinkResponse + * @classdesc Represents a CreateUploadLocationResponse. + * @implements ICreateUploadLocationResponse * @constructor - * @param {flyteidl.service.ICreateDownloadLinkResponse=} [properties] Properties to set + * @param {flyteidl.service.ICreateUploadLocationResponse=} [properties] Properties to set */ - function CreateDownloadLinkResponse(properties) { - this.signedUrl = []; + function CreateUploadLocationResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45465,91 +45591,88 @@ } /** - * CreateDownloadLinkResponse signedUrl. - * @member {Array.} signedUrl - * @memberof flyteidl.service.CreateDownloadLinkResponse + * CreateUploadLocationResponse signedUrl. + * @member {string} signedUrl + * @memberof flyteidl.service.CreateUploadLocationResponse * @instance */ - CreateDownloadLinkResponse.prototype.signedUrl = $util.emptyArray; + CreateUploadLocationResponse.prototype.signedUrl = ""; /** - * CreateDownloadLinkResponse expiresAt. - * @member {google.protobuf.ITimestamp|null|undefined} expiresAt - * @memberof flyteidl.service.CreateDownloadLinkResponse + * CreateUploadLocationResponse nativeUrl. + * @member {string} nativeUrl + * @memberof flyteidl.service.CreateUploadLocationResponse * @instance */ - CreateDownloadLinkResponse.prototype.expiresAt = null; + CreateUploadLocationResponse.prototype.nativeUrl = ""; /** - * CreateDownloadLinkResponse preSignedUrls. - * @member {flyteidl.service.IPreSignedURLs|null|undefined} preSignedUrls - * @memberof flyteidl.service.CreateDownloadLinkResponse + * CreateUploadLocationResponse expiresAt. + * @member {google.protobuf.ITimestamp|null|undefined} expiresAt + * @memberof flyteidl.service.CreateUploadLocationResponse * @instance */ - CreateDownloadLinkResponse.prototype.preSignedUrls = null; + CreateUploadLocationResponse.prototype.expiresAt = null; /** - * Creates a new CreateDownloadLinkResponse instance using the specified properties. + * Creates a new CreateUploadLocationResponse instance using the specified properties. * @function create - * @memberof flyteidl.service.CreateDownloadLinkResponse + * @memberof flyteidl.service.CreateUploadLocationResponse * @static - * @param {flyteidl.service.ICreateDownloadLinkResponse=} [properties] Properties to set - * @returns {flyteidl.service.CreateDownloadLinkResponse} CreateDownloadLinkResponse instance + * @param {flyteidl.service.ICreateUploadLocationResponse=} [properties] Properties to set + * @returns {flyteidl.service.CreateUploadLocationResponse} CreateUploadLocationResponse instance */ - CreateDownloadLinkResponse.create = function create(properties) { - return new CreateDownloadLinkResponse(properties); + CreateUploadLocationResponse.create = function create(properties) { + return new CreateUploadLocationResponse(properties); }; /** - * Encodes the specified CreateDownloadLinkResponse message. Does not implicitly {@link flyteidl.service.CreateDownloadLinkResponse.verify|verify} messages. + * Encodes the specified CreateUploadLocationResponse message. Does not implicitly {@link flyteidl.service.CreateUploadLocationResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.service.CreateDownloadLinkResponse + * @memberof flyteidl.service.CreateUploadLocationResponse * @static - * @param {flyteidl.service.ICreateDownloadLinkResponse} message CreateDownloadLinkResponse 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 */ - CreateDownloadLinkResponse.encode = function encode(message, writer) { + CreateUploadLocationResponse.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.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 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(); + $root.google.protobuf.Timestamp.encode(message.expiresAt, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Decodes a CreateDownloadLinkResponse message from the specified reader or buffer. + * Decodes a CreateUploadLocationResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.CreateDownloadLinkResponse + * @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.CreateDownloadLinkResponse} CreateDownloadLinkResponse + * @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 */ - CreateDownloadLinkResponse.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.CreateDownloadLinkResponse(); + 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: - if (!(message.signedUrl && message.signedUrl.length)) - message.signedUrl = []; - message.signedUrl.push(reader.string()); + message.signedUrl = reader.string(); break; case 2: - message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.nativeUrl = reader.string(); break; case 3: - message.preSignedUrls = $root.flyteidl.service.PreSignedURLs.decode(reader, reader.uint32()); + message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -45560,59 +45683,55 @@ }; /** - * Verifies a CreateDownloadLinkResponse message. + * Verifies a CreateUploadLocationResponse message. * @function verify - * @memberof flyteidl.service.CreateDownloadLinkResponse + * @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 */ - CreateDownloadLinkResponse.verify = function verify(message) { + CreateUploadLocationResponse.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.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; } - if (message.preSignedUrls != null && message.hasOwnProperty("preSignedUrls")) { - var error = $root.flyteidl.service.PreSignedURLs.verify(message.preSignedUrls); - if (error) - return "preSignedUrls." + error; - } return null; }; - return CreateDownloadLinkResponse; + return CreateUploadLocationResponse; })(); - service.PreSignedURLs = (function() { + service.CreateUploadLocationRequest = (function() { /** - * Properties of a PreSignedURLs. + * Properties of a CreateUploadLocationRequest. * @memberof flyteidl.service - * @interface IPreSignedURLs - * @property {Array.|null} [signedUrl] PreSignedURLs signedUrl - * @property {google.protobuf.ITimestamp|null} [expiresAt] PreSignedURLs expiresAt + * @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 PreSignedURLs. + * Constructs a new CreateUploadLocationRequest. * @memberof flyteidl.service - * @classdesc Represents a PreSignedURLs. - * @implements IPreSignedURLs + * @classdesc Represents a CreateUploadLocationRequest. + * @implements ICreateUploadLocationRequest * @constructor - * @param {flyteidl.service.IPreSignedURLs=} [properties] Properties to set + * @param {flyteidl.service.ICreateUploadLocationRequest=} [properties] Properties to set */ - function PreSignedURLs(properties) { - this.signedUrl = []; + function CreateUploadLocationRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45620,78 +45739,114 @@ } /** - * PreSignedURLs signedUrl. - * @member {Array.} signedUrl - * @memberof flyteidl.service.PreSignedURLs + * CreateUploadLocationRequest project. + * @member {string} project + * @memberof flyteidl.service.CreateUploadLocationRequest * @instance */ - PreSignedURLs.prototype.signedUrl = $util.emptyArray; + CreateUploadLocationRequest.prototype.project = ""; /** - * PreSignedURLs expiresAt. - * @member {google.protobuf.ITimestamp|null|undefined} expiresAt - * @memberof flyteidl.service.PreSignedURLs + * CreateUploadLocationRequest domain. + * @member {string} domain + * @memberof flyteidl.service.CreateUploadLocationRequest * @instance */ - PreSignedURLs.prototype.expiresAt = null; + CreateUploadLocationRequest.prototype.domain = ""; /** - * Creates a new PreSignedURLs instance using the specified properties. - * @function create - * @memberof flyteidl.service.PreSignedURLs + * 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.CreateUploadLocationRequest * @static - * @param {flyteidl.service.IPreSignedURLs=} [properties] Properties to set - * @returns {flyteidl.service.PreSignedURLs} PreSignedURLs instance + * @param {flyteidl.service.ICreateUploadLocationRequest=} [properties] Properties to set + * @returns {flyteidl.service.CreateUploadLocationRequest} CreateUploadLocationRequest instance */ - PreSignedURLs.create = function create(properties) { - return new PreSignedURLs(properties); + CreateUploadLocationRequest.create = function create(properties) { + return new CreateUploadLocationRequest(properties); }; /** - * Encodes the specified PreSignedURLs message. Does not implicitly {@link flyteidl.service.PreSignedURLs.verify|verify} messages. + * Encodes the specified CreateUploadLocationRequest message. Does not implicitly {@link flyteidl.service.CreateUploadLocationRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.service.PreSignedURLs + * @memberof flyteidl.service.CreateUploadLocationRequest * @static - * @param {flyteidl.service.IPreSignedURLs} message PreSignedURLs 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 */ - PreSignedURLs.encode = function encode(message, writer) { + CreateUploadLocationRequest.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.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 PreSignedURLs message from the specified reader or buffer. + * Decodes a CreateUploadLocationRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.PreSignedURLs + * @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.PreSignedURLs} PreSignedURLs + * @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 */ - PreSignedURLs.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.PreSignedURLs(); + 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: - if (!(message.signedUrl && message.signedUrl.length)) - message.signedUrl = []; - message.signedUrl.push(reader.string()); + message.project = reader.string(); break; case 2: - message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + 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); @@ -45702,52 +45857,58 @@ }; /** - * Verifies a PreSignedURLs message. + * Verifies a CreateUploadLocationRequest message. * @function verify - * @memberof flyteidl.service.PreSignedURLs + * @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 */ - PreSignedURLs.verify = function verify(message) { + CreateUploadLocationRequest.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.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 "expiresAt." + 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 PreSignedURLs; + return CreateUploadLocationRequest; })(); - service.GetDataRequest = (function() { + service.CreateDownloadLocationRequest = (function() { /** - * Properties of a GetDataRequest. + * Properties of a CreateDownloadLocationRequest. * @memberof flyteidl.service - * @interface IGetDataRequest - * @property {string|null} [flyteUrl] GetDataRequest flyteUrl + * @interface ICreateDownloadLocationRequest + * @property {string|null} [nativeUrl] CreateDownloadLocationRequest nativeUrl + * @property {google.protobuf.IDuration|null} [expiresIn] CreateDownloadLocationRequest expiresIn */ /** - * Constructs a new GetDataRequest. + * Constructs a new CreateDownloadLocationRequest. * @memberof flyteidl.service - * @classdesc Represents a GetDataRequest. - * @implements IGetDataRequest + * @classdesc Represents a CreateDownloadLocationRequest. + * @implements ICreateDownloadLocationRequest * @constructor - * @param {flyteidl.service.IGetDataRequest=} [properties] Properties to set + * @param {flyteidl.service.ICreateDownloadLocationRequest=} [properties] Properties to set */ - function GetDataRequest(properties) { + function CreateDownloadLocationRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45755,62 +45916,75 @@ } /** - * GetDataRequest flyteUrl. - * @member {string} flyteUrl - * @memberof flyteidl.service.GetDataRequest + * CreateDownloadLocationRequest nativeUrl. + * @member {string} nativeUrl + * @memberof flyteidl.service.CreateDownloadLocationRequest * @instance */ - GetDataRequest.prototype.flyteUrl = ""; + CreateDownloadLocationRequest.prototype.nativeUrl = ""; /** - * Creates a new GetDataRequest instance using the specified properties. + * 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.GetDataRequest + * @memberof flyteidl.service.CreateDownloadLocationRequest * @static - * @param {flyteidl.service.IGetDataRequest=} [properties] Properties to set - * @returns {flyteidl.service.GetDataRequest} GetDataRequest instance + * @param {flyteidl.service.ICreateDownloadLocationRequest=} [properties] Properties to set + * @returns {flyteidl.service.CreateDownloadLocationRequest} CreateDownloadLocationRequest instance */ - GetDataRequest.create = function create(properties) { - return new GetDataRequest(properties); + CreateDownloadLocationRequest.create = function create(properties) { + return new CreateDownloadLocationRequest(properties); }; /** - * Encodes the specified GetDataRequest message. Does not implicitly {@link flyteidl.service.GetDataRequest.verify|verify} messages. + * Encodes the specified CreateDownloadLocationRequest message. Does not implicitly {@link flyteidl.service.CreateDownloadLocationRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.service.GetDataRequest + * @memberof flyteidl.service.CreateDownloadLocationRequest * @static - * @param {flyteidl.service.IGetDataRequest} message GetDataRequest 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 */ - GetDataRequest.encode = function encode(message, writer) { + CreateDownloadLocationRequest.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.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 GetDataRequest message from the specified reader or buffer. + * Decodes a CreateDownloadLocationRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.GetDataRequest + * @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.GetDataRequest} GetDataRequest + * @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 */ - GetDataRequest.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.GetDataRequest(); + 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.flyteUrl = reader.string(); + message.nativeUrl = reader.string(); + break; + case 2: + message.expiresIn = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -45821,45 +45995,49 @@ }; /** - * Verifies a GetDataRequest message. + * Verifies a CreateDownloadLocationRequest message. * @function verify - * @memberof flyteidl.service.GetDataRequest + * @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 */ - GetDataRequest.verify = function verify(message) { + CreateDownloadLocationRequest.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.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 GetDataRequest; + return CreateDownloadLocationRequest; })(); - service.GetDataResponse = (function() { + service.CreateDownloadLocationResponse = (function() { /** - * Properties of a GetDataResponse. + * Properties of a CreateDownloadLocationResponse. * @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 ICreateDownloadLocationResponse + * @property {string|null} [signedUrl] CreateDownloadLocationResponse signedUrl + * @property {google.protobuf.ITimestamp|null} [expiresAt] CreateDownloadLocationResponse expiresAt */ /** - * Constructs a new GetDataResponse. + * Constructs a new CreateDownloadLocationResponse. * @memberof flyteidl.service - * @classdesc Represents a GetDataResponse. - * @implements IGetDataResponse + * @classdesc Represents a CreateDownloadLocationResponse. + * @implements ICreateDownloadLocationResponse * @constructor - * @param {flyteidl.service.IGetDataResponse=} [properties] Properties to set + * @param {flyteidl.service.ICreateDownloadLocationResponse=} [properties] Properties to set */ - function GetDataResponse(properties) { + function CreateDownloadLocationResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45867,102 +46045,75 @@ } /** - * GetDataResponse literalMap. - * @member {flyteidl.core.ILiteralMap|null|undefined} literalMap - * @memberof flyteidl.service.GetDataResponse + * CreateDownloadLocationResponse signedUrl. + * @member {string} signedUrl + * @memberof flyteidl.service.CreateDownloadLocationResponse * @instance */ - GetDataResponse.prototype.literalMap = null; + CreateDownloadLocationResponse.prototype.signedUrl = ""; /** - * GetDataResponse preSignedUrls. - * @member {flyteidl.service.IPreSignedURLs|null|undefined} preSignedUrls - * @memberof flyteidl.service.GetDataResponse + * CreateDownloadLocationResponse expiresAt. + * @member {google.protobuf.ITimestamp|null|undefined} expiresAt + * @memberof flyteidl.service.CreateDownloadLocationResponse * @instance */ - GetDataResponse.prototype.preSignedUrls = null; + CreateDownloadLocationResponse.prototype.expiresAt = null; /** - * GetDataResponse literal. - * @member {flyteidl.core.ILiteral|null|undefined} literal - * @memberof flyteidl.service.GetDataResponse - * @instance - */ - GetDataResponse.prototype.literal = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GetDataResponse data. - * @member {"literalMap"|"preSignedUrls"|"literal"|undefined} data - * @memberof flyteidl.service.GetDataResponse - * @instance - */ - Object.defineProperty(GetDataResponse.prototype, "data", { - get: $util.oneOfGetter($oneOfFields = ["literalMap", "preSignedUrls", "literal"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GetDataResponse instance using the specified properties. + * Creates a new CreateDownloadLocationResponse instance using the specified properties. * @function create - * @memberof flyteidl.service.GetDataResponse + * @memberof flyteidl.service.CreateDownloadLocationResponse * @static - * @param {flyteidl.service.IGetDataResponse=} [properties] Properties to set - * @returns {flyteidl.service.GetDataResponse} GetDataResponse instance + * @param {flyteidl.service.ICreateDownloadLocationResponse=} [properties] Properties to set + * @returns {flyteidl.service.CreateDownloadLocationResponse} CreateDownloadLocationResponse instance */ - GetDataResponse.create = function create(properties) { - return new GetDataResponse(properties); + CreateDownloadLocationResponse.create = function create(properties) { + return new CreateDownloadLocationResponse(properties); }; /** - * Encodes the specified GetDataResponse message. Does not implicitly {@link flyteidl.service.GetDataResponse.verify|verify} messages. + * Encodes the specified CreateDownloadLocationResponse message. Does not implicitly {@link flyteidl.service.CreateDownloadLocationResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.service.GetDataResponse + * @memberof flyteidl.service.CreateDownloadLocationResponse * @static - * @param {flyteidl.service.IGetDataResponse} message GetDataResponse 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 */ - GetDataResponse.encode = function encode(message, writer) { + CreateDownloadLocationResponse.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(); + 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 GetDataResponse message from the specified reader or buffer. + * Decodes a CreateDownloadLocationResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.GetDataResponse + * @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.GetDataResponse} GetDataResponse + * @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 */ - GetDataResponse.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.GetDataResponse(); + 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.literalMap = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + message.signedUrl = reader.string(); 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()); + message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -45973,601 +46124,167 @@ }; /** - * Verifies a GetDataResponse message. + * Verifies a CreateDownloadLocationResponse message. * @function verify - * @memberof flyteidl.service.GetDataResponse + * @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 */ - GetDataResponse.verify = function verify(message) { + CreateDownloadLocationResponse.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; - } + 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 GetDataResponse; + return CreateDownloadLocationResponse; })(); - service.DataProxyService = (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; + })(); + + service.CreateDownloadLinkRequest = (function() { /** - * Constructs a new DataProxyService service. + * Properties of a CreateDownloadLinkRequest. * @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 + * @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 */ - 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. + * Constructs a new CreateDownloadLinkRequest. + * @memberof flyteidl.service + * @classdesc Represents a CreateDownloadLinkRequest. + * @implements ICreateDownloadLinkRequest + * @constructor + * @param {flyteidl.service.ICreateDownloadLinkRequest=} [properties] Properties to set */ - DataProxyService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; + 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]]; + } /** - * 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 + * CreateDownloadLinkRequest artifactType. + * @member {flyteidl.service.ArtifactType} artifactType + * @memberof flyteidl.service.CreateDownloadLinkRequest + * @instance */ + CreateDownloadLinkRequest.prototype.artifactType = 0; /** - * Calls CreateUploadLocation. - * @function createUploadLocation - * @memberof flyteidl.service.DataProxyService + * CreateDownloadLinkRequest expiresIn. + * @member {google.protobuf.IDuration|null|undefined} expiresIn + * @memberof flyteidl.service.CreateDownloadLinkRequest * @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" }); + CreateDownloadLinkRequest.prototype.expiresIn = null; /** - * Calls CreateUploadLocation. - * @function createUploadLocation - * @memberof flyteidl.service.DataProxyService + * CreateDownloadLinkRequest nodeExecutionId. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} nodeExecutionId + * @memberof flyteidl.service.CreateDownloadLinkRequest * @instance - * @param {flyteidl.service.ICreateUploadLocationRequest} request CreateUploadLocationRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + CreateDownloadLinkRequest.prototype.nodeExecutionId = null; - /** - * 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 - */ + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Calls CreateDownloadLocation. - * @function createDownloadLocation - * @memberof flyteidl.service.DataProxyService + * CreateDownloadLinkRequest source. + * @member {"nodeExecutionId"|undefined} source + * @memberof flyteidl.service.CreateDownloadLinkRequest * @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" }); + Object.defineProperty(CreateDownloadLinkRequest.prototype, "source", { + get: $util.oneOfGetter($oneOfFields = ["nodeExecutionId"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Calls CreateDownloadLocation. - * @function createDownloadLocation - * @memberof flyteidl.service.DataProxyService - * @instance - * @param {flyteidl.service.ICreateDownloadLocationRequest} request CreateDownloadLocationRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new CreateDownloadLinkRequest instance using the specified properties. + * @function create + * @memberof flyteidl.service.CreateDownloadLinkRequest + * @static + * @param {flyteidl.service.ICreateDownloadLinkRequest=} [properties] Properties to set + * @returns {flyteidl.service.CreateDownloadLinkRequest} CreateDownloadLinkRequest instance */ + CreateDownloadLinkRequest.create = function create(properties) { + return new CreateDownloadLinkRequest(properties); + }; /** - * 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 + * Encodes the specified CreateDownloadLinkRequest message. Does not implicitly {@link flyteidl.service.CreateDownloadLinkRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.CreateDownloadLinkRequest + * @static + * @param {flyteidl.service.ICreateDownloadLinkRequest} message CreateDownloadLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - - /** - * Calls CreateDownloadLink. - * @function createDownloadLink - * @memberof flyteidl.service.DataProxyService - * @instance - * @param {flyteidl.service.ICreateDownloadLinkRequest} request CreateDownloadLinkRequest message or plain object - * @param {flyteidl.service.DataProxyService.CreateDownloadLinkCallback} callback Node-style callback called with the error, if any, and CreateDownloadLinkResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(DataProxyService.prototype.createDownloadLink = function createDownloadLink(request, callback) { - return this.rpcCall(createDownloadLink, $root.flyteidl.service.CreateDownloadLinkRequest, $root.flyteidl.service.CreateDownloadLinkResponse, request, callback); - }, "name", { value: "CreateDownloadLink" }); - - /** - * Calls CreateDownloadLink. - * @function createDownloadLink - * @memberof flyteidl.service.DataProxyService - * @instance - * @param {flyteidl.service.ICreateDownloadLinkRequest} request CreateDownloadLinkRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.DataProxyService#getData}. - * @memberof flyteidl.service.DataProxyService - * @typedef GetDataCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.service.GetDataResponse} [response] GetDataResponse - */ - - /** - * Calls GetData. - * @function getData - * @memberof flyteidl.service.DataProxyService - * @instance - * @param {flyteidl.service.IGetDataRequest} request GetDataRequest message or plain object - * @param {flyteidl.service.DataProxyService.GetDataCallback} callback Node-style callback called with the error, if any, and GetDataResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(DataProxyService.prototype.getData = function getData(request, callback) { - return this.rpcCall(getData, $root.flyteidl.service.GetDataRequest, $root.flyteidl.service.GetDataResponse, request, callback); - }, "name", { value: "GetData" }); - - /** - * Calls GetData. - * @function getData - * @memberof flyteidl.service.DataProxyService - * @instance - * @param {flyteidl.service.IGetDataRequest} request GetDataRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return DataProxyService; - })(); - - service.ExternalPluginService = (function() { - - /** - * Constructs a new ExternalPluginService service. - * @memberof flyteidl.service - * @classdesc Represents an ExternalPluginService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function ExternalPluginService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (ExternalPluginService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ExternalPluginService; - - /** - * Creates new ExternalPluginService service using the specified rpc implementation. - * @function create - * @memberof flyteidl.service.ExternalPluginService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {ExternalPluginService} RPC service. Useful where requests and/or responses are streamed. - */ - ExternalPluginService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link flyteidl.service.ExternalPluginService#createTask}. - * @memberof flyteidl.service.ExternalPluginService - * @typedef CreateTaskCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.service.TaskCreateResponse} [response] TaskCreateResponse - */ - - /** - * Calls CreateTask. - * @function createTask - * @memberof flyteidl.service.ExternalPluginService - * @instance - * @param {flyteidl.service.ITaskCreateRequest} request TaskCreateRequest message or plain object - * @param {flyteidl.service.ExternalPluginService.CreateTaskCallback} callback Node-style callback called with the error, if any, and TaskCreateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ExternalPluginService.prototype.createTask = function createTask(request, callback) { - return this.rpcCall(createTask, $root.flyteidl.service.TaskCreateRequest, $root.flyteidl.service.TaskCreateResponse, request, callback); - }, "name", { value: "CreateTask" }); - - /** - * Calls CreateTask. - * @function createTask - * @memberof flyteidl.service.ExternalPluginService - * @instance - * @param {flyteidl.service.ITaskCreateRequest} request TaskCreateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.ExternalPluginService#getTask}. - * @memberof flyteidl.service.ExternalPluginService - * @typedef GetTaskCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.service.TaskGetResponse} [response] TaskGetResponse - */ - - /** - * Calls GetTask. - * @function getTask - * @memberof flyteidl.service.ExternalPluginService - * @instance - * @param {flyteidl.service.ITaskGetRequest} request TaskGetRequest message or plain object - * @param {flyteidl.service.ExternalPluginService.GetTaskCallback} callback Node-style callback called with the error, if any, and TaskGetResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ExternalPluginService.prototype.getTask = function getTask(request, callback) { - return this.rpcCall(getTask, $root.flyteidl.service.TaskGetRequest, $root.flyteidl.service.TaskGetResponse, request, callback); - }, "name", { value: "GetTask" }); - - /** - * Calls GetTask. - * @function getTask - * @memberof flyteidl.service.ExternalPluginService - * @instance - * @param {flyteidl.service.ITaskGetRequest} request TaskGetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.ExternalPluginService#deleteTask}. - * @memberof flyteidl.service.ExternalPluginService - * @typedef DeleteTaskCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.service.TaskDeleteResponse} [response] TaskDeleteResponse - */ - - /** - * Calls DeleteTask. - * @function deleteTask - * @memberof flyteidl.service.ExternalPluginService - * @instance - * @param {flyteidl.service.ITaskDeleteRequest} request TaskDeleteRequest message or plain object - * @param {flyteidl.service.ExternalPluginService.DeleteTaskCallback} callback Node-style callback called with the error, if any, and TaskDeleteResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ExternalPluginService.prototype.deleteTask = function deleteTask(request, callback) { - return this.rpcCall(deleteTask, $root.flyteidl.service.TaskDeleteRequest, $root.flyteidl.service.TaskDeleteResponse, request, callback); - }, "name", { value: "DeleteTask" }); - - /** - * Calls DeleteTask. - * @function deleteTask - * @memberof flyteidl.service.ExternalPluginService - * @instance - * @param {flyteidl.service.ITaskDeleteRequest} request TaskDeleteRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return ExternalPluginService; - })(); - - /** - * State enum. - * @name flyteidl.service.State - * @enum {string} - * @property {number} RETRYABLE_FAILURE=0 RETRYABLE_FAILURE value - * @property {number} PERMANENT_FAILURE=1 PERMANENT_FAILURE value - * @property {number} PENDING=2 PENDING value - * @property {number} RUNNING=3 RUNNING value - * @property {number} SUCCEEDED=4 SUCCEEDED value - */ - service.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RETRYABLE_FAILURE"] = 0; - values[valuesById[1] = "PERMANENT_FAILURE"] = 1; - values[valuesById[2] = "PENDING"] = 2; - values[valuesById[3] = "RUNNING"] = 3; - values[valuesById[4] = "SUCCEEDED"] = 4; - return values; - })(); - - service.TaskCreateRequest = (function() { - - /** - * Properties of a TaskCreateRequest. - * @memberof flyteidl.service - * @interface ITaskCreateRequest - * @property {flyteidl.core.ILiteralMap|null} [inputs] TaskCreateRequest inputs - * @property {flyteidl.core.ITaskTemplate|null} [template] TaskCreateRequest template - * @property {string|null} [outputPrefix] TaskCreateRequest outputPrefix - */ - - /** - * Constructs a new TaskCreateRequest. - * @memberof flyteidl.service - * @classdesc Represents a TaskCreateRequest. - * @implements ITaskCreateRequest - * @constructor - * @param {flyteidl.service.ITaskCreateRequest=} [properties] Properties to set - */ - function TaskCreateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskCreateRequest inputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} inputs - * @memberof flyteidl.service.TaskCreateRequest - * @instance - */ - TaskCreateRequest.prototype.inputs = null; - - /** - * TaskCreateRequest template. - * @member {flyteidl.core.ITaskTemplate|null|undefined} template - * @memberof flyteidl.service.TaskCreateRequest - * @instance - */ - TaskCreateRequest.prototype.template = null; - - /** - * TaskCreateRequest outputPrefix. - * @member {string} outputPrefix - * @memberof flyteidl.service.TaskCreateRequest - * @instance - */ - TaskCreateRequest.prototype.outputPrefix = ""; - - /** - * Creates a new TaskCreateRequest instance using the specified properties. - * @function create - * @memberof flyteidl.service.TaskCreateRequest - * @static - * @param {flyteidl.service.ITaskCreateRequest=} [properties] Properties to set - * @returns {flyteidl.service.TaskCreateRequest} TaskCreateRequest instance - */ - TaskCreateRequest.create = function create(properties) { - return new TaskCreateRequest(properties); - }; - - /** - * Encodes the specified TaskCreateRequest message. Does not implicitly {@link flyteidl.service.TaskCreateRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.TaskCreateRequest - * @static - * @param {flyteidl.service.ITaskCreateRequest} message TaskCreateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskCreateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.inputs != null && message.hasOwnProperty("inputs")) - $root.flyteidl.core.LiteralMap.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.template != null && message.hasOwnProperty("template")) - $root.flyteidl.core.TaskTemplate.encode(message.template, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputPrefix); - return writer; - }; - - /** - * Decodes a TaskCreateRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.TaskCreateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.TaskCreateRequest} TaskCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskCreateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.TaskCreateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.inputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 2: - message.template = $root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32()); - break; - case 3: - message.outputPrefix = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskCreateRequest message. - * @function verify - * @memberof flyteidl.service.TaskCreateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskCreateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.inputs != null && message.hasOwnProperty("inputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.inputs); - if (error) - return "inputs." + error; - } - if (message.template != null && message.hasOwnProperty("template")) { - var error = $root.flyteidl.core.TaskTemplate.verify(message.template); - if (error) - return "template." + error; - } - if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix")) - if (!$util.isString(message.outputPrefix)) - return "outputPrefix: string expected"; - return null; - }; - - return TaskCreateRequest; - })(); - - service.TaskCreateResponse = (function() { - - /** - * Properties of a TaskCreateResponse. - * @memberof flyteidl.service - * @interface ITaskCreateResponse - * @property {string|null} [jobId] TaskCreateResponse jobId - */ - - /** - * Constructs a new TaskCreateResponse. - * @memberof flyteidl.service - * @classdesc Represents a TaskCreateResponse. - * @implements ITaskCreateResponse - * @constructor - * @param {flyteidl.service.ITaskCreateResponse=} [properties] Properties to set - */ - function TaskCreateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskCreateResponse jobId. - * @member {string} jobId - * @memberof flyteidl.service.TaskCreateResponse - * @instance - */ - TaskCreateResponse.prototype.jobId = ""; - - /** - * Creates a new TaskCreateResponse instance using the specified properties. - * @function create - * @memberof flyteidl.service.TaskCreateResponse - * @static - * @param {flyteidl.service.ITaskCreateResponse=} [properties] Properties to set - * @returns {flyteidl.service.TaskCreateResponse} TaskCreateResponse instance - */ - TaskCreateResponse.create = function create(properties) { - return new TaskCreateResponse(properties); - }; - - /** - * Encodes the specified TaskCreateResponse message. Does not implicitly {@link flyteidl.service.TaskCreateResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.TaskCreateResponse - * @static - * @param {flyteidl.service.ITaskCreateResponse} message TaskCreateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskCreateResponse.encode = function encode(message, writer) { + CreateDownloadLinkRequest.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.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 TaskCreateResponse message from the specified reader or buffer. + * Decodes a CreateDownloadLinkRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.TaskCreateResponse + * @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.TaskCreateResponse} TaskCreateResponse + * @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 */ - TaskCreateResponse.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.TaskCreateResponse(); + 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.jobId = reader.string(); + message.artifactType = reader.int32(); + break; + case 2: + message.expiresIn = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 3: + message.nodeExecutionId = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -46578,44 +46295,65 @@ }; /** - * Verifies a TaskCreateResponse message. + * Verifies a CreateDownloadLinkRequest message. * @function verify - * @memberof flyteidl.service.TaskCreateResponse + * @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 */ - TaskCreateResponse.verify = function verify(message) { + CreateDownloadLinkRequest.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"; + var properties = {}; + if (message.artifactType != null && message.hasOwnProperty("artifactType")) + switch (message.artifactType) { + default: + return "artifactType: enum value expected"; + case 0: + case 1: + break; + } + if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) { + var error = $root.google.protobuf.Duration.verify(message.expiresIn); + if (error) + return "expiresIn." + error; + } + if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) { + properties.source = 1; + { + var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.nodeExecutionId); + if (error) + return "nodeExecutionId." + error; + } + } return null; }; - return TaskCreateResponse; + return CreateDownloadLinkRequest; })(); - service.TaskGetRequest = (function() { + service.CreateDownloadLinkResponse = (function() { /** - * Properties of a TaskGetRequest. + * Properties of a CreateDownloadLinkResponse. * @memberof flyteidl.service - * @interface ITaskGetRequest - * @property {string|null} [taskType] TaskGetRequest taskType - * @property {string|null} [jobId] TaskGetRequest jobId + * @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 TaskGetRequest. + * Constructs a new CreateDownloadLinkResponse. * @memberof flyteidl.service - * @classdesc Represents a TaskGetRequest. - * @implements ITaskGetRequest + * @classdesc Represents a CreateDownloadLinkResponse. + * @implements ICreateDownloadLinkResponse * @constructor - * @param {flyteidl.service.ITaskGetRequest=} [properties] Properties to set + * @param {flyteidl.service.ICreateDownloadLinkResponse=} [properties] Properties to set */ - function TaskGetRequest(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) @@ -46623,75 +46361,91 @@ } /** - * TaskGetRequest taskType. - * @member {string} taskType - * @memberof flyteidl.service.TaskGetRequest + * CreateDownloadLinkResponse signedUrl. + * @member {Array.} signedUrl + * @memberof flyteidl.service.CreateDownloadLinkResponse * @instance */ - TaskGetRequest.prototype.taskType = ""; + CreateDownloadLinkResponse.prototype.signedUrl = $util.emptyArray; /** - * TaskGetRequest jobId. - * @member {string} jobId - * @memberof flyteidl.service.TaskGetRequest + * CreateDownloadLinkResponse expiresAt. + * @member {google.protobuf.ITimestamp|null|undefined} expiresAt + * @memberof flyteidl.service.CreateDownloadLinkResponse * @instance */ - TaskGetRequest.prototype.jobId = ""; + CreateDownloadLinkResponse.prototype.expiresAt = null; /** - * Creates a new TaskGetRequest instance using the specified properties. + * 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.TaskGetRequest + * @memberof flyteidl.service.CreateDownloadLinkResponse * @static - * @param {flyteidl.service.ITaskGetRequest=} [properties] Properties to set - * @returns {flyteidl.service.TaskGetRequest} TaskGetRequest instance + * @param {flyteidl.service.ICreateDownloadLinkResponse=} [properties] Properties to set + * @returns {flyteidl.service.CreateDownloadLinkResponse} CreateDownloadLinkResponse instance */ - TaskGetRequest.create = function create(properties) { - return new TaskGetRequest(properties); + CreateDownloadLinkResponse.create = function create(properties) { + return new CreateDownloadLinkResponse(properties); }; /** - * Encodes the specified TaskGetRequest message. Does not implicitly {@link flyteidl.service.TaskGetRequest.verify|verify} messages. + * Encodes the specified CreateDownloadLinkResponse message. Does not implicitly {@link flyteidl.service.CreateDownloadLinkResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.service.TaskGetRequest + * @memberof flyteidl.service.CreateDownloadLinkResponse * @static - * @param {flyteidl.service.ITaskGetRequest} message TaskGetRequest 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 */ - TaskGetRequest.encode = function encode(message, writer) { + CreateDownloadLinkResponse.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.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 TaskGetRequest message from the specified reader or buffer. + * Decodes a CreateDownloadLinkResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.TaskGetRequest + * @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.TaskGetRequest} TaskGetRequest + * @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 */ - TaskGetRequest.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.TaskGetRequest(); + 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: - message.taskType = reader.string(); + if (!(message.signedUrl && message.signedUrl.length)) + message.signedUrl = []; + message.signedUrl.push(reader.string()); break; case 2: - message.jobId = reader.string(); + 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); @@ -46702,47 +46456,59 @@ }; /** - * Verifies a TaskGetRequest message. + * Verifies a CreateDownloadLinkResponse message. * @function verify - * @memberof flyteidl.service.TaskGetRequest + * @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 */ - TaskGetRequest.verify = function verify(message) { + CreateDownloadLinkResponse.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.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 TaskGetRequest; + return CreateDownloadLinkResponse; })(); - service.TaskGetResponse = (function() { + service.PreSignedURLs = (function() { /** - * Properties of a TaskGetResponse. + * Properties of a PreSignedURLs. * @memberof flyteidl.service - * @interface ITaskGetResponse - * @property {flyteidl.service.State|null} [state] TaskGetResponse state - * @property {flyteidl.core.ILiteralMap|null} [outputs] TaskGetResponse outputs + * @interface IPreSignedURLs + * @property {Array.|null} [signedUrl] PreSignedURLs signedUrl + * @property {google.protobuf.ITimestamp|null} [expiresAt] PreSignedURLs expiresAt */ /** - * Constructs a new TaskGetResponse. + * Constructs a new PreSignedURLs. * @memberof flyteidl.service - * @classdesc Represents a TaskGetResponse. - * @implements ITaskGetResponse + * @classdesc Represents a PreSignedURLs. + * @implements IPreSignedURLs * @constructor - * @param {flyteidl.service.ITaskGetResponse=} [properties] Properties to set + * @param {flyteidl.service.IPreSignedURLs=} [properties] Properties to set */ - function TaskGetResponse(properties) { + function PreSignedURLs(properties) { + this.signedUrl = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46750,75 +46516,78 @@ } /** - * TaskGetResponse state. - * @member {flyteidl.service.State} state - * @memberof flyteidl.service.TaskGetResponse + * PreSignedURLs signedUrl. + * @member {Array.} signedUrl + * @memberof flyteidl.service.PreSignedURLs * @instance */ - TaskGetResponse.prototype.state = 0; + PreSignedURLs.prototype.signedUrl = $util.emptyArray; /** - * TaskGetResponse outputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} outputs - * @memberof flyteidl.service.TaskGetResponse + * PreSignedURLs expiresAt. + * @member {google.protobuf.ITimestamp|null|undefined} expiresAt + * @memberof flyteidl.service.PreSignedURLs * @instance */ - TaskGetResponse.prototype.outputs = null; + PreSignedURLs.prototype.expiresAt = null; /** - * Creates a new TaskGetResponse instance using the specified properties. + * Creates a new PreSignedURLs instance using the specified properties. * @function create - * @memberof flyteidl.service.TaskGetResponse + * @memberof flyteidl.service.PreSignedURLs * @static - * @param {flyteidl.service.ITaskGetResponse=} [properties] Properties to set - * @returns {flyteidl.service.TaskGetResponse} TaskGetResponse instance + * @param {flyteidl.service.IPreSignedURLs=} [properties] Properties to set + * @returns {flyteidl.service.PreSignedURLs} PreSignedURLs instance */ - TaskGetResponse.create = function create(properties) { - return new TaskGetResponse(properties); + PreSignedURLs.create = function create(properties) { + return new PreSignedURLs(properties); }; /** - * Encodes the specified TaskGetResponse message. Does not implicitly {@link flyteidl.service.TaskGetResponse.verify|verify} messages. + * Encodes the specified PreSignedURLs message. Does not implicitly {@link flyteidl.service.PreSignedURLs.verify|verify} messages. * @function encode - * @memberof flyteidl.service.TaskGetResponse + * @memberof flyteidl.service.PreSignedURLs * @static - * @param {flyteidl.service.ITaskGetResponse} message TaskGetResponse 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 */ - TaskGetResponse.encode = function encode(message, writer) { + PreSignedURLs.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.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 TaskGetResponse message from the specified reader or buffer. + * Decodes a PreSignedURLs message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.TaskGetResponse + * @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.TaskGetResponse} TaskGetResponse + * @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 */ - TaskGetResponse.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.TaskGetResponse(); + 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.state = reader.int32(); + if (!(message.signedUrl && message.signedUrl.length)) + message.signedUrl = []; + message.signedUrl.push(reader.string()); break; case 2: - message.outputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -46829,57 +46598,52 @@ }; /** - * Verifies a TaskGetResponse message. + * Verifies a PreSignedURLs message. * @function verify - * @memberof flyteidl.service.TaskGetResponse + * @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 */ - TaskGetResponse.verify = function verify(message) { + PreSignedURLs.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 (!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 "outputs." + error; + return "expiresAt." + error; } return null; }; - return TaskGetResponse; + return PreSignedURLs; })(); - service.TaskDeleteRequest = (function() { + service.GetDataRequest = (function() { /** - * Properties of a TaskDeleteRequest. + * Properties of a GetDataRequest. * @memberof flyteidl.service - * @interface ITaskDeleteRequest - * @property {string|null} [taskType] TaskDeleteRequest taskType - * @property {string|null} [jobId] TaskDeleteRequest jobId + * @interface IGetDataRequest + * @property {string|null} [flyteUrl] GetDataRequest flyteUrl */ /** - * Constructs a new TaskDeleteRequest. + * Constructs a new GetDataRequest. * @memberof flyteidl.service - * @classdesc Represents a TaskDeleteRequest. - * @implements ITaskDeleteRequest + * @classdesc Represents a GetDataRequest. + * @implements IGetDataRequest * @constructor - * @param {flyteidl.service.ITaskDeleteRequest=} [properties] Properties to set + * @param {flyteidl.service.IGetDataRequest=} [properties] Properties to set */ - function TaskDeleteRequest(properties) { + function GetDataRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46887,75 +46651,62 @@ } /** - * TaskDeleteRequest taskType. - * @member {string} taskType - * @memberof flyteidl.service.TaskDeleteRequest - * @instance - */ - TaskDeleteRequest.prototype.taskType = ""; - - /** - * TaskDeleteRequest jobId. - * @member {string} jobId - * @memberof flyteidl.service.TaskDeleteRequest + * GetDataRequest flyteUrl. + * @member {string} flyteUrl + * @memberof flyteidl.service.GetDataRequest * @instance */ - TaskDeleteRequest.prototype.jobId = ""; + GetDataRequest.prototype.flyteUrl = ""; /** - * Creates a new TaskDeleteRequest instance using the specified properties. + * Creates a new GetDataRequest instance using the specified properties. * @function create - * @memberof flyteidl.service.TaskDeleteRequest + * @memberof flyteidl.service.GetDataRequest * @static - * @param {flyteidl.service.ITaskDeleteRequest=} [properties] Properties to set - * @returns {flyteidl.service.TaskDeleteRequest} TaskDeleteRequest instance + * @param {flyteidl.service.IGetDataRequest=} [properties] Properties to set + * @returns {flyteidl.service.GetDataRequest} GetDataRequest instance */ - TaskDeleteRequest.create = function create(properties) { - return new TaskDeleteRequest(properties); + GetDataRequest.create = function create(properties) { + return new GetDataRequest(properties); }; /** - * Encodes the specified TaskDeleteRequest message. Does not implicitly {@link flyteidl.service.TaskDeleteRequest.verify|verify} messages. + * Encodes the specified GetDataRequest message. Does not implicitly {@link flyteidl.service.GetDataRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.service.TaskDeleteRequest + * @memberof flyteidl.service.GetDataRequest * @static - * @param {flyteidl.service.ITaskDeleteRequest} message TaskDeleteRequest message or plain object to encode + * @param {flyteidl.service.IGetDataRequest} message GetDataRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskDeleteRequest.encode = function encode(message, writer) { + GetDataRequest.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.flyteUrl != null && message.hasOwnProperty("flyteUrl")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.flyteUrl); return writer; }; /** - * Decodes a TaskDeleteRequest message from the specified reader or buffer. + * Decodes a GetDataRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.TaskDeleteRequest + * @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.TaskDeleteRequest} TaskDeleteRequest + * @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 */ - TaskDeleteRequest.decode = function decode(reader, length) { + 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.TaskDeleteRequest(); + 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.taskType = reader.string(); - break; - case 2: - message.jobId = reader.string(); + message.flyteUrl = reader.string(); break; default: reader.skipType(tag & 7); @@ -46966,45 +46717,45 @@ }; /** - * Verifies a TaskDeleteRequest message. + * Verifies a GetDataRequest message. * @function verify - * @memberof flyteidl.service.TaskDeleteRequest + * @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 */ - TaskDeleteRequest.verify = function verify(message) { + GetDataRequest.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.flyteUrl != null && message.hasOwnProperty("flyteUrl")) + if (!$util.isString(message.flyteUrl)) + return "flyteUrl: string expected"; return null; }; - return TaskDeleteRequest; + return GetDataRequest; })(); - service.TaskDeleteResponse = (function() { + service.GetDataResponse = (function() { /** - * Properties of a TaskDeleteResponse. + * Properties of a GetDataResponse. * @memberof flyteidl.service - * @interface ITaskDeleteResponse + * @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 TaskDeleteResponse. + * Constructs a new GetDataResponse. * @memberof flyteidl.service - * @classdesc Represents a TaskDeleteResponse. - * @implements ITaskDeleteResponse + * @classdesc Represents a GetDataResponse. + * @implements IGetDataResponse * @constructor - * @param {flyteidl.service.ITaskDeleteResponse=} [properties] Properties to set + * @param {flyteidl.service.IGetDataResponse=} [properties] Properties to set */ - function TaskDeleteResponse(properties) { + function GetDataResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -47012,50 +46763,103 @@ } /** - * Creates a new TaskDeleteResponse instance using the specified properties. + * GetDataResponse literalMap. + * @member {flyteidl.core.ILiteralMap|null|undefined} literalMap + * @memberof flyteidl.service.GetDataResponse + * @instance + */ + GetDataResponse.prototype.literalMap = null; + + /** + * GetDataResponse preSignedUrls. + * @member {flyteidl.service.IPreSignedURLs|null|undefined} preSignedUrls + * @memberof flyteidl.service.GetDataResponse + * @instance + */ + GetDataResponse.prototype.preSignedUrls = null; + + /** + * GetDataResponse literal. + * @member {flyteidl.core.ILiteral|null|undefined} literal + * @memberof flyteidl.service.GetDataResponse + * @instance + */ + GetDataResponse.prototype.literal = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * GetDataResponse data. + * @member {"literalMap"|"preSignedUrls"|"literal"|undefined} data + * @memberof flyteidl.service.GetDataResponse + * @instance + */ + Object.defineProperty(GetDataResponse.prototype, "data", { + get: $util.oneOfGetter($oneOfFields = ["literalMap", "preSignedUrls", "literal"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GetDataResponse instance using the specified properties. * @function create - * @memberof flyteidl.service.TaskDeleteResponse + * @memberof flyteidl.service.GetDataResponse * @static - * @param {flyteidl.service.ITaskDeleteResponse=} [properties] Properties to set - * @returns {flyteidl.service.TaskDeleteResponse} TaskDeleteResponse instance + * @param {flyteidl.service.IGetDataResponse=} [properties] Properties to set + * @returns {flyteidl.service.GetDataResponse} GetDataResponse instance */ - TaskDeleteResponse.create = function create(properties) { - return new TaskDeleteResponse(properties); + GetDataResponse.create = function create(properties) { + return new GetDataResponse(properties); }; /** - * Encodes the specified TaskDeleteResponse message. Does not implicitly {@link flyteidl.service.TaskDeleteResponse.verify|verify} messages. + * Encodes the specified GetDataResponse message. Does not implicitly {@link flyteidl.service.GetDataResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.service.TaskDeleteResponse + * @memberof flyteidl.service.GetDataResponse * @static - * @param {flyteidl.service.ITaskDeleteResponse} message TaskDeleteResponse 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 */ - TaskDeleteResponse.encode = function encode(message, writer) { + GetDataResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.literalMap != null && message.hasOwnProperty("literalMap")) + $root.flyteidl.core.LiteralMap.encode(message.literalMap, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.preSignedUrls != null && message.hasOwnProperty("preSignedUrls")) + $root.flyteidl.service.PreSignedURLs.encode(message.preSignedUrls, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.literal != null && message.hasOwnProperty("literal")) + $root.flyteidl.core.Literal.encode(message.literal, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Decodes a TaskDeleteResponse message from the specified reader or buffer. + * Decodes a GetDataResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.TaskDeleteResponse + * @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.TaskDeleteResponse} TaskDeleteResponse + * @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 */ - TaskDeleteResponse.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.TaskDeleteResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.GetDataResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.literalMap = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 2: + message.preSignedUrls = $root.flyteidl.service.PreSignedURLs.decode(reader, reader.uint32()); + break; + case 3: + message.literal = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -47065,20 +46869,216 @@ }; /** - * Verifies a TaskDeleteResponse message. + * Verifies a GetDataResponse message. * @function verify - * @memberof flyteidl.service.TaskDeleteResponse + * @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 */ - TaskDeleteResponse.verify = function verify(message) { + GetDataResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; + if (message.literalMap != null && message.hasOwnProperty("literalMap")) { + properties.data = 1; + { + var error = $root.flyteidl.core.LiteralMap.verify(message.literalMap); + if (error) + return "literalMap." + error; + } + } + if (message.preSignedUrls != null && message.hasOwnProperty("preSignedUrls")) { + if (properties.data === 1) + return "data: multiple values"; + properties.data = 1; + { + var error = $root.flyteidl.service.PreSignedURLs.verify(message.preSignedUrls); + if (error) + return "preSignedUrls." + error; + } + } + if (message.literal != null && message.hasOwnProperty("literal")) { + if (properties.data === 1) + return "data: multiple values"; + properties.data = 1; + { + var error = $root.flyteidl.core.Literal.verify(message.literal); + if (error) + return "literal." + error; + } + } return null; }; - return TaskDeleteResponse; + return GetDataResponse; + })(); + + service.DataProxyService = (function() { + + /** + * Constructs a new DataProxyService service. + * @memberof flyteidl.service + * @classdesc Represents a DataProxyService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function DataProxyService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (DataProxyService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = DataProxyService; + + /** + * Creates new DataProxyService service using the specified rpc implementation. + * @function create + * @memberof flyteidl.service.DataProxyService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {DataProxyService} RPC service. Useful where requests and/or responses are streamed. + */ + DataProxyService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link flyteidl.service.DataProxyService#createUploadLocation}. + * @memberof flyteidl.service.DataProxyService + * @typedef CreateUploadLocationCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.service.CreateUploadLocationResponse} [response] CreateUploadLocationResponse + */ + + /** + * Calls CreateUploadLocation. + * @function createUploadLocation + * @memberof flyteidl.service.DataProxyService + * @instance + * @param {flyteidl.service.ICreateUploadLocationRequest} request CreateUploadLocationRequest message or plain object + * @param {flyteidl.service.DataProxyService.CreateUploadLocationCallback} callback Node-style callback called with the error, if any, and CreateUploadLocationResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(DataProxyService.prototype.createUploadLocation = function createUploadLocation(request, callback) { + return this.rpcCall(createUploadLocation, $root.flyteidl.service.CreateUploadLocationRequest, $root.flyteidl.service.CreateUploadLocationResponse, request, callback); + }, "name", { value: "CreateUploadLocation" }); + + /** + * Calls CreateUploadLocation. + * @function createUploadLocation + * @memberof flyteidl.service.DataProxyService + * @instance + * @param {flyteidl.service.ICreateUploadLocationRequest} request CreateUploadLocationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.DataProxyService#createDownloadLocation}. + * @memberof flyteidl.service.DataProxyService + * @typedef CreateDownloadLocationCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.service.CreateDownloadLocationResponse} [response] CreateDownloadLocationResponse + */ + + /** + * Calls CreateDownloadLocation. + * @function createDownloadLocation + * @memberof flyteidl.service.DataProxyService + * @instance + * @param {flyteidl.service.ICreateDownloadLocationRequest} request CreateDownloadLocationRequest message or plain object + * @param {flyteidl.service.DataProxyService.CreateDownloadLocationCallback} callback Node-style callback called with the error, if any, and CreateDownloadLocationResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(DataProxyService.prototype.createDownloadLocation = function createDownloadLocation(request, callback) { + return this.rpcCall(createDownloadLocation, $root.flyteidl.service.CreateDownloadLocationRequest, $root.flyteidl.service.CreateDownloadLocationResponse, request, callback); + }, "name", { value: "CreateDownloadLocation" }); + + /** + * Calls CreateDownloadLocation. + * @function createDownloadLocation + * @memberof flyteidl.service.DataProxyService + * @instance + * @param {flyteidl.service.ICreateDownloadLocationRequest} request CreateDownloadLocationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.DataProxyService#createDownloadLink}. + * @memberof flyteidl.service.DataProxyService + * @typedef CreateDownloadLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.service.CreateDownloadLinkResponse} [response] CreateDownloadLinkResponse + */ + + /** + * Calls CreateDownloadLink. + * @function createDownloadLink + * @memberof flyteidl.service.DataProxyService + * @instance + * @param {flyteidl.service.ICreateDownloadLinkRequest} request CreateDownloadLinkRequest message or plain object + * @param {flyteidl.service.DataProxyService.CreateDownloadLinkCallback} callback Node-style callback called with the error, if any, and CreateDownloadLinkResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(DataProxyService.prototype.createDownloadLink = function createDownloadLink(request, callback) { + return this.rpcCall(createDownloadLink, $root.flyteidl.service.CreateDownloadLinkRequest, $root.flyteidl.service.CreateDownloadLinkResponse, request, callback); + }, "name", { value: "CreateDownloadLink" }); + + /** + * Calls CreateDownloadLink. + * @function createDownloadLink + * @memberof flyteidl.service.DataProxyService + * @instance + * @param {flyteidl.service.ICreateDownloadLinkRequest} request CreateDownloadLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.DataProxyService#getData}. + * @memberof flyteidl.service.DataProxyService + * @typedef GetDataCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.service.GetDataResponse} [response] GetDataResponse + */ + + /** + * Calls GetData. + * @function getData + * @memberof flyteidl.service.DataProxyService + * @instance + * @param {flyteidl.service.IGetDataRequest} request GetDataRequest message or plain object + * @param {flyteidl.service.DataProxyService.GetDataCallback} callback Node-style callback called with the error, if any, and GetDataResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(DataProxyService.prototype.getData = function getData(request, callback) { + return this.rpcCall(getData, $root.flyteidl.service.GetDataRequest, $root.flyteidl.service.GetDataResponse, request, callback); + }, "name", { value: "GetData" }); + + /** + * Calls GetData. + * @function getData + * @memberof flyteidl.service.DataProxyService + * @instance + * @param {flyteidl.service.IGetDataRequest} request GetDataRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return DataProxyService; })(); service.UserInfoRequest = (function() { diff --git a/gen/pb_python/flyteidl/service/agent_service_pb2.py b/gen/pb_python/flyteidl/service/agent_service_pb2.py new file mode 100644 index 000000000..0e3423249 --- /dev/null +++ b/gen/pb_python/flyteidl/service/agent_service_pb2.py @@ -0,0 +1,44 @@ +# -*- 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/gen/pb_python/flyteidl/service/external_plugin_service_pb2.pyi b/gen/pb_python/flyteidl/service/agent_service_pb2.pyi similarity index 100% rename from gen/pb_python/flyteidl/service/external_plugin_service_pb2.pyi rename to gen/pb_python/flyteidl/service/agent_service_pb2.pyi diff --git a/gen/pb_python/flyteidl/service/external_plugin_service_pb2_grpc.py b/gen/pb_python/flyteidl/service/agent_service_pb2_grpc.py similarity index 55% rename from gen/pb_python/flyteidl/service/external_plugin_service_pb2_grpc.py rename to gen/pb_python/flyteidl/service/agent_service_pb2_grpc.py index 6607d3671..5d5dd8351 100644 --- a/gen/pb_python/flyteidl/service/external_plugin_service_pb2_grpc.py +++ b/gen/pb_python/flyteidl/service/agent_service_pb2_grpc.py @@ -2,11 +2,11 @@ """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 +from flyteidl.service import agent_service_pb2 as flyteidl_dot_service_dot_agent__service__pb2 -class ExternalPluginServiceStub(object): - """ExternalPluginService defines an RPC Service that allows propeller to send the request to the backend plugin server. +class AgentServiceStub(object): + """AgentService defines an RPC Service that allows propeller to send the request to the agent server. """ def __init__(self, channel): @@ -16,28 +16,28 @@ def __init__(self, channel): 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, + '/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, ) 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, + '/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, ) 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, + '/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, ) -class ExternalPluginServiceServicer(object): - """ExternalPluginService defines an RPC Service that allows propeller to send the request to the backend plugin server. +class AgentServiceServicer(object): + """AgentService defines an RPC Service that allows propeller to send the request to the agent server. """ def CreateTask(self, request, context): - """Send a task create request to the backend plugin server. + """Send a task create request to the agent server. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') @@ -58,32 +58,32 @@ def DeleteTask(self, request, context): raise NotImplementedError('Method not implemented!') -def add_ExternalPluginServiceServicer_to_server(servicer, server): +def add_AgentServiceServicer_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, + request_deserializer=flyteidl_dot_service_dot_agent__service__pb2.TaskCreateRequest.FromString, + response_serializer=flyteidl_dot_service_dot_agent__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, + request_deserializer=flyteidl_dot_service_dot_agent__service__pb2.TaskGetRequest.FromString, + response_serializer=flyteidl_dot_service_dot_agent__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, + request_deserializer=flyteidl_dot_service_dot_agent__service__pb2.TaskDeleteRequest.FromString, + response_serializer=flyteidl_dot_service_dot_agent__service__pb2.TaskDeleteResponse.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( - 'flyteidl.service.ExternalPluginService', rpc_method_handlers) + 'flyteidl.service.AgentService', 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. +class AgentService(object): + """AgentService defines an RPC Service that allows propeller to send the request to the agent server. """ @staticmethod @@ -97,9 +97,9 @@ def CreateTask(request, 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, + 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, 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.ExternalPluginService/GetTask', - flyteidl_dot_service_dot_external__plugin__service__pb2.TaskGetRequest.SerializeToString, - flyteidl_dot_service_dot_external__plugin__service__pb2.TaskGetResponse.FromString, + 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, 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.ExternalPluginService/DeleteTask', - flyteidl_dot_service_dot_external__plugin__service__pb2.TaskDeleteRequest.SerializeToString, - flyteidl_dot_service_dot_external__plugin__service__pb2.TaskDeleteResponse.FromString, + 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, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/gen/pb_python/flyteidl/service/external_plugin_service_pb2.py b/gen/pb_python/flyteidl/service/external_plugin_service_pb2.py deleted file mode 100644 index 6f9cfb8bd..000000000 --- a/gen/pb_python/flyteidl/service/external_plugin_service_pb2.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/service/external_plugin_service.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 -from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 -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\"\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\x9f\x02\n\x15\x45xternalPluginService\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\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' - _globals['_STATE']._serialized_start=652 - _globals['_STATE']._serialized_end=746 - _globals['_TASKCREATEREQUEST']._serialized_start=157 - _globals['_TASKCREATEREQUEST']._serialized_end=321 - _globals['_TASKCREATERESPONSE']._serialized_start=323 - _globals['_TASKCREATERESPONSE']._serialized_end=366 - _globals['_TASKGETREQUEST']._serialized_start=368 - _globals['_TASKGETREQUEST']._serialized_end=436 - _globals['_TASKGETRESPONSE']._serialized_start=438 - _globals['_TASKGETRESPONSE']._serialized_end=555 - _globals['_TASKDELETEREQUEST']._serialized_start=557 - _globals['_TASKDELETEREQUEST']._serialized_end=628 - _globals['_TASKDELETERESPONSE']._serialized_start=630 - _globals['_TASKDELETERESPONSE']._serialized_end=650 - _globals['_EXTERNALPLUGINSERVICE']._serialized_start=749 - _globals['_EXTERNALPLUGINSERVICE']._serialized_end=1036 -# @@protoc_insertion_point(module_scope) diff --git a/gen/pb_rust/flyteidl.service.rs b/gen/pb_rust/flyteidl.service.rs index d7b7ee83a..3da35ee1e 100644 --- a/gen/pb_rust/flyteidl.service.rs +++ b/gen/pb_rust/flyteidl.service.rs @@ -1,4 +1,103 @@ // @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 { @@ -254,105 +353,6 @@ 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/protos/flyteidl/service/external_plugin_service.proto b/protos/flyteidl/service/agent_service.proto similarity index 86% rename from protos/flyteidl/service/external_plugin_service.proto rename to protos/flyteidl/service/agent_service.proto index a5458a07c..516da92ea 100644 --- a/protos/flyteidl/service/external_plugin_service.proto +++ b/protos/flyteidl/service/agent_service.proto @@ -6,9 +6,9 @@ import "flyteidl/core/literals.proto"; import "flyteidl/core/tasks.proto"; import "flyteidl/core/interface.proto"; -// 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. +// 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){}; // Get job status. rpc GetTask (TaskGetRequest) returns (TaskGetResponse){}; @@ -42,7 +42,7 @@ message TaskCreateResponse { string job_id = 1; } -// A message used to fetch a job state from backend plugin server. +// A message used to fetch a job state from flyte agent server. message TaskGetRequest { // A predefined yet extensible Task type identifier. string task_type = 1; @@ -54,7 +54,7 @@ message TaskGetRequest { message TaskGetResponse { // 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. Flyteplugins service will create a + // 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;