diff --git a/clients/go/admin/mocks/CacheServiceClient.go b/clients/go/admin/mocks/CacheServiceClient.go index ce654963c..0d8e354d9 100644 --- a/clients/go/admin/mocks/CacheServiceClient.go +++ b/clients/go/admin/mocks/CacheServiceClient.go @@ -17,26 +17,26 @@ type CacheServiceClient struct { mock.Mock } -type CacheServiceClient_EvictCache struct { +type CacheServiceClient_EvictExecutionCache struct { *mock.Call } -func (_m CacheServiceClient_EvictCache) Return(_a0 *service.EvictCacheResponse, _a1 error) *CacheServiceClient_EvictCache { - return &CacheServiceClient_EvictCache{Call: _m.Call.Return(_a0, _a1)} +func (_m CacheServiceClient_EvictExecutionCache) Return(_a0 *service.EvictCacheResponse, _a1 error) *CacheServiceClient_EvictExecutionCache { + return &CacheServiceClient_EvictExecutionCache{Call: _m.Call.Return(_a0, _a1)} } -func (_m *CacheServiceClient) OnEvictCache(ctx context.Context, in *service.EvictCacheRequest, opts ...grpc.CallOption) *CacheServiceClient_EvictCache { - c_call := _m.On("EvictCache", ctx, in, opts) - return &CacheServiceClient_EvictCache{Call: c_call} +func (_m *CacheServiceClient) OnEvictExecutionCache(ctx context.Context, in *service.EvictExecutionCacheRequest, opts ...grpc.CallOption) *CacheServiceClient_EvictExecutionCache { + c_call := _m.On("EvictExecutionCache", ctx, in, opts) + return &CacheServiceClient_EvictExecutionCache{Call: c_call} } -func (_m *CacheServiceClient) OnEvictCacheMatch(matchers ...interface{}) *CacheServiceClient_EvictCache { - c_call := _m.On("EvictCache", matchers...) - return &CacheServiceClient_EvictCache{Call: c_call} +func (_m *CacheServiceClient) OnEvictExecutionCacheMatch(matchers ...interface{}) *CacheServiceClient_EvictExecutionCache { + c_call := _m.On("EvictExecutionCache", matchers...) + return &CacheServiceClient_EvictExecutionCache{Call: c_call} } -// EvictCache provides a mock function with given fields: ctx, in, opts -func (_m *CacheServiceClient) EvictCache(ctx context.Context, in *service.EvictCacheRequest, opts ...grpc.CallOption) (*service.EvictCacheResponse, error) { +// EvictExecutionCache provides a mock function with given fields: ctx, in, opts +func (_m *CacheServiceClient) EvictExecutionCache(ctx context.Context, in *service.EvictExecutionCacheRequest, opts ...grpc.CallOption) (*service.EvictCacheResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -47,7 +47,7 @@ func (_m *CacheServiceClient) EvictCache(ctx context.Context, in *service.EvictC ret := _m.Called(_ca...) var r0 *service.EvictCacheResponse - if rf, ok := ret.Get(0).(func(context.Context, *service.EvictCacheRequest, ...grpc.CallOption) *service.EvictCacheResponse); ok { + if rf, ok := ret.Get(0).(func(context.Context, *service.EvictExecutionCacheRequest, ...grpc.CallOption) *service.EvictCacheResponse); ok { r0 = rf(ctx, in, opts...) } else { if ret.Get(0) != nil { @@ -56,7 +56,55 @@ func (_m *CacheServiceClient) EvictCache(ctx context.Context, in *service.EvictC } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *service.EvictCacheRequest, ...grpc.CallOption) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *service.EvictExecutionCacheRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type CacheServiceClient_EvictTaskExecutionCache struct { + *mock.Call +} + +func (_m CacheServiceClient_EvictTaskExecutionCache) Return(_a0 *service.EvictCacheResponse, _a1 error) *CacheServiceClient_EvictTaskExecutionCache { + return &CacheServiceClient_EvictTaskExecutionCache{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *CacheServiceClient) OnEvictTaskExecutionCache(ctx context.Context, in *service.EvictTaskExecutionCacheRequest, opts ...grpc.CallOption) *CacheServiceClient_EvictTaskExecutionCache { + c_call := _m.On("EvictTaskExecutionCache", ctx, in, opts) + return &CacheServiceClient_EvictTaskExecutionCache{Call: c_call} +} + +func (_m *CacheServiceClient) OnEvictTaskExecutionCacheMatch(matchers ...interface{}) *CacheServiceClient_EvictTaskExecutionCache { + c_call := _m.On("EvictTaskExecutionCache", matchers...) + return &CacheServiceClient_EvictTaskExecutionCache{Call: c_call} +} + +// EvictTaskExecutionCache provides a mock function with given fields: ctx, in, opts +func (_m *CacheServiceClient) EvictTaskExecutionCache(ctx context.Context, in *service.EvictTaskExecutionCacheRequest, opts ...grpc.CallOption) (*service.EvictCacheResponse, 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.EvictCacheResponse + if rf, ok := ret.Get(0).(func(context.Context, *service.EvictTaskExecutionCacheRequest, ...grpc.CallOption) *service.EvictCacheResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*service.EvictCacheResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *service.EvictTaskExecutionCacheRequest, ...grpc.CallOption) error); ok { r1 = rf(ctx, in, opts...) } else { r1 = ret.Error(1) diff --git a/clients/go/admin/mocks/CacheServiceServer.go b/clients/go/admin/mocks/CacheServiceServer.go index 85059868c..d30d21673 100644 --- a/clients/go/admin/mocks/CacheServiceServer.go +++ b/clients/go/admin/mocks/CacheServiceServer.go @@ -14,30 +14,30 @@ type CacheServiceServer struct { mock.Mock } -type CacheServiceServer_EvictCache struct { +type CacheServiceServer_EvictExecutionCache struct { *mock.Call } -func (_m CacheServiceServer_EvictCache) Return(_a0 *service.EvictCacheResponse, _a1 error) *CacheServiceServer_EvictCache { - return &CacheServiceServer_EvictCache{Call: _m.Call.Return(_a0, _a1)} +func (_m CacheServiceServer_EvictExecutionCache) Return(_a0 *service.EvictCacheResponse, _a1 error) *CacheServiceServer_EvictExecutionCache { + return &CacheServiceServer_EvictExecutionCache{Call: _m.Call.Return(_a0, _a1)} } -func (_m *CacheServiceServer) OnEvictCache(_a0 context.Context, _a1 *service.EvictCacheRequest) *CacheServiceServer_EvictCache { - c_call := _m.On("EvictCache", _a0, _a1) - return &CacheServiceServer_EvictCache{Call: c_call} +func (_m *CacheServiceServer) OnEvictExecutionCache(_a0 context.Context, _a1 *service.EvictExecutionCacheRequest) *CacheServiceServer_EvictExecutionCache { + c_call := _m.On("EvictExecutionCache", _a0, _a1) + return &CacheServiceServer_EvictExecutionCache{Call: c_call} } -func (_m *CacheServiceServer) OnEvictCacheMatch(matchers ...interface{}) *CacheServiceServer_EvictCache { - c_call := _m.On("EvictCache", matchers...) - return &CacheServiceServer_EvictCache{Call: c_call} +func (_m *CacheServiceServer) OnEvictExecutionCacheMatch(matchers ...interface{}) *CacheServiceServer_EvictExecutionCache { + c_call := _m.On("EvictExecutionCache", matchers...) + return &CacheServiceServer_EvictExecutionCache{Call: c_call} } -// EvictCache provides a mock function with given fields: _a0, _a1 -func (_m *CacheServiceServer) EvictCache(_a0 context.Context, _a1 *service.EvictCacheRequest) (*service.EvictCacheResponse, error) { +// EvictExecutionCache provides a mock function with given fields: _a0, _a1 +func (_m *CacheServiceServer) EvictExecutionCache(_a0 context.Context, _a1 *service.EvictExecutionCacheRequest) (*service.EvictCacheResponse, error) { ret := _m.Called(_a0, _a1) var r0 *service.EvictCacheResponse - if rf, ok := ret.Get(0).(func(context.Context, *service.EvictCacheRequest) *service.EvictCacheResponse); ok { + if rf, ok := ret.Get(0).(func(context.Context, *service.EvictExecutionCacheRequest) *service.EvictCacheResponse); ok { r0 = rf(_a0, _a1) } else { if ret.Get(0) != nil { @@ -46,7 +46,48 @@ func (_m *CacheServiceServer) EvictCache(_a0 context.Context, _a1 *service.Evict } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *service.EvictCacheRequest) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *service.EvictExecutionCacheRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type CacheServiceServer_EvictTaskExecutionCache struct { + *mock.Call +} + +func (_m CacheServiceServer_EvictTaskExecutionCache) Return(_a0 *service.EvictCacheResponse, _a1 error) *CacheServiceServer_EvictTaskExecutionCache { + return &CacheServiceServer_EvictTaskExecutionCache{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *CacheServiceServer) OnEvictTaskExecutionCache(_a0 context.Context, _a1 *service.EvictTaskExecutionCacheRequest) *CacheServiceServer_EvictTaskExecutionCache { + c_call := _m.On("EvictTaskExecutionCache", _a0, _a1) + return &CacheServiceServer_EvictTaskExecutionCache{Call: c_call} +} + +func (_m *CacheServiceServer) OnEvictTaskExecutionCacheMatch(matchers ...interface{}) *CacheServiceServer_EvictTaskExecutionCache { + c_call := _m.On("EvictTaskExecutionCache", matchers...) + return &CacheServiceServer_EvictTaskExecutionCache{Call: c_call} +} + +// EvictTaskExecutionCache provides a mock function with given fields: _a0, _a1 +func (_m *CacheServiceServer) EvictTaskExecutionCache(_a0 context.Context, _a1 *service.EvictTaskExecutionCacheRequest) (*service.EvictCacheResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *service.EvictCacheResponse + if rf, ok := ret.Get(0).(func(context.Context, *service.EvictTaskExecutionCacheRequest) *service.EvictCacheResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*service.EvictCacheResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *service.EvictTaskExecutionCacheRequest) error); ok { r1 = rf(_a0, _a1) } else { r1 = ret.Error(1) diff --git a/gen/pb-cpp/flyteidl/core/errors.pb.cc b/gen/pb-cpp/flyteidl/core/errors.pb.cc index 2aac06b2d..48255b01f 100644 --- a/gen/pb-cpp/flyteidl/core/errors.pb.cc +++ b/gen/pb-cpp/flyteidl/core/errors.pb.cc @@ -179,7 +179,7 @@ const char descriptor_table_protodef_flyteidl_2fcore_2ferrors_2eproto[] = "xecutionError.ErrorKind\",\n\004Kind\022\023\n\017NON_R" "ECOVERABLE\020\000\022\017\n\013RECOVERABLE\020\001\"=\n\rErrorDo" "cument\022,\n\005error\030\001 \001(\0132\035.flyteidl.core.Co" - "ntainerError\"\317\002\n\022CacheEvictionError\0224\n\004c" + "ntainerError\"\305\003\n\022CacheEvictionError\0224\n\004c" "ode\030\001 \001(\0162&.flyteidl.core.CacheEvictionE" "rror.Code\022\017\n\007message\030\002 \001(\t\022A\n\021node_execu" "tion_id\030\003 \001(\0132&.flyteidl.core.NodeExecut" @@ -187,16 +187,19 @@ const char descriptor_table_protodef_flyteidl_2fcore_2ferrors_2eproto[] = "2&.flyteidl.core.TaskExecutionIdentifier" "H\000\022K\n\025workflow_execution_id\030\005 \001(\0132*.flyt" "eidl.core.WorkflowExecutionIdentifierH\000\"" - "\023\n\004Code\022\013\n\007UNKNOWN\020\000B\010\n\006source\"K\n\026CacheE" - "victionErrorList\0221\n\006errors\030\001 \003(\0132!.flyte" - "idl.core.CacheEvictionErrorB6Z4github.co" - "m/flyteorg/flyteidl/gen/pb-go/flyteidl/c" - "oreb\006proto3" + "\210\001\n\004Code\022\014\n\010INTERNAL\020\000\022\034\n\030RESERVATION_NO" + "T_ACQUIRED\020\001\022\032\n\026DATABASE_UPDATE_FAILED\020\002" + "\022\032\n\026ARTIFACT_DELETE_FAILED\020\003\022\034\n\030RESERVAT" + "ION_NOT_RELEASED\020\004B\010\n\006source\"K\n\026CacheEvi" + "ctionErrorList\0221\n\006errors\030\001 \003(\0132!.flyteid" + "l.core.CacheEvictionErrorB6Z4github.com/" + "flyteorg/flyteidl/gen/pb-go/flyteidl/cor" + "eb\006proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fcore_2ferrors_2eproto = { false, InitDefaults_flyteidl_2fcore_2ferrors_2eproto, descriptor_table_protodef_flyteidl_2fcore_2ferrors_2eproto, - "flyteidl/core/errors.proto", &assign_descriptors_table_flyteidl_2fcore_2ferrors_2eproto, 851, + "flyteidl/core/errors.proto", &assign_descriptors_table_flyteidl_2fcore_2ferrors_2eproto, 969, }; void AddDescriptors_flyteidl_2fcore_2ferrors_2eproto() { @@ -240,6 +243,10 @@ const ::google::protobuf::EnumDescriptor* CacheEvictionError_Code_descriptor() { bool CacheEvictionError_Code_IsValid(int value) { switch (value) { case 0: + case 1: + case 2: + case 3: + case 4: return true; default: return false; @@ -247,7 +254,11 @@ bool CacheEvictionError_Code_IsValid(int value) { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const CacheEvictionError_Code CacheEvictionError::UNKNOWN; +const CacheEvictionError_Code CacheEvictionError::INTERNAL; +const CacheEvictionError_Code CacheEvictionError::RESERVATION_NOT_ACQUIRED; +const CacheEvictionError_Code CacheEvictionError::DATABASE_UPDATE_FAILED; +const CacheEvictionError_Code CacheEvictionError::ARTIFACT_DELETE_FAILED; +const CacheEvictionError_Code CacheEvictionError::RESERVATION_NOT_RELEASED; const CacheEvictionError_Code CacheEvictionError::Code_MIN; const CacheEvictionError_Code CacheEvictionError::Code_MAX; const int CacheEvictionError::Code_ARRAYSIZE; diff --git a/gen/pb-cpp/flyteidl/core/errors.pb.h b/gen/pb-cpp/flyteidl/core/errors.pb.h index d3a0ebc90..dd3456a9f 100644 --- a/gen/pb-cpp/flyteidl/core/errors.pb.h +++ b/gen/pb-cpp/flyteidl/core/errors.pb.h @@ -100,13 +100,17 @@ inline bool ContainerError_Kind_Parse( ContainerError_Kind_descriptor(), name, value); } enum CacheEvictionError_Code { - CacheEvictionError_Code_UNKNOWN = 0, + CacheEvictionError_Code_INTERNAL = 0, + CacheEvictionError_Code_RESERVATION_NOT_ACQUIRED = 1, + CacheEvictionError_Code_DATABASE_UPDATE_FAILED = 2, + CacheEvictionError_Code_ARTIFACT_DELETE_FAILED = 3, + CacheEvictionError_Code_RESERVATION_NOT_RELEASED = 4, CacheEvictionError_Code_CacheEvictionError_Code_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), CacheEvictionError_Code_CacheEvictionError_Code_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() }; bool CacheEvictionError_Code_IsValid(int value); -const CacheEvictionError_Code CacheEvictionError_Code_Code_MIN = CacheEvictionError_Code_UNKNOWN; -const CacheEvictionError_Code CacheEvictionError_Code_Code_MAX = CacheEvictionError_Code_UNKNOWN; +const CacheEvictionError_Code CacheEvictionError_Code_Code_MIN = CacheEvictionError_Code_INTERNAL; +const CacheEvictionError_Code CacheEvictionError_Code_Code_MAX = CacheEvictionError_Code_RESERVATION_NOT_RELEASED; const int CacheEvictionError_Code_Code_ARRAYSIZE = CacheEvictionError_Code_Code_MAX + 1; const ::google::protobuf::EnumDescriptor* CacheEvictionError_Code_descriptor(); @@ -511,8 +515,16 @@ class CacheEvictionError final : // nested types ---------------------------------------------------- typedef CacheEvictionError_Code Code; - static const Code UNKNOWN = - CacheEvictionError_Code_UNKNOWN; + static const Code INTERNAL = + CacheEvictionError_Code_INTERNAL; + static const Code RESERVATION_NOT_ACQUIRED = + CacheEvictionError_Code_RESERVATION_NOT_ACQUIRED; + static const Code DATABASE_UPDATE_FAILED = + CacheEvictionError_Code_DATABASE_UPDATE_FAILED; + static const Code ARTIFACT_DELETE_FAILED = + CacheEvictionError_Code_ARTIFACT_DELETE_FAILED; + static const Code RESERVATION_NOT_RELEASED = + CacheEvictionError_Code_RESERVATION_NOT_RELEASED; static inline bool Code_IsValid(int value) { return CacheEvictionError_Code_IsValid(value); } diff --git a/gen/pb-cpp/flyteidl/service/cache.grpc.pb.cc b/gen/pb-cpp/flyteidl/service/cache.grpc.pb.cc index 587fe1f25..90e90e8e5 100644 --- a/gen/pb-cpp/flyteidl/service/cache.grpc.pb.cc +++ b/gen/pb-cpp/flyteidl/service/cache.grpc.pb.cc @@ -20,7 +20,8 @@ namespace flyteidl { namespace service { static const char* CacheService_method_names[] = { - "/flyteidl.service.CacheService/EvictCache", + "/flyteidl.service.CacheService/EvictExecutionCache", + "/flyteidl.service.CacheService/EvictTaskExecutionCache", }; std::unique_ptr< CacheService::Stub> CacheService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { @@ -30,49 +31,90 @@ std::unique_ptr< CacheService::Stub> CacheService::NewStub(const std::shared_ptr } CacheService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) - : channel_(channel), rpcmethod_EvictCache_(CacheService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + : channel_(channel), rpcmethod_EvictExecutionCache_(CacheService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_EvictTaskExecutionCache_(CacheService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} -::grpc::Status CacheService::Stub::EvictCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictCacheRequest& request, ::flyteidl::service::EvictCacheResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_EvictCache_, context, request, response); +::grpc::Status CacheService::Stub::EvictExecutionCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictExecutionCacheRequest& request, ::flyteidl::service::EvictCacheResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_EvictExecutionCache_, context, request, response); } -void CacheService::Stub::experimental_async::EvictCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_EvictCache_, context, request, response, std::move(f)); +void CacheService::Stub::experimental_async::EvictExecutionCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_EvictExecutionCache_, context, request, response, std::move(f)); } -void CacheService::Stub::experimental_async::EvictCache(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::EvictCacheResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_EvictCache_, context, request, response, std::move(f)); +void CacheService::Stub::experimental_async::EvictExecutionCache(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::EvictCacheResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_EvictExecutionCache_, context, request, response, std::move(f)); } -void CacheService::Stub::experimental_async::EvictCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_EvictCache_, context, request, response, reactor); +void CacheService::Stub::experimental_async::EvictExecutionCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_EvictExecutionCache_, context, request, response, reactor); } -void CacheService::Stub::experimental_async::EvictCache(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::EvictCacheResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_EvictCache_, context, request, response, reactor); +void CacheService::Stub::experimental_async::EvictExecutionCache(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::EvictCacheResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_EvictExecutionCache_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::flyteidl::service::EvictCacheResponse>* CacheService::Stub::AsyncEvictCacheRaw(::grpc::ClientContext* context, const ::flyteidl::service::EvictCacheRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::EvictCacheResponse>::Create(channel_.get(), cq, rpcmethod_EvictCache_, context, request, true); +::grpc::ClientAsyncResponseReader< ::flyteidl::service::EvictCacheResponse>* CacheService::Stub::AsyncEvictExecutionCacheRaw(::grpc::ClientContext* context, const ::flyteidl::service::EvictExecutionCacheRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::EvictCacheResponse>::Create(channel_.get(), cq, rpcmethod_EvictExecutionCache_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::flyteidl::service::EvictCacheResponse>* CacheService::Stub::PrepareAsyncEvictCacheRaw(::grpc::ClientContext* context, const ::flyteidl::service::EvictCacheRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::EvictCacheResponse>::Create(channel_.get(), cq, rpcmethod_EvictCache_, context, request, false); +::grpc::ClientAsyncResponseReader< ::flyteidl::service::EvictCacheResponse>* CacheService::Stub::PrepareAsyncEvictExecutionCacheRaw(::grpc::ClientContext* context, const ::flyteidl::service::EvictExecutionCacheRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::EvictCacheResponse>::Create(channel_.get(), cq, rpcmethod_EvictExecutionCache_, context, request, false); +} + +::grpc::Status CacheService::Stub::EvictTaskExecutionCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictTaskExecutionCacheRequest& request, ::flyteidl::service::EvictCacheResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_EvictTaskExecutionCache_, context, request, response); +} + +void CacheService::Stub::experimental_async::EvictTaskExecutionCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictTaskExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_EvictTaskExecutionCache_, context, request, response, std::move(f)); +} + +void CacheService::Stub::experimental_async::EvictTaskExecutionCache(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::EvictCacheResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_EvictTaskExecutionCache_, context, request, response, std::move(f)); +} + +void CacheService::Stub::experimental_async::EvictTaskExecutionCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictTaskExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_EvictTaskExecutionCache_, context, request, response, reactor); +} + +void CacheService::Stub::experimental_async::EvictTaskExecutionCache(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::EvictCacheResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_EvictTaskExecutionCache_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::service::EvictCacheResponse>* CacheService::Stub::AsyncEvictTaskExecutionCacheRaw(::grpc::ClientContext* context, const ::flyteidl::service::EvictTaskExecutionCacheRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::EvictCacheResponse>::Create(channel_.get(), cq, rpcmethod_EvictTaskExecutionCache_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::service::EvictCacheResponse>* CacheService::Stub::PrepareAsyncEvictTaskExecutionCacheRaw(::grpc::ClientContext* context, const ::flyteidl::service::EvictTaskExecutionCacheRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::EvictCacheResponse>::Create(channel_.get(), cq, rpcmethod_EvictTaskExecutionCache_, context, request, false); } CacheService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( CacheService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< CacheService::Service, ::flyteidl::service::EvictCacheRequest, ::flyteidl::service::EvictCacheResponse>( - std::mem_fn(&CacheService::Service::EvictCache), this))); + new ::grpc::internal::RpcMethodHandler< CacheService::Service, ::flyteidl::service::EvictExecutionCacheRequest, ::flyteidl::service::EvictCacheResponse>( + std::mem_fn(&CacheService::Service::EvictExecutionCache), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + CacheService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< CacheService::Service, ::flyteidl::service::EvictTaskExecutionCacheRequest, ::flyteidl::service::EvictCacheResponse>( + std::mem_fn(&CacheService::Service::EvictTaskExecutionCache), this))); } CacheService::Service::~Service() { } -::grpc::Status CacheService::Service::EvictCache(::grpc::ServerContext* context, const ::flyteidl::service::EvictCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response) { +::grpc::Status CacheService::Service::EvictExecutionCache(::grpc::ServerContext* context, const ::flyteidl::service::EvictExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status CacheService::Service::EvictTaskExecutionCache(::grpc::ServerContext* context, const ::flyteidl::service::EvictTaskExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response) { (void) context; (void) request; (void) response; diff --git a/gen/pb-cpp/flyteidl/service/cache.grpc.pb.h b/gen/pb-cpp/flyteidl/service/cache.grpc.pb.h index 7ecf65968..8632f26b5 100644 --- a/gen/pb-cpp/flyteidl/service/cache.grpc.pb.h +++ b/gen/pb-cpp/flyteidl/service/cache.grpc.pb.h @@ -49,45 +49,71 @@ class CacheService final { class StubInterface { public: virtual ~StubInterface() {} - // Evicts all cached data for the referenced :ref:`ref_flyteidl.admin.Execution` or :ref:`ref_flyteidl.admin.TaskExecution`. - virtual ::grpc::Status EvictCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictCacheRequest& request, ::flyteidl::service::EvictCacheResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::EvictCacheResponse>> AsyncEvictCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictCacheRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::EvictCacheResponse>>(AsyncEvictCacheRaw(context, request, cq)); + // Evicts all cached data for the referenced :ref:`ref_flyteidl.admin.Execution`. + virtual ::grpc::Status EvictExecutionCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictExecutionCacheRequest& request, ::flyteidl::service::EvictCacheResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::EvictCacheResponse>> AsyncEvictExecutionCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictExecutionCacheRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::EvictCacheResponse>>(AsyncEvictExecutionCacheRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::EvictCacheResponse>> PrepareAsyncEvictCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictCacheRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::EvictCacheResponse>>(PrepareAsyncEvictCacheRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::EvictCacheResponse>> PrepareAsyncEvictExecutionCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictExecutionCacheRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::EvictCacheResponse>>(PrepareAsyncEvictExecutionCacheRaw(context, request, cq)); + } + // Evicts all cached data for the referenced :ref:`ref_flyteidl.admin.TaskExecution`. + virtual ::grpc::Status EvictTaskExecutionCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictTaskExecutionCacheRequest& request, ::flyteidl::service::EvictCacheResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::EvictCacheResponse>> AsyncEvictTaskExecutionCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictTaskExecutionCacheRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::EvictCacheResponse>>(AsyncEvictTaskExecutionCacheRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::EvictCacheResponse>> PrepareAsyncEvictTaskExecutionCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictTaskExecutionCacheRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::EvictCacheResponse>>(PrepareAsyncEvictTaskExecutionCacheRaw(context, request, cq)); } class experimental_async_interface { public: virtual ~experimental_async_interface() {} - // Evicts all cached data for the referenced :ref:`ref_flyteidl.admin.Execution` or :ref:`ref_flyteidl.admin.TaskExecution`. - virtual void EvictCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response, std::function) = 0; - virtual void EvictCache(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::EvictCacheResponse* response, std::function) = 0; - virtual void EvictCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void EvictCache(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::EvictCacheResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Evicts all cached data for the referenced :ref:`ref_flyteidl.admin.Execution`. + virtual void EvictExecutionCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response, std::function) = 0; + virtual void EvictExecutionCache(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::EvictCacheResponse* response, std::function) = 0; + virtual void EvictExecutionCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void EvictExecutionCache(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::EvictCacheResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Evicts all cached data for the referenced :ref:`ref_flyteidl.admin.TaskExecution`. + virtual void EvictTaskExecutionCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictTaskExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response, std::function) = 0; + virtual void EvictTaskExecutionCache(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::EvictCacheResponse* response, std::function) = 0; + virtual void EvictTaskExecutionCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictTaskExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void EvictTaskExecutionCache(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::EvictCacheResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; }; virtual class experimental_async_interface* experimental_async() { return nullptr; } private: - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::EvictCacheResponse>* AsyncEvictCacheRaw(::grpc::ClientContext* context, const ::flyteidl::service::EvictCacheRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::EvictCacheResponse>* PrepareAsyncEvictCacheRaw(::grpc::ClientContext* context, const ::flyteidl::service::EvictCacheRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::EvictCacheResponse>* AsyncEvictExecutionCacheRaw(::grpc::ClientContext* context, const ::flyteidl::service::EvictExecutionCacheRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::EvictCacheResponse>* PrepareAsyncEvictExecutionCacheRaw(::grpc::ClientContext* context, const ::flyteidl::service::EvictExecutionCacheRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::EvictCacheResponse>* AsyncEvictTaskExecutionCacheRaw(::grpc::ClientContext* context, const ::flyteidl::service::EvictTaskExecutionCacheRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::EvictCacheResponse>* PrepareAsyncEvictTaskExecutionCacheRaw(::grpc::ClientContext* context, const ::flyteidl::service::EvictTaskExecutionCacheRequest& request, ::grpc::CompletionQueue* cq) = 0; }; class Stub final : public StubInterface { public: Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); - ::grpc::Status EvictCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictCacheRequest& request, ::flyteidl::service::EvictCacheResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::EvictCacheResponse>> AsyncEvictCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictCacheRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::EvictCacheResponse>>(AsyncEvictCacheRaw(context, request, cq)); + ::grpc::Status EvictExecutionCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictExecutionCacheRequest& request, ::flyteidl::service::EvictCacheResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::EvictCacheResponse>> AsyncEvictExecutionCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictExecutionCacheRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::EvictCacheResponse>>(AsyncEvictExecutionCacheRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::EvictCacheResponse>> PrepareAsyncEvictExecutionCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictExecutionCacheRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::EvictCacheResponse>>(PrepareAsyncEvictExecutionCacheRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::EvictCacheResponse>> PrepareAsyncEvictCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictCacheRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::EvictCacheResponse>>(PrepareAsyncEvictCacheRaw(context, request, cq)); + ::grpc::Status EvictTaskExecutionCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictTaskExecutionCacheRequest& request, ::flyteidl::service::EvictCacheResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::EvictCacheResponse>> AsyncEvictTaskExecutionCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictTaskExecutionCacheRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::EvictCacheResponse>>(AsyncEvictTaskExecutionCacheRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::EvictCacheResponse>> PrepareAsyncEvictTaskExecutionCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictTaskExecutionCacheRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::EvictCacheResponse>>(PrepareAsyncEvictTaskExecutionCacheRaw(context, request, cq)); } class experimental_async final : public StubInterface::experimental_async_interface { public: - void EvictCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response, std::function) override; - void EvictCache(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::EvictCacheResponse* response, std::function) override; - void EvictCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void EvictCache(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::EvictCacheResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void EvictExecutionCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response, std::function) override; + void EvictExecutionCache(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::EvictCacheResponse* response, std::function) override; + void EvictExecutionCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void EvictExecutionCache(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::EvictCacheResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void EvictTaskExecutionCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictTaskExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response, std::function) override; + void EvictTaskExecutionCache(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::EvictCacheResponse* response, std::function) override; + void EvictTaskExecutionCache(::grpc::ClientContext* context, const ::flyteidl::service::EvictTaskExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void EvictTaskExecutionCache(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::EvictCacheResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; private: friend class Stub; explicit experimental_async(Stub* stub): stub_(stub) { } @@ -99,9 +125,12 @@ class CacheService final { private: std::shared_ptr< ::grpc::ChannelInterface> channel_; class experimental_async async_stub_{this}; - ::grpc::ClientAsyncResponseReader< ::flyteidl::service::EvictCacheResponse>* AsyncEvictCacheRaw(::grpc::ClientContext* context, const ::flyteidl::service::EvictCacheRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::service::EvictCacheResponse>* PrepareAsyncEvictCacheRaw(::grpc::ClientContext* context, const ::flyteidl::service::EvictCacheRequest& request, ::grpc::CompletionQueue* cq) override; - const ::grpc::internal::RpcMethod rpcmethod_EvictCache_; + ::grpc::ClientAsyncResponseReader< ::flyteidl::service::EvictCacheResponse>* AsyncEvictExecutionCacheRaw(::grpc::ClientContext* context, const ::flyteidl::service::EvictExecutionCacheRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::service::EvictCacheResponse>* PrepareAsyncEvictExecutionCacheRaw(::grpc::ClientContext* context, const ::flyteidl::service::EvictExecutionCacheRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::service::EvictCacheResponse>* AsyncEvictTaskExecutionCacheRaw(::grpc::ClientContext* context, const ::flyteidl::service::EvictTaskExecutionCacheRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::service::EvictCacheResponse>* PrepareAsyncEvictTaskExecutionCacheRaw(::grpc::ClientContext* context, const ::flyteidl::service::EvictTaskExecutionCacheRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_EvictExecutionCache_; + const ::grpc::internal::RpcMethod rpcmethod_EvictTaskExecutionCache_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -109,147 +138,282 @@ class CacheService final { public: Service(); virtual ~Service(); - // Evicts all cached data for the referenced :ref:`ref_flyteidl.admin.Execution` or :ref:`ref_flyteidl.admin.TaskExecution`. - virtual ::grpc::Status EvictCache(::grpc::ServerContext* context, const ::flyteidl::service::EvictCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response); + // Evicts all cached data for the referenced :ref:`ref_flyteidl.admin.Execution`. + virtual ::grpc::Status EvictExecutionCache(::grpc::ServerContext* context, const ::flyteidl::service::EvictExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response); + // Evicts all cached data for the referenced :ref:`ref_flyteidl.admin.TaskExecution`. + virtual ::grpc::Status EvictTaskExecutionCache(::grpc::ServerContext* context, const ::flyteidl::service::EvictTaskExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response); }; template - class WithAsyncMethod_EvictCache : public BaseClass { + class WithAsyncMethod_EvictExecutionCache : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithAsyncMethod_EvictCache() { + WithAsyncMethod_EvictExecutionCache() { ::grpc::Service::MarkMethodAsync(0); } - ~WithAsyncMethod_EvictCache() override { + ~WithAsyncMethod_EvictExecutionCache() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EvictCache(::grpc::ServerContext* context, const ::flyteidl::service::EvictCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response) override { + ::grpc::Status EvictExecutionCache(::grpc::ServerContext* context, const ::flyteidl::service::EvictExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestEvictCache(::grpc::ServerContext* context, ::flyteidl::service::EvictCacheRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::service::EvictCacheResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestEvictExecutionCache(::grpc::ServerContext* context, ::flyteidl::service::EvictExecutionCacheRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::service::EvictCacheResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_EvictCache AsyncService; template - class ExperimentalWithCallbackMethod_EvictCache : public BaseClass { + class WithAsyncMethod_EvictTaskExecutionCache : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithCallbackMethod_EvictCache() { + WithAsyncMethod_EvictTaskExecutionCache() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_EvictTaskExecutionCache() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status EvictTaskExecutionCache(::grpc::ServerContext* context, const ::flyteidl::service::EvictTaskExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestEvictTaskExecutionCache(::grpc::ServerContext* context, ::flyteidl::service::EvictTaskExecutionCacheRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::service::EvictCacheResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_EvictExecutionCache > AsyncService; + template + class ExperimentalWithCallbackMethod_EvictExecutionCache : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_EvictExecutionCache() { ::grpc::Service::experimental().MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::EvictCacheRequest, ::flyteidl::service::EvictCacheResponse>( + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::EvictExecutionCacheRequest, ::flyteidl::service::EvictCacheResponse>( [this](::grpc::ServerContext* context, - const ::flyteidl::service::EvictCacheRequest* request, + const ::flyteidl::service::EvictExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->EvictCache(context, request, response, controller); + return this->EvictExecutionCache(context, request, response, controller); })); } - void SetMessageAllocatorFor_EvictCache( - ::grpc::experimental::MessageAllocator< ::flyteidl::service::EvictCacheRequest, ::flyteidl::service::EvictCacheResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::EvictCacheRequest, ::flyteidl::service::EvictCacheResponse>*>( + void SetMessageAllocatorFor_EvictExecutionCache( + ::grpc::experimental::MessageAllocator< ::flyteidl::service::EvictExecutionCacheRequest, ::flyteidl::service::EvictCacheResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::EvictExecutionCacheRequest, ::flyteidl::service::EvictCacheResponse>*>( ::grpc::Service::experimental().GetHandler(0)) ->SetMessageAllocator(allocator); } - ~ExperimentalWithCallbackMethod_EvictCache() override { + ~ExperimentalWithCallbackMethod_EvictExecutionCache() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status EvictExecutionCache(::grpc::ServerContext* context, const ::flyteidl::service::EvictExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void EvictExecutionCache(::grpc::ServerContext* context, const ::flyteidl::service::EvictExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_EvictTaskExecutionCache : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_EvictTaskExecutionCache() { + ::grpc::Service::experimental().MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::EvictTaskExecutionCacheRequest, ::flyteidl::service::EvictCacheResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::service::EvictTaskExecutionCacheRequest* request, + ::flyteidl::service::EvictCacheResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->EvictTaskExecutionCache(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_EvictTaskExecutionCache( + ::grpc::experimental::MessageAllocator< ::flyteidl::service::EvictTaskExecutionCacheRequest, ::flyteidl::service::EvictCacheResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::EvictTaskExecutionCacheRequest, ::flyteidl::service::EvictCacheResponse>*>( + ::grpc::Service::experimental().GetHandler(1)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_EvictTaskExecutionCache() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EvictCache(::grpc::ServerContext* context, const ::flyteidl::service::EvictCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response) override { + ::grpc::Status EvictTaskExecutionCache(::grpc::ServerContext* context, const ::flyteidl::service::EvictTaskExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual void EvictCache(::grpc::ServerContext* context, const ::flyteidl::service::EvictCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + virtual void EvictTaskExecutionCache(::grpc::ServerContext* context, const ::flyteidl::service::EvictTaskExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; - typedef ExperimentalWithCallbackMethod_EvictCache ExperimentalCallbackService; + typedef ExperimentalWithCallbackMethod_EvictExecutionCache > ExperimentalCallbackService; template - class WithGenericMethod_EvictCache : public BaseClass { + class WithGenericMethod_EvictExecutionCache : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithGenericMethod_EvictCache() { + WithGenericMethod_EvictExecutionCache() { ::grpc::Service::MarkMethodGeneric(0); } - ~WithGenericMethod_EvictCache() override { + ~WithGenericMethod_EvictExecutionCache() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EvictCache(::grpc::ServerContext* context, const ::flyteidl::service::EvictCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response) override { + ::grpc::Status EvictExecutionCache(::grpc::ServerContext* context, const ::flyteidl::service::EvictExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithRawMethod_EvictCache : public BaseClass { + class WithGenericMethod_EvictTaskExecutionCache : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithRawMethod_EvictCache() { + WithGenericMethod_EvictTaskExecutionCache() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_EvictTaskExecutionCache() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status EvictTaskExecutionCache(::grpc::ServerContext* context, const ::flyteidl::service::EvictTaskExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_EvictExecutionCache : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_EvictExecutionCache() { ::grpc::Service::MarkMethodRaw(0); } - ~WithRawMethod_EvictCache() override { + ~WithRawMethod_EvictExecutionCache() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EvictCache(::grpc::ServerContext* context, const ::flyteidl::service::EvictCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response) override { + ::grpc::Status EvictExecutionCache(::grpc::ServerContext* context, const ::flyteidl::service::EvictExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestEvictCache(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestEvictExecutionCache(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); } }; template - class ExperimentalWithRawCallbackMethod_EvictCache : public BaseClass { + class WithRawMethod_EvictTaskExecutionCache : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithRawCallbackMethod_EvictCache() { + WithRawMethod_EvictTaskExecutionCache() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_EvictTaskExecutionCache() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status EvictTaskExecutionCache(::grpc::ServerContext* context, const ::flyteidl::service::EvictTaskExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestEvictTaskExecutionCache(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class ExperimentalWithRawCallbackMethod_EvictExecutionCache : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_EvictExecutionCache() { ::grpc::Service::experimental().MarkMethodRawCallback(0, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { - this->EvictCache(context, request, response, controller); + this->EvictExecutionCache(context, request, response, controller); })); } - ~ExperimentalWithRawCallbackMethod_EvictCache() override { + ~ExperimentalWithRawCallbackMethod_EvictExecutionCache() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EvictCache(::grpc::ServerContext* context, const ::flyteidl::service::EvictCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response) override { + ::grpc::Status EvictExecutionCache(::grpc::ServerContext* context, const ::flyteidl::service::EvictExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual void EvictCache(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + virtual void EvictExecutionCache(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class WithStreamedUnaryMethod_EvictCache : public BaseClass { + class ExperimentalWithRawCallbackMethod_EvictTaskExecutionCache : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithStreamedUnaryMethod_EvictCache() { + ExperimentalWithRawCallbackMethod_EvictTaskExecutionCache() { + ::grpc::Service::experimental().MarkMethodRawCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->EvictTaskExecutionCache(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_EvictTaskExecutionCache() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status EvictTaskExecutionCache(::grpc::ServerContext* context, const ::flyteidl::service::EvictTaskExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void EvictTaskExecutionCache(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class WithStreamedUnaryMethod_EvictExecutionCache : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_EvictExecutionCache() { ::grpc::Service::MarkMethodStreamed(0, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::service::EvictCacheRequest, ::flyteidl::service::EvictCacheResponse>(std::bind(&WithStreamedUnaryMethod_EvictCache::StreamedEvictCache, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::service::EvictExecutionCacheRequest, ::flyteidl::service::EvictCacheResponse>(std::bind(&WithStreamedUnaryMethod_EvictExecutionCache::StreamedEvictExecutionCache, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_EvictExecutionCache() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status EvictExecutionCache(::grpc::ServerContext* context, const ::flyteidl::service::EvictExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedEvictExecutionCache(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::service::EvictExecutionCacheRequest,::flyteidl::service::EvictCacheResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_EvictTaskExecutionCache : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_EvictTaskExecutionCache() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::service::EvictTaskExecutionCacheRequest, ::flyteidl::service::EvictCacheResponse>(std::bind(&WithStreamedUnaryMethod_EvictTaskExecutionCache::StreamedEvictTaskExecutionCache, this, std::placeholders::_1, std::placeholders::_2))); } - ~WithStreamedUnaryMethod_EvictCache() override { + ~WithStreamedUnaryMethod_EvictTaskExecutionCache() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status EvictCache(::grpc::ServerContext* context, const ::flyteidl::service::EvictCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response) override { + ::grpc::Status EvictTaskExecutionCache(::grpc::ServerContext* context, const ::flyteidl::service::EvictTaskExecutionCacheRequest* request, ::flyteidl::service::EvictCacheResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedEvictCache(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::service::EvictCacheRequest,::flyteidl::service::EvictCacheResponse>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedEvictTaskExecutionCache(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::service::EvictTaskExecutionCacheRequest,::flyteidl::service::EvictCacheResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_EvictCache StreamedUnaryService; + typedef WithStreamedUnaryMethod_EvictExecutionCache > StreamedUnaryService; typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_EvictCache StreamedService; + typedef WithStreamedUnaryMethod_EvictExecutionCache > StreamedService; }; } // namespace service diff --git a/gen/pb-cpp/flyteidl/service/cache.pb.cc b/gen/pb-cpp/flyteidl/service/cache.pb.cc index c6adf4360..a063929c0 100644 --- a/gen/pb-cpp/flyteidl/service/cache.pb.cc +++ b/gen/pb-cpp/flyteidl/service/cache.pb.cc @@ -21,32 +21,48 @@ extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::p extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; namespace flyteidl { namespace service { -class EvictCacheRequestDefaultTypeInternal { +class EvictExecutionCacheRequestDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::flyteidl::core::WorkflowExecutionIdentifier* workflow_execution_id_; - const ::flyteidl::core::TaskExecutionIdentifier* task_execution_id_; -} _EvictCacheRequest_default_instance_; + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _EvictExecutionCacheRequest_default_instance_; +class EvictTaskExecutionCacheRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _EvictTaskExecutionCacheRequest_default_instance_; class EvictCacheResponseDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _EvictCacheResponse_default_instance_; } // namespace service } // namespace flyteidl -static void InitDefaultsEvictCacheRequest_flyteidl_2fservice_2fcache_2eproto() { +static void InitDefaultsEvictExecutionCacheRequest_flyteidl_2fservice_2fcache_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::service::_EvictExecutionCacheRequest_default_instance_; + new (ptr) ::flyteidl::service::EvictExecutionCacheRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::service::EvictExecutionCacheRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_EvictExecutionCacheRequest_flyteidl_2fservice_2fcache_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsEvictExecutionCacheRequest_flyteidl_2fservice_2fcache_2eproto}, { + &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + +static void InitDefaultsEvictTaskExecutionCacheRequest_flyteidl_2fservice_2fcache_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyteidl::service::_EvictCacheRequest_default_instance_; - new (ptr) ::flyteidl::service::EvictCacheRequest(); + void* ptr = &::flyteidl::service::_EvictTaskExecutionCacheRequest_default_instance_; + new (ptr) ::flyteidl::service::EvictTaskExecutionCacheRequest(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyteidl::service::EvictCacheRequest::InitAsDefaultInstance(); + ::flyteidl::service::EvictTaskExecutionCacheRequest::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<2> scc_info_EvictCacheRequest_flyteidl_2fservice_2fcache_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsEvictCacheRequest_flyteidl_2fservice_2fcache_2eproto}, { - &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, +::google::protobuf::internal::SCCInfo<1> scc_info_EvictTaskExecutionCacheRequest_flyteidl_2fservice_2fcache_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsEvictTaskExecutionCacheRequest_flyteidl_2fservice_2fcache_2eproto}, { &scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; static void InitDefaultsEvictCacheResponse_flyteidl_2fservice_2fcache_2eproto() { @@ -65,23 +81,28 @@ ::google::protobuf::internal::SCCInfo<1> scc_info_EvictCacheResponse_flyteidl_2f &scc_info_CacheEvictionErrorList_flyteidl_2fcore_2ferrors_2eproto.base,}}; void InitDefaults_flyteidl_2fservice_2fcache_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_EvictCacheRequest_flyteidl_2fservice_2fcache_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_EvictExecutionCacheRequest_flyteidl_2fservice_2fcache_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_EvictTaskExecutionCacheRequest_flyteidl_2fservice_2fcache_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_EvictCacheResponse_flyteidl_2fservice_2fcache_2eproto.base); } -::google::protobuf::Metadata file_level_metadata_flyteidl_2fservice_2fcache_2eproto[2]; +::google::protobuf::Metadata file_level_metadata_flyteidl_2fservice_2fcache_2eproto[3]; constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fservice_2fcache_2eproto = nullptr; constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fservice_2fcache_2eproto = nullptr; const ::google::protobuf::uint32 TableStruct_flyteidl_2fservice_2fcache_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::EvictCacheRequest, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::EvictExecutionCacheRequest, _internal_metadata_), ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::EvictCacheRequest, _oneof_case_[0]), + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::EvictExecutionCacheRequest, workflow_execution_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::EvictTaskExecutionCacheRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - offsetof(::flyteidl::service::EvictCacheRequestDefaultTypeInternal, workflow_execution_id_), - offsetof(::flyteidl::service::EvictCacheRequestDefaultTypeInternal, task_execution_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::EvictCacheRequest, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::EvictTaskExecutionCacheRequest, task_execution_id_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::service::EvictCacheResponse, _internal_metadata_), ~0u, // no _extensions_ @@ -90,56 +111,62 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fservice_2fcache_2eproto: PROTOBUF_FIELD_OFFSET(::flyteidl::service::EvictCacheResponse, errors_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::service::EvictCacheRequest)}, - { 8, -1, sizeof(::flyteidl::service::EvictCacheResponse)}, + { 0, -1, sizeof(::flyteidl::service::EvictExecutionCacheRequest)}, + { 6, -1, sizeof(::flyteidl::service::EvictTaskExecutionCacheRequest)}, + { 12, -1, sizeof(::flyteidl::service::EvictCacheResponse)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::service::_EvictCacheRequest_default_instance_), + reinterpret_cast(&::flyteidl::service::_EvictExecutionCacheRequest_default_instance_), + reinterpret_cast(&::flyteidl::service::_EvictTaskExecutionCacheRequest_default_instance_), reinterpret_cast(&::flyteidl::service::_EvictCacheResponse_default_instance_), }; ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fservice_2fcache_2eproto = { {}, AddDescriptors_flyteidl_2fservice_2fcache_2eproto, "flyteidl/service/cache.proto", schemas, file_default_instances, TableStruct_flyteidl_2fservice_2fcache_2eproto::offsets, - file_level_metadata_flyteidl_2fservice_2fcache_2eproto, 2, file_level_enum_descriptors_flyteidl_2fservice_2fcache_2eproto, file_level_service_descriptors_flyteidl_2fservice_2fcache_2eproto, + file_level_metadata_flyteidl_2fservice_2fcache_2eproto, 3, file_level_enum_descriptors_flyteidl_2fservice_2fcache_2eproto, file_level_service_descriptors_flyteidl_2fservice_2fcache_2eproto, }; const char descriptor_table_protodef_flyteidl_2fservice_2fcache_2eproto[] = "\n\034flyteidl/service/cache.proto\022\020flyteidl" ".service\032\034google/api/annotations.proto\032\032" "flyteidl/core/errors.proto\032\036flyteidl/cor" - "e/identifier.proto\"\253\001\n\021EvictCacheRequest" - "\022K\n\025workflow_execution_id\030\001 \001(\0132*.flytei" - "dl.core.WorkflowExecutionIdentifierH\000\022C\n" - "\021task_execution_id\030\002 \001(\0132&.flyteidl.core" - ".TaskExecutionIdentifierH\000B\004\n\002id\"K\n\022Evic" - "tCacheResponse\0225\n\006errors\030\001 \001(\0132%.flyteid" - "l.core.CacheEvictionErrorList2\227\005\n\014CacheS" - "ervice\022\206\005\n\nEvictCache\022#.flyteidl.service" - ".EvictCacheRequest\032$.flyteidl.service.Ev" - "ictCacheResponse\"\254\004\202\323\344\223\002\245\004*t/api/v1/cach" - "e/executions/{workflow_execution_id.proj" - "ect}/{workflow_execution_id.domain}/{wor" - "kflow_execution_id.name}:\001*Z\251\003*\246\003/api/v1" - "/cache/task_executions/{task_execution_i" - "d.node_execution_id.execution_id.project" - "}/{task_execution_id.node_execution_id.e" - "xecution_id.domain}/{task_execution_id.n" - "ode_execution_id.execution_id.name}/{tas" - "k_execution_id.node_execution_id.node_id" - "}/{task_execution_id.task_id.project}/{t" - "ask_execution_id.task_id.domain}/{task_e" - "xecution_id.task_id.name}/{task_executio" - "n_id.task_id.version}/{task_execution_id" - ".retry_attempt}B9Z7github.com/flyteorg/f" - "lyteidl/gen/pb-go/flyteidl/serviceb\006prot" - "o3" + "e/identifier.proto\"g\n\032EvictExecutionCach" + "eRequest\022I\n\025workflow_execution_id\030\001 \001(\0132" + "*.flyteidl.core.WorkflowExecutionIdentif" + "ier\"c\n\036EvictTaskExecutionCacheRequest\022A\n" + "\021task_execution_id\030\001 \001(\0132&.flyteidl.core" + ".TaskExecutionIdentifier\"K\n\022EvictCacheRe" + "sponse\0225\n\006errors\030\001 \001(\0132%.flyteidl.core.C" + "acheEvictionErrorList2\237\006\n\014CacheService\022\347" + "\001\n\023EvictExecutionCache\022,.flyteidl.servic" + "e.EvictExecutionCacheRequest\032$.flyteidl." + "service.EvictCacheResponse\"|\202\323\344\223\002v*t/api" + "/v1/cache/executions/{workflow_execution" + "_id.project}/{workflow_execution_id.doma" + "in}/{workflow_execution_id.name}\022\244\004\n\027Evi" + "ctTaskExecutionCache\0220.flyteidl.service." + "EvictTaskExecutionCacheRequest\032$.flyteid" + "l.service.EvictCacheResponse\"\260\003\202\323\344\223\002\251\003*\246" + "\003/api/v1/cache/task_executions/{task_exe" + "cution_id.node_execution_id.execution_id" + ".project}/{task_execution_id.node_execut" + "ion_id.execution_id.domain}/{task_execut" + "ion_id.node_execution_id.execution_id.na" + "me}/{task_execution_id.node_execution_id" + ".node_id}/{task_execution_id.task_id.pro" + "ject}/{task_execution_id.task_id.domain}" + "/{task_execution_id.task_id.name}/{task_" + "execution_id.task_id.version}/{task_exec" + "ution_id.retry_attempt}B9Z7github.com/fl" + "yteorg/flyteidl/gen/pb-go/flyteidl/servi" + "ceb\006proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fservice_2fcache_2eproto = { false, InitDefaults_flyteidl_2fservice_2fcache_2eproto, descriptor_table_protodef_flyteidl_2fservice_2fcache_2eproto, - "flyteidl/service/cache.proto", &assign_descriptors_table_flyteidl_2fservice_2fcache_2eproto, 1122, + "flyteidl/service/cache.proto", &assign_descriptors_table_flyteidl_2fservice_2fcache_2eproto, 1290, }; void AddDescriptors_flyteidl_2fservice_2fcache_2eproto() { @@ -159,156 +186,87 @@ namespace service { // =================================================================== -void EvictCacheRequest::InitAsDefaultInstance() { - ::flyteidl::service::_EvictCacheRequest_default_instance_.workflow_execution_id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( +void EvictExecutionCacheRequest::InitAsDefaultInstance() { + ::flyteidl::service::_EvictExecutionCacheRequest_default_instance_._instance.get_mutable()->workflow_execution_id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); - ::flyteidl::service::_EvictCacheRequest_default_instance_.task_execution_id_ = const_cast< ::flyteidl::core::TaskExecutionIdentifier*>( - ::flyteidl::core::TaskExecutionIdentifier::internal_default_instance()); } -class EvictCacheRequest::HasBitSetters { +class EvictExecutionCacheRequest::HasBitSetters { public: - static const ::flyteidl::core::WorkflowExecutionIdentifier& workflow_execution_id(const EvictCacheRequest* msg); - static const ::flyteidl::core::TaskExecutionIdentifier& task_execution_id(const EvictCacheRequest* msg); + static const ::flyteidl::core::WorkflowExecutionIdentifier& workflow_execution_id(const EvictExecutionCacheRequest* msg); }; const ::flyteidl::core::WorkflowExecutionIdentifier& -EvictCacheRequest::HasBitSetters::workflow_execution_id(const EvictCacheRequest* msg) { - return *msg->id_.workflow_execution_id_; +EvictExecutionCacheRequest::HasBitSetters::workflow_execution_id(const EvictExecutionCacheRequest* msg) { + return *msg->workflow_execution_id_; } -const ::flyteidl::core::TaskExecutionIdentifier& -EvictCacheRequest::HasBitSetters::task_execution_id(const EvictCacheRequest* msg) { - return *msg->id_.task_execution_id_; -} -void EvictCacheRequest::set_allocated_workflow_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* workflow_execution_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_id(); - if (workflow_execution_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - workflow_execution_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, workflow_execution_id, submessage_arena); - } - set_has_workflow_execution_id(); - id_.workflow_execution_id_ = workflow_execution_id; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.EvictCacheRequest.workflow_execution_id) -} -void EvictCacheRequest::clear_workflow_execution_id() { - if (has_workflow_execution_id()) { - delete id_.workflow_execution_id_; - clear_has_id(); - } -} -void EvictCacheRequest::set_allocated_task_execution_id(::flyteidl::core::TaskExecutionIdentifier* task_execution_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_id(); - if (task_execution_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - task_execution_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, task_execution_id, submessage_arena); - } - set_has_task_execution_id(); - id_.task_execution_id_ = task_execution_id; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.EvictCacheRequest.task_execution_id) -} -void EvictCacheRequest::clear_task_execution_id() { - if (has_task_execution_id()) { - delete id_.task_execution_id_; - clear_has_id(); +void EvictExecutionCacheRequest::clear_workflow_execution_id() { + if (GetArenaNoVirtual() == nullptr && workflow_execution_id_ != nullptr) { + delete workflow_execution_id_; } + workflow_execution_id_ = nullptr; } #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int EvictCacheRequest::kWorkflowExecutionIdFieldNumber; -const int EvictCacheRequest::kTaskExecutionIdFieldNumber; +const int EvictExecutionCacheRequest::kWorkflowExecutionIdFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -EvictCacheRequest::EvictCacheRequest() +EvictExecutionCacheRequest::EvictExecutionCacheRequest() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.service.EvictCacheRequest) + // @@protoc_insertion_point(constructor:flyteidl.service.EvictExecutionCacheRequest) } -EvictCacheRequest::EvictCacheRequest(const EvictCacheRequest& from) +EvictExecutionCacheRequest::EvictExecutionCacheRequest(const EvictExecutionCacheRequest& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_id(); - switch (from.id_case()) { - case kWorkflowExecutionId: { - mutable_workflow_execution_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.workflow_execution_id()); - break; - } - case kTaskExecutionId: { - mutable_task_execution_id()->::flyteidl::core::TaskExecutionIdentifier::MergeFrom(from.task_execution_id()); - break; - } - case ID_NOT_SET: { - break; - } + if (from.has_workflow_execution_id()) { + workflow_execution_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.workflow_execution_id_); + } else { + workflow_execution_id_ = nullptr; } - // @@protoc_insertion_point(copy_constructor:flyteidl.service.EvictCacheRequest) + // @@protoc_insertion_point(copy_constructor:flyteidl.service.EvictExecutionCacheRequest) } -void EvictCacheRequest::SharedCtor() { +void EvictExecutionCacheRequest::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_EvictCacheRequest_flyteidl_2fservice_2fcache_2eproto.base); - clear_has_id(); + &scc_info_EvictExecutionCacheRequest_flyteidl_2fservice_2fcache_2eproto.base); + workflow_execution_id_ = nullptr; } -EvictCacheRequest::~EvictCacheRequest() { - // @@protoc_insertion_point(destructor:flyteidl.service.EvictCacheRequest) +EvictExecutionCacheRequest::~EvictExecutionCacheRequest() { + // @@protoc_insertion_point(destructor:flyteidl.service.EvictExecutionCacheRequest) SharedDtor(); } -void EvictCacheRequest::SharedDtor() { - if (has_id()) { - clear_id(); - } +void EvictExecutionCacheRequest::SharedDtor() { + if (this != internal_default_instance()) delete workflow_execution_id_; } -void EvictCacheRequest::SetCachedSize(int size) const { +void EvictExecutionCacheRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } -const EvictCacheRequest& EvictCacheRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_EvictCacheRequest_flyteidl_2fservice_2fcache_2eproto.base); +const EvictExecutionCacheRequest& EvictExecutionCacheRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_EvictExecutionCacheRequest_flyteidl_2fservice_2fcache_2eproto.base); return *internal_default_instance(); } -void EvictCacheRequest::clear_id() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.service.EvictCacheRequest) - switch (id_case()) { - case kWorkflowExecutionId: { - delete id_.workflow_execution_id_; - break; - } - case kTaskExecutionId: { - delete id_.task_execution_id_; - break; - } - case ID_NOT_SET: { - break; - } - } - _oneof_case_[0] = ID_NOT_SET; -} - - -void EvictCacheRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.service.EvictCacheRequest) +void EvictExecutionCacheRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.service.EvictExecutionCacheRequest) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - clear_id(); + if (GetArenaNoVirtual() == nullptr && workflow_execution_id_ != nullptr) { + delete workflow_execution_id_; + } + workflow_execution_id_ = nullptr; _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* EvictCacheRequest::_InternalParse(const char* begin, const char* end, void* object, +const char* EvictExecutionCacheRequest::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -331,9 +289,289 @@ const char* EvictCacheRequest::_InternalParse(const char* begin, const char* end {parser_till_end, object}, ptr - size, ptr)); break; } - // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool EvictExecutionCacheRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.service.EvictExecutionCacheRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_workflow_execution_id())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.service.EvictExecutionCacheRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.service.EvictExecutionCacheRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void EvictExecutionCacheRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.service.EvictExecutionCacheRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + if (this->has_workflow_execution_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::workflow_execution_id(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.service.EvictExecutionCacheRequest) +} + +::google::protobuf::uint8* EvictExecutionCacheRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.EvictExecutionCacheRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + if (this->has_workflow_execution_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::workflow_execution_id(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.service.EvictExecutionCacheRequest) + return target; +} + +size_t EvictExecutionCacheRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.EvictExecutionCacheRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + if (this->has_workflow_execution_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *workflow_execution_id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EvictExecutionCacheRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.EvictExecutionCacheRequest) + GOOGLE_DCHECK_NE(&from, this); + const EvictExecutionCacheRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.EvictExecutionCacheRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.EvictExecutionCacheRequest) + MergeFrom(*source); + } +} + +void EvictExecutionCacheRequest::MergeFrom(const EvictExecutionCacheRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.EvictExecutionCacheRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_workflow_execution_id()) { + mutable_workflow_execution_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.workflow_execution_id()); + } +} + +void EvictExecutionCacheRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.EvictExecutionCacheRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EvictExecutionCacheRequest::CopyFrom(const EvictExecutionCacheRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.EvictExecutionCacheRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EvictExecutionCacheRequest::IsInitialized() const { + return true; +} + +void EvictExecutionCacheRequest::Swap(EvictExecutionCacheRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void EvictExecutionCacheRequest::InternalSwap(EvictExecutionCacheRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(workflow_execution_id_, other->workflow_execution_id_); +} + +::google::protobuf::Metadata EvictExecutionCacheRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fcache_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fcache_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void EvictTaskExecutionCacheRequest::InitAsDefaultInstance() { + ::flyteidl::service::_EvictTaskExecutionCacheRequest_default_instance_._instance.get_mutable()->task_execution_id_ = const_cast< ::flyteidl::core::TaskExecutionIdentifier*>( + ::flyteidl::core::TaskExecutionIdentifier::internal_default_instance()); +} +class EvictTaskExecutionCacheRequest::HasBitSetters { + public: + static const ::flyteidl::core::TaskExecutionIdentifier& task_execution_id(const EvictTaskExecutionCacheRequest* msg); +}; + +const ::flyteidl::core::TaskExecutionIdentifier& +EvictTaskExecutionCacheRequest::HasBitSetters::task_execution_id(const EvictTaskExecutionCacheRequest* msg) { + return *msg->task_execution_id_; +} +void EvictTaskExecutionCacheRequest::clear_task_execution_id() { + if (GetArenaNoVirtual() == nullptr && task_execution_id_ != nullptr) { + delete task_execution_id_; + } + task_execution_id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EvictTaskExecutionCacheRequest::kTaskExecutionIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EvictTaskExecutionCacheRequest::EvictTaskExecutionCacheRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.service.EvictTaskExecutionCacheRequest) +} +EvictTaskExecutionCacheRequest::EvictTaskExecutionCacheRequest(const EvictTaskExecutionCacheRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_task_execution_id()) { + task_execution_id_ = new ::flyteidl::core::TaskExecutionIdentifier(*from.task_execution_id_); + } else { + task_execution_id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.service.EvictTaskExecutionCacheRequest) +} + +void EvictTaskExecutionCacheRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_EvictTaskExecutionCacheRequest_flyteidl_2fservice_2fcache_2eproto.base); + task_execution_id_ = nullptr; +} + +EvictTaskExecutionCacheRequest::~EvictTaskExecutionCacheRequest() { + // @@protoc_insertion_point(destructor:flyteidl.service.EvictTaskExecutionCacheRequest) + SharedDtor(); +} + +void EvictTaskExecutionCacheRequest::SharedDtor() { + if (this != internal_default_instance()) delete task_execution_id_; +} + +void EvictTaskExecutionCacheRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const EvictTaskExecutionCacheRequest& EvictTaskExecutionCacheRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_EvictTaskExecutionCacheRequest_flyteidl_2fservice_2fcache_2eproto.base); + return *internal_default_instance(); +} + + +void EvictTaskExecutionCacheRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.service.EvictTaskExecutionCacheRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && task_execution_id_ != nullptr) { + delete task_execution_id_; + } + task_execution_id_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* EvictTaskExecutionCacheRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::core::TaskExecutionIdentifier::_InternalParse; @@ -364,30 +602,19 @@ const char* EvictCacheRequest::_InternalParse(const char* begin, const char* end {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool EvictCacheRequest::MergePartialFromCodedStream( +bool EvictTaskExecutionCacheRequest::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.service.EvictCacheRequest) + // @@protoc_insertion_point(parse_start:flyteidl.service.EvictTaskExecutionCacheRequest) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_workflow_execution_id())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_task_execution_id())); } else { @@ -408,70 +635,57 @@ bool EvictCacheRequest::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyteidl.service.EvictCacheRequest) + // @@protoc_insertion_point(parse_success:flyteidl.service.EvictTaskExecutionCacheRequest) return true; failure: - // @@protoc_insertion_point(parse_failure:flyteidl.service.EvictCacheRequest) + // @@protoc_insertion_point(parse_failure:flyteidl.service.EvictTaskExecutionCacheRequest) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void EvictCacheRequest::SerializeWithCachedSizes( +void EvictTaskExecutionCacheRequest::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.service.EvictCacheRequest) + // @@protoc_insertion_point(serialize_start:flyteidl.service.EvictTaskExecutionCacheRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - if (has_workflow_execution_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::workflow_execution_id(this), output); - } - - // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 2; - if (has_task_execution_id()) { + // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + if (this->has_task_execution_id()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::task_execution_id(this), output); + 1, HasBitSetters::task_execution_id(this), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyteidl.service.EvictCacheRequest) + // @@protoc_insertion_point(serialize_end:flyteidl.service.EvictTaskExecutionCacheRequest) } -::google::protobuf::uint8* EvictCacheRequest::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* EvictTaskExecutionCacheRequest::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.EvictCacheRequest) + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.EvictTaskExecutionCacheRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - if (has_workflow_execution_id()) { + // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + if (this->has_task_execution_id()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 1, HasBitSetters::workflow_execution_id(this), target); - } - - // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 2; - if (has_task_execution_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::task_execution_id(this), target); + 1, HasBitSetters::task_execution_id(this), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.service.EvictCacheRequest) + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.service.EvictTaskExecutionCacheRequest) return target; } -size_t EvictCacheRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.EvictCacheRequest) +size_t EvictTaskExecutionCacheRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.EvictTaskExecutionCacheRequest) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -483,97 +697,74 @@ size_t EvictCacheRequest::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - switch (id_case()) { - // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - case kWorkflowExecutionId: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *id_.workflow_execution_id_); - break; - } - // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 2; - case kTaskExecutionId: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *id_.task_execution_id_); - break; - } - case ID_NOT_SET: { - break; - } + // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + if (this->has_task_execution_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *task_execution_id_); } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void EvictCacheRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.EvictCacheRequest) +void EvictTaskExecutionCacheRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.EvictTaskExecutionCacheRequest) GOOGLE_DCHECK_NE(&from, this); - const EvictCacheRequest* source = - ::google::protobuf::DynamicCastToGenerated( + const EvictTaskExecutionCacheRequest* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.EvictCacheRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.EvictTaskExecutionCacheRequest) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.EvictCacheRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.EvictTaskExecutionCacheRequest) MergeFrom(*source); } } -void EvictCacheRequest::MergeFrom(const EvictCacheRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.EvictCacheRequest) +void EvictTaskExecutionCacheRequest::MergeFrom(const EvictTaskExecutionCacheRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.EvictTaskExecutionCacheRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - switch (from.id_case()) { - case kWorkflowExecutionId: { - mutable_workflow_execution_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.workflow_execution_id()); - break; - } - case kTaskExecutionId: { - mutable_task_execution_id()->::flyteidl::core::TaskExecutionIdentifier::MergeFrom(from.task_execution_id()); - break; - } - case ID_NOT_SET: { - break; - } + if (from.has_task_execution_id()) { + mutable_task_execution_id()->::flyteidl::core::TaskExecutionIdentifier::MergeFrom(from.task_execution_id()); } } -void EvictCacheRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.EvictCacheRequest) +void EvictTaskExecutionCacheRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.EvictTaskExecutionCacheRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void EvictCacheRequest::CopyFrom(const EvictCacheRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.EvictCacheRequest) +void EvictTaskExecutionCacheRequest::CopyFrom(const EvictTaskExecutionCacheRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.EvictTaskExecutionCacheRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool EvictCacheRequest::IsInitialized() const { +bool EvictTaskExecutionCacheRequest::IsInitialized() const { return true; } -void EvictCacheRequest::Swap(EvictCacheRequest* other) { +void EvictTaskExecutionCacheRequest::Swap(EvictTaskExecutionCacheRequest* other) { if (other == this) return; InternalSwap(other); } -void EvictCacheRequest::InternalSwap(EvictCacheRequest* other) { +void EvictTaskExecutionCacheRequest::InternalSwap(EvictTaskExecutionCacheRequest* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - swap(id_, other->id_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + swap(task_execution_id_, other->task_execution_id_); } -::google::protobuf::Metadata EvictCacheRequest::GetMetadata() const { +::google::protobuf::Metadata EvictTaskExecutionCacheRequest::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fcache_2eproto); return ::file_level_metadata_flyteidl_2fservice_2fcache_2eproto[kIndexInFileMessages]; } @@ -877,8 +1068,11 @@ ::google::protobuf::Metadata EvictCacheResponse::GetMetadata() const { } // namespace flyteidl namespace google { namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::service::EvictCacheRequest* Arena::CreateMaybeMessage< ::flyteidl::service::EvictCacheRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::service::EvictCacheRequest >(arena); +template<> PROTOBUF_NOINLINE ::flyteidl::service::EvictExecutionCacheRequest* Arena::CreateMaybeMessage< ::flyteidl::service::EvictExecutionCacheRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::service::EvictExecutionCacheRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::service::EvictTaskExecutionCacheRequest* Arena::CreateMaybeMessage< ::flyteidl::service::EvictTaskExecutionCacheRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::service::EvictTaskExecutionCacheRequest >(arena); } template<> PROTOBUF_NOINLINE ::flyteidl::service::EvictCacheResponse* Arena::CreateMaybeMessage< ::flyteidl::service::EvictCacheResponse >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::service::EvictCacheResponse >(arena); diff --git a/gen/pb-cpp/flyteidl/service/cache.pb.h b/gen/pb-cpp/flyteidl/service/cache.pb.h index 61100b3b4..81ae8167c 100644 --- a/gen/pb-cpp/flyteidl/service/cache.pb.h +++ b/gen/pb-cpp/flyteidl/service/cache.pb.h @@ -44,7 +44,7 @@ struct TableStruct_flyteidl_2fservice_2fcache_2eproto { PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[2] + static const ::google::protobuf::internal::ParseTable schema[3] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::FieldMetadata field_metadata[]; static const ::google::protobuf::internal::SerializationTable serialization_table[]; @@ -53,18 +53,22 @@ struct TableStruct_flyteidl_2fservice_2fcache_2eproto { void AddDescriptors_flyteidl_2fservice_2fcache_2eproto(); namespace flyteidl { namespace service { -class EvictCacheRequest; -class EvictCacheRequestDefaultTypeInternal; -extern EvictCacheRequestDefaultTypeInternal _EvictCacheRequest_default_instance_; class EvictCacheResponse; class EvictCacheResponseDefaultTypeInternal; extern EvictCacheResponseDefaultTypeInternal _EvictCacheResponse_default_instance_; +class EvictExecutionCacheRequest; +class EvictExecutionCacheRequestDefaultTypeInternal; +extern EvictExecutionCacheRequestDefaultTypeInternal _EvictExecutionCacheRequest_default_instance_; +class EvictTaskExecutionCacheRequest; +class EvictTaskExecutionCacheRequestDefaultTypeInternal; +extern EvictTaskExecutionCacheRequestDefaultTypeInternal _EvictTaskExecutionCacheRequest_default_instance_; } // namespace service } // namespace flyteidl namespace google { namespace protobuf { -template<> ::flyteidl::service::EvictCacheRequest* Arena::CreateMaybeMessage<::flyteidl::service::EvictCacheRequest>(Arena*); template<> ::flyteidl::service::EvictCacheResponse* Arena::CreateMaybeMessage<::flyteidl::service::EvictCacheResponse>(Arena*); +template<> ::flyteidl::service::EvictExecutionCacheRequest* Arena::CreateMaybeMessage<::flyteidl::service::EvictExecutionCacheRequest>(Arena*); +template<> ::flyteidl::service::EvictTaskExecutionCacheRequest* Arena::CreateMaybeMessage<::flyteidl::service::EvictTaskExecutionCacheRequest>(Arena*); } // namespace protobuf } // namespace google namespace flyteidl { @@ -72,25 +76,25 @@ namespace service { // =================================================================== -class EvictCacheRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.EvictCacheRequest) */ { +class EvictExecutionCacheRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.EvictExecutionCacheRequest) */ { public: - EvictCacheRequest(); - virtual ~EvictCacheRequest(); + EvictExecutionCacheRequest(); + virtual ~EvictExecutionCacheRequest(); - EvictCacheRequest(const EvictCacheRequest& from); + EvictExecutionCacheRequest(const EvictExecutionCacheRequest& from); - inline EvictCacheRequest& operator=(const EvictCacheRequest& from) { + inline EvictExecutionCacheRequest& operator=(const EvictExecutionCacheRequest& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - EvictCacheRequest(EvictCacheRequest&& from) noexcept - : EvictCacheRequest() { + EvictExecutionCacheRequest(EvictExecutionCacheRequest&& from) noexcept + : EvictExecutionCacheRequest() { *this = ::std::move(from); } - inline EvictCacheRequest& operator=(EvictCacheRequest&& from) noexcept { + inline EvictExecutionCacheRequest& operator=(EvictExecutionCacheRequest&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -102,40 +106,34 @@ class EvictCacheRequest final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const EvictCacheRequest& default_instance(); - - enum IdCase { - kWorkflowExecutionId = 1, - kTaskExecutionId = 2, - ID_NOT_SET = 0, - }; + static const EvictExecutionCacheRequest& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const EvictCacheRequest* internal_default_instance() { - return reinterpret_cast( - &_EvictCacheRequest_default_instance_); + static inline const EvictExecutionCacheRequest* internal_default_instance() { + return reinterpret_cast( + &_EvictExecutionCacheRequest_default_instance_); } static constexpr int kIndexInFileMessages = 0; - void Swap(EvictCacheRequest* other); - friend void swap(EvictCacheRequest& a, EvictCacheRequest& b) { + void Swap(EvictExecutionCacheRequest* other); + friend void swap(EvictExecutionCacheRequest& a, EvictExecutionCacheRequest& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline EvictCacheRequest* New() const final { - return CreateMaybeMessage(nullptr); + inline EvictExecutionCacheRequest* New() const final { + return CreateMaybeMessage(nullptr); } - EvictCacheRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + EvictExecutionCacheRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const EvictCacheRequest& from); - void MergeFrom(const EvictCacheRequest& from); + void CopyFrom(const EvictExecutionCacheRequest& from); + void MergeFrom(const EvictExecutionCacheRequest& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -157,7 +155,7 @@ class EvictCacheRequest final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(EvictCacheRequest* other); + void InternalSwap(EvictExecutionCacheRequest* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -182,35 +180,128 @@ class EvictCacheRequest final : ::flyteidl::core::WorkflowExecutionIdentifier* mutable_workflow_execution_id(); void set_allocated_workflow_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* workflow_execution_id); - // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 2; + // @@protoc_insertion_point(class_scope:flyteidl.service.EvictExecutionCacheRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::WorkflowExecutionIdentifier* workflow_execution_id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fservice_2fcache_2eproto; +}; +// ------------------------------------------------------------------- + +class EvictTaskExecutionCacheRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.EvictTaskExecutionCacheRequest) */ { + public: + EvictTaskExecutionCacheRequest(); + virtual ~EvictTaskExecutionCacheRequest(); + + EvictTaskExecutionCacheRequest(const EvictTaskExecutionCacheRequest& from); + + inline EvictTaskExecutionCacheRequest& operator=(const EvictTaskExecutionCacheRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EvictTaskExecutionCacheRequest(EvictTaskExecutionCacheRequest&& from) noexcept + : EvictTaskExecutionCacheRequest() { + *this = ::std::move(from); + } + + inline EvictTaskExecutionCacheRequest& operator=(EvictTaskExecutionCacheRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const EvictTaskExecutionCacheRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EvictTaskExecutionCacheRequest* internal_default_instance() { + return reinterpret_cast( + &_EvictTaskExecutionCacheRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(EvictTaskExecutionCacheRequest* other); + friend void swap(EvictTaskExecutionCacheRequest& a, EvictTaskExecutionCacheRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EvictTaskExecutionCacheRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + EvictTaskExecutionCacheRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EvictTaskExecutionCacheRequest& from); + void MergeFrom(const EvictTaskExecutionCacheRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EvictTaskExecutionCacheRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; bool has_task_execution_id() const; void clear_task_execution_id(); - static const int kTaskExecutionIdFieldNumber = 2; + static const int kTaskExecutionIdFieldNumber = 1; const ::flyteidl::core::TaskExecutionIdentifier& task_execution_id() const; ::flyteidl::core::TaskExecutionIdentifier* release_task_execution_id(); ::flyteidl::core::TaskExecutionIdentifier* mutable_task_execution_id(); void set_allocated_task_execution_id(::flyteidl::core::TaskExecutionIdentifier* task_execution_id); - void clear_id(); - IdCase id_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.service.EvictCacheRequest) + // @@protoc_insertion_point(class_scope:flyteidl.service.EvictTaskExecutionCacheRequest) private: class HasBitSetters; - void set_has_workflow_execution_id(); - void set_has_task_execution_id(); - - inline bool has_id() const; - inline void clear_has_id(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - union IdUnion { - IdUnion() {} - ::flyteidl::core::WorkflowExecutionIdentifier* workflow_execution_id_; - ::flyteidl::core::TaskExecutionIdentifier* task_execution_id_; - } id_; + ::flyteidl::core::TaskExecutionIdentifier* task_execution_id_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - friend struct ::TableStruct_flyteidl_2fservice_2fcache_2eproto; }; // ------------------------------------------------------------------- @@ -253,7 +344,7 @@ class EvictCacheResponse final : &_EvictCacheResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 2; void Swap(EvictCacheResponse* other); friend void swap(EvictCacheResponse& a, EvictCacheResponse& b) { @@ -337,87 +428,102 @@ class EvictCacheResponse final : #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// EvictCacheRequest +// EvictExecutionCacheRequest // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; -inline bool EvictCacheRequest::has_workflow_execution_id() const { - return id_case() == kWorkflowExecutionId; +inline bool EvictExecutionCacheRequest::has_workflow_execution_id() const { + return this != internal_default_instance() && workflow_execution_id_ != nullptr; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& EvictExecutionCacheRequest::workflow_execution_id() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = workflow_execution_id_; + // @@protoc_insertion_point(field_get:flyteidl.service.EvictExecutionCacheRequest.workflow_execution_id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); } -inline void EvictCacheRequest::set_has_workflow_execution_id() { - _oneof_case_[0] = kWorkflowExecutionId; +inline ::flyteidl::core::WorkflowExecutionIdentifier* EvictExecutionCacheRequest::release_workflow_execution_id() { + // @@protoc_insertion_point(field_release:flyteidl.service.EvictExecutionCacheRequest.workflow_execution_id) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = workflow_execution_id_; + workflow_execution_id_ = nullptr; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* EvictExecutionCacheRequest::mutable_workflow_execution_id() { + + if (workflow_execution_id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); + workflow_execution_id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.service.EvictExecutionCacheRequest.workflow_execution_id) + return workflow_execution_id_; } -inline ::flyteidl::core::WorkflowExecutionIdentifier* EvictCacheRequest::release_workflow_execution_id() { - // @@protoc_insertion_point(field_release:flyteidl.service.EvictCacheRequest.workflow_execution_id) - if (has_workflow_execution_id()) { - clear_has_id(); - ::flyteidl::core::WorkflowExecutionIdentifier* temp = id_.workflow_execution_id_; - id_.workflow_execution_id_ = nullptr; - return temp; +inline void EvictExecutionCacheRequest::set_allocated_workflow_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* workflow_execution_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(workflow_execution_id_); + } + if (workflow_execution_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + workflow_execution_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, workflow_execution_id, submessage_arena); + } + } else { - return nullptr; + } + workflow_execution_id_ = workflow_execution_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.EvictExecutionCacheRequest.workflow_execution_id) } -inline const ::flyteidl::core::WorkflowExecutionIdentifier& EvictCacheRequest::workflow_execution_id() const { - // @@protoc_insertion_point(field_get:flyteidl.service.EvictCacheRequest.workflow_execution_id) - return has_workflow_execution_id() - ? *id_.workflow_execution_id_ - : *reinterpret_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>(&::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); + +// ------------------------------------------------------------------- + +// EvictTaskExecutionCacheRequest + +// .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; +inline bool EvictTaskExecutionCacheRequest::has_task_execution_id() const { + return this != internal_default_instance() && task_execution_id_ != nullptr; } -inline ::flyteidl::core::WorkflowExecutionIdentifier* EvictCacheRequest::mutable_workflow_execution_id() { - if (!has_workflow_execution_id()) { - clear_id(); - set_has_workflow_execution_id(); - id_.workflow_execution_id_ = CreateMaybeMessage< ::flyteidl::core::WorkflowExecutionIdentifier >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.service.EvictCacheRequest.workflow_execution_id) - return id_.workflow_execution_id_; +inline const ::flyteidl::core::TaskExecutionIdentifier& EvictTaskExecutionCacheRequest::task_execution_id() const { + const ::flyteidl::core::TaskExecutionIdentifier* p = task_execution_id_; + // @@protoc_insertion_point(field_get:flyteidl.service.EvictTaskExecutionCacheRequest.task_execution_id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_TaskExecutionIdentifier_default_instance_); } - -// .flyteidl.core.TaskExecutionIdentifier task_execution_id = 2; -inline bool EvictCacheRequest::has_task_execution_id() const { - return id_case() == kTaskExecutionId; +inline ::flyteidl::core::TaskExecutionIdentifier* EvictTaskExecutionCacheRequest::release_task_execution_id() { + // @@protoc_insertion_point(field_release:flyteidl.service.EvictTaskExecutionCacheRequest.task_execution_id) + + ::flyteidl::core::TaskExecutionIdentifier* temp = task_execution_id_; + task_execution_id_ = nullptr; + return temp; } -inline void EvictCacheRequest::set_has_task_execution_id() { - _oneof_case_[0] = kTaskExecutionId; +inline ::flyteidl::core::TaskExecutionIdentifier* EvictTaskExecutionCacheRequest::mutable_task_execution_id() { + + if (task_execution_id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::TaskExecutionIdentifier>(GetArenaNoVirtual()); + task_execution_id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.service.EvictTaskExecutionCacheRequest.task_execution_id) + return task_execution_id_; } -inline ::flyteidl::core::TaskExecutionIdentifier* EvictCacheRequest::release_task_execution_id() { - // @@protoc_insertion_point(field_release:flyteidl.service.EvictCacheRequest.task_execution_id) - if (has_task_execution_id()) { - clear_has_id(); - ::flyteidl::core::TaskExecutionIdentifier* temp = id_.task_execution_id_; - id_.task_execution_id_ = nullptr; - return temp; +inline void EvictTaskExecutionCacheRequest::set_allocated_task_execution_id(::flyteidl::core::TaskExecutionIdentifier* task_execution_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(task_execution_id_); + } + if (task_execution_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + task_execution_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, task_execution_id, submessage_arena); + } + } else { - return nullptr; + } -} -inline const ::flyteidl::core::TaskExecutionIdentifier& EvictCacheRequest::task_execution_id() const { - // @@protoc_insertion_point(field_get:flyteidl.service.EvictCacheRequest.task_execution_id) - return has_task_execution_id() - ? *id_.task_execution_id_ - : *reinterpret_cast< ::flyteidl::core::TaskExecutionIdentifier*>(&::flyteidl::core::_TaskExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::TaskExecutionIdentifier* EvictCacheRequest::mutable_task_execution_id() { - if (!has_task_execution_id()) { - clear_id(); - set_has_task_execution_id(); - id_.task_execution_id_ = CreateMaybeMessage< ::flyteidl::core::TaskExecutionIdentifier >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.service.EvictCacheRequest.task_execution_id) - return id_.task_execution_id_; + task_execution_id_ = task_execution_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.EvictTaskExecutionCacheRequest.task_execution_id) } -inline bool EvictCacheRequest::has_id() const { - return id_case() != ID_NOT_SET; -} -inline void EvictCacheRequest::clear_has_id() { - _oneof_case_[0] = ID_NOT_SET; -} -inline EvictCacheRequest::IdCase EvictCacheRequest::id_case() const { - return EvictCacheRequest::IdCase(_oneof_case_[0]); -} // ------------------------------------------------------------------- // EvictCacheResponse @@ -472,6 +578,8 @@ inline void EvictCacheResponse::set_allocated_errors(::flyteidl::core::CacheEvic #endif // __GNUC__ // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/gen/pb-go/flyteidl/core/errors.pb.go b/gen/pb-go/flyteidl/core/errors.pb.go index f5f9ae5ed..b28dcfe93 100644 --- a/gen/pb-go/flyteidl/core/errors.pb.go +++ b/gen/pb-go/flyteidl/core/errors.pb.go @@ -46,18 +46,36 @@ func (ContainerError_Kind) EnumDescriptor() ([]byte, []int) { return fileDescriptor_c2a49b99f342b879, []int{0, 0} } +// Defines codes for distinguishing between errors encountered during cache eviction. type CacheEvictionError_Code int32 const ( - CacheEvictionError_UNKNOWN CacheEvictionError_Code = 0 + // Indicates a generic internal error occurred. + CacheEvictionError_INTERNAL CacheEvictionError_Code = 0 + // Indicates no reservation could be acquired before deleting an artifact. + CacheEvictionError_RESERVATION_NOT_ACQUIRED CacheEvictionError_Code = 1 + // Indicates updating the database entry related to the node execution failed. + CacheEvictionError_DATABASE_UPDATE_FAILED CacheEvictionError_Code = 2 + // Indicates deleting the artifact from datacatalog failed. + CacheEvictionError_ARTIFACT_DELETE_FAILED CacheEvictionError_Code = 3 + // Indicates the reservation previously acquired could not be released for an artifact. + CacheEvictionError_RESERVATION_NOT_RELEASED CacheEvictionError_Code = 4 ) var CacheEvictionError_Code_name = map[int32]string{ - 0: "UNKNOWN", + 0: "INTERNAL", + 1: "RESERVATION_NOT_ACQUIRED", + 2: "DATABASE_UPDATE_FAILED", + 3: "ARTIFACT_DELETE_FAILED", + 4: "RESERVATION_NOT_RELEASED", } var CacheEvictionError_Code_value = map[string]int32{ - "UNKNOWN": 0, + "INTERNAL": 0, + "RESERVATION_NOT_ACQUIRED": 1, + "DATABASE_UPDATE_FAILED": 2, + "ARTIFACT_DELETE_FAILED": 3, + "RESERVATION_NOT_RELEASED": 4, } func (x CacheEvictionError_Code) String() string { @@ -227,7 +245,7 @@ func (m *CacheEvictionError) GetCode() CacheEvictionError_Code { if m != nil { return m.Code } - return CacheEvictionError_UNKNOWN + return CacheEvictionError_INTERNAL } func (m *CacheEvictionError) GetMessage() string { @@ -341,35 +359,39 @@ func init() { func init() { proto.RegisterFile("flyteidl/core/errors.proto", fileDescriptor_c2a49b99f342b879) } var fileDescriptor_c2a49b99f342b879 = []byte{ - // 465 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0x61, 0x6b, 0xd3, 0x40, - 0x18, 0xc7, 0x1b, 0x9b, 0x75, 0xfa, 0x84, 0xb5, 0xdb, 0x15, 0x25, 0x14, 0x26, 0x35, 0x2f, 0xb4, - 0x88, 0x26, 0xd0, 0xc9, 0x40, 0xdf, 0x88, 0xed, 0x02, 0xca, 0x46, 0x0a, 0x71, 0x3a, 0xf0, 0x4d, - 0x4d, 0x93, 0xa7, 0xd9, 0xd1, 0xf6, 0x9e, 0x71, 0xb9, 0x5a, 0xfd, 0x20, 0x7e, 0x44, 0xbf, 0x87, - 0xf4, 0xd2, 0x86, 0xa5, 0x2d, 0xeb, 0x9b, 0x90, 0xbb, 0xff, 0xf3, 0xff, 0xdd, 0xdd, 0xff, 0xe1, - 0x81, 0xd6, 0x78, 0xfa, 0x47, 0x21, 0x4f, 0xa6, 0x5e, 0x4c, 0x12, 0x3d, 0x94, 0x92, 0x64, 0xe6, - 0xde, 0x49, 0x52, 0xc4, 0x8e, 0xd6, 0x9a, 0xbb, 0xd4, 0x5a, 0xa7, 0x1b, 0xa5, 0xbf, 0x31, 0x9e, - 0x2b, 0x4e, 0x22, 0xaf, 0x6e, 0x3d, 0x2f, 0xcb, 0x3c, 0x41, 0xa1, 0xf8, 0x98, 0xa3, 0xcc, 0x75, - 0xe7, 0x9f, 0x01, 0xf5, 0x3e, 0x09, 0x15, 0x71, 0x81, 0xd2, 0x5f, 0x9e, 0xc3, 0x18, 0x98, 0x31, - 0x25, 0x68, 0x1b, 0x6d, 0xa3, 0xf3, 0x24, 0xd4, 0xff, 0xcc, 0x86, 0xc3, 0x19, 0x66, 0x59, 0x94, - 0xa2, 0xfd, 0x48, 0x6f, 0xaf, 0x97, 0xec, 0x1c, 0xcc, 0x09, 0x17, 0x89, 0x5d, 0x6d, 0x1b, 0x9d, - 0x7a, 0xd7, 0x71, 0x4b, 0xb7, 0x73, 0xcb, 0x68, 0xf7, 0x92, 0x8b, 0x24, 0xd4, 0xf5, 0xec, 0x23, - 0xd4, 0x48, 0xf2, 0x94, 0x0b, 0xdb, 0xd4, 0xce, 0x57, 0x1b, 0x4e, 0x7f, 0xfd, 0x90, 0xdc, 0xa9, - 0xbf, 0xda, 0xbe, 0xb2, 0x39, 0x6f, 0xc0, 0x5c, 0xae, 0x59, 0x13, 0x1a, 0xc1, 0x20, 0x18, 0x86, - 0x7e, 0x7f, 0xf0, 0xdd, 0x0f, 0x3f, 0xf5, 0xae, 0xfc, 0xe3, 0x0a, 0x6b, 0x80, 0x75, 0x7f, 0xc3, - 0x70, 0x2e, 0xe0, 0x48, 0x23, 0x2e, 0x28, 0x9e, 0xcf, 0x50, 0x28, 0x76, 0x06, 0x07, 0x3a, 0x56, - 0xfd, 0x4c, 0xab, 0x7b, 0xfa, 0xe0, 0xc5, 0xc3, 0xbc, 0xd6, 0xf9, 0x5b, 0x05, 0xd6, 0x8f, 0xe2, - 0x5b, 0xf4, 0x7f, 0xf1, 0xb8, 0xb8, 0x1c, 0xfb, 0x70, 0x2f, 0xb1, 0x7a, 0xf7, 0xe5, 0x26, 0x6a, - 0xcb, 0xe0, 0xf6, 0x29, 0xc1, 0xbd, 0xc9, 0x86, 0x70, 0x22, 0x28, 0xc1, 0x61, 0xd1, 0xd2, 0x21, - 0xcf, 0x63, 0xb6, 0xb6, 0x8e, 0x08, 0x28, 0xc1, 0x22, 0xb0, 0x2f, 0x45, 0x8f, 0xc3, 0x86, 0x28, - 0x0b, 0xec, 0x1a, 0x4e, 0x54, 0x94, 0x4d, 0xca, 0x4c, 0x73, 0x27, 0xf3, 0x3a, 0xca, 0x26, 0x3b, - 0x98, 0x9f, 0x2b, 0x61, 0x43, 0x95, 0x25, 0xf6, 0x13, 0x9e, 0x2e, 0x48, 0x4e, 0xc6, 0x53, 0x5a, - 0x94, 0xc9, 0x07, 0x9a, 0xfc, 0x7a, 0x83, 0x7c, 0xb3, 0xaa, 0xdd, 0x4d, 0x6f, 0x2e, 0xb6, 0x65, - 0xa7, 0x09, 0xe6, 0x32, 0x33, 0x66, 0xc1, 0xe1, 0xb7, 0xe0, 0x32, 0x18, 0xdc, 0x04, 0xc7, 0x95, - 0xde, 0x63, 0xa8, 0x65, 0x34, 0x97, 0x31, 0x3a, 0x5f, 0xe1, 0xd9, 0x76, 0xca, 0x57, 0x3c, 0x53, - 0xec, 0x3d, 0xd4, 0xf2, 0xe9, 0xb1, 0x8d, 0x76, 0xb5, 0x63, 0x75, 0x5f, 0xec, 0x6d, 0x4e, 0xb8, - 0x32, 0xf4, 0xce, 0x7f, 0xbc, 0x4b, 0xb9, 0xba, 0x9d, 0x8f, 0xdc, 0x98, 0x66, 0x9e, 0xb6, 0x91, - 0x4c, 0xbd, 0x62, 0xa0, 0x52, 0x14, 0xde, 0xdd, 0xe8, 0x6d, 0x4a, 0x5e, 0x69, 0xc6, 0x46, 0x35, - 0x3d, 0x59, 0x67, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0xa4, 0xba, 0xc5, 0x03, 0xc5, 0x03, 0x00, - 0x00, + // 540 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0x61, 0x6f, 0xd2, 0x40, + 0x18, 0xc7, 0xd7, 0xad, 0xc3, 0xf9, 0xe0, 0x06, 0xbb, 0xc5, 0xa5, 0x21, 0xce, 0x60, 0x5f, 0x28, + 0x31, 0xda, 0x26, 0xcc, 0x2c, 0xd1, 0x37, 0xe6, 0x68, 0x6f, 0xb1, 0xb1, 0x29, 0x7a, 0x74, 0x33, + 0xf1, 0x4d, 0x85, 0xf6, 0xe8, 0x2e, 0x40, 0x6f, 0x69, 0x8b, 0xe8, 0x37, 0x30, 0xf1, 0x73, 0xfa, + 0x3d, 0x0c, 0x57, 0xc0, 0x15, 0x88, 0x7b, 0x43, 0xb8, 0xfb, 0x3f, 0xff, 0xdf, 0xdd, 0xfd, 0x9f, + 0x3e, 0xd0, 0x18, 0x8e, 0x7f, 0xe6, 0x8c, 0x47, 0x63, 0x33, 0x14, 0x29, 0x33, 0x59, 0x9a, 0x8a, + 0x34, 0x33, 0x6e, 0x53, 0x91, 0x0b, 0x74, 0xb8, 0xd4, 0x8c, 0xb9, 0xd6, 0x38, 0x5b, 0x2b, 0xfd, + 0xc1, 0xc2, 0x69, 0xce, 0x45, 0x52, 0x54, 0x37, 0x9e, 0x96, 0x65, 0x1e, 0xb1, 0x24, 0xe7, 0x43, + 0xce, 0xd2, 0x42, 0xd7, 0xff, 0x28, 0x70, 0x64, 0x89, 0x24, 0xef, 0xf3, 0x84, 0xa5, 0x64, 0x7e, + 0x0e, 0x42, 0xa0, 0x86, 0x22, 0x62, 0x9a, 0xd2, 0x54, 0x5a, 0x0f, 0xa9, 0xfc, 0x8f, 0x34, 0x78, + 0x30, 0x61, 0x59, 0xd6, 0x8f, 0x99, 0xb6, 0x2b, 0xb7, 0x97, 0x4b, 0x74, 0x01, 0xea, 0x88, 0x27, + 0x91, 0xb6, 0xd7, 0x54, 0x5a, 0x47, 0x6d, 0xdd, 0x28, 0xdd, 0xce, 0x28, 0xa3, 0x8d, 0x8f, 0x3c, + 0x89, 0xa8, 0xac, 0x47, 0xef, 0xa1, 0x22, 0x52, 0x1e, 0xf3, 0x44, 0x53, 0xa5, 0xf3, 0xc5, 0x9a, + 0x93, 0x2c, 0x1f, 0x52, 0x38, 0xe5, 0xaf, 0xb4, 0x2f, 0x6c, 0xfa, 0x2b, 0x50, 0xe7, 0x6b, 0x74, + 0x02, 0x35, 0xaf, 0xeb, 0x05, 0x94, 0x58, 0xdd, 0x6b, 0x42, 0x71, 0xc7, 0x25, 0xf5, 0x1d, 0x54, + 0x83, 0xea, 0xdd, 0x0d, 0x45, 0xb7, 0xe1, 0x50, 0x22, 0x6c, 0x11, 0x4e, 0x27, 0x2c, 0xc9, 0xd1, + 0x39, 0xec, 0xcb, 0x58, 0xe5, 0x33, 0xab, 0xed, 0xb3, 0xff, 0x5e, 0x9c, 0x16, 0xb5, 0xfa, 0x6f, + 0x15, 0x90, 0xd5, 0x0f, 0x6f, 0x18, 0xf9, 0xce, 0xc3, 0xd5, 0xe5, 0xd0, 0xbb, 0x3b, 0x89, 0x1d, + 0xb5, 0x9f, 0xaf, 0xa3, 0x36, 0x0c, 0x86, 0x25, 0x22, 0x76, 0x6f, 0xb2, 0x14, 0x8e, 0x13, 0x11, + 0xb1, 0x60, 0xd5, 0xd2, 0x80, 0x17, 0x31, 0x57, 0x37, 0x8e, 0xf0, 0x44, 0xc4, 0x56, 0x81, 0x39, + 0xab, 0x1e, 0xd3, 0x5a, 0x52, 0x16, 0x90, 0x0f, 0xc7, 0x79, 0x3f, 0x1b, 0x95, 0x99, 0xea, 0x56, + 0xa6, 0xdf, 0xcf, 0x46, 0x5b, 0x98, 0x1f, 0x76, 0x68, 0x2d, 0x2f, 0x4b, 0xe8, 0x1b, 0x3c, 0x9e, + 0x89, 0x74, 0x34, 0x1c, 0x8b, 0x59, 0x99, 0xbc, 0x2f, 0xc9, 0x2f, 0xd7, 0xc8, 0x5f, 0x16, 0xb5, + 0xdb, 0xe9, 0x27, 0xb3, 0x4d, 0x59, 0xff, 0xa5, 0x80, 0x3a, 0x0f, 0x0d, 0x3d, 0x82, 0x03, 0xc7, + 0xf3, 0x09, 0xf5, 0xb0, 0x5b, 0xdf, 0x41, 0x4f, 0x40, 0xa3, 0xa4, 0x47, 0xe8, 0x35, 0xf6, 0x9d, + 0xae, 0x17, 0x78, 0x5d, 0x3f, 0xc0, 0xd6, 0xe7, 0x2b, 0x87, 0x12, 0xbb, 0xae, 0xa0, 0x06, 0x9c, + 0xda, 0xd8, 0xc7, 0x1d, 0xdc, 0x23, 0xc1, 0xd5, 0x27, 0x1b, 0xfb, 0x24, 0xb8, 0xc4, 0x8e, 0x4b, + 0xec, 0xfa, 0xee, 0x5c, 0xc3, 0xd4, 0x77, 0x2e, 0xb1, 0xe5, 0x07, 0x36, 0x71, 0xc9, 0x3f, 0x6d, + 0x6f, 0x1b, 0x95, 0x12, 0x97, 0xe0, 0x1e, 0xb1, 0xeb, 0x6a, 0xe7, 0x00, 0x2a, 0x99, 0x98, 0xa6, + 0x21, 0xd3, 0x7b, 0x70, 0xba, 0xd9, 0x5b, 0x97, 0x67, 0x39, 0x7a, 0x0b, 0x95, 0x62, 0x66, 0x35, + 0xa5, 0xb9, 0xd7, 0xaa, 0xb6, 0x9f, 0xdd, 0xfb, 0x49, 0xd0, 0x85, 0xa1, 0x73, 0xf1, 0xf5, 0x4d, + 0xcc, 0xf3, 0x9b, 0xe9, 0xc0, 0x08, 0xc5, 0xc4, 0x94, 0x36, 0x91, 0xc6, 0xe6, 0x6a, 0x8c, 0x63, + 0x96, 0x98, 0xb7, 0x83, 0xd7, 0xb1, 0x30, 0x4b, 0x93, 0x3d, 0xa8, 0xc8, 0x79, 0x3e, 0xff, 0x1b, + 0x00, 0x00, 0xff, 0xff, 0x2c, 0xe9, 0x29, 0x58, 0x3b, 0x04, 0x00, 0x00, } diff --git a/gen/pb-go/flyteidl/service/cache.pb.go b/gen/pb-go/flyteidl/service/cache.pb.go index aeef73741..b548e280d 100644 --- a/gen/pb-go/flyteidl/service/cache.pb.go +++ b/gen/pb-go/flyteidl/service/cache.pb.go @@ -26,86 +26,84 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package -type EvictCacheRequest struct { - // Identifier of resource cached data should be evicted for. - // - // Types that are valid to be assigned to Id: - // *EvictCacheRequest_WorkflowExecutionId - // *EvictCacheRequest_TaskExecutionId - Id isEvictCacheRequest_Id `protobuf_oneof:"id"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *EvictCacheRequest) Reset() { *m = EvictCacheRequest{} } -func (m *EvictCacheRequest) String() string { return proto.CompactTextString(m) } -func (*EvictCacheRequest) ProtoMessage() {} -func (*EvictCacheRequest) Descriptor() ([]byte, []int) { +type EvictExecutionCacheRequest struct { + // Identifier of :ref:`ref_flyteidl.admin.Execution` to evict cache for. + WorkflowExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=workflow_execution_id,json=workflowExecutionId,proto3" json:"workflow_execution_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EvictExecutionCacheRequest) Reset() { *m = EvictExecutionCacheRequest{} } +func (m *EvictExecutionCacheRequest) String() string { return proto.CompactTextString(m) } +func (*EvictExecutionCacheRequest) ProtoMessage() {} +func (*EvictExecutionCacheRequest) Descriptor() ([]byte, []int) { return fileDescriptor_c5ff5da69b96fa44, []int{0} } -func (m *EvictCacheRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_EvictCacheRequest.Unmarshal(m, b) +func (m *EvictExecutionCacheRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EvictExecutionCacheRequest.Unmarshal(m, b) } -func (m *EvictCacheRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_EvictCacheRequest.Marshal(b, m, deterministic) +func (m *EvictExecutionCacheRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EvictExecutionCacheRequest.Marshal(b, m, deterministic) } -func (m *EvictCacheRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_EvictCacheRequest.Merge(m, src) +func (m *EvictExecutionCacheRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_EvictExecutionCacheRequest.Merge(m, src) } -func (m *EvictCacheRequest) XXX_Size() int { - return xxx_messageInfo_EvictCacheRequest.Size(m) +func (m *EvictExecutionCacheRequest) XXX_Size() int { + return xxx_messageInfo_EvictExecutionCacheRequest.Size(m) } -func (m *EvictCacheRequest) XXX_DiscardUnknown() { - xxx_messageInfo_EvictCacheRequest.DiscardUnknown(m) +func (m *EvictExecutionCacheRequest) XXX_DiscardUnknown() { + xxx_messageInfo_EvictExecutionCacheRequest.DiscardUnknown(m) } -var xxx_messageInfo_EvictCacheRequest proto.InternalMessageInfo +var xxx_messageInfo_EvictExecutionCacheRequest proto.InternalMessageInfo -type isEvictCacheRequest_Id interface { - isEvictCacheRequest_Id() +func (m *EvictExecutionCacheRequest) GetWorkflowExecutionId() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.WorkflowExecutionId + } + return nil } -type EvictCacheRequest_WorkflowExecutionId struct { - WorkflowExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=workflow_execution_id,json=workflowExecutionId,proto3,oneof"` +type EvictTaskExecutionCacheRequest struct { + // Identifier of :ref:`ref_flyteidl.admin.TaskExecution` to evict cache for. + TaskExecutionId *core.TaskExecutionIdentifier `protobuf:"bytes,1,opt,name=task_execution_id,json=taskExecutionId,proto3" json:"task_execution_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -type EvictCacheRequest_TaskExecutionId struct { - TaskExecutionId *core.TaskExecutionIdentifier `protobuf:"bytes,2,opt,name=task_execution_id,json=taskExecutionId,proto3,oneof"` +func (m *EvictTaskExecutionCacheRequest) Reset() { *m = EvictTaskExecutionCacheRequest{} } +func (m *EvictTaskExecutionCacheRequest) String() string { return proto.CompactTextString(m) } +func (*EvictTaskExecutionCacheRequest) ProtoMessage() {} +func (*EvictTaskExecutionCacheRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_c5ff5da69b96fa44, []int{1} } -func (*EvictCacheRequest_WorkflowExecutionId) isEvictCacheRequest_Id() {} - -func (*EvictCacheRequest_TaskExecutionId) isEvictCacheRequest_Id() {} - -func (m *EvictCacheRequest) GetId() isEvictCacheRequest_Id { - if m != nil { - return m.Id - } - return nil +func (m *EvictTaskExecutionCacheRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EvictTaskExecutionCacheRequest.Unmarshal(m, b) } - -func (m *EvictCacheRequest) GetWorkflowExecutionId() *core.WorkflowExecutionIdentifier { - if x, ok := m.GetId().(*EvictCacheRequest_WorkflowExecutionId); ok { - return x.WorkflowExecutionId - } - return nil +func (m *EvictTaskExecutionCacheRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EvictTaskExecutionCacheRequest.Marshal(b, m, deterministic) } - -func (m *EvictCacheRequest) GetTaskExecutionId() *core.TaskExecutionIdentifier { - if x, ok := m.GetId().(*EvictCacheRequest_TaskExecutionId); ok { - return x.TaskExecutionId - } - return nil +func (m *EvictTaskExecutionCacheRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_EvictTaskExecutionCacheRequest.Merge(m, src) +} +func (m *EvictTaskExecutionCacheRequest) XXX_Size() int { + return xxx_messageInfo_EvictTaskExecutionCacheRequest.Size(m) +} +func (m *EvictTaskExecutionCacheRequest) XXX_DiscardUnknown() { + xxx_messageInfo_EvictTaskExecutionCacheRequest.DiscardUnknown(m) } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*EvictCacheRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*EvictCacheRequest_WorkflowExecutionId)(nil), - (*EvictCacheRequest_TaskExecutionId)(nil), +var xxx_messageInfo_EvictTaskExecutionCacheRequest proto.InternalMessageInfo + +func (m *EvictTaskExecutionCacheRequest) GetTaskExecutionId() *core.TaskExecutionIdentifier { + if m != nil { + return m.TaskExecutionId } + return nil } type EvictCacheResponse struct { @@ -120,7 +118,7 @@ func (m *EvictCacheResponse) Reset() { *m = EvictCacheResponse{} } func (m *EvictCacheResponse) String() string { return proto.CompactTextString(m) } func (*EvictCacheResponse) ProtoMessage() {} func (*EvictCacheResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c5ff5da69b96fa44, []int{1} + return fileDescriptor_c5ff5da69b96fa44, []int{2} } func (m *EvictCacheResponse) XXX_Unmarshal(b []byte) error { @@ -149,43 +147,45 @@ func (m *EvictCacheResponse) GetErrors() *core.CacheEvictionErrorList { } func init() { - proto.RegisterType((*EvictCacheRequest)(nil), "flyteidl.service.EvictCacheRequest") + proto.RegisterType((*EvictExecutionCacheRequest)(nil), "flyteidl.service.EvictExecutionCacheRequest") + proto.RegisterType((*EvictTaskExecutionCacheRequest)(nil), "flyteidl.service.EvictTaskExecutionCacheRequest") proto.RegisterType((*EvictCacheResponse)(nil), "flyteidl.service.EvictCacheResponse") } func init() { proto.RegisterFile("flyteidl/service/cache.proto", fileDescriptor_c5ff5da69b96fa44) } var fileDescriptor_c5ff5da69b96fa44 = []byte{ - // 463 bytes of a gzipped FileDescriptorProto + // 476 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcd, 0x8a, 0x13, 0x41, - 0x10, 0x36, 0xd9, 0xec, 0x1e, 0x5a, 0x41, 0x77, 0x44, 0x90, 0xb0, 0x88, 0xc4, 0x1f, 0x24, 0xe0, - 0x34, 0xae, 0x07, 0x51, 0xf0, 0xb2, 0x12, 0x50, 0xf0, 0x94, 0x5d, 0x10, 0xf6, 0x12, 0x3b, 0x3d, - 0x95, 0xd9, 0x32, 0x49, 0xd7, 0xd8, 0x5d, 0x49, 0x5c, 0x96, 0x5c, 0x3c, 0xf8, 0x02, 0x1e, 0x7c, - 0x02, 0x05, 0xc1, 0x97, 0x11, 0x5f, 0xc1, 0x07, 0x91, 0xe9, 0xc9, 0x8c, 0x4e, 0x92, 0x59, 0x37, - 0xd7, 0xfa, 0xbe, 0xfa, 0xea, 0xab, 0xfa, 0x66, 0x5a, 0xec, 0x0d, 0x46, 0xa7, 0x0c, 0x18, 0x8d, - 0xa4, 0x03, 0x3b, 0x45, 0x0d, 0x52, 0x2b, 0x7d, 0x02, 0x61, 0x62, 0x89, 0x29, 0xb8, 0x96, 0xa3, - 0xe1, 0x02, 0x6d, 0xee, 0xc5, 0x44, 0xf1, 0x08, 0xa4, 0x4a, 0x50, 0x2a, 0x63, 0x88, 0x15, 0x23, - 0x19, 0x97, 0xf1, 0x9b, 0xcd, 0x42, 0x4d, 0x93, 0x05, 0x09, 0xd6, 0x92, 0xcd, 0xb1, 0x5b, 0x65, - 0x0c, 0x23, 0x30, 0x8c, 0x03, 0x04, 0x9b, 0xe1, 0xad, 0x9f, 0x35, 0xb1, 0xdb, 0x99, 0xa2, 0xe6, - 0x17, 0xa9, 0x81, 0x2e, 0xbc, 0x9f, 0x80, 0xe3, 0xe0, 0xad, 0xb8, 0x31, 0x23, 0x3b, 0x1c, 0x8c, - 0x68, 0xd6, 0x83, 0x0f, 0xa0, 0x27, 0xe9, 0xb8, 0x1e, 0x46, 0x37, 0x6b, 0xb7, 0x6b, 0x0f, 0x2e, - 0xef, 0xb7, 0xc3, 0xc2, 0x61, 0xaa, 0x1a, 0xbe, 0x59, 0x70, 0x3b, 0x39, 0xf5, 0x55, 0x31, 0xe6, - 0xe5, 0xa5, 0xee, 0xf5, 0xd9, 0x2a, 0x1c, 0x1c, 0x89, 0x5d, 0x56, 0x6e, 0x58, 0x56, 0xaf, 0x7b, - 0xf5, 0xfb, 0x4b, 0xea, 0x47, 0xca, 0x0d, 0xd7, 0x2b, 0x5f, 0xe5, 0x32, 0x74, 0xd0, 0x10, 0x75, - 0x8c, 0x5a, 0x87, 0x22, 0xf8, 0x77, 0x25, 0x97, 0x90, 0x71, 0x10, 0x3c, 0x17, 0x3b, 0xd9, 0x65, - 0x16, 0x4b, 0xdc, 0x5b, 0x1a, 0xe3, 0xd9, 0xbe, 0x0f, 0xc9, 0x74, 0x52, 0xe6, 0x6b, 0x74, 0xdc, - 0x5d, 0x34, 0xed, 0x7f, 0xd9, 0x16, 0x57, 0x3c, 0xe5, 0x30, 0xcb, 0x24, 0xf8, 0xb4, 0x2d, 0xc4, - 0xdf, 0x31, 0xc1, 0x9d, 0x70, 0x39, 0xb5, 0x70, 0xe5, 0xae, 0xcd, 0xbb, 0xe7, 0x93, 0x32, 0xa7, - 0xad, 0x1f, 0x8d, 0x8f, 0xbf, 0x7e, 0x7f, 0xae, 0x7f, 0x6d, 0xb4, 0xd9, 0x27, 0x3e, 0x7d, 0x94, - 0x7d, 0x1e, 0xb2, 0x38, 0x96, 0x93, 0x67, 0x6b, 0xf3, 0x49, 0x43, 0x7d, 0x07, 0x9a, 0xe7, 0x55, - 0x78, 0x44, 0x63, 0x85, 0xa6, 0x12, 0x36, 0x6a, 0x0c, 0xf3, 0x67, 0xb5, 0xf6, 0xf1, 0xf7, 0xad, - 0xf6, 0xb7, 0xad, 0xf2, 0xf0, 0x72, 0x5c, 0x4e, 0x9e, 0xad, 0xe4, 0x17, 0x1a, 0x8a, 0xa0, 0x5c, - 0xa9, 0x30, 0xb7, 0x71, 0x6b, 0xe1, 0x7b, 0xe3, 0x4e, 0xbf, 0xd2, 0xc5, 0xfa, 0x7c, 0x05, 0xa3, - 0xb5, 0x6c, 0x5f, 0xf9, 0xcf, 0x0e, 0x39, 0xe7, 0x1c, 0xb3, 0x39, 0xa5, 0xd2, 0x55, 0x4e, 0x98, - 0x82, 0x75, 0x48, 0xeb, 0x45, 0x2c, 0xb0, 0x3d, 0xed, 0x29, 0x66, 0x18, 0x27, 0x3c, 0x3f, 0x78, - 0x7a, 0xfc, 0x24, 0x46, 0x3e, 0x99, 0xf4, 0x43, 0x4d, 0x63, 0xe9, 0x3f, 0x30, 0xb2, 0xb1, 0x2c, - 0x7e, 0xfc, 0x18, 0x8c, 0x4c, 0xfa, 0x0f, 0x63, 0x92, 0xcb, 0xaf, 0x4e, 0x7f, 0xc7, 0x3f, 0x02, - 0x8f, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0xf9, 0x73, 0x21, 0xfd, 0x90, 0x04, 0x00, 0x00, + 0x10, 0x26, 0x46, 0x72, 0x68, 0x05, 0x75, 0x16, 0x51, 0x86, 0x65, 0x91, 0xa0, 0x22, 0x41, 0xa7, + 0x75, 0x3d, 0x88, 0x07, 0x2f, 0x4a, 0x0e, 0x82, 0xa7, 0xac, 0x20, 0x78, 0x30, 0x74, 0x7a, 0x2a, + 0xb3, 0x6d, 0x92, 0xae, 0xb1, 0xbb, 0x32, 0x71, 0xd9, 0xcd, 0xc5, 0x57, 0xf0, 0x01, 0xbc, 0x88, + 0xe0, 0xcd, 0x77, 0xf1, 0x15, 0x04, 0x5f, 0x43, 0xa6, 0xe7, 0x07, 0x67, 0x76, 0x5a, 0x77, 0xaf, + 0xfd, 0x7d, 0xf5, 0xd5, 0x57, 0xf5, 0x15, 0xcd, 0x76, 0xe7, 0xcb, 0x23, 0x02, 0x15, 0x2f, 0xb9, + 0x05, 0x93, 0x29, 0x09, 0x5c, 0x0a, 0x79, 0x08, 0x51, 0x6a, 0x90, 0x30, 0xb8, 0x5a, 0xa1, 0x51, + 0x89, 0x86, 0xbb, 0x09, 0x62, 0xb2, 0x04, 0x2e, 0x52, 0xc5, 0x85, 0xd6, 0x48, 0x82, 0x14, 0x6a, + 0x5b, 0xf0, 0xc3, 0xb0, 0x56, 0x93, 0x68, 0x80, 0x83, 0x31, 0x68, 0x2a, 0x6c, 0xaf, 0x89, 0xa9, + 0x18, 0x34, 0xa9, 0xb9, 0x02, 0x53, 0xe0, 0xc3, 0x13, 0x16, 0x8e, 0x33, 0x25, 0x69, 0xfc, 0x11, + 0xe4, 0x3a, 0x17, 0x7d, 0x91, 0x1b, 0x99, 0xc0, 0x87, 0x35, 0x58, 0x0a, 0xde, 0xb1, 0xeb, 0x1b, + 0x34, 0x8b, 0xf9, 0x12, 0x37, 0x53, 0xa8, 0x18, 0x53, 0x15, 0xdf, 0xec, 0xdd, 0xea, 0xdd, 0xbb, + 0xb4, 0x3f, 0x8a, 0x6a, 0xa7, 0xb9, 0x7a, 0xf4, 0xa6, 0xe4, 0xd6, 0x62, 0x2f, 0xeb, 0x76, 0x93, + 0x9d, 0xcd, 0x69, 0x70, 0x48, 0x6c, 0xcf, 0x75, 0x7f, 0x2d, 0xec, 0xa2, 0xdb, 0xc1, 0x84, 0x5d, + 0x23, 0x61, 0x17, 0x5d, 0xdd, 0xef, 0xb6, 0xba, 0x37, 0x44, 0xfe, 0xea, 0x7c, 0x85, 0x9a, 0xc0, + 0xf0, 0x80, 0x05, 0xae, 0x6b, 0xd9, 0xc8, 0xa6, 0xa8, 0x2d, 0x04, 0xcf, 0xd8, 0xa0, 0xd8, 0x5c, + 0x29, 0x7f, 0xa7, 0x25, 0xef, 0xd8, 0xae, 0x4e, 0xa1, 0x1e, 0xe7, 0xcc, 0x57, 0xca, 0xd2, 0xa4, + 0x2c, 0xda, 0xff, 0x32, 0x60, 0x97, 0x1d, 0xe5, 0xa0, 0xc8, 0x2c, 0xf8, 0xdd, 0x63, 0x3b, 0x1d, + 0xab, 0x0d, 0xee, 0x47, 0xed, 0x78, 0x23, 0x7f, 0x02, 0xe1, 0x6d, 0x0f, 0xbb, 0xe1, 0x7d, 0x78, + 0xf2, 0xe9, 0xe7, 0xaf, 0xcf, 0x17, 0xb2, 0x11, 0xb9, 0x0b, 0xc9, 0x1e, 0x15, 0xe7, 0xc4, 0xeb, + 0xa5, 0x59, 0x7e, 0xdc, 0x99, 0x63, 0x7e, 0x04, 0xef, 0x41, 0xd2, 0xd6, 0x87, 0xc7, 0xb8, 0x12, + 0x4a, 0x7b, 0x61, 0x2d, 0x56, 0xb0, 0x0d, 0xbe, 0x5e, 0x64, 0x37, 0x3c, 0x31, 0x06, 0x0f, 0x3d, + 0xfe, 0xbd, 0x89, 0x9f, 0x71, 0xe2, 0x1f, 0x7d, 0x37, 0xf2, 0xf7, 0xfe, 0xe8, 0x5b, 0xbf, 0x39, + 0x74, 0xf3, 0x5c, 0x2c, 0x3f, 0x3e, 0x75, 0x3f, 0x91, 0xc6, 0x18, 0x9a, 0x2f, 0x9e, 0xa5, 0x9c, + 0xbb, 0xb4, 0xde, 0xd7, 0xb9, 0x2b, 0xdd, 0x2a, 0xcf, 0x56, 0xe7, 0x5e, 0x54, 0xdc, 0xc9, 0x76, + 0x2f, 0xff, 0x99, 0xa1, 0xe2, 0xfc, 0xc3, 0x6c, 0x45, 0xf1, 0xba, 0xaa, 0x08, 0x19, 0x18, 0xab, + 0xb0, 0x5b, 0xc4, 0x00, 0x99, 0xa3, 0xa9, 0x20, 0x82, 0x55, 0x4a, 0xdb, 0xe7, 0x4f, 0xdf, 0x3e, + 0x49, 0x14, 0x1d, 0xae, 0x67, 0x91, 0xc4, 0x15, 0x77, 0x21, 0xa3, 0x49, 0x78, 0xfd, 0x41, 0x25, + 0xa0, 0x79, 0x3a, 0x7b, 0x90, 0x20, 0x6f, 0xff, 0x8e, 0xb3, 0x81, 0xfb, 0xac, 0x1e, 0xff, 0x09, + 0x00, 0x00, 0xff, 0xff, 0xf4, 0x3a, 0xd2, 0x67, 0x38, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -200,8 +200,10 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type CacheServiceClient interface { - // Evicts all cached data for the referenced :ref:`ref_flyteidl.admin.Execution` or :ref:`ref_flyteidl.admin.TaskExecution`. - EvictCache(ctx context.Context, in *EvictCacheRequest, opts ...grpc.CallOption) (*EvictCacheResponse, error) + // Evicts all cached data for the referenced :ref:`ref_flyteidl.admin.Execution`. + EvictExecutionCache(ctx context.Context, in *EvictExecutionCacheRequest, opts ...grpc.CallOption) (*EvictCacheResponse, error) + // Evicts all cached data for the referenced :ref:`ref_flyteidl.admin.TaskExecution`. + EvictTaskExecutionCache(ctx context.Context, in *EvictTaskExecutionCacheRequest, opts ...grpc.CallOption) (*EvictCacheResponse, error) } type cacheServiceClient struct { @@ -212,9 +214,18 @@ func NewCacheServiceClient(cc *grpc.ClientConn) CacheServiceClient { return &cacheServiceClient{cc} } -func (c *cacheServiceClient) EvictCache(ctx context.Context, in *EvictCacheRequest, opts ...grpc.CallOption) (*EvictCacheResponse, error) { +func (c *cacheServiceClient) EvictExecutionCache(ctx context.Context, in *EvictExecutionCacheRequest, opts ...grpc.CallOption) (*EvictCacheResponse, error) { + out := new(EvictCacheResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.CacheService/EvictExecutionCache", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cacheServiceClient) EvictTaskExecutionCache(ctx context.Context, in *EvictTaskExecutionCacheRequest, opts ...grpc.CallOption) (*EvictCacheResponse, error) { out := new(EvictCacheResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.CacheService/EvictCache", in, out, opts...) + err := c.cc.Invoke(ctx, "/flyteidl.service.CacheService/EvictTaskExecutionCache", in, out, opts...) if err != nil { return nil, err } @@ -223,36 +234,59 @@ func (c *cacheServiceClient) EvictCache(ctx context.Context, in *EvictCacheReque // CacheServiceServer is the server API for CacheService service. type CacheServiceServer interface { - // Evicts all cached data for the referenced :ref:`ref_flyteidl.admin.Execution` or :ref:`ref_flyteidl.admin.TaskExecution`. - EvictCache(context.Context, *EvictCacheRequest) (*EvictCacheResponse, error) + // Evicts all cached data for the referenced :ref:`ref_flyteidl.admin.Execution`. + EvictExecutionCache(context.Context, *EvictExecutionCacheRequest) (*EvictCacheResponse, error) + // Evicts all cached data for the referenced :ref:`ref_flyteidl.admin.TaskExecution`. + EvictTaskExecutionCache(context.Context, *EvictTaskExecutionCacheRequest) (*EvictCacheResponse, error) } // UnimplementedCacheServiceServer can be embedded to have forward compatible implementations. type UnimplementedCacheServiceServer struct { } -func (*UnimplementedCacheServiceServer) EvictCache(ctx context.Context, req *EvictCacheRequest) (*EvictCacheResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method EvictCache not implemented") +func (*UnimplementedCacheServiceServer) EvictExecutionCache(ctx context.Context, req *EvictExecutionCacheRequest) (*EvictCacheResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method EvictExecutionCache not implemented") +} +func (*UnimplementedCacheServiceServer) EvictTaskExecutionCache(ctx context.Context, req *EvictTaskExecutionCacheRequest) (*EvictCacheResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method EvictTaskExecutionCache not implemented") } func RegisterCacheServiceServer(s *grpc.Server, srv CacheServiceServer) { s.RegisterService(&_CacheService_serviceDesc, srv) } -func _CacheService_EvictCache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EvictCacheRequest) +func _CacheService_EvictExecutionCache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EvictExecutionCacheRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CacheServiceServer).EvictExecutionCache(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.CacheService/EvictExecutionCache", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CacheServiceServer).EvictExecutionCache(ctx, req.(*EvictExecutionCacheRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CacheService_EvictTaskExecutionCache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EvictTaskExecutionCacheRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(CacheServiceServer).EvictCache(ctx, in) + return srv.(CacheServiceServer).EvictTaskExecutionCache(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flyteidl.service.CacheService/EvictCache", + FullMethod: "/flyteidl.service.CacheService/EvictTaskExecutionCache", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CacheServiceServer).EvictCache(ctx, req.(*EvictCacheRequest)) + return srv.(CacheServiceServer).EvictTaskExecutionCache(ctx, req.(*EvictTaskExecutionCacheRequest)) } return interceptor(ctx, in, info, handler) } @@ -262,8 +296,12 @@ var _CacheService_serviceDesc = grpc.ServiceDesc{ HandlerType: (*CacheServiceServer)(nil), Methods: []grpc.MethodDesc{ { - MethodName: "EvictCache", - Handler: _CacheService_EvictCache_Handler, + MethodName: "EvictExecutionCache", + Handler: _CacheService_EvictExecutionCache_Handler, + }, + { + MethodName: "EvictTaskExecutionCache", + Handler: _CacheService_EvictTaskExecutionCache_Handler, }, }, Streams: []grpc.StreamDesc{}, diff --git a/gen/pb-go/flyteidl/service/cache.pb.gw.go b/gen/pb-go/flyteidl/service/cache.pb.gw.go index c5cf17516..fdf0495d8 100644 --- a/gen/pb-go/flyteidl/service/cache.pb.gw.go +++ b/gen/pb-go/flyteidl/service/cache.pb.gw.go @@ -28,17 +28,13 @@ var _ status.Status var _ = runtime.String var _ = utilities.NewDoubleArray -func request_CacheService_EvictCache_0(ctx context.Context, marshaler runtime.Marshaler, client CacheServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq EvictCacheRequest - var metadata runtime.ServerMetadata +var ( + filter_CacheService_EvictExecutionCache_0 = &utilities.DoubleArray{Encoding: map[string]int{"workflow_execution_id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} +) - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } +func request_CacheService_EvictExecutionCache_0(ctx context.Context, marshaler runtime.Marshaler, client CacheServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EvictExecutionCacheRequest + var metadata runtime.ServerMetadata var ( val string @@ -80,17 +76,24 @@ func request_CacheService_EvictCache_0(ctx context.Context, marshaler runtime.Ma return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.name", err) } - msg, err := client.EvictCache(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CacheService_EvictExecutionCache_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.EvictExecutionCache(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } var ( - filter_CacheService_EvictCache_1 = &utilities.DoubleArray{Encoding: map[string]int{"task_execution_id": 0, "node_execution_id": 1, "execution_id": 2, "project": 3, "domain": 4, "name": 5, "node_id": 6, "task_id": 7, "version": 8, "retry_attempt": 9}, Base: []int{1, 20, 1, 1, 1, 4, 3, 2, 7, 5, 3, 0, 0, 0, 9, 6, 0, 15, 9, 0, 17, 12, 0, 19, 15, 0, 19, 18, 0, 20, 0}, Check: []int{0, 1, 2, 3, 4, 2, 6, 7, 2, 9, 10, 5, 8, 11, 2, 15, 16, 2, 18, 19, 2, 21, 22, 2, 24, 25, 2, 27, 28, 2, 30}} + filter_CacheService_EvictTaskExecutionCache_0 = &utilities.DoubleArray{Encoding: map[string]int{"task_execution_id": 0, "node_execution_id": 1, "execution_id": 2, "project": 3, "domain": 4, "name": 5, "node_id": 6, "task_id": 7, "version": 8, "retry_attempt": 9}, Base: []int{1, 20, 1, 1, 1, 4, 3, 2, 7, 5, 3, 0, 0, 0, 9, 6, 0, 15, 9, 0, 17, 12, 0, 19, 15, 0, 19, 18, 0, 20, 0}, Check: []int{0, 1, 2, 3, 4, 2, 6, 7, 2, 9, 10, 5, 8, 11, 2, 15, 16, 2, 18, 19, 2, 21, 22, 2, 24, 25, 2, 27, 28, 2, 30}} ) -func request_CacheService_EvictCache_1(ctx context.Context, marshaler runtime.Marshaler, client CacheServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq EvictCacheRequest +func request_CacheService_EvictTaskExecutionCache_0(ctx context.Context, marshaler runtime.Marshaler, client CacheServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EvictTaskExecutionCacheRequest var metadata runtime.ServerMetadata var ( @@ -202,11 +205,11 @@ func request_CacheService_EvictCache_1(ctx context.Context, marshaler runtime.Ma if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CacheService_EvictCache_1); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CacheService_EvictTaskExecutionCache_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.EvictCache(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.EvictTaskExecutionCache(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -249,7 +252,7 @@ func RegisterCacheServiceHandler(ctx context.Context, mux *runtime.ServeMux, con // "CacheServiceClient" to call the correct interceptors. func RegisterCacheServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CacheServiceClient) error { - mux.Handle("DELETE", pattern_CacheService_EvictCache_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("DELETE", pattern_CacheService_EvictExecutionCache_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -258,18 +261,18 @@ func RegisterCacheServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_CacheService_EvictCache_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_CacheService_EvictExecutionCache_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_CacheService_EvictCache_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_CacheService_EvictExecutionCache_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("DELETE", pattern_CacheService_EvictCache_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("DELETE", pattern_CacheService_EvictTaskExecutionCache_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -278,14 +281,14 @@ func RegisterCacheServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_CacheService_EvictCache_1(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_CacheService_EvictTaskExecutionCache_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_CacheService_EvictCache_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_CacheService_EvictTaskExecutionCache_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -293,13 +296,13 @@ func RegisterCacheServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu } var ( - pattern_CacheService_EvictCache_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "cache", "executions", "workflow_execution_id.project", "workflow_execution_id.domain", "workflow_execution_id.name"}, "")) + pattern_CacheService_EvictExecutionCache_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "cache", "executions", "workflow_execution_id.project", "workflow_execution_id.domain", "workflow_execution_id.name"}, "")) - pattern_CacheService_EvictCache_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7, 1, 0, 4, 1, 5, 8, 1, 0, 4, 1, 5, 9, 1, 0, 4, 1, 5, 10, 1, 0, 4, 1, 5, 11, 1, 0, 4, 1, 5, 12}, []string{"api", "v1", "cache", "task_executions", "task_execution_id.node_execution_id.execution_id.project", "task_execution_id.node_execution_id.execution_id.domain", "task_execution_id.node_execution_id.execution_id.name", "task_execution_id.node_execution_id.node_id", "task_execution_id.task_id.project", "task_execution_id.task_id.domain", "task_execution_id.task_id.name", "task_execution_id.task_id.version", "task_execution_id.retry_attempt"}, "")) + pattern_CacheService_EvictTaskExecutionCache_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7, 1, 0, 4, 1, 5, 8, 1, 0, 4, 1, 5, 9, 1, 0, 4, 1, 5, 10, 1, 0, 4, 1, 5, 11, 1, 0, 4, 1, 5, 12}, []string{"api", "v1", "cache", "task_executions", "task_execution_id.node_execution_id.execution_id.project", "task_execution_id.node_execution_id.execution_id.domain", "task_execution_id.node_execution_id.execution_id.name", "task_execution_id.node_execution_id.node_id", "task_execution_id.task_id.project", "task_execution_id.task_id.domain", "task_execution_id.task_id.name", "task_execution_id.task_id.version", "task_execution_id.retry_attempt"}, "")) ) var ( - forward_CacheService_EvictCache_0 = runtime.ForwardResponseMessage + forward_CacheService_EvictExecutionCache_0 = runtime.ForwardResponseMessage - forward_CacheService_EvictCache_1 = runtime.ForwardResponseMessage + forward_CacheService_EvictTaskExecutionCache_0 = runtime.ForwardResponseMessage ) diff --git a/gen/pb-go/flyteidl/service/cache.swagger.json b/gen/pb-go/flyteidl/service/cache.swagger.json index 764d1d382..b2aa09e73 100644 --- a/gen/pb-go/flyteidl/service/cache.swagger.json +++ b/gen/pb-go/flyteidl/service/cache.swagger.json @@ -17,8 +17,8 @@ "paths": { "/api/v1/cache/executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}": { "delete": { - "summary": "Evicts all cached data for the referenced :ref:`ref_flyteidl.admin.Execution` or :ref:`ref_flyteidl.admin.TaskExecution`.", - "operationId": "EvictCache", + "summary": "Evicts all cached data for the referenced :ref:`ref_flyteidl.admin.Execution`.", + "operationId": "EvictExecutionCache", "responses": { "200": { "description": "A successful response.", @@ -48,14 +48,6 @@ "in": "path", "required": true, "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/serviceEvictCacheRequest" - } } ], "tags": [ @@ -65,8 +57,8 @@ }, "/api/v1/cache/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}": { "delete": { - "summary": "Evicts all cached data for the referenced :ref:`ref_flyteidl.admin.Execution` or :ref:`ref_flyteidl.admin.TaskExecution`.", - "operationId": "EvictCache2", + "summary": "Evicts all cached data for the referenced :ref:`ref_flyteidl.admin.TaskExecution`.", + "operationId": "EvictTaskExecutionCache", "responses": { "200": { "description": "A successful response.", @@ -164,9 +156,14 @@ "CacheEvictionErrorCode": { "type": "string", "enum": [ - "UNKNOWN" + "INTERNAL", + "RESERVATION_NOT_ACQUIRED", + "DATABASE_UPDATE_FAILED", + "ARTIFACT_DELETE_FAILED", + "RESERVATION_NOT_RELEASED" ], - "default": "UNKNOWN" + "default": "INTERNAL", + "description": "Defines codes for distinguishing between errors encountered during cache eviction.\n\n - INTERNAL: Indicates a generic internal error occurred.\n - RESERVATION_NOT_ACQUIRED: Indicates no reservation could be acquired before deleting an artifact.\n - DATABASE_UPDATE_FAILED: Indicates updating the database entry related to the node execution failed.\n - ARTIFACT_DELETE_FAILED: Indicates deleting the artifact from datacatalog failed.\n - RESERVATION_NOT_RELEASED: Indicates the reservation previously acquired could not be released for an artifact." }, "coreCacheEvictionError": { "type": "object", @@ -290,19 +287,6 @@ }, "title": "Encapsulation of fields that uniquely identifies a Flyte workflow execution" }, - "serviceEvictCacheRequest": { - "type": "object", - "properties": { - "workflow_execution_id": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier", - "description": "Identifier of :ref:`ref_flyteidl.admin.Execution` to evict cache for." - }, - "task_execution_id": { - "$ref": "#/definitions/coreTaskExecutionIdentifier", - "description": "Identifier of :ref:`ref_flyteidl.admin.TaskExecution` to evict cache for." - } - } - }, "serviceEvictCacheResponse": { "type": "object", "properties": { diff --git a/gen/pb-java/flyteidl/core/Errors.java b/gen/pb-java/flyteidl/core/Errors.java index 54d6aa45d..a4a60b03e 100644 --- a/gen/pb-java/flyteidl/core/Errors.java +++ b/gen/pb-java/flyteidl/core/Errors.java @@ -2067,21 +2067,97 @@ private CacheEvictionError( } /** + *
+     * Defines codes for distinguishing between errors encountered during cache eviction.
+     * 
+ * * Protobuf enum {@code flyteidl.core.CacheEvictionError.Code} */ public enum Code implements com.google.protobuf.ProtocolMessageEnum { /** - * UNKNOWN = 0; + *
+       * Indicates a generic internal error occurred.
+       * 
+ * + * INTERNAL = 0; */ - UNKNOWN(0), + INTERNAL(0), + /** + *
+       * Indicates no reservation could be acquired before deleting an artifact.
+       * 
+ * + * RESERVATION_NOT_ACQUIRED = 1; + */ + RESERVATION_NOT_ACQUIRED(1), + /** + *
+       * Indicates updating the database entry related to the node execution failed.
+       * 
+ * + * DATABASE_UPDATE_FAILED = 2; + */ + DATABASE_UPDATE_FAILED(2), + /** + *
+       * Indicates deleting the artifact from datacatalog failed.
+       * 
+ * + * ARTIFACT_DELETE_FAILED = 3; + */ + ARTIFACT_DELETE_FAILED(3), + /** + *
+       * Indicates the reservation previously acquired could not be released for an artifact.
+       * 
+ * + * RESERVATION_NOT_RELEASED = 4; + */ + RESERVATION_NOT_RELEASED(4), UNRECOGNIZED(-1), ; /** - * UNKNOWN = 0; + *
+       * Indicates a generic internal error occurred.
+       * 
+ * + * INTERNAL = 0; + */ + public static final int INTERNAL_VALUE = 0; + /** + *
+       * Indicates no reservation could be acquired before deleting an artifact.
+       * 
+ * + * RESERVATION_NOT_ACQUIRED = 1; + */ + public static final int RESERVATION_NOT_ACQUIRED_VALUE = 1; + /** + *
+       * Indicates updating the database entry related to the node execution failed.
+       * 
+ * + * DATABASE_UPDATE_FAILED = 2; + */ + public static final int DATABASE_UPDATE_FAILED_VALUE = 2; + /** + *
+       * Indicates deleting the artifact from datacatalog failed.
+       * 
+ * + * ARTIFACT_DELETE_FAILED = 3; + */ + public static final int ARTIFACT_DELETE_FAILED_VALUE = 3; + /** + *
+       * Indicates the reservation previously acquired could not be released for an artifact.
+       * 
+ * + * RESERVATION_NOT_RELEASED = 4; */ - public static final int UNKNOWN_VALUE = 0; + public static final int RESERVATION_NOT_RELEASED_VALUE = 4; public final int getNumber() { @@ -2102,7 +2178,11 @@ public static Code valueOf(int value) { public static Code forNumber(int value) { switch (value) { - case 0: return UNKNOWN; + case 0: return INTERNAL; + case 1: return RESERVATION_NOT_ACQUIRED; + case 2: return DATABASE_UPDATE_FAILED; + case 3: return ARTIFACT_DELETE_FAILED; + case 4: return RESERVATION_NOT_RELEASED; default: return null; } } @@ -2383,7 +2463,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (code_ != flyteidl.core.Errors.CacheEvictionError.Code.UNKNOWN.getNumber()) { + if (code_ != flyteidl.core.Errors.CacheEvictionError.Code.INTERNAL.getNumber()) { output.writeEnum(1, code_); } if (!getMessageBytes().isEmpty()) { @@ -2407,7 +2487,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ != flyteidl.core.Errors.CacheEvictionError.Code.UNKNOWN.getNumber()) { + if (code_ != flyteidl.core.Errors.CacheEvictionError.Code.INTERNAL.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, code_); } @@ -4335,7 +4415,7 @@ public flyteidl.core.Errors.CacheEvictionErrorList getDefaultInstanceForType() { "xecutionError.ErrorKind\",\n\004Kind\022\023\n\017NON_R" + "ECOVERABLE\020\000\022\017\n\013RECOVERABLE\020\001\"=\n\rErrorDo" + "cument\022,\n\005error\030\001 \001(\0132\035.flyteidl.core.Co" + - "ntainerError\"\317\002\n\022CacheEvictionError\0224\n\004c" + + "ntainerError\"\305\003\n\022CacheEvictionError\0224\n\004c" + "ode\030\001 \001(\0162&.flyteidl.core.CacheEvictionE" + "rror.Code\022\017\n\007message\030\002 \001(\t\022A\n\021node_execu" + "tion_id\030\003 \001(\0132&.flyteidl.core.NodeExecut" + @@ -4343,11 +4423,14 @@ public flyteidl.core.Errors.CacheEvictionErrorList getDefaultInstanceForType() { "2&.flyteidl.core.TaskExecutionIdentifier" + "H\000\022K\n\025workflow_execution_id\030\005 \001(\0132*.flyt" + "eidl.core.WorkflowExecutionIdentifierH\000\"" + - "\023\n\004Code\022\013\n\007UNKNOWN\020\000B\010\n\006source\"K\n\026CacheE" + - "victionErrorList\0221\n\006errors\030\001 \003(\0132!.flyte" + - "idl.core.CacheEvictionErrorB6Z4github.co" + - "m/flyteorg/flyteidl/gen/pb-go/flyteidl/c" + - "oreb\006proto3" + "\210\001\n\004Code\022\014\n\010INTERNAL\020\000\022\034\n\030RESERVATION_NO" + + "T_ACQUIRED\020\001\022\032\n\026DATABASE_UPDATE_FAILED\020\002" + + "\022\032\n\026ARTIFACT_DELETE_FAILED\020\003\022\034\n\030RESERVAT" + + "ION_NOT_RELEASED\020\004B\010\n\006source\"K\n\026CacheEvi" + + "ctionErrorList\0221\n\006errors\030\001 \003(\0132!.flyteid" + + "l.core.CacheEvictionErrorB6Z4github.com/" + + "flyteorg/flyteidl/gen/pb-go/flyteidl/cor" + + "eb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/gen/pb-java/flyteidl/service/Cache.java b/gen/pb-java/flyteidl/service/Cache.java index 17810fb4a..1d4012eba 100644 --- a/gen/pb-java/flyteidl/service/Cache.java +++ b/gen/pb-java/flyteidl/service/Cache.java @@ -14,8 +14,8 @@ public static void registerAllExtensions( registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } - public interface EvictCacheRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.service.EvictCacheRequest) + public interface EvictExecutionCacheRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.service.EvictExecutionCacheRequest) com.google.protobuf.MessageOrBuilder { /** @@ -42,13 +42,654 @@ public interface EvictCacheRequestOrBuilder extends * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; */ flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.service.EvictExecutionCacheRequest} + */ + public static final class EvictExecutionCacheRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.service.EvictExecutionCacheRequest) + EvictExecutionCacheRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use EvictExecutionCacheRequest.newBuilder() to construct. + private EvictExecutionCacheRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EvictExecutionCacheRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EvictExecutionCacheRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (workflowExecutionId_ != null) { + subBuilder = workflowExecutionId_.toBuilder(); + } + workflowExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workflowExecutionId_); + workflowExecutionId_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Cache.internal_static_flyteidl_service_EvictExecutionCacheRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Cache.internal_static_flyteidl_service_EvictExecutionCacheRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Cache.EvictExecutionCacheRequest.class, flyteidl.service.Cache.EvictExecutionCacheRequest.Builder.class); + } + + public static final int WORKFLOW_EXECUTION_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier workflowExecutionId_; + /** + *
+     * Identifier of :ref:`ref_flyteidl.admin.Execution` to evict cache for.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public boolean hasWorkflowExecutionId() { + return workflowExecutionId_ != null; + } + /** + *
+     * Identifier of :ref:`ref_flyteidl.admin.Execution` to evict cache for.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId() { + return workflowExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecutionId_; + } + /** + *
+     * Identifier of :ref:`ref_flyteidl.admin.Execution` to evict cache for.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder() { + return getWorkflowExecutionId(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (workflowExecutionId_ != null) { + output.writeMessage(1, getWorkflowExecutionId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workflowExecutionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkflowExecutionId()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.service.Cache.EvictExecutionCacheRequest)) { + return super.equals(obj); + } + flyteidl.service.Cache.EvictExecutionCacheRequest other = (flyteidl.service.Cache.EvictExecutionCacheRequest) obj; + + if (hasWorkflowExecutionId() != other.hasWorkflowExecutionId()) return false; + if (hasWorkflowExecutionId()) { + if (!getWorkflowExecutionId() + .equals(other.getWorkflowExecutionId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasWorkflowExecutionId()) { + hash = (37 * hash) + WORKFLOW_EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowExecutionId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.service.Cache.EvictExecutionCacheRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Cache.EvictExecutionCacheRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Cache.EvictExecutionCacheRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Cache.EvictExecutionCacheRequest 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.Cache.EvictExecutionCacheRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Cache.EvictExecutionCacheRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Cache.EvictExecutionCacheRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Cache.EvictExecutionCacheRequest 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.Cache.EvictExecutionCacheRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.service.Cache.EvictExecutionCacheRequest 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.Cache.EvictExecutionCacheRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Cache.EvictExecutionCacheRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.service.Cache.EvictExecutionCacheRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.service.EvictExecutionCacheRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.service.EvictExecutionCacheRequest) + flyteidl.service.Cache.EvictExecutionCacheRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Cache.internal_static_flyteidl_service_EvictExecutionCacheRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Cache.internal_static_flyteidl_service_EvictExecutionCacheRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Cache.EvictExecutionCacheRequest.class, flyteidl.service.Cache.EvictExecutionCacheRequest.Builder.class); + } + + // Construct using flyteidl.service.Cache.EvictExecutionCacheRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (workflowExecutionIdBuilder_ == null) { + workflowExecutionId_ = null; + } else { + workflowExecutionId_ = null; + workflowExecutionIdBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.service.Cache.internal_static_flyteidl_service_EvictExecutionCacheRequest_descriptor; + } + + @java.lang.Override + public flyteidl.service.Cache.EvictExecutionCacheRequest getDefaultInstanceForType() { + return flyteidl.service.Cache.EvictExecutionCacheRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.service.Cache.EvictExecutionCacheRequest build() { + flyteidl.service.Cache.EvictExecutionCacheRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.service.Cache.EvictExecutionCacheRequest buildPartial() { + flyteidl.service.Cache.EvictExecutionCacheRequest result = new flyteidl.service.Cache.EvictExecutionCacheRequest(this); + if (workflowExecutionIdBuilder_ == null) { + result.workflowExecutionId_ = workflowExecutionId_; + } else { + result.workflowExecutionId_ = workflowExecutionIdBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.service.Cache.EvictExecutionCacheRequest) { + return mergeFrom((flyteidl.service.Cache.EvictExecutionCacheRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.service.Cache.EvictExecutionCacheRequest other) { + if (other == flyteidl.service.Cache.EvictExecutionCacheRequest.getDefaultInstance()) return this; + if (other.hasWorkflowExecutionId()) { + mergeWorkflowExecutionId(other.getWorkflowExecutionId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.service.Cache.EvictExecutionCacheRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.service.Cache.EvictExecutionCacheRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier workflowExecutionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> workflowExecutionIdBuilder_; + /** + *
+       * Identifier of :ref:`ref_flyteidl.admin.Execution` to evict cache for.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public boolean hasWorkflowExecutionId() { + return workflowExecutionIdBuilder_ != null || workflowExecutionId_ != null; + } + /** + *
+       * Identifier of :ref:`ref_flyteidl.admin.Execution` to evict cache for.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId() { + if (workflowExecutionIdBuilder_ == null) { + return workflowExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecutionId_; + } else { + return workflowExecutionIdBuilder_.getMessage(); + } + } + /** + *
+       * Identifier of :ref:`ref_flyteidl.admin.Execution` to evict cache for.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public Builder setWorkflowExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (workflowExecutionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workflowExecutionId_ = value; + onChanged(); + } else { + workflowExecutionIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Identifier of :ref:`ref_flyteidl.admin.Execution` to evict cache for.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public Builder setWorkflowExecutionId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (workflowExecutionIdBuilder_ == null) { + workflowExecutionId_ = builderForValue.build(); + onChanged(); + } else { + workflowExecutionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Identifier of :ref:`ref_flyteidl.admin.Execution` to evict cache for.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public Builder mergeWorkflowExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (workflowExecutionIdBuilder_ == null) { + if (workflowExecutionId_ != null) { + workflowExecutionId_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(workflowExecutionId_).mergeFrom(value).buildPartial(); + } else { + workflowExecutionId_ = value; + } + onChanged(); + } else { + workflowExecutionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Identifier of :ref:`ref_flyteidl.admin.Execution` to evict cache for.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public Builder clearWorkflowExecutionId() { + if (workflowExecutionIdBuilder_ == null) { + workflowExecutionId_ = null; + onChanged(); + } else { + workflowExecutionId_ = null; + workflowExecutionIdBuilder_ = null; + } + + return this; + } + /** + *
+       * Identifier of :ref:`ref_flyteidl.admin.Execution` to evict cache for.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getWorkflowExecutionIdBuilder() { + + onChanged(); + return getWorkflowExecutionIdFieldBuilder().getBuilder(); + } + /** + *
+       * Identifier of :ref:`ref_flyteidl.admin.Execution` to evict cache for.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder() { + if (workflowExecutionIdBuilder_ != null) { + return workflowExecutionIdBuilder_.getMessageOrBuilder(); + } else { + return workflowExecutionId_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecutionId_; + } + } + /** + *
+       * Identifier of :ref:`ref_flyteidl.admin.Execution` to evict cache for.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getWorkflowExecutionIdFieldBuilder() { + if (workflowExecutionIdBuilder_ == null) { + workflowExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getWorkflowExecutionId(), + getParentForChildren(), + isClean()); + workflowExecutionId_ = null; + } + return workflowExecutionIdBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.service.EvictExecutionCacheRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.service.EvictExecutionCacheRequest) + private static final flyteidl.service.Cache.EvictExecutionCacheRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.service.Cache.EvictExecutionCacheRequest(); + } + + public static flyteidl.service.Cache.EvictExecutionCacheRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvictExecutionCacheRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EvictExecutionCacheRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.service.Cache.EvictExecutionCacheRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EvictTaskExecutionCacheRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.service.EvictTaskExecutionCacheRequest) + com.google.protobuf.MessageOrBuilder { /** *
      * Identifier of :ref:`ref_flyteidl.admin.TaskExecution` to evict cache for.
      * 
* - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 2; + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; */ boolean hasTaskExecutionId(); /** @@ -56,7 +697,7 @@ public interface EvictCacheRequestOrBuilder extends * Identifier of :ref:`ref_flyteidl.admin.TaskExecution` to evict cache for. * * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 2; + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; */ flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecutionId(); /** @@ -64,25 +705,23 @@ public interface EvictCacheRequestOrBuilder extends * Identifier of :ref:`ref_flyteidl.admin.TaskExecution` to evict cache for. * * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 2; + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; */ flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionIdOrBuilder(); - - public flyteidl.service.Cache.EvictCacheRequest.IdCase getIdCase(); } /** - * Protobuf type {@code flyteidl.service.EvictCacheRequest} + * Protobuf type {@code flyteidl.service.EvictTaskExecutionCacheRequest} */ - public static final class EvictCacheRequest extends + public static final class EvictTaskExecutionCacheRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.service.EvictCacheRequest) - EvictCacheRequestOrBuilder { + // @@protoc_insertion_point(message_implements:flyteidl.service.EvictTaskExecutionCacheRequest) + EvictTaskExecutionCacheRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use EvictCacheRequest.newBuilder() to construct. - private EvictCacheRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use EvictTaskExecutionCacheRequest.newBuilder() to construct. + private EvictTaskExecutionCacheRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EvictCacheRequest() { + private EvictTaskExecutionCacheRequest() { } @java.lang.Override @@ -90,7 +729,7 @@ private EvictCacheRequest() { getUnknownFields() { return this.unknownFields; } - private EvictCacheRequest( + private EvictTaskExecutionCacheRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -110,31 +749,16 @@ private EvictCacheRequest( done = true; break; case 10: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (idCase_ == 1) { - subBuilder = ((flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) id_).toBuilder(); - } - id_ = - input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) id_); - id_ = subBuilder.buildPartial(); - } - idCase_ = 1; - break; - } - case 18: { flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; - if (idCase_ == 2) { - subBuilder = ((flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) id_).toBuilder(); + if (taskExecutionId_ != null) { + subBuilder = taskExecutionId_.toBuilder(); } - id_ = - input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); + taskExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) id_); - id_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(taskExecutionId_); + taskExecutionId_ = subBuilder.buildPartial(); } - idCase_ = 2; + break; } default: { @@ -158,129 +782,48 @@ private EvictCacheRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.service.Cache.internal_static_flyteidl_service_EvictCacheRequest_descriptor; + return flyteidl.service.Cache.internal_static_flyteidl_service_EvictTaskExecutionCacheRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.service.Cache.internal_static_flyteidl_service_EvictCacheRequest_fieldAccessorTable + return flyteidl.service.Cache.internal_static_flyteidl_service_EvictTaskExecutionCacheRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.service.Cache.EvictCacheRequest.class, flyteidl.service.Cache.EvictCacheRequest.Builder.class); - } - - private int idCase_ = 0; - private java.lang.Object id_; - public enum IdCase - implements com.google.protobuf.Internal.EnumLite { - WORKFLOW_EXECUTION_ID(1), - TASK_EXECUTION_ID(2), - ID_NOT_SET(0); - private final int value; - private IdCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static IdCase valueOf(int value) { - return forNumber(value); - } - - public static IdCase forNumber(int value) { - switch (value) { - case 1: return WORKFLOW_EXECUTION_ID; - case 2: return TASK_EXECUTION_ID; - case 0: return ID_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public IdCase - getIdCase() { - return IdCase.forNumber( - idCase_); - } - - public static final int WORKFLOW_EXECUTION_ID_FIELD_NUMBER = 1; - /** - *
-     * Identifier of :ref:`ref_flyteidl.admin.Execution` to evict cache for.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public boolean hasWorkflowExecutionId() { - return idCase_ == 1; - } - /** - *
-     * Identifier of :ref:`ref_flyteidl.admin.Execution` to evict cache for.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId() { - if (idCase_ == 1) { - return (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) id_; - } - return flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance(); - } - /** - *
-     * Identifier of :ref:`ref_flyteidl.admin.Execution` to evict cache for.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder() { - if (idCase_ == 1) { - return (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) id_; - } - return flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance(); + flyteidl.service.Cache.EvictTaskExecutionCacheRequest.class, flyteidl.service.Cache.EvictTaskExecutionCacheRequest.Builder.class); } - public static final int TASK_EXECUTION_ID_FIELD_NUMBER = 2; + public static final int TASK_EXECUTION_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier taskExecutionId_; /** *
      * Identifier of :ref:`ref_flyteidl.admin.TaskExecution` to evict cache for.
      * 
* - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 2; + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; */ public boolean hasTaskExecutionId() { - return idCase_ == 2; + return taskExecutionId_ != null; } /** *
      * Identifier of :ref:`ref_flyteidl.admin.TaskExecution` to evict cache for.
      * 
* - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 2; + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; */ public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecutionId() { - if (idCase_ == 2) { - return (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) id_; - } - return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); + return taskExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecutionId_; } /** *
      * Identifier of :ref:`ref_flyteidl.admin.TaskExecution` to evict cache for.
      * 
* - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 2; + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; */ public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionIdOrBuilder() { - if (idCase_ == 2) { - return (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) id_; - } - return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); + return getTaskExecutionId(); } private byte memoizedIsInitialized = -1; @@ -297,11 +840,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (idCase_ == 1) { - output.writeMessage(1, (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) id_); - } - if (idCase_ == 2) { - output.writeMessage(2, (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) id_); + if (taskExecutionId_ != null) { + output.writeMessage(1, getTaskExecutionId()); } unknownFields.writeTo(output); } @@ -312,13 +852,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (idCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) id_); - } - if (idCase_ == 2) { + if (taskExecutionId_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) id_); + .computeMessageSize(1, getTaskExecutionId()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -330,23 +866,15 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.service.Cache.EvictCacheRequest)) { + if (!(obj instanceof flyteidl.service.Cache.EvictTaskExecutionCacheRequest)) { return super.equals(obj); } - flyteidl.service.Cache.EvictCacheRequest other = (flyteidl.service.Cache.EvictCacheRequest) obj; - - if (!getIdCase().equals(other.getIdCase())) return false; - switch (idCase_) { - case 1: - if (!getWorkflowExecutionId() - .equals(other.getWorkflowExecutionId())) return false; - break; - case 2: - if (!getTaskExecutionId() - .equals(other.getTaskExecutionId())) return false; - break; - case 0: - default: + flyteidl.service.Cache.EvictTaskExecutionCacheRequest other = (flyteidl.service.Cache.EvictTaskExecutionCacheRequest) obj; + + if (hasTaskExecutionId() != other.hasTaskExecutionId()) return false; + if (hasTaskExecutionId()) { + if (!getTaskExecutionId() + .equals(other.getTaskExecutionId())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -359,86 +887,78 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - switch (idCase_) { - case 1: - hash = (37 * hash) + WORKFLOW_EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowExecutionId().hashCode(); - break; - case 2: - hash = (37 * hash) + TASK_EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getTaskExecutionId().hashCode(); - break; - case 0: - default: + if (hasTaskExecutionId()) { + hash = (37 * hash) + TASK_EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getTaskExecutionId().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static flyteidl.service.Cache.EvictCacheRequest parseFrom( + public static flyteidl.service.Cache.EvictTaskExecutionCacheRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.Cache.EvictCacheRequest parseFrom( + public static flyteidl.service.Cache.EvictTaskExecutionCacheRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.service.Cache.EvictCacheRequest parseFrom( + public static flyteidl.service.Cache.EvictTaskExecutionCacheRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.Cache.EvictCacheRequest parseFrom( + public static flyteidl.service.Cache.EvictTaskExecutionCacheRequest 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.Cache.EvictCacheRequest parseFrom(byte[] data) + public static flyteidl.service.Cache.EvictTaskExecutionCacheRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.service.Cache.EvictCacheRequest parseFrom( + public static flyteidl.service.Cache.EvictTaskExecutionCacheRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.service.Cache.EvictCacheRequest parseFrom(java.io.InputStream input) + public static flyteidl.service.Cache.EvictTaskExecutionCacheRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.service.Cache.EvictCacheRequest parseFrom( + public static flyteidl.service.Cache.EvictTaskExecutionCacheRequest 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.Cache.EvictCacheRequest parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.service.Cache.EvictTaskExecutionCacheRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.service.Cache.EvictCacheRequest parseDelimitedFrom( + public static flyteidl.service.Cache.EvictTaskExecutionCacheRequest 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.Cache.EvictCacheRequest parseFrom( + public static flyteidl.service.Cache.EvictTaskExecutionCacheRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.service.Cache.EvictCacheRequest parseFrom( + public static flyteidl.service.Cache.EvictTaskExecutionCacheRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -451,7 +971,7 @@ public static flyteidl.service.Cache.EvictCacheRequest parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.service.Cache.EvictCacheRequest prototype) { + public static Builder newBuilder(flyteidl.service.Cache.EvictTaskExecutionCacheRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -467,26 +987,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyteidl.service.EvictCacheRequest} + * Protobuf type {@code flyteidl.service.EvictTaskExecutionCacheRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.service.EvictCacheRequest) - flyteidl.service.Cache.EvictCacheRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.service.EvictTaskExecutionCacheRequest) + flyteidl.service.Cache.EvictTaskExecutionCacheRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.service.Cache.internal_static_flyteidl_service_EvictCacheRequest_descriptor; + return flyteidl.service.Cache.internal_static_flyteidl_service_EvictTaskExecutionCacheRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.service.Cache.internal_static_flyteidl_service_EvictCacheRequest_fieldAccessorTable + return flyteidl.service.Cache.internal_static_flyteidl_service_EvictTaskExecutionCacheRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.service.Cache.EvictCacheRequest.class, flyteidl.service.Cache.EvictCacheRequest.Builder.class); + flyteidl.service.Cache.EvictTaskExecutionCacheRequest.class, flyteidl.service.Cache.EvictTaskExecutionCacheRequest.Builder.class); } - // Construct using flyteidl.service.Cache.EvictCacheRequest.newBuilder() + // Construct using flyteidl.service.Cache.EvictTaskExecutionCacheRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -504,25 +1024,29 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - idCase_ = 0; - id_ = null; + if (taskExecutionIdBuilder_ == null) { + taskExecutionId_ = null; + } else { + taskExecutionId_ = null; + taskExecutionIdBuilder_ = null; + } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.service.Cache.internal_static_flyteidl_service_EvictCacheRequest_descriptor; + return flyteidl.service.Cache.internal_static_flyteidl_service_EvictTaskExecutionCacheRequest_descriptor; } @java.lang.Override - public flyteidl.service.Cache.EvictCacheRequest getDefaultInstanceForType() { - return flyteidl.service.Cache.EvictCacheRequest.getDefaultInstance(); + public flyteidl.service.Cache.EvictTaskExecutionCacheRequest getDefaultInstanceForType() { + return flyteidl.service.Cache.EvictTaskExecutionCacheRequest.getDefaultInstance(); } @java.lang.Override - public flyteidl.service.Cache.EvictCacheRequest build() { - flyteidl.service.Cache.EvictCacheRequest result = buildPartial(); + public flyteidl.service.Cache.EvictTaskExecutionCacheRequest build() { + flyteidl.service.Cache.EvictTaskExecutionCacheRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -530,23 +1054,13 @@ public flyteidl.service.Cache.EvictCacheRequest build() { } @java.lang.Override - public flyteidl.service.Cache.EvictCacheRequest buildPartial() { - flyteidl.service.Cache.EvictCacheRequest result = new flyteidl.service.Cache.EvictCacheRequest(this); - if (idCase_ == 1) { - if (workflowExecutionIdBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = workflowExecutionIdBuilder_.build(); - } - } - if (idCase_ == 2) { - if (taskExecutionIdBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = taskExecutionIdBuilder_.build(); - } + public flyteidl.service.Cache.EvictTaskExecutionCacheRequest buildPartial() { + flyteidl.service.Cache.EvictTaskExecutionCacheRequest result = new flyteidl.service.Cache.EvictTaskExecutionCacheRequest(this); + if (taskExecutionIdBuilder_ == null) { + result.taskExecutionId_ = taskExecutionId_; + } else { + result.taskExecutionId_ = taskExecutionIdBuilder_.build(); } - result.idCase_ = idCase_; onBuilt(); return result; } @@ -585,28 +1099,18 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.service.Cache.EvictCacheRequest) { - return mergeFrom((flyteidl.service.Cache.EvictCacheRequest)other); + if (other instanceof flyteidl.service.Cache.EvictTaskExecutionCacheRequest) { + return mergeFrom((flyteidl.service.Cache.EvictTaskExecutionCacheRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.service.Cache.EvictCacheRequest other) { - if (other == flyteidl.service.Cache.EvictCacheRequest.getDefaultInstance()) return this; - switch (other.getIdCase()) { - case WORKFLOW_EXECUTION_ID: { - mergeWorkflowExecutionId(other.getWorkflowExecutionId()); - break; - } - case TASK_EXECUTION_ID: { - mergeTaskExecutionId(other.getTaskExecutionId()); - break; - } - case ID_NOT_SET: { - break; - } + public Builder mergeFrom(flyteidl.service.Cache.EvictTaskExecutionCacheRequest other) { + if (other == flyteidl.service.Cache.EvictTaskExecutionCacheRequest.getDefaultInstance()) return this; + if (other.hasTaskExecutionId()) { + mergeTaskExecutionId(other.getTaskExecutionId()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -623,11 +1127,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.service.Cache.EvictCacheRequest parsedMessage = null; + flyteidl.service.Cache.EvictTaskExecutionCacheRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.Cache.EvictCacheRequest) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.service.Cache.EvictTaskExecutionCacheRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -636,194 +1140,8 @@ public Builder mergeFrom( } return this; } - private int idCase_ = 0; - private java.lang.Object id_; - public IdCase - getIdCase() { - return IdCase.forNumber( - idCase_); - } - - public Builder clearId() { - idCase_ = 0; - id_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> workflowExecutionIdBuilder_; - /** - *
-       * Identifier of :ref:`ref_flyteidl.admin.Execution` to evict cache for.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public boolean hasWorkflowExecutionId() { - return idCase_ == 1; - } - /** - *
-       * Identifier of :ref:`ref_flyteidl.admin.Execution` to evict cache for.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId() { - if (workflowExecutionIdBuilder_ == null) { - if (idCase_ == 1) { - return (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) id_; - } - return flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance(); - } else { - if (idCase_ == 1) { - return workflowExecutionIdBuilder_.getMessage(); - } - return flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance(); - } - } - /** - *
-       * Identifier of :ref:`ref_flyteidl.admin.Execution` to evict cache for.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public Builder setWorkflowExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (workflowExecutionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - workflowExecutionIdBuilder_.setMessage(value); - } - idCase_ = 1; - return this; - } - /** - *
-       * Identifier of :ref:`ref_flyteidl.admin.Execution` to evict cache for.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public Builder setWorkflowExecutionId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (workflowExecutionIdBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - workflowExecutionIdBuilder_.setMessage(builderForValue.build()); - } - idCase_ = 1; - return this; - } - /** - *
-       * Identifier of :ref:`ref_flyteidl.admin.Execution` to evict cache for.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public Builder mergeWorkflowExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (workflowExecutionIdBuilder_ == null) { - if (idCase_ == 1 && - id_ != flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance()) { - id_ = flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder((flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) id_) - .mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - if (idCase_ == 1) { - workflowExecutionIdBuilder_.mergeFrom(value); - } - workflowExecutionIdBuilder_.setMessage(value); - } - idCase_ = 1; - return this; - } - /** - *
-       * Identifier of :ref:`ref_flyteidl.admin.Execution` to evict cache for.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public Builder clearWorkflowExecutionId() { - if (workflowExecutionIdBuilder_ == null) { - if (idCase_ == 1) { - idCase_ = 0; - id_ = null; - onChanged(); - } - } else { - if (idCase_ == 1) { - idCase_ = 0; - id_ = null; - } - workflowExecutionIdBuilder_.clear(); - } - return this; - } - /** - *
-       * Identifier of :ref:`ref_flyteidl.admin.Execution` to evict cache for.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getWorkflowExecutionIdBuilder() { - return getWorkflowExecutionIdFieldBuilder().getBuilder(); - } - /** - *
-       * Identifier of :ref:`ref_flyteidl.admin.Execution` to evict cache for.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder() { - if ((idCase_ == 1) && (workflowExecutionIdBuilder_ != null)) { - return workflowExecutionIdBuilder_.getMessageOrBuilder(); - } else { - if (idCase_ == 1) { - return (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) id_; - } - return flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance(); - } - } - /** - *
-       * Identifier of :ref:`ref_flyteidl.admin.Execution` to evict cache for.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getWorkflowExecutionIdFieldBuilder() { - if (workflowExecutionIdBuilder_ == null) { - if (!(idCase_ == 1)) { - id_ = flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance(); - } - workflowExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) id_, - getParentForChildren(), - isClean()); - id_ = null; - } - idCase_ = 1; - onChanged();; - return workflowExecutionIdBuilder_; - } + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier taskExecutionId_; private com.google.protobuf.SingleFieldBuilderV3< flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> taskExecutionIdBuilder_; /** @@ -831,29 +1149,23 @@ public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder g * Identifier of :ref:`ref_flyteidl.admin.TaskExecution` to evict cache for. * * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 2; + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; */ public boolean hasTaskExecutionId() { - return idCase_ == 2; + return taskExecutionIdBuilder_ != null || taskExecutionId_ != null; } /** *
        * Identifier of :ref:`ref_flyteidl.admin.TaskExecution` to evict cache for.
        * 
* - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 2; + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; */ public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecutionId() { if (taskExecutionIdBuilder_ == null) { - if (idCase_ == 2) { - return (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) id_; - } - return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); + return taskExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecutionId_; } else { - if (idCase_ == 2) { - return taskExecutionIdBuilder_.getMessage(); - } - return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); + return taskExecutionIdBuilder_.getMessage(); } } /** @@ -861,19 +1173,19 @@ public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecuti * Identifier of :ref:`ref_flyteidl.admin.TaskExecution` to evict cache for. * * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 2; + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; */ public Builder setTaskExecutionId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { if (taskExecutionIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - id_ = value; + taskExecutionId_ = value; onChanged(); } else { taskExecutionIdBuilder_.setMessage(value); } - idCase_ = 2; + return this; } /** @@ -881,17 +1193,17 @@ public Builder setTaskExecutionId(flyteidl.core.IdentifierOuterClass.TaskExecuti * Identifier of :ref:`ref_flyteidl.admin.TaskExecution` to evict cache for. * * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 2; + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; */ public Builder setTaskExecutionId( flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { if (taskExecutionIdBuilder_ == null) { - id_ = builderForValue.build(); + taskExecutionId_ = builderForValue.build(); onChanged(); } else { taskExecutionIdBuilder_.setMessage(builderForValue.build()); } - idCase_ = 2; + return this; } /** @@ -899,25 +1211,21 @@ public Builder setTaskExecutionId( * Identifier of :ref:`ref_flyteidl.admin.TaskExecution` to evict cache for. * * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 2; + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; */ public Builder mergeTaskExecutionId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { if (taskExecutionIdBuilder_ == null) { - if (idCase_ == 2 && - id_ != flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance()) { - id_ = flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder((flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) id_) - .mergeFrom(value).buildPartial(); + if (taskExecutionId_ != null) { + taskExecutionId_ = + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(taskExecutionId_).mergeFrom(value).buildPartial(); } else { - id_ = value; + taskExecutionId_ = value; } onChanged(); } else { - if (idCase_ == 2) { - taskExecutionIdBuilder_.mergeFrom(value); - } - taskExecutionIdBuilder_.setMessage(value); + taskExecutionIdBuilder_.mergeFrom(value); } - idCase_ = 2; + return this; } /** @@ -925,22 +1233,17 @@ public Builder mergeTaskExecutionId(flyteidl.core.IdentifierOuterClass.TaskExecu * Identifier of :ref:`ref_flyteidl.admin.TaskExecution` to evict cache for. * * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 2; + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; */ public Builder clearTaskExecutionId() { if (taskExecutionIdBuilder_ == null) { - if (idCase_ == 2) { - idCase_ = 0; - id_ = null; - onChanged(); - } + taskExecutionId_ = null; + onChanged(); } else { - if (idCase_ == 2) { - idCase_ = 0; - id_ = null; - } - taskExecutionIdBuilder_.clear(); + taskExecutionId_ = null; + taskExecutionIdBuilder_ = null; } + return this; } /** @@ -948,9 +1251,11 @@ public Builder clearTaskExecutionId() { * Identifier of :ref:`ref_flyteidl.admin.TaskExecution` to evict cache for. * * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 2; + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; */ public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getTaskExecutionIdBuilder() { + + onChanged(); return getTaskExecutionIdFieldBuilder().getBuilder(); } /** @@ -958,16 +1263,14 @@ public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getTas * Identifier of :ref:`ref_flyteidl.admin.TaskExecution` to evict cache for. * * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 2; + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; */ public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionIdOrBuilder() { - if ((idCase_ == 2) && (taskExecutionIdBuilder_ != null)) { + if (taskExecutionIdBuilder_ != null) { return taskExecutionIdBuilder_.getMessageOrBuilder(); } else { - if (idCase_ == 2) { - return (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) id_; - } - return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); + return taskExecutionId_ == null ? + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecutionId_; } } /** @@ -975,24 +1278,19 @@ public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTa * Identifier of :ref:`ref_flyteidl.admin.TaskExecution` to evict cache for. * * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 2; + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> getTaskExecutionIdFieldBuilder() { if (taskExecutionIdBuilder_ == null) { - if (!(idCase_ == 2)) { - id_ = flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); - } taskExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( - (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) id_, + getTaskExecutionId(), getParentForChildren(), isClean()); - id_ = null; + taskExecutionId_ = null; } - idCase_ = 2; - onChanged();; return taskExecutionIdBuilder_; } @java.lang.Override @@ -1008,41 +1306,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyteidl.service.EvictCacheRequest) + // @@protoc_insertion_point(builder_scope:flyteidl.service.EvictTaskExecutionCacheRequest) } - // @@protoc_insertion_point(class_scope:flyteidl.service.EvictCacheRequest) - private static final flyteidl.service.Cache.EvictCacheRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyteidl.service.EvictTaskExecutionCacheRequest) + private static final flyteidl.service.Cache.EvictTaskExecutionCacheRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.service.Cache.EvictCacheRequest(); + DEFAULT_INSTANCE = new flyteidl.service.Cache.EvictTaskExecutionCacheRequest(); } - public static flyteidl.service.Cache.EvictCacheRequest getDefaultInstance() { + public static flyteidl.service.Cache.EvictTaskExecutionCacheRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public EvictCacheRequest parsePartialFrom( + public EvictTaskExecutionCacheRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new EvictCacheRequest(input, extensionRegistry); + return new EvictTaskExecutionCacheRequest(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public flyteidl.service.Cache.EvictCacheRequest getDefaultInstanceForType() { + public flyteidl.service.Cache.EvictTaskExecutionCacheRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -1715,10 +2013,15 @@ public flyteidl.service.Cache.EvictCacheResponse getDefaultInstanceForType() { } private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_service_EvictCacheRequest_descriptor; + internal_static_flyteidl_service_EvictExecutionCacheRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_service_EvictExecutionCacheRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_service_EvictTaskExecutionCacheRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_service_EvictCacheRequest_fieldAccessorTable; + internal_static_flyteidl_service_EvictTaskExecutionCacheRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_flyteidl_service_EvictCacheResponse_descriptor; private static final @@ -1736,32 +2039,36 @@ public flyteidl.service.Cache.EvictCacheResponse getDefaultInstanceForType() { "\n\034flyteidl/service/cache.proto\022\020flyteidl" + ".service\032\034google/api/annotations.proto\032\032" + "flyteidl/core/errors.proto\032\036flyteidl/cor" + - "e/identifier.proto\"\253\001\n\021EvictCacheRequest" + - "\022K\n\025workflow_execution_id\030\001 \001(\0132*.flytei" + - "dl.core.WorkflowExecutionIdentifierH\000\022C\n" + - "\021task_execution_id\030\002 \001(\0132&.flyteidl.core" + - ".TaskExecutionIdentifierH\000B\004\n\002id\"K\n\022Evic" + - "tCacheResponse\0225\n\006errors\030\001 \001(\0132%.flyteid" + - "l.core.CacheEvictionErrorList2\227\005\n\014CacheS" + - "ervice\022\206\005\n\nEvictCache\022#.flyteidl.service" + - ".EvictCacheRequest\032$.flyteidl.service.Ev" + - "ictCacheResponse\"\254\004\202\323\344\223\002\245\004*t/api/v1/cach" + - "e/executions/{workflow_execution_id.proj" + - "ect}/{workflow_execution_id.domain}/{wor" + - "kflow_execution_id.name}:\001*Z\251\003*\246\003/api/v1" + - "/cache/task_executions/{task_execution_i" + - "d.node_execution_id.execution_id.project" + - "}/{task_execution_id.node_execution_id.e" + - "xecution_id.domain}/{task_execution_id.n" + - "ode_execution_id.execution_id.name}/{tas" + - "k_execution_id.node_execution_id.node_id" + - "}/{task_execution_id.task_id.project}/{t" + - "ask_execution_id.task_id.domain}/{task_e" + - "xecution_id.task_id.name}/{task_executio" + - "n_id.task_id.version}/{task_execution_id" + - ".retry_attempt}B9Z7github.com/flyteorg/f" + - "lyteidl/gen/pb-go/flyteidl/serviceb\006prot" + - "o3" + "e/identifier.proto\"g\n\032EvictExecutionCach" + + "eRequest\022I\n\025workflow_execution_id\030\001 \001(\0132" + + "*.flyteidl.core.WorkflowExecutionIdentif" + + "ier\"c\n\036EvictTaskExecutionCacheRequest\022A\n" + + "\021task_execution_id\030\001 \001(\0132&.flyteidl.core" + + ".TaskExecutionIdentifier\"K\n\022EvictCacheRe" + + "sponse\0225\n\006errors\030\001 \001(\0132%.flyteidl.core.C" + + "acheEvictionErrorList2\237\006\n\014CacheService\022\347" + + "\001\n\023EvictExecutionCache\022,.flyteidl.servic" + + "e.EvictExecutionCacheRequest\032$.flyteidl." + + "service.EvictCacheResponse\"|\202\323\344\223\002v*t/api" + + "/v1/cache/executions/{workflow_execution" + + "_id.project}/{workflow_execution_id.doma" + + "in}/{workflow_execution_id.name}\022\244\004\n\027Evi" + + "ctTaskExecutionCache\0220.flyteidl.service." + + "EvictTaskExecutionCacheRequest\032$.flyteid" + + "l.service.EvictCacheResponse\"\260\003\202\323\344\223\002\251\003*\246" + + "\003/api/v1/cache/task_executions/{task_exe" + + "cution_id.node_execution_id.execution_id" + + ".project}/{task_execution_id.node_execut" + + "ion_id.execution_id.domain}/{task_execut" + + "ion_id.node_execution_id.execution_id.na" + + "me}/{task_execution_id.node_execution_id" + + ".node_id}/{task_execution_id.task_id.pro" + + "ject}/{task_execution_id.task_id.domain}" + + "/{task_execution_id.task_id.name}/{task_" + + "execution_id.task_id.version}/{task_exec" + + "ution_id.retry_attempt}B9Z7github.com/fl" + + "yteorg/flyteidl/gen/pb-go/flyteidl/servi" + + "ceb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -1778,14 +2085,20 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( flyteidl.core.Errors.getDescriptor(), flyteidl.core.IdentifierOuterClass.getDescriptor(), }, assigner); - internal_static_flyteidl_service_EvictCacheRequest_descriptor = + internal_static_flyteidl_service_EvictExecutionCacheRequest_descriptor = getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_service_EvictCacheRequest_fieldAccessorTable = new + internal_static_flyteidl_service_EvictExecutionCacheRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_service_EvictCacheRequest_descriptor, - new java.lang.String[] { "WorkflowExecutionId", "TaskExecutionId", "Id", }); - internal_static_flyteidl_service_EvictCacheResponse_descriptor = + internal_static_flyteidl_service_EvictExecutionCacheRequest_descriptor, + new java.lang.String[] { "WorkflowExecutionId", }); + internal_static_flyteidl_service_EvictTaskExecutionCacheRequest_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_service_EvictTaskExecutionCacheRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_service_EvictTaskExecutionCacheRequest_descriptor, + new java.lang.String[] { "TaskExecutionId", }); + internal_static_flyteidl_service_EvictCacheResponse_descriptor = + getDescriptor().getMessageTypes().get(2); internal_static_flyteidl_service_EvictCacheResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_service_EvictCacheResponse_descriptor, diff --git a/gen/pb-js/flyteidl.d.ts b/gen/pb-js/flyteidl.d.ts index 0b3e8ebb2..b2af6d7a8 100644 --- a/gen/pb-js/flyteidl.d.ts +++ b/gen/pb-js/flyteidl.d.ts @@ -6446,7 +6446,11 @@ export namespace flyteidl { /** Code enum. */ enum Code { - UNKNOWN = 0 + INTERNAL = 0, + RESERVATION_NOT_ACQUIRED = 1, + DATABASE_UPDATE_FAILED = 2, + ARTIFACT_DELETE_FAILED = 3, + RESERVATION_NOT_RELEASED = 4 } } @@ -18756,61 +18760,104 @@ export namespace flyteidl { type GetPublicClientConfigCallback = (error: (Error|null), response?: flyteidl.service.PublicClientAuthConfigResponse) => void; } - /** Properties of an EvictCacheRequest. */ - interface IEvictCacheRequest { + /** Properties of an EvictExecutionCacheRequest. */ + interface IEvictExecutionCacheRequest { - /** EvictCacheRequest workflowExecutionId */ + /** EvictExecutionCacheRequest workflowExecutionId */ workflowExecutionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** EvictCacheRequest taskExecutionId */ - taskExecutionId?: (flyteidl.core.ITaskExecutionIdentifier|null); } - /** Represents an EvictCacheRequest. */ - class EvictCacheRequest implements IEvictCacheRequest { + /** Represents an EvictExecutionCacheRequest. */ + class EvictExecutionCacheRequest implements IEvictExecutionCacheRequest { /** - * Constructs a new EvictCacheRequest. + * Constructs a new EvictExecutionCacheRequest. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.service.IEvictCacheRequest); + constructor(properties?: flyteidl.service.IEvictExecutionCacheRequest); - /** EvictCacheRequest workflowExecutionId. */ + /** EvictExecutionCacheRequest workflowExecutionId. */ public workflowExecutionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - /** EvictCacheRequest taskExecutionId. */ - public taskExecutionId?: (flyteidl.core.ITaskExecutionIdentifier|null); + /** + * Creates a new EvictExecutionCacheRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns EvictExecutionCacheRequest instance + */ + public static create(properties?: flyteidl.service.IEvictExecutionCacheRequest): flyteidl.service.EvictExecutionCacheRequest; + + /** + * Encodes the specified EvictExecutionCacheRequest message. Does not implicitly {@link flyteidl.service.EvictExecutionCacheRequest.verify|verify} messages. + * @param message EvictExecutionCacheRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.IEvictExecutionCacheRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EvictExecutionCacheRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EvictExecutionCacheRequest + * @throws {Error} If the payload is not 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.EvictExecutionCacheRequest; + + /** + * Verifies an EvictExecutionCacheRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an EvictTaskExecutionCacheRequest. */ + interface IEvictTaskExecutionCacheRequest { + + /** EvictTaskExecutionCacheRequest taskExecutionId */ + taskExecutionId?: (flyteidl.core.ITaskExecutionIdentifier|null); + } + + /** Represents an EvictTaskExecutionCacheRequest. */ + class EvictTaskExecutionCacheRequest implements IEvictTaskExecutionCacheRequest { - /** EvictCacheRequest id. */ - public id?: ("workflowExecutionId"|"taskExecutionId"); + /** + * Constructs a new EvictTaskExecutionCacheRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.IEvictTaskExecutionCacheRequest); + + /** EvictTaskExecutionCacheRequest taskExecutionId. */ + public taskExecutionId?: (flyteidl.core.ITaskExecutionIdentifier|null); /** - * Creates a new EvictCacheRequest instance using the specified properties. + * Creates a new EvictTaskExecutionCacheRequest instance using the specified properties. * @param [properties] Properties to set - * @returns EvictCacheRequest instance + * @returns EvictTaskExecutionCacheRequest instance */ - public static create(properties?: flyteidl.service.IEvictCacheRequest): flyteidl.service.EvictCacheRequest; + public static create(properties?: flyteidl.service.IEvictTaskExecutionCacheRequest): flyteidl.service.EvictTaskExecutionCacheRequest; /** - * Encodes the specified EvictCacheRequest message. Does not implicitly {@link flyteidl.service.EvictCacheRequest.verify|verify} messages. - * @param message EvictCacheRequest message or plain object to encode + * Encodes the specified EvictTaskExecutionCacheRequest message. Does not implicitly {@link flyteidl.service.EvictTaskExecutionCacheRequest.verify|verify} messages. + * @param message EvictTaskExecutionCacheRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.service.IEvictCacheRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.service.IEvictTaskExecutionCacheRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EvictCacheRequest message from the specified reader or buffer. + * Decodes an EvictTaskExecutionCacheRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EvictCacheRequest + * @returns EvictTaskExecutionCacheRequest * @throws {Error} If the payload is not 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.EvictCacheRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.EvictTaskExecutionCacheRequest; /** - * Verifies an EvictCacheRequest message. + * Verifies an EvictTaskExecutionCacheRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ @@ -18890,28 +18937,49 @@ export namespace flyteidl { public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): CacheService; /** - * Calls EvictCache. - * @param request EvictCacheRequest message or plain object + * Calls EvictExecutionCache. + * @param request EvictExecutionCacheRequest message or plain object + * @param callback Node-style callback called with the error, if any, and EvictCacheResponse + */ + public evictExecutionCache(request: flyteidl.service.IEvictExecutionCacheRequest, callback: flyteidl.service.CacheService.EvictExecutionCacheCallback): void; + + /** + * Calls EvictExecutionCache. + * @param request EvictExecutionCacheRequest message or plain object + * @returns Promise + */ + public evictExecutionCache(request: flyteidl.service.IEvictExecutionCacheRequest): Promise; + + /** + * Calls EvictTaskExecutionCache. + * @param request EvictTaskExecutionCacheRequest message or plain object * @param callback Node-style callback called with the error, if any, and EvictCacheResponse */ - public evictCache(request: flyteidl.service.IEvictCacheRequest, callback: flyteidl.service.CacheService.EvictCacheCallback): void; + public evictTaskExecutionCache(request: flyteidl.service.IEvictTaskExecutionCacheRequest, callback: flyteidl.service.CacheService.EvictTaskExecutionCacheCallback): void; /** - * Calls EvictCache. - * @param request EvictCacheRequest message or plain object + * Calls EvictTaskExecutionCache. + * @param request EvictTaskExecutionCacheRequest message or plain object * @returns Promise */ - public evictCache(request: flyteidl.service.IEvictCacheRequest): Promise; + public evictTaskExecutionCache(request: flyteidl.service.IEvictTaskExecutionCacheRequest): Promise; } namespace CacheService { /** - * Callback as used by {@link flyteidl.service.CacheService#evictCache}. + * Callback as used by {@link flyteidl.service.CacheService#evictExecutionCache}. + * @param error Error, if any + * @param [response] EvictCacheResponse + */ + type EvictExecutionCacheCallback = (error: (Error|null), response?: flyteidl.service.EvictCacheResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.CacheService#evictTaskExecutionCache}. * @param error Error, if any * @param [response] EvictCacheResponse */ - type EvictCacheCallback = (error: (Error|null), response?: flyteidl.service.EvictCacheResponse) => void; + type EvictTaskExecutionCacheCallback = (error: (Error|null), response?: flyteidl.service.EvictCacheResponse) => void; } /** Properties of a CreateUploadLocationResponse. */ diff --git a/gen/pb-js/flyteidl.js b/gen/pb-js/flyteidl.js index 99d707034..a741457fc 100644 --- a/gen/pb-js/flyteidl.js +++ b/gen/pb-js/flyteidl.js @@ -15420,6 +15420,10 @@ default: return "code: enum value expected"; case 0: + case 1: + case 2: + case 3: + case 4: break; } if (message.message != null && message.hasOwnProperty("message")) @@ -15455,11 +15459,19 @@ * Code enum. * @name flyteidl.core.CacheEvictionError.Code * @enum {string} - * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} INTERNAL=0 INTERNAL value + * @property {number} RESERVATION_NOT_ACQUIRED=1 RESERVATION_NOT_ACQUIRED value + * @property {number} DATABASE_UPDATE_FAILED=2 DATABASE_UPDATE_FAILED value + * @property {number} ARTIFACT_DELETE_FAILED=3 ARTIFACT_DELETE_FAILED value + * @property {number} RESERVATION_NOT_RELEASED=4 RESERVATION_NOT_RELEASED value */ CacheEvictionError.Code = (function() { var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[0] = "INTERNAL"] = 0; + values[valuesById[1] = "RESERVATION_NOT_ACQUIRED"] = 1; + values[valuesById[2] = "DATABASE_UPDATE_FAILED"] = 2; + values[valuesById[3] = "ARTIFACT_DELETE_FAILED"] = 3; + values[valuesById[4] = "RESERVATION_NOT_RELEASED"] = 4; return values; })(); @@ -43725,25 +43737,24 @@ return AuthMetadataService; })(); - service.EvictCacheRequest = (function() { + service.EvictExecutionCacheRequest = (function() { /** - * Properties of an EvictCacheRequest. + * Properties of an EvictExecutionCacheRequest. * @memberof flyteidl.service - * @interface IEvictCacheRequest - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [workflowExecutionId] EvictCacheRequest workflowExecutionId - * @property {flyteidl.core.ITaskExecutionIdentifier|null} [taskExecutionId] EvictCacheRequest taskExecutionId + * @interface IEvictExecutionCacheRequest + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [workflowExecutionId] EvictExecutionCacheRequest workflowExecutionId */ /** - * Constructs a new EvictCacheRequest. + * Constructs a new EvictExecutionCacheRequest. * @memberof flyteidl.service - * @classdesc Represents an EvictCacheRequest. - * @implements IEvictCacheRequest + * @classdesc Represents an EvictExecutionCacheRequest. + * @implements IEvictExecutionCacheRequest * @constructor - * @param {flyteidl.service.IEvictCacheRequest=} [properties] Properties to set + * @param {flyteidl.service.IEvictExecutionCacheRequest=} [properties] Properties to set */ - function EvictCacheRequest(properties) { + function EvictExecutionCacheRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -43751,88 +43762,173 @@ } /** - * EvictCacheRequest workflowExecutionId. + * EvictExecutionCacheRequest workflowExecutionId. * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} workflowExecutionId - * @memberof flyteidl.service.EvictCacheRequest + * @memberof flyteidl.service.EvictExecutionCacheRequest * @instance */ - EvictCacheRequest.prototype.workflowExecutionId = null; + EvictExecutionCacheRequest.prototype.workflowExecutionId = null; /** - * EvictCacheRequest taskExecutionId. - * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} taskExecutionId - * @memberof flyteidl.service.EvictCacheRequest - * @instance + * Creates a new EvictExecutionCacheRequest instance using the specified properties. + * @function create + * @memberof flyteidl.service.EvictExecutionCacheRequest + * @static + * @param {flyteidl.service.IEvictExecutionCacheRequest=} [properties] Properties to set + * @returns {flyteidl.service.EvictExecutionCacheRequest} EvictExecutionCacheRequest instance */ - EvictCacheRequest.prototype.taskExecutionId = null; + EvictExecutionCacheRequest.create = function create(properties) { + return new EvictExecutionCacheRequest(properties); + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Encodes the specified EvictExecutionCacheRequest message. Does not implicitly {@link flyteidl.service.EvictExecutionCacheRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.EvictExecutionCacheRequest + * @static + * @param {flyteidl.service.IEvictExecutionCacheRequest} message EvictExecutionCacheRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EvictExecutionCacheRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.workflowExecutionId != null && message.hasOwnProperty("workflowExecutionId")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.workflowExecutionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an EvictExecutionCacheRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.EvictExecutionCacheRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.EvictExecutionCacheRequest} EvictExecutionCacheRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EvictExecutionCacheRequest.decode = function 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.EvictExecutionCacheRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.workflowExecutionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an EvictExecutionCacheRequest message. + * @function verify + * @memberof flyteidl.service.EvictExecutionCacheRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EvictExecutionCacheRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.workflowExecutionId != null && message.hasOwnProperty("workflowExecutionId")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.workflowExecutionId); + if (error) + return "workflowExecutionId." + error; + } + return null; + }; + + return EvictExecutionCacheRequest; + })(); + + service.EvictTaskExecutionCacheRequest = (function() { + + /** + * Properties of an EvictTaskExecutionCacheRequest. + * @memberof flyteidl.service + * @interface IEvictTaskExecutionCacheRequest + * @property {flyteidl.core.ITaskExecutionIdentifier|null} [taskExecutionId] EvictTaskExecutionCacheRequest taskExecutionId + */ + + /** + * Constructs a new EvictTaskExecutionCacheRequest. + * @memberof flyteidl.service + * @classdesc Represents an EvictTaskExecutionCacheRequest. + * @implements IEvictTaskExecutionCacheRequest + * @constructor + * @param {flyteidl.service.IEvictTaskExecutionCacheRequest=} [properties] Properties to set + */ + function EvictTaskExecutionCacheRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * EvictCacheRequest id. - * @member {"workflowExecutionId"|"taskExecutionId"|undefined} id - * @memberof flyteidl.service.EvictCacheRequest + * EvictTaskExecutionCacheRequest taskExecutionId. + * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} taskExecutionId + * @memberof flyteidl.service.EvictTaskExecutionCacheRequest * @instance */ - Object.defineProperty(EvictCacheRequest.prototype, "id", { - get: $util.oneOfGetter($oneOfFields = ["workflowExecutionId", "taskExecutionId"]), - set: $util.oneOfSetter($oneOfFields) - }); + EvictTaskExecutionCacheRequest.prototype.taskExecutionId = null; /** - * Creates a new EvictCacheRequest instance using the specified properties. + * Creates a new EvictTaskExecutionCacheRequest instance using the specified properties. * @function create - * @memberof flyteidl.service.EvictCacheRequest + * @memberof flyteidl.service.EvictTaskExecutionCacheRequest * @static - * @param {flyteidl.service.IEvictCacheRequest=} [properties] Properties to set - * @returns {flyteidl.service.EvictCacheRequest} EvictCacheRequest instance + * @param {flyteidl.service.IEvictTaskExecutionCacheRequest=} [properties] Properties to set + * @returns {flyteidl.service.EvictTaskExecutionCacheRequest} EvictTaskExecutionCacheRequest instance */ - EvictCacheRequest.create = function create(properties) { - return new EvictCacheRequest(properties); + EvictTaskExecutionCacheRequest.create = function create(properties) { + return new EvictTaskExecutionCacheRequest(properties); }; /** - * Encodes the specified EvictCacheRequest message. Does not implicitly {@link flyteidl.service.EvictCacheRequest.verify|verify} messages. + * Encodes the specified EvictTaskExecutionCacheRequest message. Does not implicitly {@link flyteidl.service.EvictTaskExecutionCacheRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.service.EvictCacheRequest + * @memberof flyteidl.service.EvictTaskExecutionCacheRequest * @static - * @param {flyteidl.service.IEvictCacheRequest} message EvictCacheRequest message or plain object to encode + * @param {flyteidl.service.IEvictTaskExecutionCacheRequest} message EvictTaskExecutionCacheRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EvictCacheRequest.encode = function encode(message, writer) { + EvictTaskExecutionCacheRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.workflowExecutionId != null && message.hasOwnProperty("workflowExecutionId")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.workflowExecutionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.taskExecutionId != null && message.hasOwnProperty("taskExecutionId")) - $root.flyteidl.core.TaskExecutionIdentifier.encode(message.taskExecutionId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.flyteidl.core.TaskExecutionIdentifier.encode(message.taskExecutionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Decodes an EvictCacheRequest message from the specified reader or buffer. + * Decodes an EvictTaskExecutionCacheRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.service.EvictCacheRequest + * @memberof flyteidl.service.EvictTaskExecutionCacheRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.EvictCacheRequest} EvictCacheRequest + * @returns {flyteidl.service.EvictTaskExecutionCacheRequest} EvictTaskExecutionCacheRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EvictCacheRequest.decode = function decode(reader, length) { + EvictTaskExecutionCacheRequest.decode = function 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.EvictCacheRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.EvictTaskExecutionCacheRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.workflowExecutionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: message.taskExecutionId = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); break; default: @@ -43844,39 +43940,25 @@ }; /** - * Verifies an EvictCacheRequest message. + * Verifies an EvictTaskExecutionCacheRequest message. * @function verify - * @memberof flyteidl.service.EvictCacheRequest + * @memberof flyteidl.service.EvictTaskExecutionCacheRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EvictCacheRequest.verify = function verify(message) { + EvictTaskExecutionCacheRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.workflowExecutionId != null && message.hasOwnProperty("workflowExecutionId")) { - properties.id = 1; - { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.workflowExecutionId); - if (error) - return "workflowExecutionId." + error; - } - } if (message.taskExecutionId != null && message.hasOwnProperty("taskExecutionId")) { - if (properties.id === 1) - return "id: multiple values"; - properties.id = 1; - { - var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.taskExecutionId); - if (error) - return "taskExecutionId." + error; - } + var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.taskExecutionId); + if (error) + return "taskExecutionId." + error; } return null; }; - return EvictCacheRequest; + return EvictTaskExecutionCacheRequest; })(); service.EvictCacheResponse = (function() { @@ -44024,34 +44106,67 @@ }; /** - * Callback as used by {@link flyteidl.service.CacheService#evictCache}. + * Callback as used by {@link flyteidl.service.CacheService#evictExecutionCache}. + * @memberof flyteidl.service.CacheService + * @typedef EvictExecutionCacheCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.service.EvictCacheResponse} [response] EvictCacheResponse + */ + + /** + * Calls EvictExecutionCache. + * @function evictExecutionCache + * @memberof flyteidl.service.CacheService + * @instance + * @param {flyteidl.service.IEvictExecutionCacheRequest} request EvictExecutionCacheRequest message or plain object + * @param {flyteidl.service.CacheService.EvictExecutionCacheCallback} callback Node-style callback called with the error, if any, and EvictCacheResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(CacheService.prototype.evictExecutionCache = function evictExecutionCache(request, callback) { + return this.rpcCall(evictExecutionCache, $root.flyteidl.service.EvictExecutionCacheRequest, $root.flyteidl.service.EvictCacheResponse, request, callback); + }, "name", { value: "EvictExecutionCache" }); + + /** + * Calls EvictExecutionCache. + * @function evictExecutionCache + * @memberof flyteidl.service.CacheService + * @instance + * @param {flyteidl.service.IEvictExecutionCacheRequest} request EvictExecutionCacheRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.CacheService#evictTaskExecutionCache}. * @memberof flyteidl.service.CacheService - * @typedef EvictCacheCallback + * @typedef EvictTaskExecutionCacheCallback * @type {function} * @param {Error|null} error Error, if any * @param {flyteidl.service.EvictCacheResponse} [response] EvictCacheResponse */ /** - * Calls EvictCache. - * @function evictCache + * Calls EvictTaskExecutionCache. + * @function evictTaskExecutionCache * @memberof flyteidl.service.CacheService * @instance - * @param {flyteidl.service.IEvictCacheRequest} request EvictCacheRequest message or plain object - * @param {flyteidl.service.CacheService.EvictCacheCallback} callback Node-style callback called with the error, if any, and EvictCacheResponse + * @param {flyteidl.service.IEvictTaskExecutionCacheRequest} request EvictTaskExecutionCacheRequest message or plain object + * @param {flyteidl.service.CacheService.EvictTaskExecutionCacheCallback} callback Node-style callback called with the error, if any, and EvictCacheResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(CacheService.prototype.evictCache = function evictCache(request, callback) { - return this.rpcCall(evictCache, $root.flyteidl.service.EvictCacheRequest, $root.flyteidl.service.EvictCacheResponse, request, callback); - }, "name", { value: "EvictCache" }); + Object.defineProperty(CacheService.prototype.evictTaskExecutionCache = function evictTaskExecutionCache(request, callback) { + return this.rpcCall(evictTaskExecutionCache, $root.flyteidl.service.EvictTaskExecutionCacheRequest, $root.flyteidl.service.EvictCacheResponse, request, callback); + }, "name", { value: "EvictTaskExecutionCache" }); /** - * Calls EvictCache. - * @function evictCache + * Calls EvictTaskExecutionCache. + * @function evictTaskExecutionCache * @memberof flyteidl.service.CacheService * @instance - * @param {flyteidl.service.IEvictCacheRequest} request EvictCacheRequest message or plain object + * @param {flyteidl.service.IEvictTaskExecutionCacheRequest} request EvictTaskExecutionCacheRequest message or plain object * @returns {Promise} Promise * @variation 2 */ diff --git a/gen/pb_python/flyteidl/core/errors_pb2.py b/gen/pb_python/flyteidl/core/errors_pb2.py index 80b627e1c..9e4086e0f 100644 --- a/gen/pb_python/flyteidl/core/errors_pb2.py +++ b/gen/pb_python/flyteidl/core/errors_pb2.py @@ -15,7 +15,7 @@ from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/core/errors.proto\x12\rflyteidl.core\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\"\xe5\x01\n\x0e\x43ontainerError\x12\x12\n\x04\x63ode\x18\x01 \x01(\tR\x04\x63ode\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12\x36\n\x04kind\x18\x03 \x01(\x0e\x32\".flyteidl.core.ContainerError.KindR\x04kind\x12?\n\x06origin\x18\x04 \x01(\x0e\x32\'.flyteidl.core.ExecutionError.ErrorKindR\x06origin\",\n\x04Kind\x12\x13\n\x0fNON_RECOVERABLE\x10\x00\x12\x0f\n\x0bRECOVERABLE\x10\x01\"D\n\rErrorDocument\x12\x33\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x1d.flyteidl.core.ContainerErrorR\x05\x65rror\"\x95\x03\n\x12\x43\x61\x63heEvictionError\x12:\n\x04\x63ode\x18\x01 \x01(\x0e\x32&.flyteidl.core.CacheEvictionError.CodeR\x04\x63ode\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12R\n\x11node_execution_id\x18\x03 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x0fnodeExecutionId\x12T\n\x11task_execution_id\x18\x04 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierH\x00R\x0ftaskExecutionId\x12`\n\x15workflow_execution_id\x18\x05 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierH\x00R\x13workflowExecutionId\"\x13\n\x04\x43ode\x12\x0b\n\x07UNKNOWN\x10\x00\x42\x08\n\x06source\"S\n\x16\x43\x61\x63heEvictionErrorList\x12\x39\n\x06\x65rrors\x18\x01 \x03(\x0b\x32!.flyteidl.core.CacheEvictionErrorR\x06\x65rrorsB\xab\x01\n\x11\x63om.flyteidl.coreB\x0b\x45rrorsProtoP\x01Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/core/errors.proto\x12\rflyteidl.core\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\"\xe5\x01\n\x0e\x43ontainerError\x12\x12\n\x04\x63ode\x18\x01 \x01(\tR\x04\x63ode\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12\x36\n\x04kind\x18\x03 \x01(\x0e\x32\".flyteidl.core.ContainerError.KindR\x04kind\x12?\n\x06origin\x18\x04 \x01(\x0e\x32\'.flyteidl.core.ExecutionError.ErrorKindR\x06origin\",\n\x04Kind\x12\x13\n\x0fNON_RECOVERABLE\x10\x00\x12\x0f\n\x0bRECOVERABLE\x10\x01\"D\n\rErrorDocument\x12\x33\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x1d.flyteidl.core.ContainerErrorR\x05\x65rror\"\x8b\x04\n\x12\x43\x61\x63heEvictionError\x12:\n\x04\x63ode\x18\x01 \x01(\x0e\x32&.flyteidl.core.CacheEvictionError.CodeR\x04\x63ode\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12R\n\x11node_execution_id\x18\x03 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x0fnodeExecutionId\x12T\n\x11task_execution_id\x18\x04 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierH\x00R\x0ftaskExecutionId\x12`\n\x15workflow_execution_id\x18\x05 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierH\x00R\x13workflowExecutionId\"\x88\x01\n\x04\x43ode\x12\x0c\n\x08INTERNAL\x10\x00\x12\x1c\n\x18RESERVATION_NOT_ACQUIRED\x10\x01\x12\x1a\n\x16\x44\x41TABASE_UPDATE_FAILED\x10\x02\x12\x1a\n\x16\x41RTIFACT_DELETE_FAILED\x10\x03\x12\x1c\n\x18RESERVATION_NOT_RELEASED\x10\x04\x42\x08\n\x06source\"S\n\x16\x43\x61\x63heEvictionErrorList\x12\x39\n\x06\x65rrors\x18\x01 \x03(\x0b\x32!.flyteidl.core.CacheEvictionErrorR\x06\x65rrorsB\xab\x01\n\x11\x63om.flyteidl.coreB\x0b\x45rrorsProtoP\x01Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.errors_pb2', globals()) @@ -30,9 +30,9 @@ _ERRORDOCUMENT._serialized_start=340 _ERRORDOCUMENT._serialized_end=408 _CACHEEVICTIONERROR._serialized_start=411 - _CACHEEVICTIONERROR._serialized_end=816 - _CACHEEVICTIONERROR_CODE._serialized_start=787 - _CACHEEVICTIONERROR_CODE._serialized_end=806 - _CACHEEVICTIONERRORLIST._serialized_start=818 - _CACHEEVICTIONERRORLIST._serialized_end=901 + _CACHEEVICTIONERROR._serialized_end=934 + _CACHEEVICTIONERROR_CODE._serialized_start=788 + _CACHEEVICTIONERROR_CODE._serialized_end=924 + _CACHEEVICTIONERRORLIST._serialized_start=936 + _CACHEEVICTIONERRORLIST._serialized_end=1019 # @@protoc_insertion_point(module_scope) diff --git a/gen/pb_python/flyteidl/core/errors_pb2.pyi b/gen/pb_python/flyteidl/core/errors_pb2.pyi index 8d7becbd3..8e0eb9763 100644 --- a/gen/pb_python/flyteidl/core/errors_pb2.pyi +++ b/gen/pb_python/flyteidl/core/errors_pb2.pyi @@ -12,11 +12,15 @@ class CacheEvictionError(_message.Message): __slots__ = ["code", "message", "node_execution_id", "task_execution_id", "workflow_execution_id"] class Code(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): __slots__ = [] + ARTIFACT_DELETE_FAILED: CacheEvictionError.Code CODE_FIELD_NUMBER: _ClassVar[int] + DATABASE_UPDATE_FAILED: CacheEvictionError.Code + INTERNAL: CacheEvictionError.Code MESSAGE_FIELD_NUMBER: _ClassVar[int] NODE_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] + RESERVATION_NOT_ACQUIRED: CacheEvictionError.Code + RESERVATION_NOT_RELEASED: CacheEvictionError.Code TASK_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] - UNKNOWN: CacheEvictionError.Code WORKFLOW_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] code: CacheEvictionError.Code message: str diff --git a/gen/pb_python/flyteidl/service/cache_pb2.py b/gen/pb_python/flyteidl/service/cache_pb2.py index 0fb6c9da1..e06d06dca 100644 --- a/gen/pb_python/flyteidl/service/cache_pb2.py +++ b/gen/pb_python/flyteidl/service/cache_pb2.py @@ -16,7 +16,7 @@ from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/service/cache.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1a\x66lyteidl/core/errors.proto\x1a\x1e\x66lyteidl/core/identifier.proto\"\xd1\x01\n\x11\x45victCacheRequest\x12`\n\x15workflow_execution_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierH\x00R\x13workflowExecutionId\x12T\n\x11task_execution_id\x18\x02 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierH\x00R\x0ftaskExecutionIdB\x04\n\x02id\"S\n\x12\x45victCacheResponse\x12=\n\x06\x65rrors\x18\x01 \x01(\x0b\x32%.flyteidl.core.CacheEvictionErrorListR\x06\x65rrors2\x97\x05\n\x0c\x43\x61\x63heService\x12\x86\x05\n\nEvictCache\x12#.flyteidl.service.EvictCacheRequest\x1a$.flyteidl.service.EvictCacheResponse\"\xac\x04\x82\xd3\xe4\x93\x02\xa5\x04:\x01*Z\xa9\x03*\xa6\x03/api/v1/cache/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}*t/api/v1/cache/executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}B\xbc\x01\n\x14\x63om.flyteidl.serviceB\nCacheProtoP\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') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/service/cache.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1a\x66lyteidl/core/errors.proto\x1a\x1e\x66lyteidl/core/identifier.proto\"|\n\x1a\x45victExecutionCacheRequest\x12^\n\x15workflow_execution_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x13workflowExecutionId\"t\n\x1e\x45victTaskExecutionCacheRequest\x12R\n\x11task_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x0ftaskExecutionId\"S\n\x12\x45victCacheResponse\x12=\n\x06\x65rrors\x18\x01 \x01(\x0b\x32%.flyteidl.core.CacheEvictionErrorListR\x06\x65rrors2\x9f\x06\n\x0c\x43\x61\x63heService\x12\xe7\x01\n\x13\x45victExecutionCache\x12,.flyteidl.service.EvictExecutionCacheRequest\x1a$.flyteidl.service.EvictCacheResponse\"|\x82\xd3\xe4\x93\x02v*t/api/v1/cache/executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}\x12\xa4\x04\n\x17\x45victTaskExecutionCache\x12\x30.flyteidl.service.EvictTaskExecutionCacheRequest\x1a$.flyteidl.service.EvictCacheResponse\"\xb0\x03\x82\xd3\xe4\x93\x02\xa9\x03*\xa6\x03/api/v1/cache/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}B\xbc\x01\n\x14\x63om.flyteidl.serviceB\nCacheProtoP\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') _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.service.cache_pb2', globals()) @@ -24,12 +24,16 @@ DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.serviceB\nCacheProtoP\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' - _CACHESERVICE.methods_by_name['EvictCache']._options = None - _CACHESERVICE.methods_by_name['EvictCache']._serialized_options = b'\202\323\344\223\002\245\004:\001*Z\251\003*\246\003/api/v1/cache/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}*t/api/v1/cache/executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}' - _EVICTCACHEREQUEST._serialized_start=141 - _EVICTCACHEREQUEST._serialized_end=350 - _EVICTCACHERESPONSE._serialized_start=352 - _EVICTCACHERESPONSE._serialized_end=435 - _CACHESERVICE._serialized_start=438 - _CACHESERVICE._serialized_end=1101 + _CACHESERVICE.methods_by_name['EvictExecutionCache']._options = None + _CACHESERVICE.methods_by_name['EvictExecutionCache']._serialized_options = b'\202\323\344\223\002v*t/api/v1/cache/executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}' + _CACHESERVICE.methods_by_name['EvictTaskExecutionCache']._options = None + _CACHESERVICE.methods_by_name['EvictTaskExecutionCache']._serialized_options = b'\202\323\344\223\002\251\003*\246\003/api/v1/cache/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}' + _EVICTEXECUTIONCACHEREQUEST._serialized_start=140 + _EVICTEXECUTIONCACHEREQUEST._serialized_end=264 + _EVICTTASKEXECUTIONCACHEREQUEST._serialized_start=266 + _EVICTTASKEXECUTIONCACHEREQUEST._serialized_end=382 + _EVICTCACHERESPONSE._serialized_start=384 + _EVICTCACHERESPONSE._serialized_end=467 + _CACHESERVICE._serialized_start=470 + _CACHESERVICE._serialized_end=1269 # @@protoc_insertion_point(module_scope) diff --git a/gen/pb_python/flyteidl/service/cache_pb2.pyi b/gen/pb_python/flyteidl/service/cache_pb2.pyi index 87a7c6307..0c4988e05 100644 --- a/gen/pb_python/flyteidl/service/cache_pb2.pyi +++ b/gen/pb_python/flyteidl/service/cache_pb2.pyi @@ -7,16 +7,20 @@ from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Opti DESCRIPTOR: _descriptor.FileDescriptor -class EvictCacheRequest(_message.Message): - __slots__ = ["task_execution_id", "workflow_execution_id"] - TASK_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] - WORKFLOW_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] - task_execution_id: _identifier_pb2.TaskExecutionIdentifier - workflow_execution_id: _identifier_pb2.WorkflowExecutionIdentifier - def __init__(self, workflow_execution_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., task_execution_id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ...) -> None: ... - class EvictCacheResponse(_message.Message): __slots__ = ["errors"] ERRORS_FIELD_NUMBER: _ClassVar[int] errors: _errors_pb2.CacheEvictionErrorList def __init__(self, errors: _Optional[_Union[_errors_pb2.CacheEvictionErrorList, _Mapping]] = ...) -> None: ... + +class EvictExecutionCacheRequest(_message.Message): + __slots__ = ["workflow_execution_id"] + WORKFLOW_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] + workflow_execution_id: _identifier_pb2.WorkflowExecutionIdentifier + def __init__(self, workflow_execution_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ...) -> None: ... + +class EvictTaskExecutionCacheRequest(_message.Message): + __slots__ = ["task_execution_id"] + TASK_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] + task_execution_id: _identifier_pb2.TaskExecutionIdentifier + def __init__(self, task_execution_id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ...) -> None: ... diff --git a/gen/pb_python/flyteidl/service/cache_pb2_grpc.py b/gen/pb_python/flyteidl/service/cache_pb2_grpc.py index a1a075c1d..80b802f24 100644 --- a/gen/pb_python/flyteidl/service/cache_pb2_grpc.py +++ b/gen/pb_python/flyteidl/service/cache_pb2_grpc.py @@ -15,9 +15,14 @@ def __init__(self, channel): Args: channel: A grpc.Channel. """ - self.EvictCache = channel.unary_unary( - '/flyteidl.service.CacheService/EvictCache', - request_serializer=flyteidl_dot_service_dot_cache__pb2.EvictCacheRequest.SerializeToString, + self.EvictExecutionCache = channel.unary_unary( + '/flyteidl.service.CacheService/EvictExecutionCache', + request_serializer=flyteidl_dot_service_dot_cache__pb2.EvictExecutionCacheRequest.SerializeToString, + response_deserializer=flyteidl_dot_service_dot_cache__pb2.EvictCacheResponse.FromString, + ) + self.EvictTaskExecutionCache = channel.unary_unary( + '/flyteidl.service.CacheService/EvictTaskExecutionCache', + request_serializer=flyteidl_dot_service_dot_cache__pb2.EvictTaskExecutionCacheRequest.SerializeToString, response_deserializer=flyteidl_dot_service_dot_cache__pb2.EvictCacheResponse.FromString, ) @@ -26,8 +31,15 @@ class CacheServiceServicer(object): """CacheService defines an RPC Service for interacting with cached data in Flyte on a high level basis. """ - def EvictCache(self, request, context): - """Evicts all cached data for the referenced :ref:`ref_flyteidl.admin.Execution` or :ref:`ref_flyteidl.admin.TaskExecution`. + def EvictExecutionCache(self, request, context): + """Evicts all cached data for the referenced :ref:`ref_flyteidl.admin.Execution`. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def EvictTaskExecutionCache(self, request, context): + """Evicts all cached data for the referenced :ref:`ref_flyteidl.admin.TaskExecution`. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') @@ -36,9 +48,14 @@ def EvictCache(self, request, context): def add_CacheServiceServicer_to_server(servicer, server): rpc_method_handlers = { - 'EvictCache': grpc.unary_unary_rpc_method_handler( - servicer.EvictCache, - request_deserializer=flyteidl_dot_service_dot_cache__pb2.EvictCacheRequest.FromString, + 'EvictExecutionCache': grpc.unary_unary_rpc_method_handler( + servicer.EvictExecutionCache, + request_deserializer=flyteidl_dot_service_dot_cache__pb2.EvictExecutionCacheRequest.FromString, + response_serializer=flyteidl_dot_service_dot_cache__pb2.EvictCacheResponse.SerializeToString, + ), + 'EvictTaskExecutionCache': grpc.unary_unary_rpc_method_handler( + servicer.EvictTaskExecutionCache, + request_deserializer=flyteidl_dot_service_dot_cache__pb2.EvictTaskExecutionCacheRequest.FromString, response_serializer=flyteidl_dot_service_dot_cache__pb2.EvictCacheResponse.SerializeToString, ), } @@ -53,7 +70,24 @@ class CacheService(object): """ @staticmethod - def EvictCache(request, + def EvictExecutionCache(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.CacheService/EvictExecutionCache', + flyteidl_dot_service_dot_cache__pb2.EvictExecutionCacheRequest.SerializeToString, + flyteidl_dot_service_dot_cache__pb2.EvictCacheResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def EvictTaskExecutionCache(request, target, options=(), channel_credentials=None, @@ -63,8 +97,8 @@ def EvictCache(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.CacheService/EvictCache', - flyteidl_dot_service_dot_cache__pb2.EvictCacheRequest.SerializeToString, + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.CacheService/EvictTaskExecutionCache', + flyteidl_dot_service_dot_cache__pb2.EvictTaskExecutionCacheRequest.SerializeToString, flyteidl_dot_service_dot_cache__pb2.EvictCacheResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/protos/docs/core/core.rst b/protos/docs/core/core.rst index fc31243df..8c7cad010 100644 --- a/protos/docs/core/core.rst +++ b/protos/docs/core/core.rst @@ -630,13 +630,17 @@ failure reasons to the execution engine. CacheEvictionError.Code ------------------------------------------------------------------ - +Defines codes for distinguishing between errors encountered during cache eviction. .. csv-table:: Enum CacheEvictionError.Code values :header: "Name", "Number", "Description" :widths: auto - "UNKNOWN", "0", "" + "INTERNAL", "0", "Indicates a generic internal error occurred." + "RESERVATION_NOT_ACQUIRED", "1", "Indicates no reservation could be acquired before deleting an artifact." + "DATABASE_UPDATE_FAILED", "2", "Indicates updating the database entry related to the node execution failed." + "ARTIFACT_DELETE_FAILED", "3", "Indicates deleting the artifact from datacatalog failed." + "RESERVATION_NOT_RELEASED", "4", "Indicates the reservation previously acquired could not be released for an artifact." diff --git a/protos/docs/service/service.rst b/protos/docs/service/service.rst index d486a3600..d512bf581 100644 --- a/protos/docs/service/service.rst +++ b/protos/docs/service/service.rst @@ -234,21 +234,41 @@ flyteidl/service/cache.proto -.. _ref_flyteidl.service.EvictCacheRequest: +.. _ref_flyteidl.service.EvictCacheResponse: -EvictCacheRequest +EvictCacheResponse ------------------------------------------------------------------ -.. csv-table:: EvictCacheRequest type fields +.. csv-table:: EvictCacheResponse type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "errors", ":ref:`ref_flyteidl.core.CacheEvictionErrorList`", "", "List of errors encountered during cache eviction (if any)." + + + + + + + +.. _ref_flyteidl.service.EvictExecutionCacheRequest: + +EvictExecutionCacheRequest +------------------------------------------------------------------ + + + + + +.. csv-table:: EvictExecutionCacheRequest type fields :header: "Field", "Type", "Label", "Description" :widths: auto "workflow_execution_id", ":ref:`ref_flyteidl.core.WorkflowExecutionIdentifier`", "", "Identifier of :ref:`ref_flyteidl.admin.Execution` to evict cache for." - "task_execution_id", ":ref:`ref_flyteidl.core.TaskExecutionIdentifier`", "", "Identifier of :ref:`ref_flyteidl.admin.TaskExecution` to evict cache for." @@ -256,20 +276,20 @@ EvictCacheRequest -.. _ref_flyteidl.service.EvictCacheResponse: +.. _ref_flyteidl.service.EvictTaskExecutionCacheRequest: -EvictCacheResponse +EvictTaskExecutionCacheRequest ------------------------------------------------------------------ -.. csv-table:: EvictCacheResponse type fields +.. csv-table:: EvictTaskExecutionCacheRequest type fields :header: "Field", "Type", "Label", "Description" :widths: auto - "errors", ":ref:`ref_flyteidl.core.CacheEvictionErrorList`", "", "List of errors encountered during cache eviction (if any)." + "task_execution_id", ":ref:`ref_flyteidl.core.TaskExecutionIdentifier`", "", "Identifier of :ref:`ref_flyteidl.admin.TaskExecution` to evict cache for." @@ -300,7 +320,8 @@ CacheService defines an RPC Service for interacting with cached data in Flyte on :header: "Method Name", "Request Type", "Response Type", "Description" :widths: auto - "EvictCache", ":ref:`ref_flyteidl.service.EvictCacheRequest`", ":ref:`ref_flyteidl.service.EvictCacheResponse`", "Evicts all cached data for the referenced :ref:`ref_flyteidl.admin.Execution` or :ref:`ref_flyteidl.admin.TaskExecution`." + "EvictExecutionCache", ":ref:`ref_flyteidl.service.EvictExecutionCacheRequest`", ":ref:`ref_flyteidl.service.EvictCacheResponse`", "Evicts all cached data for the referenced :ref:`ref_flyteidl.admin.Execution`." + "EvictTaskExecutionCache", ":ref:`ref_flyteidl.service.EvictTaskExecutionCacheRequest`", ":ref:`ref_flyteidl.service.EvictCacheResponse`", "Evicts all cached data for the referenced :ref:`ref_flyteidl.admin.TaskExecution`." .. end services diff --git a/protos/flyteidl/core/errors.proto b/protos/flyteidl/core/errors.proto index 6e2f333f2..d69492506 100644 --- a/protos/flyteidl/core/errors.proto +++ b/protos/flyteidl/core/errors.proto @@ -37,8 +37,19 @@ message ErrorDocument { // Error returned if eviction of cached output fails and should be re-tried by the user. message CacheEvictionError { + // Defines codes for distinguishing between errors encountered during cache eviction. enum Code { - UNKNOWN = 0; + // Indicates a generic internal error occurred. + INTERNAL = 0; + // Indicates no reservation could be acquired before deleting an artifact. + RESERVATION_NOT_ACQUIRED = 1; + // Indicates updating the database entry related to the node execution failed. + DATABASE_UPDATE_FAILED = 2; + // Indicates deleting the artifact from datacatalog failed. + ARTIFACT_DELETE_FAILED = 3; + // Indicates the reservation previously acquired could not be released for an artifact. + RESERVATION_NOT_RELEASED = 4; + } // Error code to match type of cache eviction error encountered. diff --git a/protos/flyteidl/service/cache.proto b/protos/flyteidl/service/cache.proto index 871e87b2b..f76537472 100644 --- a/protos/flyteidl/service/cache.proto +++ b/protos/flyteidl/service/cache.proto @@ -9,14 +9,14 @@ import "google/api/annotations.proto"; import "flyteidl/core/errors.proto"; import "flyteidl/core/identifier.proto"; -message EvictCacheRequest { - // Identifier of resource cached data should be evicted for. - oneof id { - // Identifier of :ref:`ref_flyteidl.admin.Execution` to evict cache for. - core.WorkflowExecutionIdentifier workflow_execution_id = 1; - // Identifier of :ref:`ref_flyteidl.admin.TaskExecution` to evict cache for. - core.TaskExecutionIdentifier task_execution_id = 2; - } +message EvictExecutionCacheRequest { + // Identifier of :ref:`ref_flyteidl.admin.Execution` to evict cache for. + core.WorkflowExecutionIdentifier workflow_execution_id = 1; +} + +message EvictTaskExecutionCacheRequest { + // Identifier of :ref:`ref_flyteidl.admin.TaskExecution` to evict cache for. + core.TaskExecutionIdentifier task_execution_id = 1; } message EvictCacheResponse { @@ -26,17 +26,23 @@ message EvictCacheResponse { // CacheService defines an RPC Service for interacting with cached data in Flyte on a high level basis. service CacheService { - // Evicts all cached data for the referenced :ref:`ref_flyteidl.admin.Execution` or :ref:`ref_flyteidl.admin.TaskExecution`. - rpc EvictCache (EvictCacheRequest) returns (EvictCacheResponse) { + // Evicts all cached data for the referenced :ref:`ref_flyteidl.admin.Execution`. + rpc EvictExecutionCache (EvictExecutionCacheRequest) returns (EvictCacheResponse) { option (google.api.http) = { delete: "/api/v1/cache/executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}" - additional_bindings: { - delete: "/api/v1/cache/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}" - } - body: "*" }; // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { // description: "Evicts all cached data for the referenced (workflow) execution." // }; } + + // Evicts all cached data for the referenced :ref:`ref_flyteidl.admin.TaskExecution`. + rpc EvictTaskExecutionCache (EvictTaskExecutionCacheRequest) returns (EvictCacheResponse) { + option (google.api.http) = { + delete: "/api/v1/cache/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Evicts all cached data for the referenced task execution." + // }; + } }