diff --git a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.grpc.pb.cc index 80aff7ed555..5315df53723 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.grpc.pb.cc +++ b/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.grpc.pb.cc @@ -30,6 +30,7 @@ static const char* ArtifactRegistry_method_names[] = { "/flyteidl.artifact.ArtifactRegistry/RegisterConsumer", "/flyteidl.artifact.ArtifactRegistry/SetExecutionInputs", "/flyteidl.artifact.ArtifactRegistry/FindByWorkflowExec", + "/flyteidl.artifact.ArtifactRegistry/ListUsage", }; std::unique_ptr< ArtifactRegistry::Stub> ArtifactRegistry::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { @@ -49,6 +50,7 @@ ArtifactRegistry::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& c , rpcmethod_RegisterConsumer_(ArtifactRegistry_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_SetExecutionInputs_(ArtifactRegistry_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_FindByWorkflowExec_(ArtifactRegistry_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListUsage_(ArtifactRegistry_method_names[10], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status ArtifactRegistry::Stub::CreateArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateArtifactRequest& request, ::flyteidl::artifact::CreateArtifactResponse* response) { @@ -331,6 +333,34 @@ ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::SearchArtifactsResponse>::Create(channel_.get(), cq, rpcmethod_FindByWorkflowExec_, context, request, false); } +::grpc::Status ArtifactRegistry::Stub::ListUsage(::grpc::ClientContext* context, const ::flyteidl::artifact::ListUsageRequest& request, ::flyteidl::artifact::ListUsageResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListUsage_, context, request, response); +} + +void ArtifactRegistry::Stub::experimental_async::ListUsage(::grpc::ClientContext* context, const ::flyteidl::artifact::ListUsageRequest* request, ::flyteidl::artifact::ListUsageResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListUsage_, context, request, response, std::move(f)); +} + +void ArtifactRegistry::Stub::experimental_async::ListUsage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::ListUsageResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListUsage_, context, request, response, std::move(f)); +} + +void ArtifactRegistry::Stub::experimental_async::ListUsage(::grpc::ClientContext* context, const ::flyteidl::artifact::ListUsageRequest* request, ::flyteidl::artifact::ListUsageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListUsage_, context, request, response, reactor); +} + +void ArtifactRegistry::Stub::experimental_async::ListUsage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::ListUsageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListUsage_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::ListUsageResponse>* ArtifactRegistry::Stub::AsyncListUsageRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::ListUsageRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::ListUsageResponse>::Create(channel_.get(), cq, rpcmethod_ListUsage_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::ListUsageResponse>* ArtifactRegistry::Stub::PrepareAsyncListUsageRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::ListUsageRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::ListUsageResponse>::Create(channel_.get(), cq, rpcmethod_ListUsage_, context, request, false); +} + ArtifactRegistry::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( ArtifactRegistry_method_names[0], @@ -382,6 +412,11 @@ ArtifactRegistry::Service::Service() { ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< ArtifactRegistry::Service, ::flyteidl::artifact::FindByWorkflowExecRequest, ::flyteidl::artifact::SearchArtifactsResponse>( std::mem_fn(&ArtifactRegistry::Service::FindByWorkflowExec), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ArtifactRegistry_method_names[10], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ArtifactRegistry::Service, ::flyteidl::artifact::ListUsageRequest, ::flyteidl::artifact::ListUsageResponse>( + std::mem_fn(&ArtifactRegistry::Service::ListUsage), this))); } ArtifactRegistry::Service::~Service() { @@ -457,6 +492,13 @@ ::grpc::Status ArtifactRegistry::Service::FindByWorkflowExec(::grpc::ServerConte return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status ArtifactRegistry::Service::ListUsage(::grpc::ServerContext* context, const ::flyteidl::artifact::ListUsageRequest* request, ::flyteidl::artifact::ListUsageResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + } // namespace flyteidl } // namespace artifact diff --git a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.grpc.pb.h index 8de7e34e02b..d113f04e200 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.grpc.pb.h +++ b/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.grpc.pb.h @@ -118,6 +118,13 @@ class ArtifactRegistry final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::SearchArtifactsResponse>> PrepareAsyncFindByWorkflowExec(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::SearchArtifactsResponse>>(PrepareAsyncFindByWorkflowExecRaw(context, request, cq)); } + virtual ::grpc::Status ListUsage(::grpc::ClientContext* context, const ::flyteidl::artifact::ListUsageRequest& request, ::flyteidl::artifact::ListUsageResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::ListUsageResponse>> AsyncListUsage(::grpc::ClientContext* context, const ::flyteidl::artifact::ListUsageRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::ListUsageResponse>>(AsyncListUsageRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::ListUsageResponse>> PrepareAsyncListUsage(::grpc::ClientContext* context, const ::flyteidl::artifact::ListUsageRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::ListUsageResponse>>(PrepareAsyncListUsageRaw(context, request, cq)); + } class experimental_async_interface { public: virtual ~experimental_async_interface() {} @@ -161,6 +168,10 @@ class ArtifactRegistry final { virtual void FindByWorkflowExec(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::SearchArtifactsResponse* response, std::function) = 0; virtual void FindByWorkflowExec(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; virtual void FindByWorkflowExec(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void ListUsage(::grpc::ClientContext* context, const ::flyteidl::artifact::ListUsageRequest* request, ::flyteidl::artifact::ListUsageResponse* response, std::function) = 0; + virtual void ListUsage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::ListUsageResponse* response, std::function) = 0; + virtual void ListUsage(::grpc::ClientContext* context, const ::flyteidl::artifact::ListUsageRequest* request, ::flyteidl::artifact::ListUsageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void ListUsage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::ListUsageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; }; virtual class experimental_async_interface* experimental_async() { return nullptr; } private: @@ -184,6 +195,8 @@ class ArtifactRegistry final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::ExecutionInputsResponse>* PrepareAsyncSetExecutionInputsRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::SearchArtifactsResponse>* AsyncFindByWorkflowExecRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::SearchArtifactsResponse>* PrepareAsyncFindByWorkflowExecRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::ListUsageResponse>* AsyncListUsageRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::ListUsageRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::ListUsageResponse>* PrepareAsyncListUsageRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::ListUsageRequest& request, ::grpc::CompletionQueue* cq) = 0; }; class Stub final : public StubInterface { public: @@ -258,6 +271,13 @@ class ArtifactRegistry final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>> PrepareAsyncFindByWorkflowExec(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>>(PrepareAsyncFindByWorkflowExecRaw(context, request, cq)); } + ::grpc::Status ListUsage(::grpc::ClientContext* context, const ::flyteidl::artifact::ListUsageRequest& request, ::flyteidl::artifact::ListUsageResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::ListUsageResponse>> AsyncListUsage(::grpc::ClientContext* context, const ::flyteidl::artifact::ListUsageRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::ListUsageResponse>>(AsyncListUsageRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::ListUsageResponse>> PrepareAsyncListUsage(::grpc::ClientContext* context, const ::flyteidl::artifact::ListUsageRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::ListUsageResponse>>(PrepareAsyncListUsageRaw(context, request, cq)); + } class experimental_async final : public StubInterface::experimental_async_interface { public: @@ -301,6 +321,10 @@ class ArtifactRegistry final { void FindByWorkflowExec(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::SearchArtifactsResponse* response, std::function) override; void FindByWorkflowExec(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; void FindByWorkflowExec(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListUsage(::grpc::ClientContext* context, const ::flyteidl::artifact::ListUsageRequest* request, ::flyteidl::artifact::ListUsageResponse* response, std::function) override; + void ListUsage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::ListUsageResponse* response, std::function) override; + void ListUsage(::grpc::ClientContext* context, const ::flyteidl::artifact::ListUsageRequest* request, ::flyteidl::artifact::ListUsageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListUsage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::ListUsageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; private: friend class Stub; explicit experimental_async(Stub* stub): stub_(stub) { } @@ -332,6 +356,8 @@ class ArtifactRegistry final { ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::ExecutionInputsResponse>* PrepareAsyncSetExecutionInputsRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>* AsyncFindByWorkflowExecRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>* PrepareAsyncFindByWorkflowExecRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::ListUsageResponse>* AsyncListUsageRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::ListUsageRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::ListUsageResponse>* PrepareAsyncListUsageRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::ListUsageRequest& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_CreateArtifact_; const ::grpc::internal::RpcMethod rpcmethod_GetArtifact_; const ::grpc::internal::RpcMethod rpcmethod_SearchArtifacts_; @@ -342,6 +368,7 @@ class ArtifactRegistry final { const ::grpc::internal::RpcMethod rpcmethod_RegisterConsumer_; const ::grpc::internal::RpcMethod rpcmethod_SetExecutionInputs_; const ::grpc::internal::RpcMethod rpcmethod_FindByWorkflowExec_; + const ::grpc::internal::RpcMethod rpcmethod_ListUsage_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -359,6 +386,7 @@ class ArtifactRegistry final { virtual ::grpc::Status RegisterConsumer(::grpc::ServerContext* context, const ::flyteidl::artifact::RegisterConsumerRequest* request, ::flyteidl::artifact::RegisterResponse* response); virtual ::grpc::Status SetExecutionInputs(::grpc::ServerContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response); virtual ::grpc::Status FindByWorkflowExec(::grpc::ServerContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response); + virtual ::grpc::Status ListUsage(::grpc::ServerContext* context, const ::flyteidl::artifact::ListUsageRequest* request, ::flyteidl::artifact::ListUsageResponse* response); }; template class WithAsyncMethod_CreateArtifact : public BaseClass { @@ -560,7 +588,27 @@ class ArtifactRegistry final { ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_CreateArtifact > > > > > > > > > AsyncService; + template + class WithAsyncMethod_ListUsage : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListUsage() { + ::grpc::Service::MarkMethodAsync(10); + } + ~WithAsyncMethod_ListUsage() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListUsage(::grpc::ServerContext* context, const ::flyteidl::artifact::ListUsageRequest* request, ::flyteidl::artifact::ListUsageResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListUsage(::grpc::ServerContext* context, ::flyteidl::artifact::ListUsageRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::artifact::ListUsageResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_CreateArtifact > > > > > > > > > > AsyncService; template class ExperimentalWithCallbackMethod_CreateArtifact : public BaseClass { private: @@ -871,7 +919,38 @@ class ArtifactRegistry final { } virtual void FindByWorkflowExec(::grpc::ServerContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; - typedef ExperimentalWithCallbackMethod_CreateArtifact > > > > > > > > > ExperimentalCallbackService; + template + class ExperimentalWithCallbackMethod_ListUsage : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_ListUsage() { + ::grpc::Service::experimental().MarkMethodCallback(10, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::ListUsageRequest, ::flyteidl::artifact::ListUsageResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::artifact::ListUsageRequest* request, + ::flyteidl::artifact::ListUsageResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->ListUsage(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_ListUsage( + ::grpc::experimental::MessageAllocator< ::flyteidl::artifact::ListUsageRequest, ::flyteidl::artifact::ListUsageResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::ListUsageRequest, ::flyteidl::artifact::ListUsageResponse>*>( + ::grpc::Service::experimental().GetHandler(10)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListUsage() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListUsage(::grpc::ServerContext* context, const ::flyteidl::artifact::ListUsageRequest* request, ::flyteidl::artifact::ListUsageResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListUsage(::grpc::ServerContext* context, const ::flyteidl::artifact::ListUsageRequest* request, ::flyteidl::artifact::ListUsageResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + typedef ExperimentalWithCallbackMethod_CreateArtifact > > > > > > > > > > ExperimentalCallbackService; template class WithGenericMethod_CreateArtifact : public BaseClass { private: @@ -1043,6 +1122,23 @@ class ArtifactRegistry final { } }; template + class WithGenericMethod_ListUsage : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListUsage() { + ::grpc::Service::MarkMethodGeneric(10); + } + ~WithGenericMethod_ListUsage() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListUsage(::grpc::ServerContext* context, const ::flyteidl::artifact::ListUsageRequest* request, ::flyteidl::artifact::ListUsageResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithRawMethod_CreateArtifact : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} @@ -1243,6 +1339,26 @@ class ArtifactRegistry final { } }; template + class WithRawMethod_ListUsage : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListUsage() { + ::grpc::Service::MarkMethodRaw(10); + } + ~WithRawMethod_ListUsage() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListUsage(::grpc::ServerContext* context, const ::flyteidl::artifact::ListUsageRequest* request, ::flyteidl::artifact::ListUsageResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListUsage(::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(10, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class ExperimentalWithRawCallbackMethod_CreateArtifact : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} @@ -1493,6 +1609,31 @@ class ArtifactRegistry final { virtual void FindByWorkflowExec(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template + class ExperimentalWithRawCallbackMethod_ListUsage : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_ListUsage() { + ::grpc::Service::experimental().MarkMethodRawCallback(10, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->ListUsage(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_ListUsage() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListUsage(::grpc::ServerContext* context, const ::flyteidl::artifact::ListUsageRequest* request, ::flyteidl::artifact::ListUsageResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListUsage(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template class WithStreamedUnaryMethod_CreateArtifact : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} @@ -1692,9 +1833,29 @@ class ArtifactRegistry final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedFindByWorkflowExec(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::artifact::FindByWorkflowExecRequest,::flyteidl::artifact::SearchArtifactsResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_CreateArtifact > > > > > > > > > StreamedUnaryService; + template + class WithStreamedUnaryMethod_ListUsage : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListUsage() { + ::grpc::Service::MarkMethodStreamed(10, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::artifact::ListUsageRequest, ::flyteidl::artifact::ListUsageResponse>(std::bind(&WithStreamedUnaryMethod_ListUsage::StreamedListUsage, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListUsage() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListUsage(::grpc::ServerContext* context, const ::flyteidl::artifact::ListUsageRequest* request, ::flyteidl::artifact::ListUsageResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListUsage(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::artifact::ListUsageRequest,::flyteidl::artifact::ListUsageResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_CreateArtifact > > > > > > > > > > StreamedUnaryService; typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_CreateArtifact > > > > > > > > > StreamedService; + typedef WithStreamedUnaryMethod_CreateArtifact > > > > > > > > > > StreamedService; }; } // namespace artifact diff --git a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.cc index 8ad18437812..94d3515bb05 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.cc +++ b/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.cc @@ -137,6 +137,14 @@ class ExecutionInputsResponseDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _ExecutionInputsResponse_default_instance_; +class ListUsageRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ListUsageRequest_default_instance_; +class ListUsageResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ListUsageResponse_default_instance_; } // namespace artifact } // namespace flyteidl static void InitDefaultsArtifact_flyteidl_2fartifact_2fartifacts_2eproto() { @@ -519,6 +527,36 @@ static void InitDefaultsExecutionInputsResponse_flyteidl_2fartifact_2fartifacts_ ::google::protobuf::internal::SCCInfo<0> scc_info_ExecutionInputsResponse_flyteidl_2fartifact_2fartifacts_2eproto = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsExecutionInputsResponse_flyteidl_2fartifact_2fartifacts_2eproto}, {}}; +static void InitDefaultsListUsageRequest_flyteidl_2fartifact_2fartifacts_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::artifact::_ListUsageRequest_default_instance_; + new (ptr) ::flyteidl::artifact::ListUsageRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::artifact::ListUsageRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ListUsageRequest_flyteidl_2fartifact_2fartifacts_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsListUsageRequest_flyteidl_2fartifact_2fartifacts_2eproto}, { + &scc_info_ArtifactID_flyteidl_2fcore_2fartifact_5fid_2eproto.base,}}; + +static void InitDefaultsListUsageResponse_flyteidl_2fartifact_2fartifacts_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::artifact::_ListUsageResponse_default_instance_; + new (ptr) ::flyteidl::artifact::ListUsageResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::artifact::ListUsageResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ListUsageResponse_flyteidl_2fartifact_2fartifacts_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsListUsageResponse_flyteidl_2fartifact_2fartifacts_2eproto}, { + &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + void InitDefaults_flyteidl_2fartifact_2fartifacts_2eproto() { ::google::protobuf::internal::InitSCC(&scc_info_Artifact_flyteidl_2fartifact_2fartifacts_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_CreateArtifactRequest_PartitionsEntry_DoNotUse_flyteidl_2fartifact_2fartifacts_2eproto.base); @@ -545,9 +583,11 @@ void InitDefaults_flyteidl_2fartifact_2fartifacts_2eproto() { ::google::protobuf::internal::InitSCC(&scc_info_RegisterResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_ExecutionInputsRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_ExecutionInputsResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ListUsageRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ListUsageResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); } -::google::protobuf::Metadata file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[25]; +::google::protobuf::Metadata file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[27]; const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fartifact_2fartifacts_2eproto[1]; constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fartifact_2fartifacts_2eproto = nullptr; @@ -731,6 +771,18 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fartifact_2fartifacts_2ep ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ListUsageRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ListUsageRequest, artifact_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ListUsageResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ListUsageResponse, executions_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::flyteidl::artifact::Artifact)}, @@ -758,6 +810,8 @@ static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SE { 162, -1, sizeof(::flyteidl::artifact::RegisterResponse)}, { 167, -1, sizeof(::flyteidl::artifact::ExecutionInputsRequest)}, { 174, -1, sizeof(::flyteidl::artifact::ExecutionInputsResponse)}, + { 179, -1, sizeof(::flyteidl::artifact::ListUsageRequest)}, + { 185, -1, sizeof(::flyteidl::artifact::ListUsageResponse)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { @@ -786,12 +840,14 @@ static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::flyteidl::artifact::_RegisterResponse_default_instance_), reinterpret_cast(&::flyteidl::artifact::_ExecutionInputsRequest_default_instance_), reinterpret_cast(&::flyteidl::artifact::_ExecutionInputsResponse_default_instance_), + reinterpret_cast(&::flyteidl::artifact::_ListUsageRequest_default_instance_), + reinterpret_cast(&::flyteidl::artifact::_ListUsageResponse_default_instance_), }; ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto = { {}, AddDescriptors_flyteidl_2fartifact_2fartifacts_2eproto, "flyteidl/artifact/artifacts.proto", schemas, file_default_instances, TableStruct_flyteidl_2fartifact_2fartifacts_2eproto::offsets, - file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto, 25, file_level_enum_descriptors_flyteidl_2fartifact_2fartifacts_2eproto, file_level_service_descriptors_flyteidl_2fartifact_2fartifacts_2eproto, + file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto, 27, file_level_enum_descriptors_flyteidl_2fartifact_2fartifacts_2eproto, file_level_service_descriptors_flyteidl_2fartifact_2fartifacts_2eproto, }; const char descriptor_table_protodef_flyteidl_2fartifact_2fartifacts_2eproto[] = @@ -868,62 +924,72 @@ const char descriptor_table_protodef_flyteidl_2fartifact_2fartifacts_2eproto[] = "ionInputsRequest\022@\n\014execution_id\030\001 \001(\0132*" ".flyteidl.core.WorkflowExecutionIdentifi" "er\022)\n\006inputs\030\002 \003(\0132\031.flyteidl.core.Artif" - "actID\"\031\n\027ExecutionInputsResponse2\371\016\n\020Art" - "ifactRegistry\022g\n\016CreateArtifact\022(.flytei" - "dl.artifact.CreateArtifactRequest\032).flyt" - "eidl.artifact.CreateArtifactResponse\"\000\022\361" - "\004\n\013GetArtifact\022%.flyteidl.artifact.GetAr" - "tifactRequest\032&.flyteidl.artifact.GetArt" - "ifactResponse\"\222\004\202\323\344\223\002\213\004\022\033/artifacts/api/" - "v1/artifactsZ\263\001\022\260\001/artifacts/api/v1/arti" - "fact/id/{query.artifact_id.artifact_key." - "project}/{query.artifact_id.artifact_key" - ".domain}/{query.artifact_id.artifact_key" - ".name}/{query.artifact_id.version}Z\227\001\022\224\001" - "/artifacts/api/v1/artifact/id/{query.art" - "ifact_id.artifact_key.project}/{query.ar" - "tifact_id.artifact_key.domain}/{query.ar" - "tifact_id.artifact_key.name}Z\233\001\022\230\001/artif" - "acts/api/v1/artifact/tag/{query.artifact" - "_tag.artifact_key.project}/{query.artifa" - "ct_tag.artifact_key.domain}/{query.artif" - "act_tag.artifact_key.name}\022\226\002\n\017SearchArt" - "ifacts\022).flyteidl.artifact.SearchArtifac" - "tsRequest\032*.flyteidl.artifact.SearchArti" - "factsResponse\"\253\001\202\323\344\223\002\244\001\022Y/artifacts/api/" - "v1/search/{artifact_key.project}/{artifa" - "ct_key.domain}/{artifact_key.name}ZG\022E/a" - "rtifacts/api/v1/search/{artifact_key.pro" - "ject}/{artifact_key.domain}\022d\n\rCreateTri" - "gger\022\'.flyteidl.artifact.CreateTriggerRe" - "quest\032(.flyteidl.artifact.CreateTriggerR" - "esponse\"\000\022\237\001\n\021DeactivateTrigger\022+.flytei" - "dl.artifact.DeactivateTriggerRequest\032,.f" - "lyteidl.artifact.DeactivateTriggerRespon" - "se\"/\202\323\344\223\002)2$/artifacts/api/v1/trigger/de" - "activate:\001*\022O\n\006AddTag\022 .flyteidl.artifac" - "t.AddTagRequest\032!.flyteidl.artifact.AddT" - "agResponse\"\000\022e\n\020RegisterProducer\022*.flyte" - "idl.artifact.RegisterProducerRequest\032#.f" - "lyteidl.artifact.RegisterResponse\"\000\022e\n\020R" - "egisterConsumer\022*.flyteidl.artifact.Regi" - "sterConsumerRequest\032#.flyteidl.artifact." - "RegisterResponse\"\000\022m\n\022SetExecutionInputs" - "\022).flyteidl.artifact.ExecutionInputsRequ" - "est\032*.flyteidl.artifact.ExecutionInputsR" - "esponse\"\000\022\330\001\n\022FindByWorkflowExec\022,.flyte" - "idl.artifact.FindByWorkflowExecRequest\032*" - ".flyteidl.artifact.SearchArtifactsRespon" - "se\"h\202\323\344\223\002b\022`/artifacts/api/v1/search/exe" - "cution/{exec_id.project}/{exec_id.domain" - "}/{exec_id.name}/{direction}B@Z>github.c" - "om/flyteorg/flyte/flyteidl/gen/pb-go/fly" - "teidl/artifactb\006proto3" + "actID\"\031\n\027ExecutionInputsResponse\"B\n\020List" + "UsageRequest\022.\n\013artifact_id\030\001 \001(\0132\031.flyt" + "eidl.core.ArtifactID\"S\n\021ListUsageRespons" + "e\022>\n\nexecutions\030\001 \003(\0132*.flyteidl.core.Wo" + "rkflowExecutionIdentifier2\361\020\n\020ArtifactRe" + "gistry\022g\n\016CreateArtifact\022(.flyteidl.arti" + "fact.CreateArtifactRequest\032).flyteidl.ar" + "tifact.CreateArtifactResponse\"\000\022\361\004\n\013GetA" + "rtifact\022%.flyteidl.artifact.GetArtifactR" + "equest\032&.flyteidl.artifact.GetArtifactRe" + "sponse\"\222\004\202\323\344\223\002\213\004\022\033/artifacts/api/v1/arti" + "factsZ\263\001\022\260\001/artifacts/api/v1/artifact/id" + "/{query.artifact_id.artifact_key.project" + "}/{query.artifact_id.artifact_key.domain" + "}/{query.artifact_id.artifact_key.name}/" + "{query.artifact_id.version}Z\227\001\022\224\001/artifa" + "cts/api/v1/artifact/id/{query.artifact_i" + "d.artifact_key.project}/{query.artifact_" + "id.artifact_key.domain}/{query.artifact_" + "id.artifact_key.name}Z\233\001\022\230\001/artifacts/ap" + "i/v1/artifact/tag/{query.artifact_tag.ar" + "tifact_key.project}/{query.artifact_tag." + "artifact_key.domain}/{query.artifact_tag" + ".artifact_key.name}\022\226\002\n\017SearchArtifacts\022" + ").flyteidl.artifact.SearchArtifactsReque" + "st\032*.flyteidl.artifact.SearchArtifactsRe" + "sponse\"\253\001\202\323\344\223\002\244\001\022Y/artifacts/api/v1/sear" + "ch/{artifact_key.project}/{artifact_key." + "domain}/{artifact_key.name}ZG\022E/artifact" + "s/api/v1/search/{artifact_key.project}/{" + "artifact_key.domain}\022d\n\rCreateTrigger\022\'." + "flyteidl.artifact.CreateTriggerRequest\032(" + ".flyteidl.artifact.CreateTriggerResponse" + "\"\000\022\237\001\n\021DeactivateTrigger\022+.flyteidl.arti" + "fact.DeactivateTriggerRequest\032,.flyteidl" + ".artifact.DeactivateTriggerResponse\"/\202\323\344" + "\223\002)2$/artifacts/api/v1/trigger/deactivat" + "e:\001*\022O\n\006AddTag\022 .flyteidl.artifact.AddTa" + "gRequest\032!.flyteidl.artifact.AddTagRespo" + "nse\"\000\022e\n\020RegisterProducer\022*.flyteidl.art" + "ifact.RegisterProducerRequest\032#.flyteidl" + ".artifact.RegisterResponse\"\000\022e\n\020Register" + "Consumer\022*.flyteidl.artifact.RegisterCon" + "sumerRequest\032#.flyteidl.artifact.Registe" + "rResponse\"\000\022m\n\022SetExecutionInputs\022).flyt" + "eidl.artifact.ExecutionInputsRequest\032*.f" + "lyteidl.artifact.ExecutionInputsResponse" + "\"\000\022\330\001\n\022FindByWorkflowExec\022,.flyteidl.art" + "ifact.FindByWorkflowExecRequest\032*.flytei" + "dl.artifact.SearchArtifactsResponse\"h\202\323\344" + "\223\002b\022`/artifacts/api/v1/search/execution/" + "{exec_id.project}/{exec_id.domain}/{exec" + "_id.name}/{direction}\022\365\001\n\tListUsage\022#.fl" + "yteidl.artifact.ListUsageRequest\032$.flyte" + "idl.artifact.ListUsageResponse\"\234\001\202\323\344\223\002\225\001" + "\022\222\001/artifacts/api/v1/usage/{artifact_id." + "artifact_key.project}/{artifact_id.artif" + "act_key.domain}/{artifact_id.artifact_ke" + "y.name}/{artifact_id.version}B@Z>github." + "com/flyteorg/flyte/flyteidl/gen/pb-go/fl" + "yteidl/artifactb\006proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fartifact_2fartifacts_2eproto = { false, InitDefaults_flyteidl_2fartifact_2fartifacts_2eproto, descriptor_table_protodef_flyteidl_2fartifact_2fartifacts_2eproto, - "flyteidl/artifact/artifacts.proto", &assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto, 4942, + "flyteidl/artifact/artifacts.proto", &assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto, 5343, }; void AddDescriptors_flyteidl_2fartifact_2fartifacts_2eproto() { @@ -9706,6 +9772,582 @@ ::google::protobuf::Metadata ExecutionInputsResponse::GetMetadata() const { } +// =================================================================== + +void ListUsageRequest::InitAsDefaultInstance() { + ::flyteidl::artifact::_ListUsageRequest_default_instance_._instance.get_mutable()->artifact_id_ = const_cast< ::flyteidl::core::ArtifactID*>( + ::flyteidl::core::ArtifactID::internal_default_instance()); +} +class ListUsageRequest::HasBitSetters { + public: + static const ::flyteidl::core::ArtifactID& artifact_id(const ListUsageRequest* msg); +}; + +const ::flyteidl::core::ArtifactID& +ListUsageRequest::HasBitSetters::artifact_id(const ListUsageRequest* msg) { + return *msg->artifact_id_; +} +void ListUsageRequest::clear_artifact_id() { + if (GetArenaNoVirtual() == nullptr && artifact_id_ != nullptr) { + delete artifact_id_; + } + artifact_id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ListUsageRequest::kArtifactIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ListUsageRequest::ListUsageRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.artifact.ListUsageRequest) +} +ListUsageRequest::ListUsageRequest(const ListUsageRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_artifact_id()) { + artifact_id_ = new ::flyteidl::core::ArtifactID(*from.artifact_id_); + } else { + artifact_id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.ListUsageRequest) +} + +void ListUsageRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ListUsageRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); + artifact_id_ = nullptr; +} + +ListUsageRequest::~ListUsageRequest() { + // @@protoc_insertion_point(destructor:flyteidl.artifact.ListUsageRequest) + SharedDtor(); +} + +void ListUsageRequest::SharedDtor() { + if (this != internal_default_instance()) delete artifact_id_; +} + +void ListUsageRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListUsageRequest& ListUsageRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ListUsageRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); + return *internal_default_instance(); +} + + +void ListUsageRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.ListUsageRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && artifact_id_ != nullptr) { + delete artifact_id_; + } + artifact_id_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ListUsageRequest::_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.ArtifactID artifact_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::ArtifactID::_InternalParse; + object = msg->mutable_artifact_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ListUsageRequest::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.artifact.ListUsageRequest) + 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.ArtifactID artifact_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_artifact_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.artifact.ListUsageRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.artifact.ListUsageRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ListUsageRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.artifact.ListUsageRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ArtifactID artifact_id = 1; + if (this->has_artifact_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::artifact_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.artifact.ListUsageRequest) +} + +::google::protobuf::uint8* ListUsageRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.ListUsageRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ArtifactID artifact_id = 1; + if (this->has_artifact_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::artifact_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.artifact.ListUsageRequest) + return target; +} + +size_t ListUsageRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.ListUsageRequest) + 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.ArtifactID artifact_id = 1; + if (this->has_artifact_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *artifact_id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListUsageRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.ListUsageRequest) + GOOGLE_DCHECK_NE(&from, this); + const ListUsageRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.ListUsageRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.ListUsageRequest) + MergeFrom(*source); + } +} + +void ListUsageRequest::MergeFrom(const ListUsageRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.ListUsageRequest) + 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_artifact_id()) { + mutable_artifact_id()->::flyteidl::core::ArtifactID::MergeFrom(from.artifact_id()); + } +} + +void ListUsageRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.ListUsageRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListUsageRequest::CopyFrom(const ListUsageRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.ListUsageRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListUsageRequest::IsInitialized() const { + return true; +} + +void ListUsageRequest::Swap(ListUsageRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ListUsageRequest::InternalSwap(ListUsageRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(artifact_id_, other->artifact_id_); +} + +::google::protobuf::Metadata ListUsageRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); + return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ListUsageResponse::InitAsDefaultInstance() { +} +class ListUsageResponse::HasBitSetters { + public: +}; + +void ListUsageResponse::clear_executions() { + executions_.Clear(); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ListUsageResponse::kExecutionsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ListUsageResponse::ListUsageResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.artifact.ListUsageResponse) +} +ListUsageResponse::ListUsageResponse(const ListUsageResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + executions_(from.executions_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.ListUsageResponse) +} + +void ListUsageResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ListUsageResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); +} + +ListUsageResponse::~ListUsageResponse() { + // @@protoc_insertion_point(destructor:flyteidl.artifact.ListUsageResponse) + SharedDtor(); +} + +void ListUsageResponse::SharedDtor() { +} + +void ListUsageResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListUsageResponse& ListUsageResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ListUsageResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); + return *internal_default_instance(); +} + + +void ListUsageResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.ListUsageResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + executions_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ListUsageResponse::_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) { + // repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; + object = msg->add_executions(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ListUsageResponse::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.artifact.ListUsageResponse) + 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)) { + // repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_executions())); + } 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.artifact.ListUsageResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.artifact.ListUsageResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ListUsageResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.artifact.ListUsageResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + for (unsigned int i = 0, + n = static_cast(this->executions_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->executions(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.artifact.ListUsageResponse) +} + +::google::protobuf::uint8* ListUsageResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.ListUsageResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + for (unsigned int i = 0, + n = static_cast(this->executions_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->executions(static_cast(i)), 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.artifact.ListUsageResponse) + return target; +} + +size_t ListUsageResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.ListUsageResponse) + 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; + + // repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + { + unsigned int count = static_cast(this->executions_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->executions(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListUsageResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.ListUsageResponse) + GOOGLE_DCHECK_NE(&from, this); + const ListUsageResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.ListUsageResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.ListUsageResponse) + MergeFrom(*source); + } +} + +void ListUsageResponse::MergeFrom(const ListUsageResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.ListUsageResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + executions_.MergeFrom(from.executions_); +} + +void ListUsageResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.ListUsageResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListUsageResponse::CopyFrom(const ListUsageResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.ListUsageResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListUsageResponse::IsInitialized() const { + return true; +} + +void ListUsageResponse::Swap(ListUsageResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void ListUsageResponse::InternalSwap(ListUsageResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&executions_)->InternalSwap(CastToBase(&other->executions_)); +} + +::google::protobuf::Metadata ListUsageResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); + return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; +} + + // @@protoc_insertion_point(namespace_scope) } // namespace artifact } // namespace flyteidl @@ -9786,6 +10428,12 @@ template<> PROTOBUF_NOINLINE ::flyteidl::artifact::ExecutionInputsRequest* Arena template<> PROTOBUF_NOINLINE ::flyteidl::artifact::ExecutionInputsResponse* Arena::CreateMaybeMessage< ::flyteidl::artifact::ExecutionInputsResponse >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::artifact::ExecutionInputsResponse >(arena); } +template<> PROTOBUF_NOINLINE ::flyteidl::artifact::ListUsageRequest* Arena::CreateMaybeMessage< ::flyteidl::artifact::ListUsageRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::artifact::ListUsageRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::artifact::ListUsageResponse* Arena::CreateMaybeMessage< ::flyteidl::artifact::ListUsageResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::artifact::ListUsageResponse >(arena); +} } // namespace protobuf } // namespace google diff --git a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.h b/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.h index e64c3003b54..fb09c5adbcc 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.h +++ b/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.h @@ -54,7 +54,7 @@ struct TableStruct_flyteidl_2fartifact_2fartifacts_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[25] + static const ::google::protobuf::internal::ParseTable schema[27] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::FieldMetadata field_metadata[]; static const ::google::protobuf::internal::SerializationTable serialization_table[]; @@ -120,6 +120,12 @@ extern GetArtifactRequestDefaultTypeInternal _GetArtifactRequest_default_instanc class GetArtifactResponse; class GetArtifactResponseDefaultTypeInternal; extern GetArtifactResponseDefaultTypeInternal _GetArtifactResponse_default_instance_; +class ListUsageRequest; +class ListUsageRequestDefaultTypeInternal; +extern ListUsageRequestDefaultTypeInternal _ListUsageRequest_default_instance_; +class ListUsageResponse; +class ListUsageResponseDefaultTypeInternal; +extern ListUsageResponseDefaultTypeInternal _ListUsageResponse_default_instance_; class RegisterConsumerRequest; class RegisterConsumerRequestDefaultTypeInternal; extern RegisterConsumerRequestDefaultTypeInternal _RegisterConsumerRequest_default_instance_; @@ -161,6 +167,8 @@ template<> ::flyteidl::artifact::ExecutionInputsResponse* Arena::CreateMaybeMess template<> ::flyteidl::artifact::FindByWorkflowExecRequest* Arena::CreateMaybeMessage<::flyteidl::artifact::FindByWorkflowExecRequest>(Arena*); template<> ::flyteidl::artifact::GetArtifactRequest* Arena::CreateMaybeMessage<::flyteidl::artifact::GetArtifactRequest>(Arena*); template<> ::flyteidl::artifact::GetArtifactResponse* Arena::CreateMaybeMessage<::flyteidl::artifact::GetArtifactResponse>(Arena*); +template<> ::flyteidl::artifact::ListUsageRequest* Arena::CreateMaybeMessage<::flyteidl::artifact::ListUsageRequest>(Arena*); +template<> ::flyteidl::artifact::ListUsageResponse* Arena::CreateMaybeMessage<::flyteidl::artifact::ListUsageResponse>(Arena*); template<> ::flyteidl::artifact::RegisterConsumerRequest* Arena::CreateMaybeMessage<::flyteidl::artifact::RegisterConsumerRequest>(Arena*); template<> ::flyteidl::artifact::RegisterProducerRequest* Arena::CreateMaybeMessage<::flyteidl::artifact::RegisterProducerRequest>(Arena*); template<> ::flyteidl::artifact::RegisterResponse* Arena::CreateMaybeMessage<::flyteidl::artifact::RegisterResponse>(Arena*); @@ -3328,6 +3336,239 @@ class ExecutionInputsResponse final : mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; }; +// ------------------------------------------------------------------- + +class ListUsageRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.ListUsageRequest) */ { + public: + ListUsageRequest(); + virtual ~ListUsageRequest(); + + ListUsageRequest(const ListUsageRequest& from); + + inline ListUsageRequest& operator=(const ListUsageRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ListUsageRequest(ListUsageRequest&& from) noexcept + : ListUsageRequest() { + *this = ::std::move(from); + } + + inline ListUsageRequest& operator=(ListUsageRequest&& 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 ListUsageRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ListUsageRequest* internal_default_instance() { + return reinterpret_cast( + &_ListUsageRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 25; + + void Swap(ListUsageRequest* other); + friend void swap(ListUsageRequest& a, ListUsageRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ListUsageRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ListUsageRequest* 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 ListUsageRequest& from); + void MergeFrom(const ListUsageRequest& 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(ListUsageRequest* 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.ArtifactID artifact_id = 1; + bool has_artifact_id() const; + void clear_artifact_id(); + static const int kArtifactIdFieldNumber = 1; + const ::flyteidl::core::ArtifactID& artifact_id() const; + ::flyteidl::core::ArtifactID* release_artifact_id(); + ::flyteidl::core::ArtifactID* mutable_artifact_id(); + void set_allocated_artifact_id(::flyteidl::core::ArtifactID* artifact_id); + + // @@protoc_insertion_point(class_scope:flyteidl.artifact.ListUsageRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::ArtifactID* artifact_id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; +}; +// ------------------------------------------------------------------- + +class ListUsageResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.ListUsageResponse) */ { + public: + ListUsageResponse(); + virtual ~ListUsageResponse(); + + ListUsageResponse(const ListUsageResponse& from); + + inline ListUsageResponse& operator=(const ListUsageResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ListUsageResponse(ListUsageResponse&& from) noexcept + : ListUsageResponse() { + *this = ::std::move(from); + } + + inline ListUsageResponse& operator=(ListUsageResponse&& 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 ListUsageResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ListUsageResponse* internal_default_instance() { + return reinterpret_cast( + &_ListUsageResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 26; + + void Swap(ListUsageResponse* other); + friend void swap(ListUsageResponse& a, ListUsageResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ListUsageResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + ListUsageResponse* 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 ListUsageResponse& from); + void MergeFrom(const ListUsageResponse& 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(ListUsageResponse* 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 ------------------------------------------------------- + + // repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + int executions_size() const; + void clear_executions(); + static const int kExecutionsFieldNumber = 1; + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_executions(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::WorkflowExecutionIdentifier >* + mutable_executions(); + const ::flyteidl::core::WorkflowExecutionIdentifier& executions(int index) const; + ::flyteidl::core::WorkflowExecutionIdentifier* add_executions(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::WorkflowExecutionIdentifier >& + executions() const; + + // @@protoc_insertion_point(class_scope:flyteidl.artifact.ListUsageResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::WorkflowExecutionIdentifier > executions_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; +}; // =================================================================== @@ -5530,6 +5771,86 @@ ExecutionInputsRequest::inputs() const { // ExecutionInputsResponse +// ------------------------------------------------------------------- + +// ListUsageRequest + +// .flyteidl.core.ArtifactID artifact_id = 1; +inline bool ListUsageRequest::has_artifact_id() const { + return this != internal_default_instance() && artifact_id_ != nullptr; +} +inline const ::flyteidl::core::ArtifactID& ListUsageRequest::artifact_id() const { + const ::flyteidl::core::ArtifactID* p = artifact_id_; + // @@protoc_insertion_point(field_get:flyteidl.artifact.ListUsageRequest.artifact_id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_ArtifactID_default_instance_); +} +inline ::flyteidl::core::ArtifactID* ListUsageRequest::release_artifact_id() { + // @@protoc_insertion_point(field_release:flyteidl.artifact.ListUsageRequest.artifact_id) + + ::flyteidl::core::ArtifactID* temp = artifact_id_; + artifact_id_ = nullptr; + return temp; +} +inline ::flyteidl::core::ArtifactID* ListUsageRequest::mutable_artifact_id() { + + if (artifact_id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::ArtifactID>(GetArenaNoVirtual()); + artifact_id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ListUsageRequest.artifact_id) + return artifact_id_; +} +inline void ListUsageRequest::set_allocated_artifact_id(::flyteidl::core::ArtifactID* artifact_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(artifact_id_); + } + if (artifact_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + artifact_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, artifact_id, submessage_arena); + } + + } else { + + } + artifact_id_ = artifact_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ListUsageRequest.artifact_id) +} + +// ------------------------------------------------------------------- + +// ListUsageResponse + +// repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; +inline int ListUsageResponse::executions_size() const { + return executions_.size(); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* ListUsageResponse::mutable_executions(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ListUsageResponse.executions) + return executions_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::WorkflowExecutionIdentifier >* +ListUsageResponse::mutable_executions() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.artifact.ListUsageResponse.executions) + return &executions_; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& ListUsageResponse::executions(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.artifact.ListUsageResponse.executions) + return executions_.Get(index); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* ListUsageResponse::add_executions() { + // @@protoc_insertion_point(field_add:flyteidl.artifact.ListUsageResponse.executions) + return executions_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::WorkflowExecutionIdentifier >& +ListUsageResponse::executions() const { + // @@protoc_insertion_point(field_list:flyteidl.artifact.ListUsageResponse.executions) + return executions_; +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -5581,6 +5902,10 @@ ExecutionInputsRequest::inputs() const { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.go b/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.go index e29d85883ed..27f84cb68d2 100644 --- a/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.go @@ -1219,6 +1219,84 @@ func (m *ExecutionInputsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_ExecutionInputsResponse proto.InternalMessageInfo +type ListUsageRequest struct { + ArtifactId *core.ArtifactID `protobuf:"bytes,1,opt,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListUsageRequest) Reset() { *m = ListUsageRequest{} } +func (m *ListUsageRequest) String() string { return proto.CompactTextString(m) } +func (*ListUsageRequest) ProtoMessage() {} +func (*ListUsageRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_804518da5936dedb, []int{24} +} + +func (m *ListUsageRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListUsageRequest.Unmarshal(m, b) +} +func (m *ListUsageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListUsageRequest.Marshal(b, m, deterministic) +} +func (m *ListUsageRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListUsageRequest.Merge(m, src) +} +func (m *ListUsageRequest) XXX_Size() int { + return xxx_messageInfo_ListUsageRequest.Size(m) +} +func (m *ListUsageRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListUsageRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListUsageRequest proto.InternalMessageInfo + +func (m *ListUsageRequest) GetArtifactId() *core.ArtifactID { + if m != nil { + return m.ArtifactId + } + return nil +} + +type ListUsageResponse struct { + Executions []*core.WorkflowExecutionIdentifier `protobuf:"bytes,1,rep,name=executions,proto3" json:"executions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListUsageResponse) Reset() { *m = ListUsageResponse{} } +func (m *ListUsageResponse) String() string { return proto.CompactTextString(m) } +func (*ListUsageResponse) ProtoMessage() {} +func (*ListUsageResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_804518da5936dedb, []int{25} +} + +func (m *ListUsageResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListUsageResponse.Unmarshal(m, b) +} +func (m *ListUsageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListUsageResponse.Marshal(b, m, deterministic) +} +func (m *ListUsageResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListUsageResponse.Merge(m, src) +} +func (m *ListUsageResponse) XXX_Size() int { + return xxx_messageInfo_ListUsageResponse.Size(m) +} +func (m *ListUsageResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListUsageResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListUsageResponse proto.InternalMessageInfo + +func (m *ListUsageResponse) GetExecutions() []*core.WorkflowExecutionIdentifier { + if m != nil { + return m.Executions + } + return nil +} + func init() { proto.RegisterEnum("flyteidl.artifact.FindByWorkflowExecRequest_Direction", FindByWorkflowExecRequest_Direction_name, FindByWorkflowExecRequest_Direction_value) proto.RegisterType((*Artifact)(nil), "flyteidl.artifact.Artifact") @@ -1246,116 +1324,123 @@ func init() { proto.RegisterType((*RegisterResponse)(nil), "flyteidl.artifact.RegisterResponse") proto.RegisterType((*ExecutionInputsRequest)(nil), "flyteidl.artifact.ExecutionInputsRequest") proto.RegisterType((*ExecutionInputsResponse)(nil), "flyteidl.artifact.ExecutionInputsResponse") + proto.RegisterType((*ListUsageRequest)(nil), "flyteidl.artifact.ListUsageRequest") + proto.RegisterType((*ListUsageResponse)(nil), "flyteidl.artifact.ListUsageResponse") } func init() { proto.RegisterFile("flyteidl/artifact/artifacts.proto", fileDescriptor_804518da5936dedb) } var fileDescriptor_804518da5936dedb = []byte{ - // 1656 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xcb, 0x73, 0xdb, 0xc6, - 0x19, 0x37, 0x44, 0x8a, 0x14, 0x3f, 0x4a, 0xb2, 0xb4, 0x76, 0x25, 0x8a, 0x72, 0x6b, 0x19, 0x76, - 0x5b, 0xf9, 0x51, 0x62, 0x4c, 0x77, 0x5c, 0x4b, 0x33, 0xee, 0x54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- 0x86, 0x1e, 0x02, 0x7e, 0xdf, 0x27, 0xc0, 0x62, 0x84, 0xee, 0x60, 0x8d, 0xa4, 0x4c, 0x27, 0xfb, - 0xc4, 0x62, 0x8a, 0x66, 0xda, 0x5d, 0x9d, 0x7f, 0x86, 0x16, 0xc8, 0xdf, 0x49, 0x30, 0xb1, 0x16, - 0x8a, 0x45, 0xab, 0x50, 0x4e, 0xa8, 0xa8, 0x48, 0x4b, 0xd2, 0x72, 0xb9, 0xbe, 0x50, 0x8b, 0x62, - 0xe9, 0xeb, 0xa8, 0x09, 0x74, 0x63, 0x5d, 0x05, 0x81, 0x6e, 0xe8, 0xe8, 0x0a, 0xe4, 0x5d, 0x87, - 0x68, 0x95, 0x31, 0xce, 0x74, 0xba, 0x96, 0x7a, 0x80, 0x88, 0x71, 0xd3, 0x21, 0x9a, 0xca, 0xc1, - 0x08, 0x41, 0x9e, 0xe1, 0xb6, 0x5b, 0xc9, 0x2d, 0xe5, 0x96, 0x4b, 0x2a, 0xff, 0x46, 0x2b, 0x50, - 0x70, 0xed, 0x2e, 0xd5, 0x48, 0x25, 0xcf, 0x45, 0x9d, 0x19, 0x26, 0x8a, 0x03, 0xd5, 0x90, 0x41, - 0x7e, 0x95, 0x83, 0xdf, 0xdd, 0xa4, 0x04, 0x33, 0x22, 0x00, 0x2a, 0x79, 0xd6, 0x25, 0x2e, 0x43, - 0xd7, 0x61, 0x32, 0xf2, 0x6c, 0x8f, 0x78, 0xa1, 0x6b, 0xd5, 0x01, 0xae, 0xdd, 0x21, 0x9e, 0x1a, - 0x45, 0xe2, 0x0e, 0xf1, 0x50, 0x05, 0x8a, 0xfb, 0x84, 0xba, 0x86, 0x6d, 0x55, 0x72, 0x4b, 0xd2, - 0x72, 0x49, 0x15, 0xc7, 0x37, 0x73, 0xfb, 0xbf, 0x00, 0x8e, 0x7f, 0xcf, 0xb3, 0xac, 0x92, 0x5f, - 0xca, 0x2d, 0x97, 0xeb, 0xd7, 0x32, 0x58, 0x33, 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 0xdc, 0x0d, 0x9a, - 0x46, 0x18, 0x40, 0x54, 0x83, 0xbc, 0xdf, 0x28, 0xc2, 0xbc, 0xaa, 0x66, 0x83, 0xb7, 0x3c, 0x87, - 0xa8, 0x1c, 0x87, 0x2e, 0xc2, 0xac, 0xbb, 0x6b, 0x53, 0xd6, 0xd4, 0x89, 0xab, 0x51, 0xc3, 0x61, - 0x71, 0xae, 0xce, 0xf0, 0x8b, 0xf5, 0x98, 0x8e, 0x56, 0x60, 0xaa, 0xeb, 0x12, 0xda, 0xec, 0x10, - 0x86, 0x75, 0xcc, 0x70, 0x58, 0x69, 0x27, 0x6b, 0x41, 0x1f, 0xac, 0x89, 0x16, 0x59, 0x5b, 0xb3, - 0x3c, 0x75, 0xd2, 0x87, 0xde, 0x0b, 0x91, 0x7e, 0x64, 0x04, 0x57, 0x93, 0x1b, 0x18, 0x38, 0x3e, - 0x29, 0x88, 0xbe, 0x49, 0xf2, 0x43, 0x98, 0xeb, 0x4f, 0x5d, 0xd7, 0xb1, 0x2d, 0x97, 0xa0, 0xbf, - 0xc1, 0x84, 0xc8, 0xba, 0x30, 0x0e, 0x8b, 0x43, 0xf2, 0x51, 0x8d, 0xc0, 0x72, 0x0b, 0xd0, 0x6d, - 0xc2, 0xfa, 0xcb, 0xba, 0x0e, 0xe3, 0xcf, 0xba, 0x84, 0x8a, 0x7a, 0x3e, 0x35, 0xa0, 0x9e, 0x1f, - 0xfa, 0x18, 0x35, 0x80, 0xfa, 0xb5, 0xac, 0x13, 0x86, 0x0d, 0xd3, 0xe5, 0xc1, 0x9d, 0x50, 0xc5, - 0x51, 0xbe, 0x0f, 0x27, 0x7a, 0x74, 0xbc, 0xad, 0xcd, 0x4f, 0x60, 0x6a, 0x93, 0x60, 0xaa, 0xed, - 0x3e, 0x70, 0x82, 0xea, 0xf4, 0x1f, 0x89, 0x51, 0x43, 0x63, 0xcd, 0x44, 0xf9, 0x4b, 0xdc, 0x88, - 0x99, 0xe0, 0x22, 0xae, 0x37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94, 0xb5, 0xcd, - 0xf6, 0x2c, 0x4f, 0xd5, 0x33, 0x43, 0x10, 0x91, 0xcb, 0x24, 0x9e, 0x17, 0xd1, 0xb8, 0xcf, 0x4a, - 0xa3, 0x01, 0x13, 0xb9, 0x7a, 0x76, 0x08, 0x36, 0x5b, 0x4d, 0x34, 0x75, 0x87, 0xa9, 0xe9, 0x9b, - 0x8c, 0xa3, 0xaa, 0xe9, 0x00, 0xda, 0x24, 0xac, 0x6f, 0x9e, 0x64, 0x56, 0x50, 0xf6, 0x3c, 0xcc, - 0xac, 0xa0, 0x01, 0xe3, 0x49, 0x3e, 0x86, 0x7e, 0x90, 0x00, 0xa5, 0x17, 0x61, 0x74, 0xe9, 0x28, - 0xfb, 0xf2, 0x91, 0x8a, 0x76, 0x97, 0xe7, 0x4b, 0x0b, 0x3d, 0x19, 0x58, 0x55, 0xd1, 0x34, 0x56, - 0x9e, 0x87, 0xbf, 0x05, 0x12, 0xa5, 0x25, 0x28, 0x51, 0xc9, 0x0a, 0x42, 0xd8, 0xd1, 0xa3, 0x7d, - 0xfd, 0xc5, 0x8d, 0x7f, 0x6c, 0xff, 0xbd, 0x6d, 0xb0, 0xdd, 0x6e, 0xab, 0xa6, 0xd9, 0x1d, 0x85, - 0x5b, 0x68, 0xd3, 0x76, 0xf0, 0xa1, 0x44, 0x7f, 0x03, 0xb6, 0x89, 0xa5, 0x38, 0xad, 0xbf, 0xb4, - 0x6d, 0x25, 0xf5, 0x1f, 0x6a, 0xab, 0xc0, 0x7f, 0xf6, 0x5f, 0xf9, 0x35, 0x00, 0x00, 0xff, 0xff, - 0x39, 0x44, 0x4a, 0xb7, 0x5f, 0x15, 0x00, 0x00, + // 1734 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xcb, 0x6f, 0xdb, 0xc8, + 0x19, 0x0f, 0x2d, 0x45, 0xb2, 0x3e, 0xd9, 0x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, 0xbe, 0x28, 0xe8, 0xc3, + 0xc3, 0x08, 0x9b, 0xe9, 0x01, 0x93, 0xa7, 0xc2, 0xf9, 0xf3, 0xe0, 0xbc, 0xf9, 0x55, 0x34, 0xb9, + 0xee, 0x7d, 0xef, 0xf0, 0xbb, 0x96, 0xcd, 0x8e, 0x87, 0xfd, 0xb6, 0xe1, 0x0d, 0x34, 0xee, 0x90, + 0x47, 0xad, 0xf8, 0x41, 0x4b, 0xfe, 0xd7, 0x5a, 0xc4, 0xd5, 0xfc, 0xfe, 0xb7, 0x2c, 0x4f, 0xcb, + 0xfd, 0xec, 0xee, 0x57, 0xf8, 0xff, 0x99, 0x3b, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0xc9, 0x67, + 0x17, 0x6c, 0x08, 0x17, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1380,6 +1465,7 @@ type ArtifactRegistryClient interface { RegisterConsumer(ctx context.Context, in *RegisterConsumerRequest, opts ...grpc.CallOption) (*RegisterResponse, error) SetExecutionInputs(ctx context.Context, in *ExecutionInputsRequest, opts ...grpc.CallOption) (*ExecutionInputsResponse, error) FindByWorkflowExec(ctx context.Context, in *FindByWorkflowExecRequest, opts ...grpc.CallOption) (*SearchArtifactsResponse, error) + ListUsage(ctx context.Context, in *ListUsageRequest, opts ...grpc.CallOption) (*ListUsageResponse, error) } type artifactRegistryClient struct { @@ -1480,6 +1566,15 @@ func (c *artifactRegistryClient) FindByWorkflowExec(ctx context.Context, in *Fin return out, nil } +func (c *artifactRegistryClient) ListUsage(ctx context.Context, in *ListUsageRequest, opts ...grpc.CallOption) (*ListUsageResponse, error) { + out := new(ListUsageResponse) + err := c.cc.Invoke(ctx, "/flyteidl.artifact.ArtifactRegistry/ListUsage", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // ArtifactRegistryServer is the server API for ArtifactRegistry service. type ArtifactRegistryServer interface { CreateArtifact(context.Context, *CreateArtifactRequest) (*CreateArtifactResponse, error) @@ -1492,6 +1587,7 @@ type ArtifactRegistryServer interface { RegisterConsumer(context.Context, *RegisterConsumerRequest) (*RegisterResponse, error) SetExecutionInputs(context.Context, *ExecutionInputsRequest) (*ExecutionInputsResponse, error) FindByWorkflowExec(context.Context, *FindByWorkflowExecRequest) (*SearchArtifactsResponse, error) + ListUsage(context.Context, *ListUsageRequest) (*ListUsageResponse, error) } // UnimplementedArtifactRegistryServer can be embedded to have forward compatible implementations. @@ -1528,6 +1624,9 @@ func (*UnimplementedArtifactRegistryServer) SetExecutionInputs(ctx context.Conte func (*UnimplementedArtifactRegistryServer) FindByWorkflowExec(ctx context.Context, req *FindByWorkflowExecRequest) (*SearchArtifactsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method FindByWorkflowExec not implemented") } +func (*UnimplementedArtifactRegistryServer) ListUsage(ctx context.Context, req *ListUsageRequest) (*ListUsageResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListUsage not implemented") +} func RegisterArtifactRegistryServer(s *grpc.Server, srv ArtifactRegistryServer) { s.RegisterService(&_ArtifactRegistry_serviceDesc, srv) @@ -1713,6 +1812,24 @@ func _ArtifactRegistry_FindByWorkflowExec_Handler(srv interface{}, ctx context.C return interceptor(ctx, in, info, handler) } +func _ArtifactRegistry_ListUsage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListUsageRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArtifactRegistryServer).ListUsage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.artifact.ArtifactRegistry/ListUsage", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArtifactRegistryServer).ListUsage(ctx, req.(*ListUsageRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _ArtifactRegistry_serviceDesc = grpc.ServiceDesc{ ServiceName: "flyteidl.artifact.ArtifactRegistry", HandlerType: (*ArtifactRegistryServer)(nil), @@ -1757,6 +1874,10 @@ var _ArtifactRegistry_serviceDesc = grpc.ServiceDesc{ MethodName: "FindByWorkflowExec", Handler: _ArtifactRegistry_FindByWorkflowExec_Handler, }, + { + MethodName: "ListUsage", + Handler: _ArtifactRegistry_ListUsage_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "flyteidl/artifact/artifacts.proto", diff --git a/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.gw.go b/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.gw.go index 664d0c4869e..4d83ccf4647 100644 --- a/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.gw.go +++ b/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.gw.go @@ -439,6 +439,77 @@ func request_ArtifactRegistry_FindByWorkflowExec_0(ctx context.Context, marshale } +var ( + filter_ArtifactRegistry_ListUsage_0 = &utilities.DoubleArray{Encoding: map[string]int{"artifact_id": 0, "artifact_key": 1, "project": 2, "domain": 3, "name": 4, "version": 5}, Base: []int{1, 6, 1, 1, 2, 2, 5, 0, 0, 4, 0, 6, 0}, Check: []int{0, 1, 2, 3, 2, 5, 2, 4, 6, 7, 10, 2, 12}} +) + +func request_ArtifactRegistry_ListUsage_0(ctx context.Context, marshaler runtime.Marshaler, client ArtifactRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListUsageRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["artifact_id.artifact_key.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "artifact_id.artifact_key.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "artifact_id.artifact_key.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "artifact_id.artifact_key.project", err) + } + + val, ok = pathParams["artifact_id.artifact_key.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "artifact_id.artifact_key.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "artifact_id.artifact_key.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "artifact_id.artifact_key.domain", err) + } + + val, ok = pathParams["artifact_id.artifact_key.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "artifact_id.artifact_key.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "artifact_id.artifact_key.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "artifact_id.artifact_key.name", err) + } + + val, ok = pathParams["artifact_id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "artifact_id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "artifact_id.version", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "artifact_id.version", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ArtifactRegistry_ListUsage_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListUsage(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + // RegisterArtifactRegistryHandlerFromEndpoint is same as RegisterArtifactRegistryHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterArtifactRegistryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { @@ -637,6 +708,26 @@ func RegisterArtifactRegistryHandlerClient(ctx context.Context, mux *runtime.Ser }) + mux.Handle("GET", pattern_ArtifactRegistry_ListUsage_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) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ArtifactRegistry_ListUsage_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ArtifactRegistry_ListUsage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -656,6 +747,8 @@ var ( pattern_ArtifactRegistry_DeactivateTrigger_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"artifacts", "api", "v1", "trigger", "deactivate"}, "")) pattern_ArtifactRegistry_FindByWorkflowExec_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7, 1, 0, 4, 1, 5, 8}, []string{"artifacts", "api", "v1", "search", "execution", "exec_id.project", "exec_id.domain", "exec_id.name", "direction"}, "")) + + pattern_ArtifactRegistry_ListUsage_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7}, []string{"artifacts", "api", "v1", "usage", "artifact_id.artifact_key.project", "artifact_id.artifact_key.domain", "artifact_id.artifact_key.name", "artifact_id.version"}, "")) ) var ( @@ -674,4 +767,6 @@ var ( forward_ArtifactRegistry_DeactivateTrigger_0 = runtime.ForwardResponseMessage forward_ArtifactRegistry_FindByWorkflowExec_0 = runtime.ForwardResponseMessage + + forward_ArtifactRegistry_ListUsage_0 = runtime.ForwardResponseMessage ) diff --git a/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.swagger.json b/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.swagger.json index 09a1c15d516..ec787264ca5 100644 --- a/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.swagger.json +++ b/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.swagger.json @@ -707,6 +707,49 @@ "ArtifactRegistry" ] } + }, + "/artifacts/api/v1/usage/{artifact_id.artifact_key.project}/{artifact_id.artifact_key.domain}/{artifact_id.artifact_key.name}/{artifact_id.version}": { + "get": { + "operationId": "ListUsage", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/artifactListUsageResponse" + } + } + }, + "parameters": [ + { + "name": "artifact_id.artifact_key.project", + "description": "Project and domain and suffix needs to be unique across a given artifact store.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "artifact_id.artifact_key.domain", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "artifact_id.artifact_key.name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "artifact_id.version", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "ArtifactRegistry" + ] + } } }, "definitions": { @@ -1253,6 +1296,17 @@ } } }, + "artifactListUsageResponse": { + "type": "object", + "properties": { + "executions": { + "type": "array", + "items": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier" + } + } + } + }, "artifactRegisterResponse": { "type": "object" }, diff --git a/flyteidl/gen/pb-java/flyteidl/artifact/Artifacts.java b/flyteidl/gen/pb-java/flyteidl/artifact/Artifacts.java index 861dc1f87b9..c4272da9527 100644 --- a/flyteidl/gen/pb-java/flyteidl/artifact/Artifacts.java +++ b/flyteidl/gen/pb-java/flyteidl/artifact/Artifacts.java @@ -19810,6 +19810,1393 @@ public flyteidl.artifact.Artifacts.ExecutionInputsResponse getDefaultInstanceFor } + public interface ListUsageRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.artifact.ListUsageRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.ArtifactID artifact_id = 1; + */ + boolean hasArtifactId(); + /** + * .flyteidl.core.ArtifactID artifact_id = 1; + */ + flyteidl.core.ArtifactId.ArtifactID getArtifactId(); + /** + * .flyteidl.core.ArtifactID artifact_id = 1; + */ + flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.artifact.ListUsageRequest} + */ + public static final class ListUsageRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.artifact.ListUsageRequest) + ListUsageRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListUsageRequest.newBuilder() to construct. + private ListUsageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListUsageRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListUsageRequest( + 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.ArtifactId.ArtifactID.Builder subBuilder = null; + if (artifactId_ != null) { + subBuilder = artifactId_.toBuilder(); + } + artifactId_ = input.readMessage(flyteidl.core.ArtifactId.ArtifactID.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(artifactId_); + artifactId_ = 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.artifact.Artifacts.internal_static_flyteidl_artifact_ListUsageRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ListUsageRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.artifact.Artifacts.ListUsageRequest.class, flyteidl.artifact.Artifacts.ListUsageRequest.Builder.class); + } + + public static final int ARTIFACT_ID_FIELD_NUMBER = 1; + private flyteidl.core.ArtifactId.ArtifactID artifactId_; + /** + * .flyteidl.core.ArtifactID artifact_id = 1; + */ + public boolean hasArtifactId() { + return artifactId_ != null; + } + /** + * .flyteidl.core.ArtifactID artifact_id = 1; + */ + public flyteidl.core.ArtifactId.ArtifactID getArtifactId() { + return artifactId_ == null ? flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance() : artifactId_; + } + /** + * .flyteidl.core.ArtifactID artifact_id = 1; + */ + public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdOrBuilder() { + return getArtifactId(); + } + + 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 (artifactId_ != null) { + output.writeMessage(1, getArtifactId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (artifactId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getArtifactId()); + } + 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.artifact.Artifacts.ListUsageRequest)) { + return super.equals(obj); + } + flyteidl.artifact.Artifacts.ListUsageRequest other = (flyteidl.artifact.Artifacts.ListUsageRequest) obj; + + if (hasArtifactId() != other.hasArtifactId()) return false; + if (hasArtifactId()) { + if (!getArtifactId() + .equals(other.getArtifactId())) 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 (hasArtifactId()) { + hash = (37 * hash) + ARTIFACT_ID_FIELD_NUMBER; + hash = (53 * hash) + getArtifactId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.artifact.Artifacts.ListUsageRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.artifact.Artifacts.ListUsageRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.artifact.Artifacts.ListUsageRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.artifact.Artifacts.ListUsageRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.artifact.Artifacts.ListUsageRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.artifact.Artifacts.ListUsageRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.artifact.Artifacts.ListUsageRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.artifact.Artifacts.ListUsageRequest 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.artifact.Artifacts.ListUsageRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.artifact.Artifacts.ListUsageRequest 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.artifact.Artifacts.ListUsageRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.artifact.Artifacts.ListUsageRequest 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.artifact.Artifacts.ListUsageRequest 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.artifact.ListUsageRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.artifact.ListUsageRequest) + flyteidl.artifact.Artifacts.ListUsageRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ListUsageRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ListUsageRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.artifact.Artifacts.ListUsageRequest.class, flyteidl.artifact.Artifacts.ListUsageRequest.Builder.class); + } + + // Construct using flyteidl.artifact.Artifacts.ListUsageRequest.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 (artifactIdBuilder_ == null) { + artifactId_ = null; + } else { + artifactId_ = null; + artifactIdBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ListUsageRequest_descriptor; + } + + @java.lang.Override + public flyteidl.artifact.Artifacts.ListUsageRequest getDefaultInstanceForType() { + return flyteidl.artifact.Artifacts.ListUsageRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.artifact.Artifacts.ListUsageRequest build() { + flyteidl.artifact.Artifacts.ListUsageRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.artifact.Artifacts.ListUsageRequest buildPartial() { + flyteidl.artifact.Artifacts.ListUsageRequest result = new flyteidl.artifact.Artifacts.ListUsageRequest(this); + if (artifactIdBuilder_ == null) { + result.artifactId_ = artifactId_; + } else { + result.artifactId_ = artifactIdBuilder_.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.artifact.Artifacts.ListUsageRequest) { + return mergeFrom((flyteidl.artifact.Artifacts.ListUsageRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.artifact.Artifacts.ListUsageRequest other) { + if (other == flyteidl.artifact.Artifacts.ListUsageRequest.getDefaultInstance()) return this; + if (other.hasArtifactId()) { + mergeArtifactId(other.getArtifactId()); + } + 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.artifact.Artifacts.ListUsageRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.artifact.Artifacts.ListUsageRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.ArtifactId.ArtifactID artifactId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder> artifactIdBuilder_; + /** + * .flyteidl.core.ArtifactID artifact_id = 1; + */ + public boolean hasArtifactId() { + return artifactIdBuilder_ != null || artifactId_ != null; + } + /** + * .flyteidl.core.ArtifactID artifact_id = 1; + */ + public flyteidl.core.ArtifactId.ArtifactID getArtifactId() { + if (artifactIdBuilder_ == null) { + return artifactId_ == null ? flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance() : artifactId_; + } else { + return artifactIdBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.ArtifactID artifact_id = 1; + */ + public Builder setArtifactId(flyteidl.core.ArtifactId.ArtifactID value) { + if (artifactIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifactId_ = value; + onChanged(); + } else { + artifactIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.ArtifactID artifact_id = 1; + */ + public Builder setArtifactId( + flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { + if (artifactIdBuilder_ == null) { + artifactId_ = builderForValue.build(); + onChanged(); + } else { + artifactIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.ArtifactID artifact_id = 1; + */ + public Builder mergeArtifactId(flyteidl.core.ArtifactId.ArtifactID value) { + if (artifactIdBuilder_ == null) { + if (artifactId_ != null) { + artifactId_ = + flyteidl.core.ArtifactId.ArtifactID.newBuilder(artifactId_).mergeFrom(value).buildPartial(); + } else { + artifactId_ = value; + } + onChanged(); + } else { + artifactIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.ArtifactID artifact_id = 1; + */ + public Builder clearArtifactId() { + if (artifactIdBuilder_ == null) { + artifactId_ = null; + onChanged(); + } else { + artifactId_ = null; + artifactIdBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.ArtifactID artifact_id = 1; + */ + public flyteidl.core.ArtifactId.ArtifactID.Builder getArtifactIdBuilder() { + + onChanged(); + return getArtifactIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.ArtifactID artifact_id = 1; + */ + public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdOrBuilder() { + if (artifactIdBuilder_ != null) { + return artifactIdBuilder_.getMessageOrBuilder(); + } else { + return artifactId_ == null ? + flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance() : artifactId_; + } + } + /** + * .flyteidl.core.ArtifactID artifact_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder> + getArtifactIdFieldBuilder() { + if (artifactIdBuilder_ == null) { + artifactIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder>( + getArtifactId(), + getParentForChildren(), + isClean()); + artifactId_ = null; + } + return artifactIdBuilder_; + } + @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.artifact.ListUsageRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.artifact.ListUsageRequest) + private static final flyteidl.artifact.Artifacts.ListUsageRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.ListUsageRequest(); + } + + public static flyteidl.artifact.Artifacts.ListUsageRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListUsageRequest(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.artifact.Artifacts.ListUsageRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListUsageResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.artifact.ListUsageResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + */ + java.util.List + getExecutionsList(); + /** + * repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutions(int index); + /** + * repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + */ + int getExecutionsCount(); + /** + * repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + */ + java.util.List + getExecutionsOrBuilderList(); + /** + * repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionsOrBuilder( + int index); + } + /** + * Protobuf type {@code flyteidl.artifact.ListUsageResponse} + */ + public static final class ListUsageResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.artifact.ListUsageResponse) + ListUsageResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListUsageResponse.newBuilder() to construct. + private ListUsageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListUsageResponse() { + executions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListUsageResponse( + 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: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + executions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + executions_.add( + input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry)); + 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + executions_ = java.util.Collections.unmodifiableList(executions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ListUsageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ListUsageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.artifact.Artifacts.ListUsageResponse.class, flyteidl.artifact.Artifacts.ListUsageResponse.Builder.class); + } + + public static final int EXECUTIONS_FIELD_NUMBER = 1; + private java.util.List executions_; + /** + * repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + */ + public java.util.List getExecutionsList() { + return executions_; + } + /** + * repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + */ + public java.util.List + getExecutionsOrBuilderList() { + return executions_; + } + /** + * repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + */ + public int getExecutionsCount() { + return executions_.size(); + } + /** + * repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutions(int index) { + return executions_.get(index); + } + /** + * repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionsOrBuilder( + int index) { + return executions_.get(index); + } + + 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 { + for (int i = 0; i < executions_.size(); i++) { + output.writeMessage(1, executions_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < executions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, executions_.get(i)); + } + 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.artifact.Artifacts.ListUsageResponse)) { + return super.equals(obj); + } + flyteidl.artifact.Artifacts.ListUsageResponse other = (flyteidl.artifact.Artifacts.ListUsageResponse) obj; + + if (!getExecutionsList() + .equals(other.getExecutionsList())) 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 (getExecutionsCount() > 0) { + hash = (37 * hash) + EXECUTIONS_FIELD_NUMBER; + hash = (53 * hash) + getExecutionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.artifact.Artifacts.ListUsageResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.artifact.Artifacts.ListUsageResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.artifact.Artifacts.ListUsageResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.artifact.Artifacts.ListUsageResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.artifact.Artifacts.ListUsageResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.artifact.Artifacts.ListUsageResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.artifact.Artifacts.ListUsageResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.artifact.Artifacts.ListUsageResponse 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.artifact.Artifacts.ListUsageResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.artifact.Artifacts.ListUsageResponse 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.artifact.Artifacts.ListUsageResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.artifact.Artifacts.ListUsageResponse 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.artifact.Artifacts.ListUsageResponse 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.artifact.ListUsageResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.artifact.ListUsageResponse) + flyteidl.artifact.Artifacts.ListUsageResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ListUsageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ListUsageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.artifact.Artifacts.ListUsageResponse.class, flyteidl.artifact.Artifacts.ListUsageResponse.Builder.class); + } + + // Construct using flyteidl.artifact.Artifacts.ListUsageResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getExecutionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (executionsBuilder_ == null) { + executions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + executionsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ListUsageResponse_descriptor; + } + + @java.lang.Override + public flyteidl.artifact.Artifacts.ListUsageResponse getDefaultInstanceForType() { + return flyteidl.artifact.Artifacts.ListUsageResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.artifact.Artifacts.ListUsageResponse build() { + flyteidl.artifact.Artifacts.ListUsageResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.artifact.Artifacts.ListUsageResponse buildPartial() { + flyteidl.artifact.Artifacts.ListUsageResponse result = new flyteidl.artifact.Artifacts.ListUsageResponse(this); + int from_bitField0_ = bitField0_; + if (executionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + executions_ = java.util.Collections.unmodifiableList(executions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.executions_ = executions_; + } else { + result.executions_ = executionsBuilder_.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.artifact.Artifacts.ListUsageResponse) { + return mergeFrom((flyteidl.artifact.Artifacts.ListUsageResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.artifact.Artifacts.ListUsageResponse other) { + if (other == flyteidl.artifact.Artifacts.ListUsageResponse.getDefaultInstance()) return this; + if (executionsBuilder_ == null) { + if (!other.executions_.isEmpty()) { + if (executions_.isEmpty()) { + executions_ = other.executions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExecutionsIsMutable(); + executions_.addAll(other.executions_); + } + onChanged(); + } + } else { + if (!other.executions_.isEmpty()) { + if (executionsBuilder_.isEmpty()) { + executionsBuilder_.dispose(); + executionsBuilder_ = null; + executions_ = other.executions_; + bitField0_ = (bitField0_ & ~0x00000001); + executionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getExecutionsFieldBuilder() : null; + } else { + executionsBuilder_.addAllMessages(other.executions_); + } + } + } + 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.artifact.Artifacts.ListUsageResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.artifact.Artifacts.ListUsageResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List executions_ = + java.util.Collections.emptyList(); + private void ensureExecutionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + executions_ = new java.util.ArrayList(executions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionsBuilder_; + + /** + * repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + */ + public java.util.List getExecutionsList() { + if (executionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(executions_); + } else { + return executionsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + */ + public int getExecutionsCount() { + if (executionsBuilder_ == null) { + return executions_.size(); + } else { + return executionsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutions(int index) { + if (executionsBuilder_ == null) { + return executions_.get(index); + } else { + return executionsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + */ + public Builder setExecutions( + int index, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionsIsMutable(); + executions_.set(index, value); + onChanged(); + } else { + executionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + */ + public Builder setExecutions( + int index, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.set(index, builderForValue.build()); + onChanged(); + } else { + executionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + */ + public Builder addExecutions(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionsIsMutable(); + executions_.add(value); + onChanged(); + } else { + executionsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + */ + public Builder addExecutions( + int index, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionsIsMutable(); + executions_.add(index, value); + onChanged(); + } else { + executionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + */ + public Builder addExecutions( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.add(builderForValue.build()); + onChanged(); + } else { + executionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + */ + public Builder addExecutions( + int index, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.add(index, builderForValue.build()); + onChanged(); + } else { + executionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + */ + public Builder addAllExecutions( + java.lang.Iterable values) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, executions_); + onChanged(); + } else { + executionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + */ + public Builder clearExecutions() { + if (executionsBuilder_ == null) { + executions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + executionsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + */ + public Builder removeExecutions(int index) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.remove(index); + onChanged(); + } else { + executionsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionsBuilder( + int index) { + return getExecutionsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionsOrBuilder( + int index) { + if (executionsBuilder_ == null) { + return executions_.get(index); } else { + return executionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + */ + public java.util.List + getExecutionsOrBuilderList() { + if (executionsBuilder_ != null) { + return executionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(executions_); + } + } + /** + * repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder addExecutionsBuilder() { + return getExecutionsFieldBuilder().addBuilder( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance()); + } + /** + * repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder addExecutionsBuilder( + int index) { + return getExecutionsFieldBuilder().addBuilder( + index, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance()); + } + /** + * repeated .flyteidl.core.WorkflowExecutionIdentifier executions = 1; + */ + public java.util.List + getExecutionsBuilderList() { + return getExecutionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getExecutionsFieldBuilder() { + if (executionsBuilder_ == null) { + executionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + executions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + executions_ = null; + } + return executionsBuilder_; + } + @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.artifact.ListUsageResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.artifact.ListUsageResponse) + private static final flyteidl.artifact.Artifacts.ListUsageResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.ListUsageResponse(); + } + + public static flyteidl.artifact.Artifacts.ListUsageResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListUsageResponse(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.artifact.Artifacts.ListUsageResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + private static final com.google.protobuf.Descriptors.Descriptor internal_static_flyteidl_artifact_Artifact_descriptor; private static final @@ -19935,6 +21322,16 @@ public flyteidl.artifact.Artifacts.ExecutionInputsResponse getDefaultInstanceFor private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flyteidl_artifact_ExecutionInputsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_artifact_ListUsageRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_artifact_ListUsageRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_artifact_ListUsageResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_artifact_ListUsageResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -20017,57 +21414,67 @@ public flyteidl.artifact.Artifacts.ExecutionInputsResponse getDefaultInstanceFor "ionInputsRequest\022@\n\014execution_id\030\001 \001(\0132*" + ".flyteidl.core.WorkflowExecutionIdentifi" + "er\022)\n\006inputs\030\002 \003(\0132\031.flyteidl.core.Artif" + - "actID\"\031\n\027ExecutionInputsResponse2\371\016\n\020Art" + - "ifactRegistry\022g\n\016CreateArtifact\022(.flytei" + - "dl.artifact.CreateArtifactRequest\032).flyt" + - "eidl.artifact.CreateArtifactResponse\"\000\022\361" + - "\004\n\013GetArtifact\022%.flyteidl.artifact.GetAr" + - "tifactRequest\032&.flyteidl.artifact.GetArt" + - "ifactResponse\"\222\004\202\323\344\223\002\213\004\022\033/artifacts/api/" + - "v1/artifactsZ\263\001\022\260\001/artifacts/api/v1/arti" + - "fact/id/{query.artifact_id.artifact_key." + - "project}/{query.artifact_id.artifact_key" + - ".domain}/{query.artifact_id.artifact_key" + - ".name}/{query.artifact_id.version}Z\227\001\022\224\001" + - "/artifacts/api/v1/artifact/id/{query.art" + - "ifact_id.artifact_key.project}/{query.ar" + - "tifact_id.artifact_key.domain}/{query.ar" + - "tifact_id.artifact_key.name}Z\233\001\022\230\001/artif" + - "acts/api/v1/artifact/tag/{query.artifact" + - "_tag.artifact_key.project}/{query.artifa" + - "ct_tag.artifact_key.domain}/{query.artif" + - "act_tag.artifact_key.name}\022\226\002\n\017SearchArt" + - "ifacts\022).flyteidl.artifact.SearchArtifac" + - "tsRequest\032*.flyteidl.artifact.SearchArti" + - "factsResponse\"\253\001\202\323\344\223\002\244\001\022Y/artifacts/api/" + - "v1/search/{artifact_key.project}/{artifa" + - "ct_key.domain}/{artifact_key.name}ZG\022E/a" + - "rtifacts/api/v1/search/{artifact_key.pro" + - "ject}/{artifact_key.domain}\022d\n\rCreateTri" + - "gger\022\'.flyteidl.artifact.CreateTriggerRe" + - "quest\032(.flyteidl.artifact.CreateTriggerR" + - "esponse\"\000\022\237\001\n\021DeactivateTrigger\022+.flytei" + - "dl.artifact.DeactivateTriggerRequest\032,.f" + - "lyteidl.artifact.DeactivateTriggerRespon" + - "se\"/\202\323\344\223\002)2$/artifacts/api/v1/trigger/de" + - "activate:\001*\022O\n\006AddTag\022 .flyteidl.artifac" + - "t.AddTagRequest\032!.flyteidl.artifact.AddT" + - "agResponse\"\000\022e\n\020RegisterProducer\022*.flyte" + - "idl.artifact.RegisterProducerRequest\032#.f" + - "lyteidl.artifact.RegisterResponse\"\000\022e\n\020R" + - "egisterConsumer\022*.flyteidl.artifact.Regi" + - "sterConsumerRequest\032#.flyteidl.artifact." + - "RegisterResponse\"\000\022m\n\022SetExecutionInputs" + - "\022).flyteidl.artifact.ExecutionInputsRequ" + - "est\032*.flyteidl.artifact.ExecutionInputsR" + - "esponse\"\000\022\330\001\n\022FindByWorkflowExec\022,.flyte" + - "idl.artifact.FindByWorkflowExecRequest\032*" + - ".flyteidl.artifact.SearchArtifactsRespon" + - "se\"h\202\323\344\223\002b\022`/artifacts/api/v1/search/exe" + - "cution/{exec_id.project}/{exec_id.domain" + - "}/{exec_id.name}/{direction}B@Z>github.c" + - "om/flyteorg/flyte/flyteidl/gen/pb-go/fly" + - "teidl/artifactb\006proto3" + "actID\"\031\n\027ExecutionInputsResponse\"B\n\020List" + + "UsageRequest\022.\n\013artifact_id\030\001 \001(\0132\031.flyt" + + "eidl.core.ArtifactID\"S\n\021ListUsageRespons" + + "e\022>\n\nexecutions\030\001 \003(\0132*.flyteidl.core.Wo" + + "rkflowExecutionIdentifier2\361\020\n\020ArtifactRe" + + "gistry\022g\n\016CreateArtifact\022(.flyteidl.arti" + + "fact.CreateArtifactRequest\032).flyteidl.ar" + + "tifact.CreateArtifactResponse\"\000\022\361\004\n\013GetA" + + "rtifact\022%.flyteidl.artifact.GetArtifactR" + + "equest\032&.flyteidl.artifact.GetArtifactRe" + + "sponse\"\222\004\202\323\344\223\002\213\004\022\033/artifacts/api/v1/arti" + + "factsZ\263\001\022\260\001/artifacts/api/v1/artifact/id" + + "/{query.artifact_id.artifact_key.project" + + "}/{query.artifact_id.artifact_key.domain" + + "}/{query.artifact_id.artifact_key.name}/" + + "{query.artifact_id.version}Z\227\001\022\224\001/artifa" + + "cts/api/v1/artifact/id/{query.artifact_i" + + "d.artifact_key.project}/{query.artifact_" + + "id.artifact_key.domain}/{query.artifact_" + + "id.artifact_key.name}Z\233\001\022\230\001/artifacts/ap" + + "i/v1/artifact/tag/{query.artifact_tag.ar" + + "tifact_key.project}/{query.artifact_tag." + + "artifact_key.domain}/{query.artifact_tag" + + ".artifact_key.name}\022\226\002\n\017SearchArtifacts\022" + + ").flyteidl.artifact.SearchArtifactsReque" + + "st\032*.flyteidl.artifact.SearchArtifactsRe" + + "sponse\"\253\001\202\323\344\223\002\244\001\022Y/artifacts/api/v1/sear" + + "ch/{artifact_key.project}/{artifact_key." + + "domain}/{artifact_key.name}ZG\022E/artifact" + + "s/api/v1/search/{artifact_key.project}/{" + + "artifact_key.domain}\022d\n\rCreateTrigger\022\'." + + "flyteidl.artifact.CreateTriggerRequest\032(" + + ".flyteidl.artifact.CreateTriggerResponse" + + "\"\000\022\237\001\n\021DeactivateTrigger\022+.flyteidl.arti" + + "fact.DeactivateTriggerRequest\032,.flyteidl" + + ".artifact.DeactivateTriggerResponse\"/\202\323\344" + + "\223\002)2$/artifacts/api/v1/trigger/deactivat" + + "e:\001*\022O\n\006AddTag\022 .flyteidl.artifact.AddTa" + + "gRequest\032!.flyteidl.artifact.AddTagRespo" + + "nse\"\000\022e\n\020RegisterProducer\022*.flyteidl.art" + + "ifact.RegisterProducerRequest\032#.flyteidl" + + ".artifact.RegisterResponse\"\000\022e\n\020Register" + + "Consumer\022*.flyteidl.artifact.RegisterCon" + + "sumerRequest\032#.flyteidl.artifact.Registe" + + "rResponse\"\000\022m\n\022SetExecutionInputs\022).flyt" + + "eidl.artifact.ExecutionInputsRequest\032*.f" + + "lyteidl.artifact.ExecutionInputsResponse" + + "\"\000\022\330\001\n\022FindByWorkflowExec\022,.flyteidl.art" + + "ifact.FindByWorkflowExecRequest\032*.flytei" + + "dl.artifact.SearchArtifactsResponse\"h\202\323\344" + + "\223\002b\022`/artifacts/api/v1/search/execution/" + + "{exec_id.project}/{exec_id.domain}/{exec" + + "_id.name}/{direction}\022\365\001\n\tListUsage\022#.fl" + + "yteidl.artifact.ListUsageRequest\032$.flyte" + + "idl.artifact.ListUsageResponse\"\234\001\202\323\344\223\002\225\001" + + "\022\222\001/artifacts/api/v1/usage/{artifact_id." + + "artifact_key.project}/{artifact_id.artif" + + "act_key.domain}/{artifact_id.artifact_ke" + + "y.name}/{artifact_id.version}B@Z>github." + + "com/flyteorg/flyte/flyteidl/gen/pb-go/fl" + + "yteidl/artifactb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -20240,6 +21647,18 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_artifact_ExecutionInputsResponse_descriptor, new java.lang.String[] { }); + internal_static_flyteidl_artifact_ListUsageRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_flyteidl_artifact_ListUsageRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_artifact_ListUsageRequest_descriptor, + new java.lang.String[] { "ArtifactId", }); + internal_static_flyteidl_artifact_ListUsageResponse_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_flyteidl_artifact_ListUsageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_artifact_ListUsageResponse_descriptor, + new java.lang.String[] { "Executions", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.AnnotationsProto.http); diff --git a/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2.py b/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2.py index 3cded1be547..cc5c3dc55fb 100644 --- a/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2.py +++ b/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2.py @@ -22,7 +22,7 @@ from flyteidl.event import cloudevents_pb2 as flyteidl_dot_event_dot_cloudevents__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!flyteidl/artifact/artifacts.proto\x12\x11\x66lyteidl.artifact\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/api/annotations.proto\x1a flyteidl/admin/launch_plan.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/types.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1f\x66lyteidl/core/artifact_id.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a flyteidl/event/cloudevents.proto\"\xca\x01\n\x08\x41rtifact\x12:\n\x0b\x61rtifact_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.ArtifactIDR\nartifactId\x12\x33\n\x04spec\x18\x02 \x01(\x0b\x32\x1f.flyteidl.artifact.ArtifactSpecR\x04spec\x12\x12\n\x04tags\x18\x03 \x03(\tR\x04tags\x12\x39\n\x06source\x18\x04 \x01(\x0b\x32!.flyteidl.artifact.ArtifactSourceR\x06source\"\x8b\x03\n\x15\x43reateArtifactRequest\x12=\n\x0c\x61rtifact_key\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.ArtifactKeyR\x0b\x61rtifactKey\x12\x18\n\x07version\x18\x03 \x01(\tR\x07version\x12\x33\n\x04spec\x18\x02 \x01(\x0b\x32\x1f.flyteidl.artifact.ArtifactSpecR\x04spec\x12X\n\npartitions\x18\x04 \x03(\x0b\x32\x38.flyteidl.artifact.CreateArtifactRequest.PartitionsEntryR\npartitions\x12\x10\n\x03tag\x18\x05 \x01(\tR\x03tag\x12\x39\n\x06source\x18\x06 \x01(\x0b\x32!.flyteidl.artifact.ArtifactSourceR\x06source\x1a=\n\x0fPartitionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\xfb\x01\n\x0e\x41rtifactSource\x12Y\n\x12workflow_execution\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x11workflowExecution\x12\x17\n\x07node_id\x18\x02 \x01(\tR\x06nodeId\x12\x32\n\x07task_id\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x06taskId\x12#\n\rretry_attempt\x18\x04 \x01(\rR\x0cretryAttempt\x12\x1c\n\tprincipal\x18\x05 \x01(\tR\tprincipal\"\xf9\x01\n\x0c\x41rtifactSpec\x12,\n\x05value\x18\x01 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05value\x12.\n\x04type\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x04type\x12+\n\x11short_description\x18\x03 \x01(\tR\x10shortDescription\x12\x39\n\ruser_metadata\x18\x04 \x01(\x0b\x32\x14.google.protobuf.AnyR\x0cuserMetadata\x12#\n\rmetadata_type\x18\x05 \x01(\tR\x0cmetadataType\"Q\n\x16\x43reateArtifactResponse\x12\x37\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x1b.flyteidl.artifact.ArtifactR\x08\x61rtifact\"b\n\x12GetArtifactRequest\x12\x32\n\x05query\x18\x01 \x01(\x0b\x32\x1c.flyteidl.core.ArtifactQueryR\x05query\x12\x18\n\x07\x64\x65tails\x18\x02 \x01(\x08R\x07\x64\x65tails\"N\n\x13GetArtifactResponse\x12\x37\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x1b.flyteidl.artifact.ArtifactR\x08\x61rtifact\"`\n\rSearchOptions\x12+\n\x11strict_partitions\x18\x01 \x01(\x08R\x10strictPartitions\x12\"\n\rlatest_by_key\x18\x02 \x01(\x08R\x0blatestByKey\"\xb2\x02\n\x16SearchArtifactsRequest\x12=\n\x0c\x61rtifact_key\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.ArtifactKeyR\x0b\x61rtifactKey\x12\x39\n\npartitions\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.PartitionsR\npartitions\x12\x1c\n\tprincipal\x18\x03 \x01(\tR\tprincipal\x12\x18\n\x07version\x18\x04 \x01(\tR\x07version\x12:\n\x07options\x18\x05 \x01(\x0b\x32 .flyteidl.artifact.SearchOptionsR\x07options\x12\x14\n\x05token\x18\x06 \x01(\tR\x05token\x12\x14\n\x05limit\x18\x07 \x01(\x05R\x05limit\"j\n\x17SearchArtifactsResponse\x12\x39\n\tartifacts\x18\x01 \x03(\x0b\x32\x1b.flyteidl.artifact.ArtifactR\tartifacts\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\xdc\x01\n\x19\x46indByWorkflowExecRequest\x12\x43\n\x07\x65xec_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x06\x65xecId\x12T\n\tdirection\x18\x02 \x01(\x0e\x32\x36.flyteidl.artifact.FindByWorkflowExecRequest.DirectionR\tdirection\"$\n\tDirection\x12\n\n\x06INPUTS\x10\x00\x12\x0b\n\x07OUTPUTS\x10\x01\"\x7f\n\rAddTagRequest\x12:\n\x0b\x61rtifact_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.ArtifactIDR\nartifactId\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\x12\x1c\n\toverwrite\x18\x03 \x01(\x08R\toverwrite\"\x10\n\x0e\x41\x64\x64TagResponse\"b\n\x14\x43reateTriggerRequest\x12J\n\x13trigger_launch_plan\x18\x01 \x01(\x0b\x32\x1a.flyteidl.admin.LaunchPlanR\x11triggerLaunchPlan\"\x17\n\x15\x43reateTriggerResponse\"T\n\x18\x44\x65\x61\x63tivateTriggerRequest\x12\x38\n\ntrigger_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\ttriggerId\"\x1b\n\x19\x44\x65\x61\x63tivateTriggerResponse\"\x80\x01\n\x10\x41rtifactProducer\x12\x36\n\tentity_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x08\x65ntityId\x12\x34\n\x07outputs\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.VariableMapR\x07outputs\"\\\n\x17RegisterProducerRequest\x12\x41\n\tproducers\x18\x01 \x03(\x0b\x32#.flyteidl.artifact.ArtifactProducerR\tproducers\"\x7f\n\x10\x41rtifactConsumer\x12\x36\n\tentity_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x08\x65ntityId\x12\x33\n\x06inputs\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.ParameterMapR\x06inputs\"\\\n\x17RegisterConsumerRequest\x12\x41\n\tconsumers\x18\x01 \x03(\x0b\x32#.flyteidl.artifact.ArtifactConsumerR\tconsumers\"\x12\n\x10RegisterResponse\"\x9a\x01\n\x16\x45xecutionInputsRequest\x12M\n\x0c\x65xecution_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x0b\x65xecutionId\x12\x31\n\x06inputs\x18\x02 \x03(\x0b\x32\x19.flyteidl.core.ArtifactIDR\x06inputs\"\x19\n\x17\x45xecutionInputsResponse2\xf9\x0e\n\x10\x41rtifactRegistry\x12g\n\x0e\x43reateArtifact\x12(.flyteidl.artifact.CreateArtifactRequest\x1a).flyteidl.artifact.CreateArtifactResponse\"\x00\x12\xf1\x04\n\x0bGetArtifact\x12%.flyteidl.artifact.GetArtifactRequest\x1a&.flyteidl.artifact.GetArtifactResponse\"\x92\x04\x82\xd3\xe4\x93\x02\x8b\x04Z\xb3\x01\x12\xb0\x01/artifacts/api/v1/artifact/id/{query.artifact_id.artifact_key.project}/{query.artifact_id.artifact_key.domain}/{query.artifact_id.artifact_key.name}/{query.artifact_id.version}Z\x97\x01\x12\x94\x01/artifacts/api/v1/artifact/id/{query.artifact_id.artifact_key.project}/{query.artifact_id.artifact_key.domain}/{query.artifact_id.artifact_key.name}Z\x9b\x01\x12\x98\x01/artifacts/api/v1/artifact/tag/{query.artifact_tag.artifact_key.project}/{query.artifact_tag.artifact_key.domain}/{query.artifact_tag.artifact_key.name}\x12\x1b/artifacts/api/v1/artifacts\x12\x96\x02\n\x0fSearchArtifacts\x12).flyteidl.artifact.SearchArtifactsRequest\x1a*.flyteidl.artifact.SearchArtifactsResponse\"\xab\x01\x82\xd3\xe4\x93\x02\xa4\x01ZG\x12\x45/artifacts/api/v1/search/{artifact_key.project}/{artifact_key.domain}\x12Y/artifacts/api/v1/search/{artifact_key.project}/{artifact_key.domain}/{artifact_key.name}\x12\x64\n\rCreateTrigger\x12\'.flyteidl.artifact.CreateTriggerRequest\x1a(.flyteidl.artifact.CreateTriggerResponse\"\x00\x12\x9f\x01\n\x11\x44\x65\x61\x63tivateTrigger\x12+.flyteidl.artifact.DeactivateTriggerRequest\x1a,.flyteidl.artifact.DeactivateTriggerResponse\"/\x82\xd3\xe4\x93\x02):\x01*2$/artifacts/api/v1/trigger/deactivate\x12O\n\x06\x41\x64\x64Tag\x12 .flyteidl.artifact.AddTagRequest\x1a!.flyteidl.artifact.AddTagResponse\"\x00\x12\x65\n\x10RegisterProducer\x12*.flyteidl.artifact.RegisterProducerRequest\x1a#.flyteidl.artifact.RegisterResponse\"\x00\x12\x65\n\x10RegisterConsumer\x12*.flyteidl.artifact.RegisterConsumerRequest\x1a#.flyteidl.artifact.RegisterResponse\"\x00\x12m\n\x12SetExecutionInputs\x12).flyteidl.artifact.ExecutionInputsRequest\x1a*.flyteidl.artifact.ExecutionInputsResponse\"\x00\x12\xd8\x01\n\x12\x46indByWorkflowExec\x12,.flyteidl.artifact.FindByWorkflowExecRequest\x1a*.flyteidl.artifact.SearchArtifactsResponse\"h\x82\xd3\xe4\x93\x02\x62\x12`/artifacts/api/v1/search/execution/{exec_id.project}/{exec_id.domain}/{exec_id.name}/{direction}B\xcc\x01\n\x15\x63om.flyteidl.artifactB\x0e\x41rtifactsProtoP\x01Z>github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/artifact\xa2\x02\x03\x46\x41X\xaa\x02\x11\x46lyteidl.Artifact\xca\x02\x11\x46lyteidl\\Artifact\xe2\x02\x1d\x46lyteidl\\Artifact\\GPBMetadata\xea\x02\x12\x46lyteidl::Artifactb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!flyteidl/artifact/artifacts.proto\x12\x11\x66lyteidl.artifact\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/api/annotations.proto\x1a flyteidl/admin/launch_plan.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/types.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1f\x66lyteidl/core/artifact_id.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a flyteidl/event/cloudevents.proto\"\xca\x01\n\x08\x41rtifact\x12:\n\x0b\x61rtifact_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.ArtifactIDR\nartifactId\x12\x33\n\x04spec\x18\x02 \x01(\x0b\x32\x1f.flyteidl.artifact.ArtifactSpecR\x04spec\x12\x12\n\x04tags\x18\x03 \x03(\tR\x04tags\x12\x39\n\x06source\x18\x04 \x01(\x0b\x32!.flyteidl.artifact.ArtifactSourceR\x06source\"\x8b\x03\n\x15\x43reateArtifactRequest\x12=\n\x0c\x61rtifact_key\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.ArtifactKeyR\x0b\x61rtifactKey\x12\x18\n\x07version\x18\x03 \x01(\tR\x07version\x12\x33\n\x04spec\x18\x02 \x01(\x0b\x32\x1f.flyteidl.artifact.ArtifactSpecR\x04spec\x12X\n\npartitions\x18\x04 \x03(\x0b\x32\x38.flyteidl.artifact.CreateArtifactRequest.PartitionsEntryR\npartitions\x12\x10\n\x03tag\x18\x05 \x01(\tR\x03tag\x12\x39\n\x06source\x18\x06 \x01(\x0b\x32!.flyteidl.artifact.ArtifactSourceR\x06source\x1a=\n\x0fPartitionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\xfb\x01\n\x0e\x41rtifactSource\x12Y\n\x12workflow_execution\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x11workflowExecution\x12\x17\n\x07node_id\x18\x02 \x01(\tR\x06nodeId\x12\x32\n\x07task_id\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x06taskId\x12#\n\rretry_attempt\x18\x04 \x01(\rR\x0cretryAttempt\x12\x1c\n\tprincipal\x18\x05 \x01(\tR\tprincipal\"\xf9\x01\n\x0c\x41rtifactSpec\x12,\n\x05value\x18\x01 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05value\x12.\n\x04type\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x04type\x12+\n\x11short_description\x18\x03 \x01(\tR\x10shortDescription\x12\x39\n\ruser_metadata\x18\x04 \x01(\x0b\x32\x14.google.protobuf.AnyR\x0cuserMetadata\x12#\n\rmetadata_type\x18\x05 \x01(\tR\x0cmetadataType\"Q\n\x16\x43reateArtifactResponse\x12\x37\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x1b.flyteidl.artifact.ArtifactR\x08\x61rtifact\"b\n\x12GetArtifactRequest\x12\x32\n\x05query\x18\x01 \x01(\x0b\x32\x1c.flyteidl.core.ArtifactQueryR\x05query\x12\x18\n\x07\x64\x65tails\x18\x02 \x01(\x08R\x07\x64\x65tails\"N\n\x13GetArtifactResponse\x12\x37\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x1b.flyteidl.artifact.ArtifactR\x08\x61rtifact\"`\n\rSearchOptions\x12+\n\x11strict_partitions\x18\x01 \x01(\x08R\x10strictPartitions\x12\"\n\rlatest_by_key\x18\x02 \x01(\x08R\x0blatestByKey\"\xb2\x02\n\x16SearchArtifactsRequest\x12=\n\x0c\x61rtifact_key\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.ArtifactKeyR\x0b\x61rtifactKey\x12\x39\n\npartitions\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.PartitionsR\npartitions\x12\x1c\n\tprincipal\x18\x03 \x01(\tR\tprincipal\x12\x18\n\x07version\x18\x04 \x01(\tR\x07version\x12:\n\x07options\x18\x05 \x01(\x0b\x32 .flyteidl.artifact.SearchOptionsR\x07options\x12\x14\n\x05token\x18\x06 \x01(\tR\x05token\x12\x14\n\x05limit\x18\x07 \x01(\x05R\x05limit\"j\n\x17SearchArtifactsResponse\x12\x39\n\tartifacts\x18\x01 \x03(\x0b\x32\x1b.flyteidl.artifact.ArtifactR\tartifacts\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\xdc\x01\n\x19\x46indByWorkflowExecRequest\x12\x43\n\x07\x65xec_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x06\x65xecId\x12T\n\tdirection\x18\x02 \x01(\x0e\x32\x36.flyteidl.artifact.FindByWorkflowExecRequest.DirectionR\tdirection\"$\n\tDirection\x12\n\n\x06INPUTS\x10\x00\x12\x0b\n\x07OUTPUTS\x10\x01\"\x7f\n\rAddTagRequest\x12:\n\x0b\x61rtifact_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.ArtifactIDR\nartifactId\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\x12\x1c\n\toverwrite\x18\x03 \x01(\x08R\toverwrite\"\x10\n\x0e\x41\x64\x64TagResponse\"b\n\x14\x43reateTriggerRequest\x12J\n\x13trigger_launch_plan\x18\x01 \x01(\x0b\x32\x1a.flyteidl.admin.LaunchPlanR\x11triggerLaunchPlan\"\x17\n\x15\x43reateTriggerResponse\"T\n\x18\x44\x65\x61\x63tivateTriggerRequest\x12\x38\n\ntrigger_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\ttriggerId\"\x1b\n\x19\x44\x65\x61\x63tivateTriggerResponse\"\x80\x01\n\x10\x41rtifactProducer\x12\x36\n\tentity_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x08\x65ntityId\x12\x34\n\x07outputs\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.VariableMapR\x07outputs\"\\\n\x17RegisterProducerRequest\x12\x41\n\tproducers\x18\x01 \x03(\x0b\x32#.flyteidl.artifact.ArtifactProducerR\tproducers\"\x7f\n\x10\x41rtifactConsumer\x12\x36\n\tentity_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x08\x65ntityId\x12\x33\n\x06inputs\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.ParameterMapR\x06inputs\"\\\n\x17RegisterConsumerRequest\x12\x41\n\tconsumers\x18\x01 \x03(\x0b\x32#.flyteidl.artifact.ArtifactConsumerR\tconsumers\"\x12\n\x10RegisterResponse\"\x9a\x01\n\x16\x45xecutionInputsRequest\x12M\n\x0c\x65xecution_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x0b\x65xecutionId\x12\x31\n\x06inputs\x18\x02 \x03(\x0b\x32\x19.flyteidl.core.ArtifactIDR\x06inputs\"\x19\n\x17\x45xecutionInputsResponse\"N\n\x10ListUsageRequest\x12:\n\x0b\x61rtifact_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.ArtifactIDR\nartifactId\"_\n\x11ListUsageResponse\x12J\n\nexecutions\x18\x01 \x03(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\nexecutions2\xf1\x10\n\x10\x41rtifactRegistry\x12g\n\x0e\x43reateArtifact\x12(.flyteidl.artifact.CreateArtifactRequest\x1a).flyteidl.artifact.CreateArtifactResponse\"\x00\x12\xf1\x04\n\x0bGetArtifact\x12%.flyteidl.artifact.GetArtifactRequest\x1a&.flyteidl.artifact.GetArtifactResponse\"\x92\x04\x82\xd3\xe4\x93\x02\x8b\x04Z\xb3\x01\x12\xb0\x01/artifacts/api/v1/artifact/id/{query.artifact_id.artifact_key.project}/{query.artifact_id.artifact_key.domain}/{query.artifact_id.artifact_key.name}/{query.artifact_id.version}Z\x97\x01\x12\x94\x01/artifacts/api/v1/artifact/id/{query.artifact_id.artifact_key.project}/{query.artifact_id.artifact_key.domain}/{query.artifact_id.artifact_key.name}Z\x9b\x01\x12\x98\x01/artifacts/api/v1/artifact/tag/{query.artifact_tag.artifact_key.project}/{query.artifact_tag.artifact_key.domain}/{query.artifact_tag.artifact_key.name}\x12\x1b/artifacts/api/v1/artifacts\x12\x96\x02\n\x0fSearchArtifacts\x12).flyteidl.artifact.SearchArtifactsRequest\x1a*.flyteidl.artifact.SearchArtifactsResponse\"\xab\x01\x82\xd3\xe4\x93\x02\xa4\x01ZG\x12\x45/artifacts/api/v1/search/{artifact_key.project}/{artifact_key.domain}\x12Y/artifacts/api/v1/search/{artifact_key.project}/{artifact_key.domain}/{artifact_key.name}\x12\x64\n\rCreateTrigger\x12\'.flyteidl.artifact.CreateTriggerRequest\x1a(.flyteidl.artifact.CreateTriggerResponse\"\x00\x12\x9f\x01\n\x11\x44\x65\x61\x63tivateTrigger\x12+.flyteidl.artifact.DeactivateTriggerRequest\x1a,.flyteidl.artifact.DeactivateTriggerResponse\"/\x82\xd3\xe4\x93\x02):\x01*2$/artifacts/api/v1/trigger/deactivate\x12O\n\x06\x41\x64\x64Tag\x12 .flyteidl.artifact.AddTagRequest\x1a!.flyteidl.artifact.AddTagResponse\"\x00\x12\x65\n\x10RegisterProducer\x12*.flyteidl.artifact.RegisterProducerRequest\x1a#.flyteidl.artifact.RegisterResponse\"\x00\x12\x65\n\x10RegisterConsumer\x12*.flyteidl.artifact.RegisterConsumerRequest\x1a#.flyteidl.artifact.RegisterResponse\"\x00\x12m\n\x12SetExecutionInputs\x12).flyteidl.artifact.ExecutionInputsRequest\x1a*.flyteidl.artifact.ExecutionInputsResponse\"\x00\x12\xd8\x01\n\x12\x46indByWorkflowExec\x12,.flyteidl.artifact.FindByWorkflowExecRequest\x1a*.flyteidl.artifact.SearchArtifactsResponse\"h\x82\xd3\xe4\x93\x02\x62\x12`/artifacts/api/v1/search/execution/{exec_id.project}/{exec_id.domain}/{exec_id.name}/{direction}\x12\xf5\x01\n\tListUsage\x12#.flyteidl.artifact.ListUsageRequest\x1a$.flyteidl.artifact.ListUsageResponse\"\x9c\x01\x82\xd3\xe4\x93\x02\x95\x01\x12\x92\x01/artifacts/api/v1/usage/{artifact_id.artifact_key.project}/{artifact_id.artifact_key.domain}/{artifact_id.artifact_key.name}/{artifact_id.version}B\xcc\x01\n\x15\x63om.flyteidl.artifactB\x0e\x41rtifactsProtoP\x01Z>github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/artifact\xa2\x02\x03\x46\x41X\xaa\x02\x11\x46lyteidl.Artifact\xca\x02\x11\x46lyteidl\\Artifact\xe2\x02\x1d\x46lyteidl\\Artifact\\GPBMetadata\xea\x02\x12\x46lyteidl::Artifactb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -41,6 +41,8 @@ _ARTIFACTREGISTRY.methods_by_name['DeactivateTrigger']._serialized_options = b'\202\323\344\223\002):\001*2$/artifacts/api/v1/trigger/deactivate' _ARTIFACTREGISTRY.methods_by_name['FindByWorkflowExec']._options = None _ARTIFACTREGISTRY.methods_by_name['FindByWorkflowExec']._serialized_options = b'\202\323\344\223\002b\022`/artifacts/api/v1/search/execution/{exec_id.project}/{exec_id.domain}/{exec_id.name}/{direction}' + _ARTIFACTREGISTRY.methods_by_name['ListUsage']._options = None + _ARTIFACTREGISTRY.methods_by_name['ListUsage']._serialized_options = b'\202\323\344\223\002\225\001\022\222\001/artifacts/api/v1/usage/{artifact_id.artifact_key.project}/{artifact_id.artifact_key.domain}/{artifact_id.artifact_key.name}/{artifact_id.version}' _globals['_ARTIFACT']._serialized_start=335 _globals['_ARTIFACT']._serialized_end=537 _globals['_CREATEARTIFACTREQUEST']._serialized_start=540 @@ -93,6 +95,10 @@ _globals['_EXECUTIONINPUTSREQUEST']._serialized_end=3454 _globals['_EXECUTIONINPUTSRESPONSE']._serialized_start=3456 _globals['_EXECUTIONINPUTSRESPONSE']._serialized_end=3481 - _globals['_ARTIFACTREGISTRY']._serialized_start=3484 - _globals['_ARTIFACTREGISTRY']._serialized_end=5397 + _globals['_LISTUSAGEREQUEST']._serialized_start=3483 + _globals['_LISTUSAGEREQUEST']._serialized_end=3561 + _globals['_LISTUSAGERESPONSE']._serialized_start=3563 + _globals['_LISTUSAGERESPONSE']._serialized_end=3658 + _globals['_ARTIFACTREGISTRY']._serialized_start=3661 + _globals['_ARTIFACTREGISTRY']._serialized_end=5822 # @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2.pyi index 61c28f21d48..92ba6c09040 100644 --- a/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2.pyi +++ b/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2.pyi @@ -223,3 +223,15 @@ class ExecutionInputsRequest(_message.Message): class ExecutionInputsResponse(_message.Message): __slots__ = [] def __init__(self) -> None: ... + +class ListUsageRequest(_message.Message): + __slots__ = ["artifact_id"] + ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] + artifact_id: _artifact_id_pb2.ArtifactID + def __init__(self, artifact_id: _Optional[_Union[_artifact_id_pb2.ArtifactID, _Mapping]] = ...) -> None: ... + +class ListUsageResponse(_message.Message): + __slots__ = ["executions"] + EXECUTIONS_FIELD_NUMBER: _ClassVar[int] + executions: _containers.RepeatedCompositeFieldContainer[_identifier_pb2.WorkflowExecutionIdentifier] + def __init__(self, executions: _Optional[_Iterable[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2_grpc.py index 95ddd8107eb..661103389bb 100644 --- a/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2_grpc.py +++ b/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2_grpc.py @@ -64,6 +64,11 @@ def __init__(self, channel): request_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.FindByWorkflowExecRequest.SerializeToString, response_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.SearchArtifactsResponse.FromString, ) + self.ListUsage = channel.unary_unary( + '/flyteidl.artifact.ArtifactRegistry/ListUsage', + request_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.ListUsageRequest.SerializeToString, + response_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.ListUsageResponse.FromString, + ) class ArtifactRegistryServicer(object): @@ -129,6 +134,12 @@ def FindByWorkflowExec(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def ListUsage(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def add_ArtifactRegistryServicer_to_server(servicer, server): rpc_method_handlers = { @@ -182,6 +193,11 @@ def add_ArtifactRegistryServicer_to_server(servicer, server): request_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.FindByWorkflowExecRequest.FromString, response_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.SearchArtifactsResponse.SerializeToString, ), + 'ListUsage': grpc.unary_unary_rpc_method_handler( + servicer.ListUsage, + request_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.ListUsageRequest.FromString, + response_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.ListUsageResponse.SerializeToString, + ), } generic_handler = grpc.method_handlers_generic_handler( 'flyteidl.artifact.ArtifactRegistry', rpc_method_handlers) @@ -361,3 +377,20 @@ def FindByWorkflowExec(request, flyteidl_dot_artifact_dot_artifacts__pb2.SearchArtifactsResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListUsage(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.artifact.ArtifactRegistry/ListUsage', + flyteidl_dot_artifact_dot_artifacts__pb2.ListUsageRequest.SerializeToString, + flyteidl_dot_artifact_dot_artifacts__pb2.ListUsageResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_rust/flyteidl.artifact.rs b/flyteidl/gen/pb_rust/flyteidl.artifact.rs index d35149b7405..5423067bbdc 100644 --- a/flyteidl/gen/pb_rust/flyteidl.artifact.rs +++ b/flyteidl/gen/pb_rust/flyteidl.artifact.rs @@ -245,4 +245,16 @@ pub struct ExecutionInputsRequest { #[derive(Clone, PartialEq, ::prost::Message)] pub struct ExecutionInputsResponse { } +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListUsageRequest { + #[prost(message, optional, tag="1")] + pub artifact_id: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListUsageResponse { + #[prost(message, repeated, tag="1")] + pub executions: ::prost::alloc::vec::Vec, +} // @@protoc_insertion_point(module) diff --git a/flyteidl/protos/flyteidl/artifact/artifacts.proto b/flyteidl/protos/flyteidl/artifact/artifacts.proto index aea350c6cfd..eda28944f52 100644 --- a/flyteidl/protos/flyteidl/artifact/artifacts.proto +++ b/flyteidl/protos/flyteidl/artifact/artifacts.proto @@ -184,6 +184,14 @@ message ExecutionInputsRequest { message ExecutionInputsResponse {} +message ListUsageRequest { + core.ArtifactID artifact_id = 1; +} + +message ListUsageResponse { + repeated core.WorkflowExecutionIdentifier executions = 1; +} + service ArtifactRegistry { rpc CreateArtifact (CreateArtifactRequest) returns (CreateArtifactResponse) {} @@ -226,4 +234,9 @@ service ArtifactRegistry { }; } + rpc ListUsage (ListUsageRequest) returns (ListUsageResponse) { + option (google.api.http) = { + get: "/artifacts/api/v1/usage/{artifact_id.artifact_key.project}/{artifact_id.artifact_key.domain}/{artifact_id.artifact_key.name}/{artifact_id.version}" + }; + } }