diff --git a/clients/go/datacatalog/mocks/DataCatalogClient.go b/clients/go/datacatalog/mocks/DataCatalogClient.go index 7ad132ad9..28e347f66 100644 --- a/clients/go/datacatalog/mocks/DataCatalogClient.go +++ b/clients/go/datacatalog/mocks/DataCatalogClient.go @@ -447,3 +447,51 @@ func (_m *DataCatalogClient) ReleaseReservation(ctx context.Context, in *datacat return r0, r1 } + +type DataCatalogClient_UpdateArtifact struct { + *mock.Call +} + +func (_m DataCatalogClient_UpdateArtifact) Return(_a0 *datacatalog.UpdateArtifactResponse, _a1 error) *DataCatalogClient_UpdateArtifact { + return &DataCatalogClient_UpdateArtifact{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataCatalogClient) OnUpdateArtifact(ctx context.Context, in *datacatalog.UpdateArtifactRequest, opts ...grpc.CallOption) *DataCatalogClient_UpdateArtifact { + c_call := _m.On("UpdateArtifact", ctx, in, opts) + return &DataCatalogClient_UpdateArtifact{Call: c_call} +} + +func (_m *DataCatalogClient) OnUpdateArtifactMatch(matchers ...interface{}) *DataCatalogClient_UpdateArtifact { + c_call := _m.On("UpdateArtifact", matchers...) + return &DataCatalogClient_UpdateArtifact{Call: c_call} +} + +// UpdateArtifact provides a mock function with given fields: ctx, in, opts +func (_m *DataCatalogClient) UpdateArtifact(ctx context.Context, in *datacatalog.UpdateArtifactRequest, opts ...grpc.CallOption) (*datacatalog.UpdateArtifactResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *datacatalog.UpdateArtifactResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.UpdateArtifactRequest, ...grpc.CallOption) *datacatalog.UpdateArtifactResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.UpdateArtifactResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.UpdateArtifactRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.cc b/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.cc index b1820d0cf..9fa10c82c 100644 --- a/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.cc +++ b/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.cc @@ -26,6 +26,7 @@ static const char* DataCatalog_method_names[] = { "/datacatalog.DataCatalog/AddTag", "/datacatalog.DataCatalog/ListArtifacts", "/datacatalog.DataCatalog/ListDatasets", + "/datacatalog.DataCatalog/UpdateArtifact", "/datacatalog.DataCatalog/GetOrExtendReservation", "/datacatalog.DataCatalog/ReleaseReservation", }; @@ -44,8 +45,9 @@ DataCatalog::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channe , rpcmethod_AddTag_(DataCatalog_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_ListArtifacts_(DataCatalog_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_ListDatasets_(DataCatalog_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetOrExtendReservation_(DataCatalog_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ReleaseReservation_(DataCatalog_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UpdateArtifact_(DataCatalog_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetOrExtendReservation_(DataCatalog_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ReleaseReservation_(DataCatalog_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status DataCatalog::Stub::CreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::datacatalog::CreateDatasetResponse* response) { @@ -244,6 +246,34 @@ ::grpc::ClientAsyncResponseReader< ::datacatalog::ListDatasetsResponse>* DataCat return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::ListDatasetsResponse>::Create(channel_.get(), cq, rpcmethod_ListDatasets_, context, request, false); } +::grpc::Status DataCatalog::Stub::UpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::datacatalog::UpdateArtifactResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UpdateArtifact_, context, request, response); +} + +void DataCatalog::Stub::experimental_async::UpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateArtifact_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::UpdateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::UpdateArtifactResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateArtifact_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::UpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateArtifact_, context, request, response, reactor); +} + +void DataCatalog::Stub::experimental_async::UpdateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::UpdateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateArtifact_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::UpdateArtifactResponse>* DataCatalog::Stub::AsyncUpdateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::UpdateArtifactResponse>::Create(channel_.get(), cq, rpcmethod_UpdateArtifact_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::UpdateArtifactResponse>* DataCatalog::Stub::PrepareAsyncUpdateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::UpdateArtifactResponse>::Create(channel_.get(), cq, rpcmethod_UpdateArtifact_, context, request, false); +} + ::grpc::Status DataCatalog::Stub::GetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::datacatalog::GetOrExtendReservationResponse* response) { return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetOrExtendReservation_, context, request, response); } @@ -339,10 +369,15 @@ DataCatalog::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( DataCatalog_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::UpdateArtifactRequest, ::datacatalog::UpdateArtifactResponse>( + std::mem_fn(&DataCatalog::Service::UpdateArtifact), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + DataCatalog_method_names[8], + ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::GetOrExtendReservationRequest, ::datacatalog::GetOrExtendReservationResponse>( std::mem_fn(&DataCatalog::Service::GetOrExtendReservation), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - DataCatalog_method_names[8], + DataCatalog_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::ReleaseReservationRequest, ::datacatalog::ReleaseReservationResponse>( std::mem_fn(&DataCatalog::Service::ReleaseReservation), this))); @@ -400,6 +435,13 @@ ::grpc::Status DataCatalog::Service::ListDatasets(::grpc::ServerContext* context return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status DataCatalog::Service::UpdateArtifact(::grpc::ServerContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + ::grpc::Status DataCatalog::Service::GetOrExtendReservation(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response) { (void) context; (void) request; diff --git a/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.h b/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.h index 26768316b..358bfd9de 100644 --- a/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.h +++ b/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.h @@ -109,6 +109,14 @@ class DataCatalog final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListDatasetsResponse>> PrepareAsyncListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListDatasetsResponse>>(PrepareAsyncListDatasetsRaw(context, request, cq)); } + // Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage. + virtual ::grpc::Status UpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::datacatalog::UpdateArtifactResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::UpdateArtifactResponse>> AsyncUpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::UpdateArtifactResponse>>(AsyncUpdateArtifactRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::UpdateArtifactResponse>> PrepareAsyncUpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::UpdateArtifactResponse>>(PrepareAsyncUpdateArtifactRaw(context, request, cq)); + } // Attempts to get or extend a reservation for the corresponding artifact. If one already exists // (ie. another entity owns the reservation) then that reservation is retrieved. // Once you acquire a reservation, you need to periodically extend the reservation with an @@ -176,6 +184,11 @@ class DataCatalog final { virtual void ListDatasets(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListDatasetsResponse* response, std::function) = 0; virtual void ListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; virtual void ListDatasets(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListDatasetsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage. + virtual void UpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response, std::function) = 0; + virtual void UpdateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::UpdateArtifactResponse* response, std::function) = 0; + virtual void UpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void UpdateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::UpdateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; // Attempts to get or extend a reservation for the corresponding artifact. If one already exists // (ie. another entity owns the reservation) then that reservation is retrieved. // Once you acquire a reservation, you need to periodically extend the reservation with an @@ -214,6 +227,8 @@ class DataCatalog final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListArtifactsResponse>* PrepareAsyncListArtifactsRaw(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListDatasetsResponse>* AsyncListDatasetsRaw(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListDatasetsResponse>* PrepareAsyncListDatasetsRaw(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::UpdateArtifactResponse>* AsyncUpdateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::UpdateArtifactResponse>* PrepareAsyncUpdateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetOrExtendReservationResponse>* AsyncGetOrExtendReservationRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetOrExtendReservationResponse>* PrepareAsyncGetOrExtendReservationRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ReleaseReservationResponse>* AsyncReleaseReservationRaw(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -271,6 +286,13 @@ class DataCatalog final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ListDatasetsResponse>> PrepareAsyncListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ListDatasetsResponse>>(PrepareAsyncListDatasetsRaw(context, request, cq)); } + ::grpc::Status UpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::datacatalog::UpdateArtifactResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::UpdateArtifactResponse>> AsyncUpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::UpdateArtifactResponse>>(AsyncUpdateArtifactRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::UpdateArtifactResponse>> PrepareAsyncUpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::UpdateArtifactResponse>>(PrepareAsyncUpdateArtifactRaw(context, request, cq)); + } ::grpc::Status GetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::datacatalog::GetOrExtendReservationResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationResponse>> AsyncGetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationResponse>>(AsyncGetOrExtendReservationRaw(context, request, cq)); @@ -316,6 +338,10 @@ class DataCatalog final { void ListDatasets(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListDatasetsResponse* response, std::function) override; void ListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; void ListDatasets(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListDatasetsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void UpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response, std::function) override; + void UpdateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::UpdateArtifactResponse* response, std::function) override; + void UpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void UpdateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::UpdateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; void GetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response, std::function) override; void GetOrExtendReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetOrExtendReservationResponse* response, std::function) override; void GetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; @@ -349,6 +375,8 @@ class DataCatalog final { ::grpc::ClientAsyncResponseReader< ::datacatalog::ListArtifactsResponse>* PrepareAsyncListArtifactsRaw(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::datacatalog::ListDatasetsResponse>* AsyncListDatasetsRaw(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::datacatalog::ListDatasetsResponse>* PrepareAsyncListDatasetsRaw(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::UpdateArtifactResponse>* AsyncUpdateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::UpdateArtifactResponse>* PrepareAsyncUpdateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationResponse>* AsyncGetOrExtendReservationRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationResponse>* PrepareAsyncGetOrExtendReservationRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>* AsyncReleaseReservationRaw(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) override; @@ -360,6 +388,7 @@ class DataCatalog final { const ::grpc::internal::RpcMethod rpcmethod_AddTag_; const ::grpc::internal::RpcMethod rpcmethod_ListArtifacts_; const ::grpc::internal::RpcMethod rpcmethod_ListDatasets_; + const ::grpc::internal::RpcMethod rpcmethod_UpdateArtifact_; const ::grpc::internal::RpcMethod rpcmethod_GetOrExtendReservation_; const ::grpc::internal::RpcMethod rpcmethod_ReleaseReservation_; }; @@ -385,6 +414,8 @@ class DataCatalog final { virtual ::grpc::Status ListArtifacts(::grpc::ServerContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response); // Return a paginated list of datasets virtual ::grpc::Status ListDatasets(::grpc::ServerContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response); + // Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage. + virtual ::grpc::Status UpdateArtifact(::grpc::ServerContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response); // Attempts to get or extend a reservation for the corresponding artifact. If one already exists // (ie. another entity owns the reservation) then that reservation is retrieved. // Once you acquire a reservation, you need to periodically extend the reservation with an @@ -542,12 +573,32 @@ class DataCatalog final { } }; template + class WithAsyncMethod_UpdateArtifact : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_UpdateArtifact() { + ::grpc::Service::MarkMethodAsync(7); + } + ~WithAsyncMethod_UpdateArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateArtifact(::grpc::ServerContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateArtifact(::grpc::ServerContext* context, ::datacatalog::UpdateArtifactRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::UpdateArtifactResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class WithAsyncMethod_GetOrExtendReservation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithAsyncMethod_GetOrExtendReservation() { - ::grpc::Service::MarkMethodAsync(7); + ::grpc::Service::MarkMethodAsync(8); } ~WithAsyncMethod_GetOrExtendReservation() override { BaseClassMustBeDerivedFromService(this); @@ -558,7 +609,7 @@ class DataCatalog final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetOrExtendReservation(::grpc::ServerContext* context, ::datacatalog::GetOrExtendReservationRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::GetOrExtendReservationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -567,7 +618,7 @@ class DataCatalog final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithAsyncMethod_ReleaseReservation() { - ::grpc::Service::MarkMethodAsync(8); + ::grpc::Service::MarkMethodAsync(9); } ~WithAsyncMethod_ReleaseReservation() override { BaseClassMustBeDerivedFromService(this); @@ -578,10 +629,10 @@ class DataCatalog final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestReleaseReservation(::grpc::ServerContext* context, ::datacatalog::ReleaseReservationRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::ReleaseReservationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_CreateDataset > > > > > > > > AsyncService; + typedef WithAsyncMethod_CreateDataset > > > > > > > > > AsyncService; template class ExperimentalWithCallbackMethod_CreateDataset : public BaseClass { private: @@ -800,12 +851,43 @@ class DataCatalog final { virtual void ListDatasets(::grpc::ServerContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template + class ExperimentalWithCallbackMethod_UpdateArtifact : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_UpdateArtifact() { + ::grpc::Service::experimental().MarkMethodCallback(7, + new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::UpdateArtifactRequest, ::datacatalog::UpdateArtifactResponse>( + [this](::grpc::ServerContext* context, + const ::datacatalog::UpdateArtifactRequest* request, + ::datacatalog::UpdateArtifactResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->UpdateArtifact(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_UpdateArtifact( + ::grpc::experimental::MessageAllocator< ::datacatalog::UpdateArtifactRequest, ::datacatalog::UpdateArtifactResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::UpdateArtifactRequest, ::datacatalog::UpdateArtifactResponse>*>( + ::grpc::Service::experimental().GetHandler(7)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_UpdateArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateArtifact(::grpc::ServerContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void UpdateArtifact(::grpc::ServerContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template class ExperimentalWithCallbackMethod_GetOrExtendReservation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: ExperimentalWithCallbackMethod_GetOrExtendReservation() { - ::grpc::Service::experimental().MarkMethodCallback(7, + ::grpc::Service::experimental().MarkMethodCallback(8, new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::GetOrExtendReservationRequest, ::datacatalog::GetOrExtendReservationResponse>( [this](::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, @@ -817,7 +899,7 @@ class DataCatalog final { void SetMessageAllocatorFor_GetOrExtendReservation( ::grpc::experimental::MessageAllocator< ::datacatalog::GetOrExtendReservationRequest, ::datacatalog::GetOrExtendReservationResponse>* allocator) { static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::GetOrExtendReservationRequest, ::datacatalog::GetOrExtendReservationResponse>*>( - ::grpc::Service::experimental().GetHandler(7)) + ::grpc::Service::experimental().GetHandler(8)) ->SetMessageAllocator(allocator); } ~ExperimentalWithCallbackMethod_GetOrExtendReservation() override { @@ -836,7 +918,7 @@ class DataCatalog final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: ExperimentalWithCallbackMethod_ReleaseReservation() { - ::grpc::Service::experimental().MarkMethodCallback(8, + ::grpc::Service::experimental().MarkMethodCallback(9, new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::ReleaseReservationRequest, ::datacatalog::ReleaseReservationResponse>( [this](::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, @@ -848,7 +930,7 @@ class DataCatalog final { void SetMessageAllocatorFor_ReleaseReservation( ::grpc::experimental::MessageAllocator< ::datacatalog::ReleaseReservationRequest, ::datacatalog::ReleaseReservationResponse>* allocator) { static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::ReleaseReservationRequest, ::datacatalog::ReleaseReservationResponse>*>( - ::grpc::Service::experimental().GetHandler(8)) + ::grpc::Service::experimental().GetHandler(9)) ->SetMessageAllocator(allocator); } ~ExperimentalWithCallbackMethod_ReleaseReservation() override { @@ -861,7 +943,7 @@ class DataCatalog final { } virtual void ReleaseReservation(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; - typedef ExperimentalWithCallbackMethod_CreateDataset > > > > > > > > ExperimentalCallbackService; + typedef ExperimentalWithCallbackMethod_CreateDataset > > > > > > > > > ExperimentalCallbackService; template class WithGenericMethod_CreateDataset : public BaseClass { private: @@ -982,12 +1064,29 @@ class DataCatalog final { } }; template + class WithGenericMethod_UpdateArtifact : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_UpdateArtifact() { + ::grpc::Service::MarkMethodGeneric(7); + } + ~WithGenericMethod_UpdateArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateArtifact(::grpc::ServerContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithGenericMethod_GetOrExtendReservation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithGenericMethod_GetOrExtendReservation() { - ::grpc::Service::MarkMethodGeneric(7); + ::grpc::Service::MarkMethodGeneric(8); } ~WithGenericMethod_GetOrExtendReservation() override { BaseClassMustBeDerivedFromService(this); @@ -1004,7 +1103,7 @@ class DataCatalog final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithGenericMethod_ReleaseReservation() { - ::grpc::Service::MarkMethodGeneric(8); + ::grpc::Service::MarkMethodGeneric(9); } ~WithGenericMethod_ReleaseReservation() override { BaseClassMustBeDerivedFromService(this); @@ -1156,12 +1255,32 @@ class DataCatalog final { } }; template + class WithRawMethod_UpdateArtifact : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_UpdateArtifact() { + ::grpc::Service::MarkMethodRaw(7); + } + ~WithRawMethod_UpdateArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateArtifact(::grpc::ServerContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateArtifact(::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(7, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class WithRawMethod_GetOrExtendReservation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithRawMethod_GetOrExtendReservation() { - ::grpc::Service::MarkMethodRaw(7); + ::grpc::Service::MarkMethodRaw(8); } ~WithRawMethod_GetOrExtendReservation() override { BaseClassMustBeDerivedFromService(this); @@ -1172,7 +1291,7 @@ class DataCatalog final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetOrExtendReservation(::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(7, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1181,7 +1300,7 @@ class DataCatalog final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithRawMethod_ReleaseReservation() { - ::grpc::Service::MarkMethodRaw(8); + ::grpc::Service::MarkMethodRaw(9); } ~WithRawMethod_ReleaseReservation() override { BaseClassMustBeDerivedFromService(this); @@ -1192,7 +1311,7 @@ class DataCatalog final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestReleaseReservation(::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(8, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1371,12 +1490,37 @@ class DataCatalog final { virtual void ListDatasets(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template + class ExperimentalWithRawCallbackMethod_UpdateArtifact : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_UpdateArtifact() { + ::grpc::Service::experimental().MarkMethodRawCallback(7, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->UpdateArtifact(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_UpdateArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateArtifact(::grpc::ServerContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void UpdateArtifact(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template class ExperimentalWithRawCallbackMethod_GetOrExtendReservation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: ExperimentalWithRawCallbackMethod_GetOrExtendReservation() { - ::grpc::Service::experimental().MarkMethodRawCallback(7, + ::grpc::Service::experimental().MarkMethodRawCallback(8, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, @@ -1401,7 +1545,7 @@ class DataCatalog final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: ExperimentalWithRawCallbackMethod_ReleaseReservation() { - ::grpc::Service::experimental().MarkMethodRawCallback(8, + ::grpc::Service::experimental().MarkMethodRawCallback(9, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, @@ -1561,12 +1705,32 @@ class DataCatalog final { virtual ::grpc::Status StreamedListDatasets(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::ListDatasetsRequest,::datacatalog::ListDatasetsResponse>* server_unary_streamer) = 0; }; template + class WithStreamedUnaryMethod_UpdateArtifact : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_UpdateArtifact() { + ::grpc::Service::MarkMethodStreamed(7, + new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::UpdateArtifactRequest, ::datacatalog::UpdateArtifactResponse>(std::bind(&WithStreamedUnaryMethod_UpdateArtifact::StreamedUpdateArtifact, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_UpdateArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status UpdateArtifact(::grpc::ServerContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedUpdateArtifact(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::UpdateArtifactRequest,::datacatalog::UpdateArtifactResponse>* server_unary_streamer) = 0; + }; + template class WithStreamedUnaryMethod_GetOrExtendReservation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithStreamedUnaryMethod_GetOrExtendReservation() { - ::grpc::Service::MarkMethodStreamed(7, + ::grpc::Service::MarkMethodStreamed(8, new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::GetOrExtendReservationRequest, ::datacatalog::GetOrExtendReservationResponse>(std::bind(&WithStreamedUnaryMethod_GetOrExtendReservation::StreamedGetOrExtendReservation, this, std::placeholders::_1, std::placeholders::_2))); } ~WithStreamedUnaryMethod_GetOrExtendReservation() override { @@ -1586,7 +1750,7 @@ class DataCatalog final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithStreamedUnaryMethod_ReleaseReservation() { - ::grpc::Service::MarkMethodStreamed(8, + ::grpc::Service::MarkMethodStreamed(9, new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::ReleaseReservationRequest, ::datacatalog::ReleaseReservationResponse>(std::bind(&WithStreamedUnaryMethod_ReleaseReservation::StreamedReleaseReservation, this, std::placeholders::_1, std::placeholders::_2))); } ~WithStreamedUnaryMethod_ReleaseReservation() override { @@ -1600,9 +1764,9 @@ class DataCatalog final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedReleaseReservation(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::ReleaseReservationRequest,::datacatalog::ReleaseReservationResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_CreateDataset > > > > > > > > StreamedUnaryService; + typedef WithStreamedUnaryMethod_CreateDataset > > > > > > > > > StreamedUnaryService; typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_CreateDataset > > > > > > > > StreamedService; + typedef WithStreamedUnaryMethod_CreateDataset > > > > > > > > > StreamedService; }; } // namespace datacatalog diff --git a/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.cc b/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.cc index bbf2509e5..c7a1e012d 100644 --- a/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.cc +++ b/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.cc @@ -96,6 +96,16 @@ class ListDatasetsResponseDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _ListDatasetsResponse_default_instance_; +class UpdateArtifactRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ArenaStringPtr artifact_id_; + ::google::protobuf::internal::ArenaStringPtr tag_name_; +} _UpdateArtifactRequest_default_instance_; +class UpdateArtifactResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _UpdateArtifactResponse_default_instance_; class ReservationIDDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; @@ -406,6 +416,36 @@ ::google::protobuf::internal::SCCInfo<1> scc_info_ListDatasetsResponse_flyteidl_ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsListDatasetsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { &scc_info_Dataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; +static void InitDefaultsUpdateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_UpdateArtifactRequest_default_instance_; + new (ptr) ::datacatalog::UpdateArtifactRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::UpdateArtifactRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_UpdateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsUpdateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_ArtifactData_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsUpdateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_UpdateArtifactResponse_default_instance_; + new (ptr) ::datacatalog::UpdateArtifactResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::UpdateArtifactResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_UpdateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsUpdateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; + static void InitDefaultsReservationID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -754,6 +794,8 @@ void InitDefaults_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { ::google::protobuf::internal::InitSCC(&scc_info_ListArtifactsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_ListDatasetsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_ListDatasetsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_UpdateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_UpdateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_ReservationID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_GetOrExtendReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_Reservation_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); @@ -778,7 +820,7 @@ void InitDefaults_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { ::google::protobuf::internal::InitSCC(&scc_info_PaginationOptions_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); } -::google::protobuf::Metadata file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[36]; +::google::protobuf::Metadata file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[38]; const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[3]; constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = nullptr; @@ -873,6 +915,21 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fdatacatalog_2fdatacatalo PROTOBUF_FIELD_OFFSET(::datacatalog::ListDatasetsResponse, datasets_), PROTOBUF_FIELD_OFFSET(::datacatalog::ListDatasetsResponse, next_token_), ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::UpdateArtifactRequest, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::datacatalog::UpdateArtifactRequest, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::UpdateArtifactRequest, dataset_), + offsetof(::datacatalog::UpdateArtifactRequestDefaultTypeInternal, artifact_id_), + offsetof(::datacatalog::UpdateArtifactRequestDefaultTypeInternal, tag_name_), + PROTOBUF_FIELD_OFFSET(::datacatalog::UpdateArtifactRequest, data_), + PROTOBUF_FIELD_OFFSET(::datacatalog::UpdateArtifactRequest, query_handle_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::UpdateArtifactResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::datacatalog::ReservationID, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -1062,28 +1119,30 @@ static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SE { 68, -1, sizeof(::datacatalog::ListArtifactsResponse)}, { 75, -1, sizeof(::datacatalog::ListDatasetsRequest)}, { 82, -1, sizeof(::datacatalog::ListDatasetsResponse)}, - { 89, -1, sizeof(::datacatalog::ReservationID)}, - { 96, -1, sizeof(::datacatalog::GetOrExtendReservationRequest)}, - { 104, -1, sizeof(::datacatalog::Reservation)}, - { 114, -1, sizeof(::datacatalog::GetOrExtendReservationResponse)}, - { 120, -1, sizeof(::datacatalog::ReleaseReservationRequest)}, - { 127, -1, sizeof(::datacatalog::ReleaseReservationResponse)}, - { 132, -1, sizeof(::datacatalog::Dataset)}, - { 140, -1, sizeof(::datacatalog::Partition)}, - { 147, -1, sizeof(::datacatalog::DatasetID)}, - { 157, -1, sizeof(::datacatalog::Artifact)}, - { 169, -1, sizeof(::datacatalog::ArtifactData)}, - { 176, -1, sizeof(::datacatalog::Tag)}, - { 184, 191, sizeof(::datacatalog::Metadata_KeyMapEntry_DoNotUse)}, - { 193, -1, sizeof(::datacatalog::Metadata)}, - { 199, -1, sizeof(::datacatalog::FilterExpression)}, - { 205, -1, sizeof(::datacatalog::SinglePropertyFilter)}, - { 216, -1, sizeof(::datacatalog::ArtifactPropertyFilter)}, - { 223, -1, sizeof(::datacatalog::TagPropertyFilter)}, - { 230, -1, sizeof(::datacatalog::PartitionPropertyFilter)}, - { 237, -1, sizeof(::datacatalog::KeyValuePair)}, - { 244, -1, sizeof(::datacatalog::DatasetPropertyFilter)}, - { 254, -1, sizeof(::datacatalog::PaginationOptions)}, + { 89, -1, sizeof(::datacatalog::UpdateArtifactRequest)}, + { 99, -1, sizeof(::datacatalog::UpdateArtifactResponse)}, + { 104, -1, sizeof(::datacatalog::ReservationID)}, + { 111, -1, sizeof(::datacatalog::GetOrExtendReservationRequest)}, + { 119, -1, sizeof(::datacatalog::Reservation)}, + { 129, -1, sizeof(::datacatalog::GetOrExtendReservationResponse)}, + { 135, -1, sizeof(::datacatalog::ReleaseReservationRequest)}, + { 142, -1, sizeof(::datacatalog::ReleaseReservationResponse)}, + { 147, -1, sizeof(::datacatalog::Dataset)}, + { 155, -1, sizeof(::datacatalog::Partition)}, + { 162, -1, sizeof(::datacatalog::DatasetID)}, + { 172, -1, sizeof(::datacatalog::Artifact)}, + { 184, -1, sizeof(::datacatalog::ArtifactData)}, + { 191, -1, sizeof(::datacatalog::Tag)}, + { 199, 206, sizeof(::datacatalog::Metadata_KeyMapEntry_DoNotUse)}, + { 208, -1, sizeof(::datacatalog::Metadata)}, + { 214, -1, sizeof(::datacatalog::FilterExpression)}, + { 220, -1, sizeof(::datacatalog::SinglePropertyFilter)}, + { 231, -1, sizeof(::datacatalog::ArtifactPropertyFilter)}, + { 238, -1, sizeof(::datacatalog::TagPropertyFilter)}, + { 245, -1, sizeof(::datacatalog::PartitionPropertyFilter)}, + { 252, -1, sizeof(::datacatalog::KeyValuePair)}, + { 259, -1, sizeof(::datacatalog::DatasetPropertyFilter)}, + { 269, -1, sizeof(::datacatalog::PaginationOptions)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { @@ -1101,6 +1160,8 @@ static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::datacatalog::_ListArtifactsResponse_default_instance_), reinterpret_cast(&::datacatalog::_ListDatasetsRequest_default_instance_), reinterpret_cast(&::datacatalog::_ListDatasetsResponse_default_instance_), + reinterpret_cast(&::datacatalog::_UpdateArtifactRequest_default_instance_), + reinterpret_cast(&::datacatalog::_UpdateArtifactResponse_default_instance_), reinterpret_cast(&::datacatalog::_ReservationID_default_instance_), reinterpret_cast(&::datacatalog::_GetOrExtendReservationRequest_default_instance_), reinterpret_cast(&::datacatalog::_Reservation_default_instance_), @@ -1128,7 +1189,7 @@ static ::google::protobuf::Message const * const file_default_instances[] = { ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = { {}, AddDescriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, "flyteidl/datacatalog/datacatalog.proto", schemas, file_default_instances, TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto::offsets, - file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, 36, file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, file_level_service_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, + file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, 38, file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, file_level_service_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, }; const char descriptor_table_protodef_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[] = @@ -1161,97 +1222,104 @@ const char descriptor_table_protodef_flyteidl_2fdatacatalog_2fdatacatalog_2eprot "\002 \001(\0132\036.datacatalog.PaginationOptions\"R\n" "\024ListDatasetsResponse\022&\n\010datasets\030\001 \003(\0132" "\024.datacatalog.Dataset\022\022\n\nnext_token\030\002 \001(" - "\t\"M\n\rReservationID\022*\n\ndataset_id\030\001 \001(\0132\026" - ".datacatalog.DatasetID\022\020\n\010tag_name\030\002 \001(\t" - "\"\234\001\n\035GetOrExtendReservationRequest\0222\n\016re" - "servation_id\030\001 \001(\0132\032.datacatalog.Reserva" - "tionID\022\020\n\010owner_id\030\002 \001(\t\0225\n\022heartbeat_in" - "terval\030\003 \001(\0132\031.google.protobuf.Duration\"" - "\343\001\n\013Reservation\0222\n\016reservation_id\030\001 \001(\0132" - "\032.datacatalog.ReservationID\022\020\n\010owner_id\030" - "\002 \001(\t\0225\n\022heartbeat_interval\030\003 \001(\0132\031.goog" - "le.protobuf.Duration\022.\n\nexpires_at\030\004 \001(\013" - "2\032.google.protobuf.Timestamp\022\'\n\010metadata" - "\030\006 \001(\0132\025.datacatalog.Metadata\"O\n\036GetOrEx" - "tendReservationResponse\022-\n\013reservation\030\001" - " \001(\0132\030.datacatalog.Reservation\"a\n\031Releas" - "eReservationRequest\0222\n\016reservation_id\030\001 " - "\001(\0132\032.datacatalog.ReservationID\022\020\n\010owner" - "_id\030\002 \001(\t\"\034\n\032ReleaseReservationResponse\"" - "m\n\007Dataset\022\"\n\002id\030\001 \001(\0132\026.datacatalog.Dat" - "asetID\022\'\n\010metadata\030\002 \001(\0132\025.datacatalog.M" - "etadata\022\025\n\rpartitionKeys\030\003 \003(\t\"\'\n\tPartit" - "ion\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"Y\n\tDatas" - "etID\022\017\n\007project\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\016\n\006d" - "omain\030\003 \001(\t\022\017\n\007version\030\004 \001(\t\022\014\n\004UUID\030\005 \001" - "(\t\"\215\002\n\010Artifact\022\n\n\002id\030\001 \001(\t\022\'\n\007dataset\030\002" - " \001(\0132\026.datacatalog.DatasetID\022\'\n\004data\030\003 \003" - "(\0132\031.datacatalog.ArtifactData\022\'\n\010metadat" - "a\030\004 \001(\0132\025.datacatalog.Metadata\022*\n\npartit" - "ions\030\005 \003(\0132\026.datacatalog.Partition\022\036\n\004ta" - "gs\030\006 \003(\0132\020.datacatalog.Tag\022.\n\ncreated_at" - "\030\007 \001(\0132\032.google.protobuf.Timestamp\"C\n\014Ar" - "tifactData\022\014\n\004name\030\001 \001(\t\022%\n\005value\030\002 \001(\0132" - "\026.flyteidl.core.Literal\"Q\n\003Tag\022\014\n\004name\030\001" - " \001(\t\022\023\n\013artifact_id\030\002 \001(\t\022\'\n\007dataset\030\003 \001" - "(\0132\026.datacatalog.DatasetID\"m\n\010Metadata\0222" - "\n\007key_map\030\001 \003(\0132!.datacatalog.Metadata.K" - "eyMapEntry\032-\n\013KeyMapEntry\022\013\n\003key\030\001 \001(\t\022\r" - "\n\005value\030\002 \001(\t:\0028\001\"F\n\020FilterExpression\0222\n" - "\007filters\030\001 \003(\0132!.datacatalog.SinglePrope" - "rtyFilter\"\211\003\n\024SinglePropertyFilter\0224\n\nta" - "g_filter\030\001 \001(\0132\036.datacatalog.TagProperty" - "FilterH\000\022@\n\020partition_filter\030\002 \001(\0132$.dat" - "acatalog.PartitionPropertyFilterH\000\022>\n\017ar" - "tifact_filter\030\003 \001(\0132#.datacatalog.Artifa" - "ctPropertyFilterH\000\022<\n\016dataset_filter\030\004 \001" - "(\0132\".datacatalog.DatasetPropertyFilterH\000" - "\022F\n\010operator\030\n \001(\01624.datacatalog.SingleP" - "ropertyFilter.ComparisonOperator\" \n\022Comp" - "arisonOperator\022\n\n\006EQUALS\020\000B\021\n\017property_f" - "ilter\";\n\026ArtifactPropertyFilter\022\025\n\013artif" - "act_id\030\001 \001(\tH\000B\n\n\010property\"3\n\021TagPropert" - "yFilter\022\022\n\010tag_name\030\001 \001(\tH\000B\n\n\010property\"" - "S\n\027PartitionPropertyFilter\022,\n\007key_val\030\001 " - "\001(\0132\031.datacatalog.KeyValuePairH\000B\n\n\010prop" - "erty\"*\n\014KeyValuePair\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - "ue\030\002 \001(\t\"k\n\025DatasetPropertyFilter\022\021\n\007pro" - "ject\030\001 \001(\tH\000\022\016\n\004name\030\002 \001(\tH\000\022\020\n\006domain\030\003" - " \001(\tH\000\022\021\n\007version\030\004 \001(\tH\000B\n\n\010property\"\361\001" - "\n\021PaginationOptions\022\r\n\005limit\030\001 \001(\r\022\r\n\005to" - "ken\030\002 \001(\t\0227\n\007sortKey\030\003 \001(\0162&.datacatalog" - ".PaginationOptions.SortKey\022;\n\tsortOrder\030" - "\004 \001(\0162(.datacatalog.PaginationOptions.So" - "rtOrder\"*\n\tSortOrder\022\016\n\nDESCENDING\020\000\022\r\n\t" - "ASCENDING\020\001\"\034\n\007SortKey\022\021\n\rCREATION_TIME\020" - "\0002\253\006\n\013DataCatalog\022V\n\rCreateDataset\022!.dat" - "acatalog.CreateDatasetRequest\032\".datacata" - "log.CreateDatasetResponse\022M\n\nGetDataset\022" - "\036.datacatalog.GetDatasetRequest\032\037.dataca" - "talog.GetDatasetResponse\022Y\n\016CreateArtifa" - "ct\022\".datacatalog.CreateArtifactRequest\032#" - ".datacatalog.CreateArtifactResponse\022P\n\013G" - "etArtifact\022\037.datacatalog.GetArtifactRequ" - "est\032 .datacatalog.GetArtifactResponse\022A\n" - "\006AddTag\022\032.datacatalog.AddTagRequest\032\033.da" - "tacatalog.AddTagResponse\022V\n\rListArtifact" - "s\022!.datacatalog.ListArtifactsRequest\032\".d" - "atacatalog.ListArtifactsResponse\022S\n\014List" - "Datasets\022 .datacatalog.ListDatasetsReque" - "st\032!.datacatalog.ListDatasetsResponse\022q\n" - "\026GetOrExtendReservation\022*.datacatalog.Ge" - "tOrExtendReservationRequest\032+.datacatalo" - "g.GetOrExtendReservationResponse\022e\n\022Rele" - "aseReservation\022&.datacatalog.ReleaseRese" - "rvationRequest\032\'.datacatalog.ReleaseRese" - "rvationResponseB=Z;github.com/flyteorg/f" - "lyteidl/gen/pb-go/flyteidl/datacatalogb\006" - "proto3" + "\t\"\244\001\n\025UpdateArtifactRequest\022\'\n\007dataset\030\001" + " \001(\0132\026.datacatalog.DatasetID\022\025\n\013artifact" + "_id\030\002 \001(\tH\000\022\022\n\010tag_name\030\003 \001(\tH\000\022\'\n\004data\030" + "\004 \003(\0132\031.datacatalog.ArtifactDataB\016\n\014quer" + "y_handle\"\030\n\026UpdateArtifactResponse\"M\n\rRe" + "servationID\022*\n\ndataset_id\030\001 \001(\0132\026.dataca" + "talog.DatasetID\022\020\n\010tag_name\030\002 \001(\t\"\234\001\n\035Ge" + "tOrExtendReservationRequest\0222\n\016reservati" + "on_id\030\001 \001(\0132\032.datacatalog.ReservationID\022" + "\020\n\010owner_id\030\002 \001(\t\0225\n\022heartbeat_interval\030" + "\003 \001(\0132\031.google.protobuf.Duration\"\343\001\n\013Res" + "ervation\0222\n\016reservation_id\030\001 \001(\0132\032.datac" + "atalog.ReservationID\022\020\n\010owner_id\030\002 \001(\t\0225" + "\n\022heartbeat_interval\030\003 \001(\0132\031.google.prot" + "obuf.Duration\022.\n\nexpires_at\030\004 \001(\0132\032.goog" + "le.protobuf.Timestamp\022\'\n\010metadata\030\006 \001(\0132" + "\025.datacatalog.Metadata\"O\n\036GetOrExtendRes" + "ervationResponse\022-\n\013reservation\030\001 \001(\0132\030." + "datacatalog.Reservation\"a\n\031ReleaseReserv" + "ationRequest\0222\n\016reservation_id\030\001 \001(\0132\032.d" + "atacatalog.ReservationID\022\020\n\010owner_id\030\002 \001" + "(\t\"\034\n\032ReleaseReservationResponse\"m\n\007Data" + "set\022\"\n\002id\030\001 \001(\0132\026.datacatalog.DatasetID\022" + "\'\n\010metadata\030\002 \001(\0132\025.datacatalog.Metadata" + "\022\025\n\rpartitionKeys\030\003 \003(\t\"\'\n\tPartition\022\013\n\003" + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"Y\n\tDatasetID\022\017\n" + "\007project\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\016\n\006domain\030\003" + " \001(\t\022\017\n\007version\030\004 \001(\t\022\014\n\004UUID\030\005 \001(\t\"\215\002\n\010" + "Artifact\022\n\n\002id\030\001 \001(\t\022\'\n\007dataset\030\002 \001(\0132\026." + "datacatalog.DatasetID\022\'\n\004data\030\003 \003(\0132\031.da" + "tacatalog.ArtifactData\022\'\n\010metadata\030\004 \001(\013" + "2\025.datacatalog.Metadata\022*\n\npartitions\030\005 " + "\003(\0132\026.datacatalog.Partition\022\036\n\004tags\030\006 \003(" + "\0132\020.datacatalog.Tag\022.\n\ncreated_at\030\007 \001(\0132" + "\032.google.protobuf.Timestamp\"C\n\014ArtifactD" + "ata\022\014\n\004name\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.flyte" + "idl.core.Literal\"Q\n\003Tag\022\014\n\004name\030\001 \001(\t\022\023\n" + "\013artifact_id\030\002 \001(\t\022\'\n\007dataset\030\003 \001(\0132\026.da" + "tacatalog.DatasetID\"m\n\010Metadata\0222\n\007key_m" + "ap\030\001 \003(\0132!.datacatalog.Metadata.KeyMapEn" + "try\032-\n\013KeyMapEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + "\030\002 \001(\t:\0028\001\"F\n\020FilterExpression\0222\n\007filter" + "s\030\001 \003(\0132!.datacatalog.SinglePropertyFilt" + "er\"\211\003\n\024SinglePropertyFilter\0224\n\ntag_filte" + "r\030\001 \001(\0132\036.datacatalog.TagPropertyFilterH" + "\000\022@\n\020partition_filter\030\002 \001(\0132$.datacatalo" + "g.PartitionPropertyFilterH\000\022>\n\017artifact_" + "filter\030\003 \001(\0132#.datacatalog.ArtifactPrope" + "rtyFilterH\000\022<\n\016dataset_filter\030\004 \001(\0132\".da" + "tacatalog.DatasetPropertyFilterH\000\022F\n\010ope" + "rator\030\n \001(\01624.datacatalog.SingleProperty" + "Filter.ComparisonOperator\" \n\022ComparisonO" + "perator\022\n\n\006EQUALS\020\000B\021\n\017property_filter\";" + "\n\026ArtifactPropertyFilter\022\025\n\013artifact_id\030" + "\001 \001(\tH\000B\n\n\010property\"3\n\021TagPropertyFilter" + "\022\022\n\010tag_name\030\001 \001(\tH\000B\n\n\010property\"S\n\027Part" + "itionPropertyFilter\022,\n\007key_val\030\001 \001(\0132\031.d" + "atacatalog.KeyValuePairH\000B\n\n\010property\"*\n" + "\014KeyValuePair\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + "\t\"k\n\025DatasetPropertyFilter\022\021\n\007project\030\001 " + "\001(\tH\000\022\016\n\004name\030\002 \001(\tH\000\022\020\n\006domain\030\003 \001(\tH\000\022" + "\021\n\007version\030\004 \001(\tH\000B\n\n\010property\"\361\001\n\021Pagin" + "ationOptions\022\r\n\005limit\030\001 \001(\r\022\r\n\005token\030\002 \001" + "(\t\0227\n\007sortKey\030\003 \001(\0162&.datacatalog.Pagina" + "tionOptions.SortKey\022;\n\tsortOrder\030\004 \001(\0162(" + ".datacatalog.PaginationOptions.SortOrder" + "\"*\n\tSortOrder\022\016\n\nDESCENDING\020\000\022\r\n\tASCENDI" + "NG\020\001\"\034\n\007SortKey\022\021\n\rCREATION_TIME\020\0002\206\007\n\013D" + "ataCatalog\022V\n\rCreateDataset\022!.datacatalo" + "g.CreateDatasetRequest\032\".datacatalog.Cre" + "ateDatasetResponse\022M\n\nGetDataset\022\036.datac" + "atalog.GetDatasetRequest\032\037.datacatalog.G" + "etDatasetResponse\022Y\n\016CreateArtifact\022\".da" + "tacatalog.CreateArtifactRequest\032#.dataca" + "talog.CreateArtifactResponse\022P\n\013GetArtif" + "act\022\037.datacatalog.GetArtifactRequest\032 .d" + "atacatalog.GetArtifactResponse\022A\n\006AddTag" + "\022\032.datacatalog.AddTagRequest\032\033.datacatal" + "og.AddTagResponse\022V\n\rListArtifacts\022!.dat" + "acatalog.ListArtifactsRequest\032\".datacata" + "log.ListArtifactsResponse\022S\n\014ListDataset" + "s\022 .datacatalog.ListDatasetsRequest\032!.da" + "tacatalog.ListDatasetsResponse\022Y\n\016Update" + "Artifact\022\".datacatalog.UpdateArtifactReq" + "uest\032#.datacatalog.UpdateArtifactRespons" + "e\022q\n\026GetOrExtendReservation\022*.datacatalo" + "g.GetOrExtendReservationRequest\032+.dataca" + "talog.GetOrExtendReservationResponse\022e\n\022" + "ReleaseReservation\022&.datacatalog.Release" + "ReservationRequest\032\'.datacatalog.Release" + "ReservationResponseB=Z;github.com/flyteo" + "rg/flyteidl/gen/pb-go/flyteidl/datacatal" + "ogb\006proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = { false, InitDefaults_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, descriptor_table_protodef_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, - "flyteidl/datacatalog/datacatalog.proto", &assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, 4566, + "flyteidl/datacatalog/datacatalog.proto", &assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, 4850, }; void AddDescriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { @@ -5211,72 +5279,962 @@ size_t ListDatasetsRequest::ByteSizeLong() const { ::google::protobuf::internal::WireFormatLite::MessageSize( *pagination_); } - + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListDatasetsRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ListDatasetsRequest) + GOOGLE_DCHECK_NE(&from, this); + const ListDatasetsRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ListDatasetsRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ListDatasetsRequest) + MergeFrom(*source); + } +} + +void ListDatasetsRequest::MergeFrom(const ListDatasetsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ListDatasetsRequest) + 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_filter()) { + mutable_filter()->::datacatalog::FilterExpression::MergeFrom(from.filter()); + } + if (from.has_pagination()) { + mutable_pagination()->::datacatalog::PaginationOptions::MergeFrom(from.pagination()); + } +} + +void ListDatasetsRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ListDatasetsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListDatasetsRequest::CopyFrom(const ListDatasetsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ListDatasetsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListDatasetsRequest::IsInitialized() const { + return true; +} + +void ListDatasetsRequest::Swap(ListDatasetsRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ListDatasetsRequest::InternalSwap(ListDatasetsRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(filter_, other->filter_); + swap(pagination_, other->pagination_); +} + +::google::protobuf::Metadata ListDatasetsRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ListDatasetsResponse::InitAsDefaultInstance() { +} +class ListDatasetsResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ListDatasetsResponse::kDatasetsFieldNumber; +const int ListDatasetsResponse::kNextTokenFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ListDatasetsResponse::ListDatasetsResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.ListDatasetsResponse) +} +ListDatasetsResponse::ListDatasetsResponse(const ListDatasetsResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + datasets_(from.datasets_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + next_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.next_token().size() > 0) { + next_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_token_); + } + // @@protoc_insertion_point(copy_constructor:datacatalog.ListDatasetsResponse) +} + +void ListDatasetsResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ListDatasetsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + next_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +ListDatasetsResponse::~ListDatasetsResponse() { + // @@protoc_insertion_point(destructor:datacatalog.ListDatasetsResponse) + SharedDtor(); +} + +void ListDatasetsResponse::SharedDtor() { + next_token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ListDatasetsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListDatasetsResponse& ListDatasetsResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ListDatasetsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void ListDatasetsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.ListDatasetsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + datasets_.Clear(); + next_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ListDatasetsResponse::_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 .datacatalog.Dataset datasets = 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 = ::datacatalog::Dataset::_InternalParse; + object = msg->add_datasets(); + 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; + } + // string next_token = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.ListDatasetsResponse.next_token"); + object = msg->mutable_next_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ListDatasetsResponse::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:datacatalog.ListDatasetsResponse) + 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 .datacatalog.Dataset datasets = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_datasets())); + } else { + goto handle_unusual; + } + break; + } + + // string next_token = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_next_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->next_token().data(), static_cast(this->next_token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.ListDatasetsResponse.next_token")); + } 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:datacatalog.ListDatasetsResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.ListDatasetsResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ListDatasetsResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.ListDatasetsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .datacatalog.Dataset datasets = 1; + for (unsigned int i = 0, + n = static_cast(this->datasets_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->datasets(static_cast(i)), + output); + } + + // string next_token = 2; + if (this->next_token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->next_token().data(), static_cast(this->next_token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.ListDatasetsResponse.next_token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->next_token(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.ListDatasetsResponse) +} + +::google::protobuf::uint8* ListDatasetsResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ListDatasetsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .datacatalog.Dataset datasets = 1; + for (unsigned int i = 0, + n = static_cast(this->datasets_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->datasets(static_cast(i)), target); + } + + // string next_token = 2; + if (this->next_token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->next_token().data(), static_cast(this->next_token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.ListDatasetsResponse.next_token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->next_token(), 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:datacatalog.ListDatasetsResponse) + return target; +} + +size_t ListDatasetsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.ListDatasetsResponse) + 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 .datacatalog.Dataset datasets = 1; + { + unsigned int count = static_cast(this->datasets_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->datasets(static_cast(i))); + } + } + + // string next_token = 2; + if (this->next_token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->next_token()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListDatasetsResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ListDatasetsResponse) + GOOGLE_DCHECK_NE(&from, this); + const ListDatasetsResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ListDatasetsResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ListDatasetsResponse) + MergeFrom(*source); + } +} + +void ListDatasetsResponse::MergeFrom(const ListDatasetsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ListDatasetsResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + datasets_.MergeFrom(from.datasets_); + if (from.next_token().size() > 0) { + + next_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_token_); + } +} + +void ListDatasetsResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ListDatasetsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListDatasetsResponse::CopyFrom(const ListDatasetsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ListDatasetsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListDatasetsResponse::IsInitialized() const { + return true; +} + +void ListDatasetsResponse::Swap(ListDatasetsResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void ListDatasetsResponse::InternalSwap(ListDatasetsResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&datasets_)->InternalSwap(CastToBase(&other->datasets_)); + next_token_.Swap(&other->next_token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata ListDatasetsResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void UpdateArtifactRequest::InitAsDefaultInstance() { + ::datacatalog::_UpdateArtifactRequest_default_instance_._instance.get_mutable()->dataset_ = const_cast< ::datacatalog::DatasetID*>( + ::datacatalog::DatasetID::internal_default_instance()); + ::datacatalog::_UpdateArtifactRequest_default_instance_.artifact_id_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::datacatalog::_UpdateArtifactRequest_default_instance_.tag_name_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +class UpdateArtifactRequest::HasBitSetters { + public: + static const ::datacatalog::DatasetID& dataset(const UpdateArtifactRequest* msg); +}; + +const ::datacatalog::DatasetID& +UpdateArtifactRequest::HasBitSetters::dataset(const UpdateArtifactRequest* msg) { + return *msg->dataset_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int UpdateArtifactRequest::kDatasetFieldNumber; +const int UpdateArtifactRequest::kArtifactIdFieldNumber; +const int UpdateArtifactRequest::kTagNameFieldNumber; +const int UpdateArtifactRequest::kDataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +UpdateArtifactRequest::UpdateArtifactRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.UpdateArtifactRequest) +} +UpdateArtifactRequest::UpdateArtifactRequest(const UpdateArtifactRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + data_(from.data_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_dataset()) { + dataset_ = new ::datacatalog::DatasetID(*from.dataset_); + } else { + dataset_ = nullptr; + } + clear_has_query_handle(); + switch (from.query_handle_case()) { + case kArtifactId: { + set_artifact_id(from.artifact_id()); + break; + } + case kTagName: { + set_tag_name(from.tag_name()); + break; + } + case QUERY_HANDLE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:datacatalog.UpdateArtifactRequest) +} + +void UpdateArtifactRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_UpdateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + dataset_ = nullptr; + clear_has_query_handle(); +} + +UpdateArtifactRequest::~UpdateArtifactRequest() { + // @@protoc_insertion_point(destructor:datacatalog.UpdateArtifactRequest) + SharedDtor(); +} + +void UpdateArtifactRequest::SharedDtor() { + if (this != internal_default_instance()) delete dataset_; + if (has_query_handle()) { + clear_query_handle(); + } +} + +void UpdateArtifactRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const UpdateArtifactRequest& UpdateArtifactRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_UpdateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void UpdateArtifactRequest::clear_query_handle() { +// @@protoc_insertion_point(one_of_clear_start:datacatalog.UpdateArtifactRequest) + switch (query_handle_case()) { + case kArtifactId: { + query_handle_.artifact_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kTagName: { + query_handle_.tag_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case QUERY_HANDLE_NOT_SET: { + break; + } + } + _oneof_case_[0] = QUERY_HANDLE_NOT_SET; +} + + +void UpdateArtifactRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.UpdateArtifactRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + data_.Clear(); + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; + clear_query_handle(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* UpdateArtifactRequest::_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) { + // .datacatalog.DatasetID dataset = 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 = ::datacatalog::DatasetID::_InternalParse; + object = msg->mutable_dataset(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string artifact_id = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.UpdateArtifactRequest.artifact_id"); + object = msg->mutable_artifact_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string tag_name = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.UpdateArtifactRequest.tag_name"); + object = msg->mutable_tag_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // repeated .datacatalog.ArtifactData data = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::ArtifactData::_InternalParse; + object = msg->add_data(); + 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) == 34 && (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; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool UpdateArtifactRequest::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:datacatalog.UpdateArtifactRequest) + 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)) { + // .datacatalog.DatasetID dataset = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_dataset())); + } else { + goto handle_unusual; + } + break; + } + + // string artifact_id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_artifact_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->artifact_id().data(), static_cast(this->artifact_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.UpdateArtifactRequest.artifact_id")); + } else { + goto handle_unusual; + } + break; + } + + // string tag_name = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_tag_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag_name().data(), static_cast(this->tag_name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.UpdateArtifactRequest.tag_name")); + } else { + goto handle_unusual; + } + break; + } + + // repeated .datacatalog.ArtifactData data = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_data())); + } 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:datacatalog.UpdateArtifactRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.UpdateArtifactRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void UpdateArtifactRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.UpdateArtifactRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.DatasetID dataset = 1; + if (this->has_dataset()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::dataset(this), output); + } + + // string artifact_id = 2; + if (has_artifact_id()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->artifact_id().data(), static_cast(this->artifact_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.UpdateArtifactRequest.artifact_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->artifact_id(), output); + } + + // string tag_name = 3; + if (has_tag_name()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag_name().data(), static_cast(this->tag_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.UpdateArtifactRequest.tag_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->tag_name(), output); + } + + // repeated .datacatalog.ArtifactData data = 4; + for (unsigned int i = 0, + n = static_cast(this->data_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, + this->data(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:datacatalog.UpdateArtifactRequest) +} + +::google::protobuf::uint8* UpdateArtifactRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.UpdateArtifactRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.DatasetID dataset = 1; + if (this->has_dataset()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::dataset(this), target); + } + + // string artifact_id = 2; + if (has_artifact_id()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->artifact_id().data(), static_cast(this->artifact_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.UpdateArtifactRequest.artifact_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->artifact_id(), target); + } + + // string tag_name = 3; + if (has_tag_name()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag_name().data(), static_cast(this->tag_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.UpdateArtifactRequest.tag_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->tag_name(), target); + } + + // repeated .datacatalog.ArtifactData data = 4; + for (unsigned int i = 0, + n = static_cast(this->data_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->data(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:datacatalog.UpdateArtifactRequest) + return target; +} + +size_t UpdateArtifactRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.UpdateArtifactRequest) + 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 .datacatalog.ArtifactData data = 4; + { + unsigned int count = static_cast(this->data_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->data(static_cast(i))); + } + } + + // .datacatalog.DatasetID dataset = 1; + if (this->has_dataset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *dataset_); + } + + switch (query_handle_case()) { + // string artifact_id = 2; + case kArtifactId: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->artifact_id()); + break; + } + // string tag_name = 3; + case kTagName: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->tag_name()); + break; + } + case QUERY_HANDLE_NOT_SET: { + break; + } + } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void ListDatasetsRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ListDatasetsRequest) +void UpdateArtifactRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.UpdateArtifactRequest) GOOGLE_DCHECK_NE(&from, this); - const ListDatasetsRequest* source = - ::google::protobuf::DynamicCastToGenerated( + const UpdateArtifactRequest* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ListDatasetsRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.UpdateArtifactRequest) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ListDatasetsRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.UpdateArtifactRequest) MergeFrom(*source); } } -void ListDatasetsRequest::MergeFrom(const ListDatasetsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ListDatasetsRequest) +void UpdateArtifactRequest::MergeFrom(const UpdateArtifactRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.UpdateArtifactRequest) 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_filter()) { - mutable_filter()->::datacatalog::FilterExpression::MergeFrom(from.filter()); + data_.MergeFrom(from.data_); + if (from.has_dataset()) { + mutable_dataset()->::datacatalog::DatasetID::MergeFrom(from.dataset()); } - if (from.has_pagination()) { - mutable_pagination()->::datacatalog::PaginationOptions::MergeFrom(from.pagination()); + switch (from.query_handle_case()) { + case kArtifactId: { + set_artifact_id(from.artifact_id()); + break; + } + case kTagName: { + set_tag_name(from.tag_name()); + break; + } + case QUERY_HANDLE_NOT_SET: { + break; + } } } -void ListDatasetsRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ListDatasetsRequest) +void UpdateArtifactRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.UpdateArtifactRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void ListDatasetsRequest::CopyFrom(const ListDatasetsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ListDatasetsRequest) +void UpdateArtifactRequest::CopyFrom(const UpdateArtifactRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.UpdateArtifactRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool ListDatasetsRequest::IsInitialized() const { +bool UpdateArtifactRequest::IsInitialized() const { return true; } -void ListDatasetsRequest::Swap(ListDatasetsRequest* other) { +void UpdateArtifactRequest::Swap(UpdateArtifactRequest* other) { if (other == this) return; InternalSwap(other); } -void ListDatasetsRequest::InternalSwap(ListDatasetsRequest* other) { +void UpdateArtifactRequest::InternalSwap(UpdateArtifactRequest* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - swap(filter_, other->filter_); - swap(pagination_, other->pagination_); + CastToBase(&data_)->InternalSwap(CastToBase(&other->data_)); + swap(dataset_, other->dataset_); + swap(query_handle_, other->query_handle_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata ListDatasetsRequest::GetMetadata() const { +::google::protobuf::Metadata UpdateArtifactRequest::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; } @@ -5284,73 +6242,60 @@ ::google::protobuf::Metadata ListDatasetsRequest::GetMetadata() const { // =================================================================== -void ListDatasetsResponse::InitAsDefaultInstance() { +void UpdateArtifactResponse::InitAsDefaultInstance() { } -class ListDatasetsResponse::HasBitSetters { +class UpdateArtifactResponse::HasBitSetters { public: }; #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ListDatasetsResponse::kDatasetsFieldNumber; -const int ListDatasetsResponse::kNextTokenFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -ListDatasetsResponse::ListDatasetsResponse() +UpdateArtifactResponse::UpdateArtifactResponse() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.ListDatasetsResponse) + // @@protoc_insertion_point(constructor:datacatalog.UpdateArtifactResponse) } -ListDatasetsResponse::ListDatasetsResponse(const ListDatasetsResponse& from) +UpdateArtifactResponse::UpdateArtifactResponse(const UpdateArtifactResponse& from) : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - datasets_(from.datasets_) { + _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - next_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.next_token().size() > 0) { - next_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_token_); - } - // @@protoc_insertion_point(copy_constructor:datacatalog.ListDatasetsResponse) + // @@protoc_insertion_point(copy_constructor:datacatalog.UpdateArtifactResponse) } -void ListDatasetsResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ListDatasetsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - next_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +void UpdateArtifactResponse::SharedCtor() { } -ListDatasetsResponse::~ListDatasetsResponse() { - // @@protoc_insertion_point(destructor:datacatalog.ListDatasetsResponse) +UpdateArtifactResponse::~UpdateArtifactResponse() { + // @@protoc_insertion_point(destructor:datacatalog.UpdateArtifactResponse) SharedDtor(); } -void ListDatasetsResponse::SharedDtor() { - next_token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +void UpdateArtifactResponse::SharedDtor() { } -void ListDatasetsResponse::SetCachedSize(int size) const { +void UpdateArtifactResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } -const ListDatasetsResponse& ListDatasetsResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ListDatasetsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); +const UpdateArtifactResponse& UpdateArtifactResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_UpdateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); return *internal_default_instance(); } -void ListDatasetsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.ListDatasetsResponse) +void UpdateArtifactResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.UpdateArtifactResponse) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - datasets_.Clear(); - next_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ListDatasetsResponse::_InternalParse(const char* begin, const char* end, void* object, +const char* UpdateArtifactResponse::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -5360,40 +6305,7 @@ const char* ListDatasetsResponse::_InternalParse(const char* begin, const char* ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // repeated .datacatalog.Dataset datasets = 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 = ::datacatalog::Dataset::_InternalParse; - object = msg->add_datasets(); - 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; - } - // string next_token = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("datacatalog.ListDatasetsResponse.next_token"); - object = msg->mutable_next_token(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } default: { - handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->EndGroup(tag); return ptr; @@ -5407,139 +6319,63 @@ const char* ListDatasetsResponse::_InternalParse(const char* begin, const char* } // switch } // while return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ListDatasetsResponse::MergePartialFromCodedStream( +bool UpdateArtifactResponse::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:datacatalog.ListDatasetsResponse) + // @@protoc_insertion_point(parse_start:datacatalog.UpdateArtifactResponse) 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 .datacatalog.Dataset datasets = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_datasets())); - } else { - goto handle_unusual; - } - break; - } - - // string next_token = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_next_token())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->next_token().data(), static_cast(this->next_token().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.ListDatasetsResponse.next_token")); - } 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; - } + handle_unusual: + if (tag == 0) { + goto success; } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); } success: - // @@protoc_insertion_point(parse_success:datacatalog.ListDatasetsResponse) + // @@protoc_insertion_point(parse_success:datacatalog.UpdateArtifactResponse) return true; failure: - // @@protoc_insertion_point(parse_failure:datacatalog.ListDatasetsResponse) + // @@protoc_insertion_point(parse_failure:datacatalog.UpdateArtifactResponse) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void ListDatasetsResponse::SerializeWithCachedSizes( +void UpdateArtifactResponse::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.ListDatasetsResponse) + // @@protoc_insertion_point(serialize_start:datacatalog.UpdateArtifactResponse) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated .datacatalog.Dataset datasets = 1; - for (unsigned int i = 0, - n = static_cast(this->datasets_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->datasets(static_cast(i)), - output); - } - - // string next_token = 2; - if (this->next_token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->next_token().data(), static_cast(this->next_token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.ListDatasetsResponse.next_token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->next_token(), output); - } - if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:datacatalog.ListDatasetsResponse) + // @@protoc_insertion_point(serialize_end:datacatalog.UpdateArtifactResponse) } -::google::protobuf::uint8* ListDatasetsResponse::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* UpdateArtifactResponse::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ListDatasetsResponse) + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.UpdateArtifactResponse) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated .datacatalog.Dataset datasets = 1; - for (unsigned int i = 0, - n = static_cast(this->datasets_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->datasets(static_cast(i)), target); - } - - // string next_token = 2; - if (this->next_token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->next_token().data(), static_cast(this->next_token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.ListDatasetsResponse.next_token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->next_token(), 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:datacatalog.ListDatasetsResponse) + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.UpdateArtifactResponse) return target; } -size_t ListDatasetsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.ListDatasetsResponse) +size_t UpdateArtifactResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.UpdateArtifactResponse) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -5551,89 +6387,63 @@ size_t ListDatasetsResponse::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .datacatalog.Dataset datasets = 1; - { - unsigned int count = static_cast(this->datasets_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->datasets(static_cast(i))); - } - } - - // string next_token = 2; - if (this->next_token().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->next_token()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void ListDatasetsResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ListDatasetsResponse) +void UpdateArtifactResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.UpdateArtifactResponse) GOOGLE_DCHECK_NE(&from, this); - const ListDatasetsResponse* source = - ::google::protobuf::DynamicCastToGenerated( + const UpdateArtifactResponse* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ListDatasetsResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.UpdateArtifactResponse) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ListDatasetsResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.UpdateArtifactResponse) MergeFrom(*source); } } -void ListDatasetsResponse::MergeFrom(const ListDatasetsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ListDatasetsResponse) +void UpdateArtifactResponse::MergeFrom(const UpdateArtifactResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.UpdateArtifactResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - datasets_.MergeFrom(from.datasets_); - if (from.next_token().size() > 0) { - - next_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_token_); - } } -void ListDatasetsResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ListDatasetsResponse) +void UpdateArtifactResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.UpdateArtifactResponse) if (&from == this) return; Clear(); MergeFrom(from); } -void ListDatasetsResponse::CopyFrom(const ListDatasetsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ListDatasetsResponse) +void UpdateArtifactResponse::CopyFrom(const UpdateArtifactResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.UpdateArtifactResponse) if (&from == this) return; Clear(); MergeFrom(from); } -bool ListDatasetsResponse::IsInitialized() const { +bool UpdateArtifactResponse::IsInitialized() const { return true; } -void ListDatasetsResponse::Swap(ListDatasetsResponse* other) { +void UpdateArtifactResponse::Swap(UpdateArtifactResponse* other) { if (other == this) return; InternalSwap(other); } -void ListDatasetsResponse::InternalSwap(ListDatasetsResponse* other) { +void UpdateArtifactResponse::InternalSwap(UpdateArtifactResponse* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&datasets_)->InternalSwap(CastToBase(&other->datasets_)); - next_token_.Swap(&other->next_token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); } -::google::protobuf::Metadata ListDatasetsResponse::GetMetadata() const { +::google::protobuf::Metadata UpdateArtifactResponse::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; } @@ -10764,7 +11574,7 @@ void Metadata_KeyMapEntry_DoNotUse::MergeFrom(const Metadata_KeyMapEntry_DoNotUs } ::google::protobuf::Metadata Metadata_KeyMapEntry_DoNotUse::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[26]; + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[28]; } void Metadata_KeyMapEntry_DoNotUse::MergeFrom( const ::google::protobuf::Message& other) { @@ -14475,6 +15285,12 @@ template<> PROTOBUF_NOINLINE ::datacatalog::ListDatasetsRequest* Arena::CreateMa template<> PROTOBUF_NOINLINE ::datacatalog::ListDatasetsResponse* Arena::CreateMaybeMessage< ::datacatalog::ListDatasetsResponse >(Arena* arena) { return Arena::CreateInternal< ::datacatalog::ListDatasetsResponse >(arena); } +template<> PROTOBUF_NOINLINE ::datacatalog::UpdateArtifactRequest* Arena::CreateMaybeMessage< ::datacatalog::UpdateArtifactRequest >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::UpdateArtifactRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::UpdateArtifactResponse* Arena::CreateMaybeMessage< ::datacatalog::UpdateArtifactResponse >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::UpdateArtifactResponse >(arena); +} template<> PROTOBUF_NOINLINE ::datacatalog::ReservationID* Arena::CreateMaybeMessage< ::datacatalog::ReservationID >(Arena* arena) { return Arena::CreateInternal< ::datacatalog::ReservationID >(arena); } diff --git a/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.h b/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.h index 0033b0cd3..f8724b1f2 100644 --- a/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.h +++ b/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.h @@ -48,7 +48,7 @@ struct TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_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[36] + static const ::google::protobuf::internal::ParseTable schema[38] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::FieldMetadata field_metadata[]; static const ::google::protobuf::internal::SerializationTable serialization_table[]; @@ -164,6 +164,12 @@ extern TagDefaultTypeInternal _Tag_default_instance_; class TagPropertyFilter; class TagPropertyFilterDefaultTypeInternal; extern TagPropertyFilterDefaultTypeInternal _TagPropertyFilter_default_instance_; +class UpdateArtifactRequest; +class UpdateArtifactRequestDefaultTypeInternal; +extern UpdateArtifactRequestDefaultTypeInternal _UpdateArtifactRequest_default_instance_; +class UpdateArtifactResponse; +class UpdateArtifactResponseDefaultTypeInternal; +extern UpdateArtifactResponseDefaultTypeInternal _UpdateArtifactResponse_default_instance_; } // namespace datacatalog namespace google { namespace protobuf { @@ -203,6 +209,8 @@ template<> ::datacatalog::ReservationID* Arena::CreateMaybeMessage<::datacatalog template<> ::datacatalog::SinglePropertyFilter* Arena::CreateMaybeMessage<::datacatalog::SinglePropertyFilter>(Arena*); template<> ::datacatalog::Tag* Arena::CreateMaybeMessage<::datacatalog::Tag>(Arena*); template<> ::datacatalog::TagPropertyFilter* Arena::CreateMaybeMessage<::datacatalog::TagPropertyFilter>(Arena*); +template<> ::datacatalog::UpdateArtifactRequest* Arena::CreateMaybeMessage<::datacatalog::UpdateArtifactRequest>(Arena*); +template<> ::datacatalog::UpdateArtifactResponse* Arena::CreateMaybeMessage<::datacatalog::UpdateArtifactResponse>(Arena*); } // namespace protobuf } // namespace google namespace datacatalog { @@ -1970,6 +1978,293 @@ class ListDatasetsResponse final : }; // ------------------------------------------------------------------- +class UpdateArtifactRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.UpdateArtifactRequest) */ { + public: + UpdateArtifactRequest(); + virtual ~UpdateArtifactRequest(); + + UpdateArtifactRequest(const UpdateArtifactRequest& from); + + inline UpdateArtifactRequest& operator=(const UpdateArtifactRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + UpdateArtifactRequest(UpdateArtifactRequest&& from) noexcept + : UpdateArtifactRequest() { + *this = ::std::move(from); + } + + inline UpdateArtifactRequest& operator=(UpdateArtifactRequest&& 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 UpdateArtifactRequest& default_instance(); + + enum QueryHandleCase { + kArtifactId = 2, + kTagName = 3, + QUERY_HANDLE_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const UpdateArtifactRequest* internal_default_instance() { + return reinterpret_cast( + &_UpdateArtifactRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + void Swap(UpdateArtifactRequest* other); + friend void swap(UpdateArtifactRequest& a, UpdateArtifactRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline UpdateArtifactRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + UpdateArtifactRequest* 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 UpdateArtifactRequest& from); + void MergeFrom(const UpdateArtifactRequest& 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(UpdateArtifactRequest* 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 .datacatalog.ArtifactData data = 4; + int data_size() const; + void clear_data(); + static const int kDataFieldNumber = 4; + ::datacatalog::ArtifactData* mutable_data(int index); + ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData >* + mutable_data(); + const ::datacatalog::ArtifactData& data(int index) const; + ::datacatalog::ArtifactData* add_data(); + const ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData >& + data() const; + + // .datacatalog.DatasetID dataset = 1; + bool has_dataset() const; + void clear_dataset(); + static const int kDatasetFieldNumber = 1; + const ::datacatalog::DatasetID& dataset() const; + ::datacatalog::DatasetID* release_dataset(); + ::datacatalog::DatasetID* mutable_dataset(); + void set_allocated_dataset(::datacatalog::DatasetID* dataset); + + // string artifact_id = 2; + private: + bool has_artifact_id() const; + public: + void clear_artifact_id(); + static const int kArtifactIdFieldNumber = 2; + const ::std::string& artifact_id() const; + void set_artifact_id(const ::std::string& value); + #if LANG_CXX11 + void set_artifact_id(::std::string&& value); + #endif + void set_artifact_id(const char* value); + void set_artifact_id(const char* value, size_t size); + ::std::string* mutable_artifact_id(); + ::std::string* release_artifact_id(); + void set_allocated_artifact_id(::std::string* artifact_id); + + // string tag_name = 3; + private: + bool has_tag_name() const; + public: + void clear_tag_name(); + static const int kTagNameFieldNumber = 3; + const ::std::string& tag_name() const; + void set_tag_name(const ::std::string& value); + #if LANG_CXX11 + void set_tag_name(::std::string&& value); + #endif + void set_tag_name(const char* value); + void set_tag_name(const char* value, size_t size); + ::std::string* mutable_tag_name(); + ::std::string* release_tag_name(); + void set_allocated_tag_name(::std::string* tag_name); + + void clear_query_handle(); + QueryHandleCase query_handle_case() const; + // @@protoc_insertion_point(class_scope:datacatalog.UpdateArtifactRequest) + private: + class HasBitSetters; + void set_has_artifact_id(); + void set_has_tag_name(); + + inline bool has_query_handle() const; + inline void clear_has_query_handle(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData > data_; + ::datacatalog::DatasetID* dataset_; + union QueryHandleUnion { + QueryHandleUnion() {} + ::google::protobuf::internal::ArenaStringPtr artifact_id_; + ::google::protobuf::internal::ArenaStringPtr tag_name_; + } query_handle_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class UpdateArtifactResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.UpdateArtifactResponse) */ { + public: + UpdateArtifactResponse(); + virtual ~UpdateArtifactResponse(); + + UpdateArtifactResponse(const UpdateArtifactResponse& from); + + inline UpdateArtifactResponse& operator=(const UpdateArtifactResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + UpdateArtifactResponse(UpdateArtifactResponse&& from) noexcept + : UpdateArtifactResponse() { + *this = ::std::move(from); + } + + inline UpdateArtifactResponse& operator=(UpdateArtifactResponse&& 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 UpdateArtifactResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const UpdateArtifactResponse* internal_default_instance() { + return reinterpret_cast( + &_UpdateArtifactResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + void Swap(UpdateArtifactResponse* other); + friend void swap(UpdateArtifactResponse& a, UpdateArtifactResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline UpdateArtifactResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + UpdateArtifactResponse* 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 UpdateArtifactResponse& from); + void MergeFrom(const UpdateArtifactResponse& 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(UpdateArtifactResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:datacatalog.UpdateArtifactResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + class ReservationID final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ReservationID) */ { public: @@ -2008,7 +2303,7 @@ class ReservationID final : &_ReservationID_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 16; void Swap(ReservationID* other); friend void swap(ReservationID& a, ReservationID& b) { @@ -2138,7 +2433,7 @@ class GetOrExtendReservationRequest final : &_GetOrExtendReservationRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 17; void Swap(GetOrExtendReservationRequest* other); friend void swap(GetOrExtendReservationRequest& a, GetOrExtendReservationRequest& b) { @@ -2278,7 +2573,7 @@ class Reservation final : &_Reservation_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 18; void Swap(Reservation* other); friend void swap(Reservation& a, Reservation& b) { @@ -2438,7 +2733,7 @@ class GetOrExtendReservationResponse final : &_GetOrExtendReservationResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 19; void Swap(GetOrExtendReservationResponse* other); friend void swap(GetOrExtendReservationResponse& a, GetOrExtendReservationResponse& b) { @@ -2553,7 +2848,7 @@ class ReleaseReservationRequest final : &_ReleaseReservationRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 20; void Swap(ReleaseReservationRequest* other); friend void swap(ReleaseReservationRequest& a, ReleaseReservationRequest& b) { @@ -2683,7 +2978,7 @@ class ReleaseReservationResponse final : &_ReleaseReservationResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 21; void Swap(ReleaseReservationResponse* other); friend void swap(ReleaseReservationResponse& a, ReleaseReservationResponse& b) { @@ -2788,7 +3083,7 @@ class Dataset final : &_Dataset_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 22; void Swap(Dataset* other); friend void swap(Dataset& a, Dataset& b) { @@ -2936,7 +3231,7 @@ class Partition final : &_Partition_default_instance_); } static constexpr int kIndexInFileMessages = - 21; + 23; void Swap(Partition* other); friend void swap(Partition& a, Partition& b) { @@ -3071,7 +3366,7 @@ class DatasetID final : &_DatasetID_default_instance_); } static constexpr int kIndexInFileMessages = - 22; + 24; void Swap(DatasetID* other); friend void swap(DatasetID& a, DatasetID& b) { @@ -3251,7 +3546,7 @@ class Artifact final : &_Artifact_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 25; void Swap(Artifact* other); friend void swap(Artifact& a, Artifact& b) { @@ -3440,7 +3735,7 @@ class ArtifactData final : &_ArtifactData_default_instance_); } static constexpr int kIndexInFileMessages = - 24; + 26; void Swap(ArtifactData* other); friend void swap(ArtifactData& a, ArtifactData& b) { @@ -3570,7 +3865,7 @@ class Tag final : &_Tag_default_instance_); } static constexpr int kIndexInFileMessages = - 25; + 27; void Swap(Tag* other); friend void swap(Tag& a, Tag& b) { @@ -3739,7 +4034,7 @@ class Metadata final : &_Metadata_default_instance_); } static constexpr int kIndexInFileMessages = - 27; + 29; void Swap(Metadata* other); friend void swap(Metadata& a, Metadata& b) { @@ -3860,7 +4155,7 @@ class FilterExpression final : &_FilterExpression_default_instance_); } static constexpr int kIndexInFileMessages = - 28; + 30; void Swap(FilterExpression* other); friend void swap(FilterExpression& a, FilterExpression& b) { @@ -3986,7 +4281,7 @@ class SinglePropertyFilter final : &_SinglePropertyFilter_default_instance_); } static constexpr int kIndexInFileMessages = - 29; + 31; void Swap(SinglePropertyFilter* other); friend void swap(SinglePropertyFilter& a, SinglePropertyFilter& b) { @@ -4181,7 +4476,7 @@ class ArtifactPropertyFilter final : &_ArtifactPropertyFilter_default_instance_); } static constexpr int kIndexInFileMessages = - 30; + 32; void Swap(ArtifactPropertyFilter* other); friend void swap(ArtifactPropertyFilter& a, ArtifactPropertyFilter& b) { @@ -4320,7 +4615,7 @@ class TagPropertyFilter final : &_TagPropertyFilter_default_instance_); } static constexpr int kIndexInFileMessages = - 31; + 33; void Swap(TagPropertyFilter* other); friend void swap(TagPropertyFilter& a, TagPropertyFilter& b) { @@ -4459,7 +4754,7 @@ class PartitionPropertyFilter final : &_PartitionPropertyFilter_default_instance_); } static constexpr int kIndexInFileMessages = - 32; + 34; void Swap(PartitionPropertyFilter* other); friend void swap(PartitionPropertyFilter& a, PartitionPropertyFilter& b) { @@ -4585,7 +4880,7 @@ class KeyValuePair final : &_KeyValuePair_default_instance_); } static constexpr int kIndexInFileMessages = - 33; + 35; void Swap(KeyValuePair* other); friend void swap(KeyValuePair& a, KeyValuePair& b) { @@ -4728,7 +5023,7 @@ class DatasetPropertyFilter final : &_DatasetPropertyFilter_default_instance_); } static constexpr int kIndexInFileMessages = - 34; + 36; void Swap(DatasetPropertyFilter* other); friend void swap(DatasetPropertyFilter& a, DatasetPropertyFilter& b) { @@ -4919,7 +5214,7 @@ class PaginationOptions final : &_PaginationOptions_default_instance_); } static constexpr int kIndexInFileMessages = - 35; + 37; void Swap(PaginationOptions* other); friend void swap(PaginationOptions& a, PaginationOptions& b) { @@ -6106,6 +6401,288 @@ inline void ListDatasetsResponse::set_allocated_next_token(::std::string* next_t // ------------------------------------------------------------------- +// UpdateArtifactRequest + +// .datacatalog.DatasetID dataset = 1; +inline bool UpdateArtifactRequest::has_dataset() const { + return this != internal_default_instance() && dataset_ != nullptr; +} +inline void UpdateArtifactRequest::clear_dataset() { + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; +} +inline const ::datacatalog::DatasetID& UpdateArtifactRequest::dataset() const { + const ::datacatalog::DatasetID* p = dataset_; + // @@protoc_insertion_point(field_get:datacatalog.UpdateArtifactRequest.dataset) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_DatasetID_default_instance_); +} +inline ::datacatalog::DatasetID* UpdateArtifactRequest::release_dataset() { + // @@protoc_insertion_point(field_release:datacatalog.UpdateArtifactRequest.dataset) + + ::datacatalog::DatasetID* temp = dataset_; + dataset_ = nullptr; + return temp; +} +inline ::datacatalog::DatasetID* UpdateArtifactRequest::mutable_dataset() { + + if (dataset_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); + dataset_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.UpdateArtifactRequest.dataset) + return dataset_; +} +inline void UpdateArtifactRequest::set_allocated_dataset(::datacatalog::DatasetID* dataset) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete dataset_; + } + if (dataset) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + dataset = ::google::protobuf::internal::GetOwnedMessage( + message_arena, dataset, submessage_arena); + } + + } else { + + } + dataset_ = dataset; + // @@protoc_insertion_point(field_set_allocated:datacatalog.UpdateArtifactRequest.dataset) +} + +// string artifact_id = 2; +inline bool UpdateArtifactRequest::has_artifact_id() const { + return query_handle_case() == kArtifactId; +} +inline void UpdateArtifactRequest::set_has_artifact_id() { + _oneof_case_[0] = kArtifactId; +} +inline void UpdateArtifactRequest::clear_artifact_id() { + if (has_artifact_id()) { + query_handle_.artifact_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_query_handle(); + } +} +inline const ::std::string& UpdateArtifactRequest::artifact_id() const { + // @@protoc_insertion_point(field_get:datacatalog.UpdateArtifactRequest.artifact_id) + if (has_artifact_id()) { + return query_handle_.artifact_id_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void UpdateArtifactRequest::set_artifact_id(const ::std::string& value) { + // @@protoc_insertion_point(field_set:datacatalog.UpdateArtifactRequest.artifact_id) + if (!has_artifact_id()) { + clear_query_handle(); + set_has_artifact_id(); + query_handle_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.UpdateArtifactRequest.artifact_id) +} +#if LANG_CXX11 +inline void UpdateArtifactRequest::set_artifact_id(::std::string&& value) { + // @@protoc_insertion_point(field_set:datacatalog.UpdateArtifactRequest.artifact_id) + if (!has_artifact_id()) { + clear_query_handle(); + set_has_artifact_id(); + query_handle_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.UpdateArtifactRequest.artifact_id) +} +#endif +inline void UpdateArtifactRequest::set_artifact_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_artifact_id()) { + clear_query_handle(); + set_has_artifact_id(); + query_handle_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.UpdateArtifactRequest.artifact_id) +} +inline void UpdateArtifactRequest::set_artifact_id(const char* value, size_t size) { + if (!has_artifact_id()) { + clear_query_handle(); + set_has_artifact_id(); + query_handle_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.UpdateArtifactRequest.artifact_id) +} +inline ::std::string* UpdateArtifactRequest::mutable_artifact_id() { + if (!has_artifact_id()) { + clear_query_handle(); + set_has_artifact_id(); + query_handle_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:datacatalog.UpdateArtifactRequest.artifact_id) + return query_handle_.artifact_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* UpdateArtifactRequest::release_artifact_id() { + // @@protoc_insertion_point(field_release:datacatalog.UpdateArtifactRequest.artifact_id) + if (has_artifact_id()) { + clear_has_query_handle(); + return query_handle_.artifact_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void UpdateArtifactRequest::set_allocated_artifact_id(::std::string* artifact_id) { + if (has_query_handle()) { + clear_query_handle(); + } + if (artifact_id != nullptr) { + set_has_artifact_id(); + query_handle_.artifact_id_.UnsafeSetDefault(artifact_id); + } + // @@protoc_insertion_point(field_set_allocated:datacatalog.UpdateArtifactRequest.artifact_id) +} + +// string tag_name = 3; +inline bool UpdateArtifactRequest::has_tag_name() const { + return query_handle_case() == kTagName; +} +inline void UpdateArtifactRequest::set_has_tag_name() { + _oneof_case_[0] = kTagName; +} +inline void UpdateArtifactRequest::clear_tag_name() { + if (has_tag_name()) { + query_handle_.tag_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_query_handle(); + } +} +inline const ::std::string& UpdateArtifactRequest::tag_name() const { + // @@protoc_insertion_point(field_get:datacatalog.UpdateArtifactRequest.tag_name) + if (has_tag_name()) { + return query_handle_.tag_name_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void UpdateArtifactRequest::set_tag_name(const ::std::string& value) { + // @@protoc_insertion_point(field_set:datacatalog.UpdateArtifactRequest.tag_name) + if (!has_tag_name()) { + clear_query_handle(); + set_has_tag_name(); + query_handle_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.UpdateArtifactRequest.tag_name) +} +#if LANG_CXX11 +inline void UpdateArtifactRequest::set_tag_name(::std::string&& value) { + // @@protoc_insertion_point(field_set:datacatalog.UpdateArtifactRequest.tag_name) + if (!has_tag_name()) { + clear_query_handle(); + set_has_tag_name(); + query_handle_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.UpdateArtifactRequest.tag_name) +} +#endif +inline void UpdateArtifactRequest::set_tag_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_tag_name()) { + clear_query_handle(); + set_has_tag_name(); + query_handle_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.UpdateArtifactRequest.tag_name) +} +inline void UpdateArtifactRequest::set_tag_name(const char* value, size_t size) { + if (!has_tag_name()) { + clear_query_handle(); + set_has_tag_name(); + query_handle_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.UpdateArtifactRequest.tag_name) +} +inline ::std::string* UpdateArtifactRequest::mutable_tag_name() { + if (!has_tag_name()) { + clear_query_handle(); + set_has_tag_name(); + query_handle_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:datacatalog.UpdateArtifactRequest.tag_name) + return query_handle_.tag_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* UpdateArtifactRequest::release_tag_name() { + // @@protoc_insertion_point(field_release:datacatalog.UpdateArtifactRequest.tag_name) + if (has_tag_name()) { + clear_has_query_handle(); + return query_handle_.tag_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void UpdateArtifactRequest::set_allocated_tag_name(::std::string* tag_name) { + if (has_query_handle()) { + clear_query_handle(); + } + if (tag_name != nullptr) { + set_has_tag_name(); + query_handle_.tag_name_.UnsafeSetDefault(tag_name); + } + // @@protoc_insertion_point(field_set_allocated:datacatalog.UpdateArtifactRequest.tag_name) +} + +// repeated .datacatalog.ArtifactData data = 4; +inline int UpdateArtifactRequest::data_size() const { + return data_.size(); +} +inline void UpdateArtifactRequest::clear_data() { + data_.Clear(); +} +inline ::datacatalog::ArtifactData* UpdateArtifactRequest::mutable_data(int index) { + // @@protoc_insertion_point(field_mutable:datacatalog.UpdateArtifactRequest.data) + return data_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData >* +UpdateArtifactRequest::mutable_data() { + // @@protoc_insertion_point(field_mutable_list:datacatalog.UpdateArtifactRequest.data) + return &data_; +} +inline const ::datacatalog::ArtifactData& UpdateArtifactRequest::data(int index) const { + // @@protoc_insertion_point(field_get:datacatalog.UpdateArtifactRequest.data) + return data_.Get(index); +} +inline ::datacatalog::ArtifactData* UpdateArtifactRequest::add_data() { + // @@protoc_insertion_point(field_add:datacatalog.UpdateArtifactRequest.data) + return data_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData >& +UpdateArtifactRequest::data() const { + // @@protoc_insertion_point(field_list:datacatalog.UpdateArtifactRequest.data) + return data_; +} + +inline bool UpdateArtifactRequest::has_query_handle() const { + return query_handle_case() != QUERY_HANDLE_NOT_SET; +} +inline void UpdateArtifactRequest::clear_has_query_handle() { + _oneof_case_[0] = QUERY_HANDLE_NOT_SET; +} +inline UpdateArtifactRequest::QueryHandleCase UpdateArtifactRequest::query_handle_case() const { + return UpdateArtifactRequest::QueryHandleCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// UpdateArtifactResponse + +// ------------------------------------------------------------------- + // ReservationID // .datacatalog.DatasetID dataset_id = 1; @@ -9072,6 +9649,10 @@ inline void PaginationOptions::set_sortorder(::datacatalog::PaginationOptions_So // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go b/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go index 737c5a3d9..e75334b34 100644 --- a/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go +++ b/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go @@ -47,7 +47,7 @@ func (x SinglePropertyFilter_ComparisonOperator) String() string { } func (SinglePropertyFilter_ComparisonOperator) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{28, 0} + return fileDescriptor_275951237ff4368a, []int{30, 0} } type PaginationOptions_SortOrder int32 @@ -72,7 +72,7 @@ func (x PaginationOptions_SortOrder) String() string { } func (PaginationOptions_SortOrder) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{34, 0} + return fileDescriptor_275951237ff4368a, []int{36, 0} } type PaginationOptions_SortKey int32 @@ -94,7 +94,7 @@ func (x PaginationOptions_SortKey) String() string { } func (PaginationOptions_SortKey) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{34, 1} + return fileDescriptor_275951237ff4368a, []int{36, 1} } // @@ -746,6 +746,142 @@ func (m *ListDatasetsResponse) GetNextToken() string { return "" } +// +// Request message for updating an Artifact and overwriting its associated ArtifactData. +type UpdateArtifactRequest struct { + // ID of dataset the artifact is associated with + Dataset *DatasetID `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` + // Either ID of artifact or name of tag to retrieve existing artifact from + // + // Types that are valid to be assigned to QueryHandle: + // *UpdateArtifactRequest_ArtifactId + // *UpdateArtifactRequest_TagName + QueryHandle isUpdateArtifactRequest_QueryHandle `protobuf_oneof:"query_handle"` + // List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing + // ArtifactData entries will be removed from the underlying blob storage and database. + Data []*ArtifactData `protobuf:"bytes,4,rep,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateArtifactRequest) Reset() { *m = UpdateArtifactRequest{} } +func (m *UpdateArtifactRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateArtifactRequest) ProtoMessage() {} +func (*UpdateArtifactRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{14} +} + +func (m *UpdateArtifactRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateArtifactRequest.Unmarshal(m, b) +} +func (m *UpdateArtifactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateArtifactRequest.Marshal(b, m, deterministic) +} +func (m *UpdateArtifactRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateArtifactRequest.Merge(m, src) +} +func (m *UpdateArtifactRequest) XXX_Size() int { + return xxx_messageInfo_UpdateArtifactRequest.Size(m) +} +func (m *UpdateArtifactRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateArtifactRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateArtifactRequest proto.InternalMessageInfo + +func (m *UpdateArtifactRequest) GetDataset() *DatasetID { + if m != nil { + return m.Dataset + } + return nil +} + +type isUpdateArtifactRequest_QueryHandle interface { + isUpdateArtifactRequest_QueryHandle() +} + +type UpdateArtifactRequest_ArtifactId struct { + ArtifactId string `protobuf:"bytes,2,opt,name=artifact_id,json=artifactId,proto3,oneof"` +} + +type UpdateArtifactRequest_TagName struct { + TagName string `protobuf:"bytes,3,opt,name=tag_name,json=tagName,proto3,oneof"` +} + +func (*UpdateArtifactRequest_ArtifactId) isUpdateArtifactRequest_QueryHandle() {} + +func (*UpdateArtifactRequest_TagName) isUpdateArtifactRequest_QueryHandle() {} + +func (m *UpdateArtifactRequest) GetQueryHandle() isUpdateArtifactRequest_QueryHandle { + if m != nil { + return m.QueryHandle + } + return nil +} + +func (m *UpdateArtifactRequest) GetArtifactId() string { + if x, ok := m.GetQueryHandle().(*UpdateArtifactRequest_ArtifactId); ok { + return x.ArtifactId + } + return "" +} + +func (m *UpdateArtifactRequest) GetTagName() string { + if x, ok := m.GetQueryHandle().(*UpdateArtifactRequest_TagName); ok { + return x.TagName + } + return "" +} + +func (m *UpdateArtifactRequest) GetData() []*ArtifactData { + if m != nil { + return m.Data + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*UpdateArtifactRequest) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*UpdateArtifactRequest_ArtifactId)(nil), + (*UpdateArtifactRequest_TagName)(nil), + } +} + +// +// Response message for updating an Artifact. +type UpdateArtifactResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateArtifactResponse) Reset() { *m = UpdateArtifactResponse{} } +func (m *UpdateArtifactResponse) String() string { return proto.CompactTextString(m) } +func (*UpdateArtifactResponse) ProtoMessage() {} +func (*UpdateArtifactResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{15} +} + +func (m *UpdateArtifactResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateArtifactResponse.Unmarshal(m, b) +} +func (m *UpdateArtifactResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateArtifactResponse.Marshal(b, m, deterministic) +} +func (m *UpdateArtifactResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateArtifactResponse.Merge(m, src) +} +func (m *UpdateArtifactResponse) XXX_Size() int { + return xxx_messageInfo_UpdateArtifactResponse.Size(m) +} +func (m *UpdateArtifactResponse) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateArtifactResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateArtifactResponse proto.InternalMessageInfo + // // ReservationID message that is composed of several string fields. type ReservationID struct { @@ -760,7 +896,7 @@ func (m *ReservationID) Reset() { *m = ReservationID{} } func (m *ReservationID) String() string { return proto.CompactTextString(m) } func (*ReservationID) ProtoMessage() {} func (*ReservationID) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{14} + return fileDescriptor_275951237ff4368a, []int{16} } func (m *ReservationID) XXX_Unmarshal(b []byte) error { @@ -809,7 +945,7 @@ func (m *GetOrExtendReservationRequest) Reset() { *m = GetOrExtendReserv func (m *GetOrExtendReservationRequest) String() string { return proto.CompactTextString(m) } func (*GetOrExtendReservationRequest) ProtoMessage() {} func (*GetOrExtendReservationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{15} + return fileDescriptor_275951237ff4368a, []int{17} } func (m *GetOrExtendReservationRequest) XXX_Unmarshal(b []byte) error { @@ -867,7 +1003,7 @@ func (m *Reservation) Reset() { *m = Reservation{} } func (m *Reservation) String() string { return proto.CompactTextString(m) } func (*Reservation) ProtoMessage() {} func (*Reservation) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{16} + return fileDescriptor_275951237ff4368a, []int{18} } func (m *Reservation) XXX_Unmarshal(b []byte) error { @@ -935,7 +1071,7 @@ func (m *GetOrExtendReservationResponse) Reset() { *m = GetOrExtendReser func (m *GetOrExtendReservationResponse) String() string { return proto.CompactTextString(m) } func (*GetOrExtendReservationResponse) ProtoMessage() {} func (*GetOrExtendReservationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{17} + return fileDescriptor_275951237ff4368a, []int{19} } func (m *GetOrExtendReservationResponse) XXX_Unmarshal(b []byte) error { @@ -976,7 +1112,7 @@ func (m *ReleaseReservationRequest) Reset() { *m = ReleaseReservationReq func (m *ReleaseReservationRequest) String() string { return proto.CompactTextString(m) } func (*ReleaseReservationRequest) ProtoMessage() {} func (*ReleaseReservationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{18} + return fileDescriptor_275951237ff4368a, []int{20} } func (m *ReleaseReservationRequest) XXX_Unmarshal(b []byte) error { @@ -1022,7 +1158,7 @@ func (m *ReleaseReservationResponse) Reset() { *m = ReleaseReservationRe func (m *ReleaseReservationResponse) String() string { return proto.CompactTextString(m) } func (*ReleaseReservationResponse) ProtoMessage() {} func (*ReleaseReservationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{19} + return fileDescriptor_275951237ff4368a, []int{21} } func (m *ReleaseReservationResponse) XXX_Unmarshal(b []byte) error { @@ -1058,7 +1194,7 @@ func (m *Dataset) Reset() { *m = Dataset{} } func (m *Dataset) String() string { return proto.CompactTextString(m) } func (*Dataset) ProtoMessage() {} func (*Dataset) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{20} + return fileDescriptor_275951237ff4368a, []int{22} } func (m *Dataset) XXX_Unmarshal(b []byte) error { @@ -1114,7 +1250,7 @@ func (m *Partition) Reset() { *m = Partition{} } func (m *Partition) String() string { return proto.CompactTextString(m) } func (*Partition) ProtoMessage() {} func (*Partition) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{21} + return fileDescriptor_275951237ff4368a, []int{23} } func (m *Partition) XXX_Unmarshal(b []byte) error { @@ -1166,7 +1302,7 @@ func (m *DatasetID) Reset() { *m = DatasetID{} } func (m *DatasetID) String() string { return proto.CompactTextString(m) } func (*DatasetID) ProtoMessage() {} func (*DatasetID) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{22} + return fileDescriptor_275951237ff4368a, []int{24} } func (m *DatasetID) XXX_Unmarshal(b []byte) error { @@ -1241,7 +1377,7 @@ func (m *Artifact) Reset() { *m = Artifact{} } func (m *Artifact) String() string { return proto.CompactTextString(m) } func (*Artifact) ProtoMessage() {} func (*Artifact) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{23} + return fileDescriptor_275951237ff4368a, []int{25} } func (m *Artifact) XXX_Unmarshal(b []byte) error { @@ -1325,7 +1461,7 @@ func (m *ArtifactData) Reset() { *m = ArtifactData{} } func (m *ArtifactData) String() string { return proto.CompactTextString(m) } func (*ArtifactData) ProtoMessage() {} func (*ArtifactData) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{24} + return fileDescriptor_275951237ff4368a, []int{26} } func (m *ArtifactData) XXX_Unmarshal(b []byte) error { @@ -1376,7 +1512,7 @@ func (m *Tag) Reset() { *m = Tag{} } func (m *Tag) String() string { return proto.CompactTextString(m) } func (*Tag) ProtoMessage() {} func (*Tag) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{25} + return fileDescriptor_275951237ff4368a, []int{27} } func (m *Tag) XXX_Unmarshal(b []byte) error { @@ -1431,7 +1567,7 @@ func (m *Metadata) Reset() { *m = Metadata{} } func (m *Metadata) String() string { return proto.CompactTextString(m) } func (*Metadata) ProtoMessage() {} func (*Metadata) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{26} + return fileDescriptor_275951237ff4368a, []int{28} } func (m *Metadata) XXX_Unmarshal(b []byte) error { @@ -1471,7 +1607,7 @@ func (m *FilterExpression) Reset() { *m = FilterExpression{} } func (m *FilterExpression) String() string { return proto.CompactTextString(m) } func (*FilterExpression) ProtoMessage() {} func (*FilterExpression) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{27} + return fileDescriptor_275951237ff4368a, []int{29} } func (m *FilterExpression) XXX_Unmarshal(b []byte) error { @@ -1517,7 +1653,7 @@ func (m *SinglePropertyFilter) Reset() { *m = SinglePropertyFilter{} } func (m *SinglePropertyFilter) String() string { return proto.CompactTextString(m) } func (*SinglePropertyFilter) ProtoMessage() {} func (*SinglePropertyFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{28} + return fileDescriptor_275951237ff4368a, []int{30} } func (m *SinglePropertyFilter) XXX_Unmarshal(b []byte) error { @@ -1634,7 +1770,7 @@ func (m *ArtifactPropertyFilter) Reset() { *m = ArtifactPropertyFilter{} func (m *ArtifactPropertyFilter) String() string { return proto.CompactTextString(m) } func (*ArtifactPropertyFilter) ProtoMessage() {} func (*ArtifactPropertyFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{29} + return fileDescriptor_275951237ff4368a, []int{31} } func (m *ArtifactPropertyFilter) XXX_Unmarshal(b []byte) error { @@ -1700,7 +1836,7 @@ func (m *TagPropertyFilter) Reset() { *m = TagPropertyFilter{} } func (m *TagPropertyFilter) String() string { return proto.CompactTextString(m) } func (*TagPropertyFilter) ProtoMessage() {} func (*TagPropertyFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{30} + return fileDescriptor_275951237ff4368a, []int{32} } func (m *TagPropertyFilter) XXX_Unmarshal(b []byte) error { @@ -1766,7 +1902,7 @@ func (m *PartitionPropertyFilter) Reset() { *m = PartitionPropertyFilter func (m *PartitionPropertyFilter) String() string { return proto.CompactTextString(m) } func (*PartitionPropertyFilter) ProtoMessage() {} func (*PartitionPropertyFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{31} + return fileDescriptor_275951237ff4368a, []int{33} } func (m *PartitionPropertyFilter) XXX_Unmarshal(b []byte) error { @@ -1830,7 +1966,7 @@ func (m *KeyValuePair) Reset() { *m = KeyValuePair{} } func (m *KeyValuePair) String() string { return proto.CompactTextString(m) } func (*KeyValuePair) ProtoMessage() {} func (*KeyValuePair) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{32} + return fileDescriptor_275951237ff4368a, []int{34} } func (m *KeyValuePair) XXX_Unmarshal(b []byte) error { @@ -1882,7 +2018,7 @@ func (m *DatasetPropertyFilter) Reset() { *m = DatasetPropertyFilter{} } func (m *DatasetPropertyFilter) String() string { return proto.CompactTextString(m) } func (*DatasetPropertyFilter) ProtoMessage() {} func (*DatasetPropertyFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{33} + return fileDescriptor_275951237ff4368a, []int{35} } func (m *DatasetPropertyFilter) XXX_Unmarshal(b []byte) error { @@ -1995,7 +2131,7 @@ func (m *PaginationOptions) Reset() { *m = PaginationOptions{} } func (m *PaginationOptions) String() string { return proto.CompactTextString(m) } func (*PaginationOptions) ProtoMessage() {} func (*PaginationOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{34} + return fileDescriptor_275951237ff4368a, []int{36} } func (m *PaginationOptions) XXX_Unmarshal(b []byte) error { @@ -2062,6 +2198,8 @@ func init() { proto.RegisterType((*ListArtifactsResponse)(nil), "datacatalog.ListArtifactsResponse") proto.RegisterType((*ListDatasetsRequest)(nil), "datacatalog.ListDatasetsRequest") proto.RegisterType((*ListDatasetsResponse)(nil), "datacatalog.ListDatasetsResponse") + proto.RegisterType((*UpdateArtifactRequest)(nil), "datacatalog.UpdateArtifactRequest") + proto.RegisterType((*UpdateArtifactResponse)(nil), "datacatalog.UpdateArtifactResponse") proto.RegisterType((*ReservationID)(nil), "datacatalog.ReservationID") proto.RegisterType((*GetOrExtendReservationRequest)(nil), "datacatalog.GetOrExtendReservationRequest") proto.RegisterType((*Reservation)(nil), "datacatalog.Reservation") @@ -2091,108 +2229,111 @@ func init() { } var fileDescriptor_275951237ff4368a = []byte{ - // 1616 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x58, 0x5b, 0x53, 0xdb, 0xc6, - 0x17, 0x47, 0x36, 0xb1, 0xd1, 0x31, 0x76, 0xcc, 0x06, 0x88, 0x70, 0x12, 0xe2, 0x28, 0x19, 0xfe, - 0x4c, 0xfe, 0x8d, 0x9d, 0x42, 0x92, 0x69, 0x92, 0xde, 0x0c, 0x76, 0xc0, 0x25, 0x80, 0x23, 0x08, - 0x33, 0xbd, 0xcc, 0x78, 0x16, 0xb4, 0x28, 0x2a, 0xb2, 0xa4, 0x48, 0x4b, 0x8a, 0x9f, 0x3a, 0x7d, - 0x6d, 0xfb, 0xd6, 0x99, 0x7e, 0x81, 0x3e, 0xf6, 0x43, 0xf4, 0x31, 0x6f, 0xfd, 0x4c, 0x9d, 0x95, - 0x56, 0xb2, 0x24, 0xcb, 0xe0, 0xf0, 0xd0, 0x99, 0xbe, 0x78, 0xbc, 0xbb, 0xe7, 0xfc, 0xf6, 0x5c, - 0xf6, 0xdc, 0x04, 0x4b, 0xc7, 0x46, 0x9f, 0x12, 0x5d, 0x35, 0xea, 0x2a, 0xa6, 0xf8, 0x08, 0x53, - 0x6c, 0x58, 0x5a, 0xf4, 0x7f, 0xcd, 0x76, 0x2c, 0x6a, 0xa1, 0x42, 0x64, 0xab, 0x72, 0x33, 0x64, - 0x3a, 0xb2, 0x1c, 0x52, 0x37, 0x74, 0x4a, 0x1c, 0x6c, 0xb8, 0x3e, 0x69, 0x65, 0x51, 0xb3, 0x2c, - 0xcd, 0x20, 0x75, 0x6f, 0x75, 0x78, 0x7a, 0x5c, 0x57, 0x4f, 0x1d, 0x4c, 0x75, 0xcb, 0xe4, 0xe7, - 0xb7, 0x93, 0xe7, 0x54, 0xef, 0x11, 0x97, 0xe2, 0x9e, 0xed, 0x13, 0xc8, 0x2f, 0x60, 0x76, 0xdd, - 0x21, 0x98, 0x92, 0x26, 0xa6, 0xd8, 0x25, 0x54, 0x21, 0x6f, 0x4f, 0x89, 0x4b, 0x51, 0x0d, 0xf2, - 0xaa, 0xbf, 0x23, 0x09, 0x55, 0x61, 0xb9, 0xb0, 0x32, 0x5b, 0x8b, 0x0a, 0x1a, 0x50, 0x07, 0x44, - 0xf2, 0x75, 0x98, 0x4b, 0xe0, 0xb8, 0xb6, 0x65, 0xba, 0x44, 0x6e, 0xc1, 0xcc, 0x06, 0xa1, 0x09, - 0xf4, 0x87, 0x49, 0xf4, 0xf9, 0x34, 0xf4, 0x76, 0x73, 0x80, 0xdf, 0x04, 0x14, 0x85, 0xf1, 0xc1, - 0x3f, 0x58, 0xca, 0xdf, 0x05, 0x0f, 0xa6, 0xe1, 0x50, 0xfd, 0x18, 0x1f, 0x5d, 0x5e, 0x1c, 0x74, - 0x07, 0x0a, 0x98, 0x83, 0x74, 0x75, 0x55, 0xca, 0x54, 0x85, 0x65, 0x71, 0x73, 0x42, 0x81, 0x60, - 0xb3, 0xad, 0xa2, 0x1b, 0x30, 0x45, 0xb1, 0xd6, 0x35, 0x71, 0x8f, 0x48, 0x59, 0x7e, 0x9e, 0xa7, - 0x58, 0xdb, 0xc1, 0x3d, 0xb2, 0x56, 0x82, 0xe9, 0xb7, 0xa7, 0xc4, 0xe9, 0x77, 0xdf, 0x60, 0x53, - 0x35, 0x88, 0xbc, 0x09, 0xd7, 0x62, 0x72, 0x71, 0xfd, 0x3e, 0x86, 0xa9, 0x00, 0x91, 0x4b, 0x36, - 0x17, 0x93, 0x2c, 0x64, 0x08, 0xc9, 0xe4, 0xaf, 0x02, 0x47, 0x24, 0x95, 0xbc, 0x04, 0x96, 0x04, - 0xf3, 0x49, 0x2c, 0xee, 0xd5, 0x55, 0x28, 0x36, 0x54, 0x75, 0x1f, 0x6b, 0x01, 0xba, 0x0c, 0x59, - 0x8a, 0x35, 0x0e, 0x5c, 0x8e, 0x01, 0x33, 0x2a, 0x76, 0x28, 0x97, 0xa1, 0x14, 0x30, 0x71, 0x98, - 0xbf, 0x04, 0x98, 0x7d, 0xa9, 0xbb, 0xa1, 0xe2, 0xee, 0xe5, 0x3d, 0xf2, 0x18, 0x72, 0xc7, 0xba, - 0x41, 0x89, 0xe3, 0x39, 0xa3, 0xb0, 0x72, 0x2b, 0xc6, 0xf0, 0xc2, 0x3b, 0x6a, 0x9d, 0xd9, 0x0e, - 0x71, 0x5d, 0xdd, 0x32, 0x15, 0x4e, 0x8c, 0x3e, 0x07, 0xb0, 0xb1, 0xa6, 0x9b, 0x5e, 0xd0, 0x78, - 0x7e, 0x2a, 0xac, 0x2c, 0xc6, 0x58, 0x3b, 0xe1, 0xf1, 0xae, 0xcd, 0x7e, 0x5d, 0x25, 0xc2, 0x21, - 0x9f, 0xc0, 0x5c, 0x42, 0x01, 0xee, 0xba, 0x55, 0x10, 0x03, 0x3b, 0xba, 0x92, 0x50, 0xcd, 0x8e, - 0xb6, 0xf7, 0x80, 0x0e, 0xdd, 0x02, 0x30, 0xc9, 0x19, 0xed, 0x52, 0xeb, 0x84, 0x98, 0xfe, 0xab, - 0x52, 0x44, 0xb6, 0xb3, 0xcf, 0x36, 0xe4, 0x5f, 0x05, 0xb8, 0xc6, 0x6e, 0xe3, 0xea, 0x87, 0xd6, - 0x1a, 0xe8, 0x2e, 0x5c, 0x5e, 0xf7, 0xcc, 0x07, 0xeb, 0xae, 0xf9, 0xce, 0x1b, 0x48, 0xc3, 0x55, - 0x7f, 0x08, 0x53, 0xdc, 0x2b, 0x81, 0xe6, 0xe9, 0x61, 0x19, 0x52, 0x5d, 0xa4, 0x37, 0x86, 0xa2, - 0x42, 0x5c, 0xe2, 0xbc, 0xf3, 0xee, 0x6d, 0x37, 0xd1, 0x63, 0x00, 0xce, 0xcb, 0xa2, 0xef, 0xfc, - 0x17, 0x22, 0x72, 0xca, 0xb6, 0x8a, 0x16, 0x22, 0x21, 0xe9, 0x5f, 0x12, 0x04, 0xa4, 0xfc, 0x5e, - 0x80, 0x5b, 0x1b, 0x84, 0xee, 0x3a, 0xad, 0x33, 0x4a, 0x4c, 0x35, 0x72, 0x5d, 0x60, 0xe4, 0x06, - 0x94, 0x9c, 0xc1, 0xee, 0xe0, 0xde, 0x4a, 0xec, 0xde, 0x98, 0x9c, 0x4a, 0x31, 0xc2, 0xe1, 0xdf, - 0x6f, 0xfd, 0x60, 0x12, 0x27, 0x4c, 0x19, 0x4a, 0xde, 0x5b, 0xb7, 0x55, 0xb4, 0x09, 0xe8, 0x0d, - 0xc1, 0x0e, 0x3d, 0x24, 0x98, 0x76, 0x75, 0x93, 0x32, 0x2e, 0x83, 0xbf, 0xc7, 0x85, 0x9a, 0x9f, - 0xc5, 0x6b, 0x41, 0x16, 0xaf, 0x35, 0x79, 0x96, 0x57, 0x66, 0x42, 0xa6, 0x36, 0xe7, 0x91, 0xff, - 0xc8, 0x40, 0x21, 0x22, 0xc5, 0x7f, 0x45, 0x6e, 0xf4, 0x14, 0x80, 0x9c, 0xd9, 0xba, 0x43, 0xdc, - 0x2e, 0xa6, 0xd2, 0x24, 0x97, 0x31, 0x89, 0xb0, 0x1f, 0xd4, 0x2f, 0x45, 0xe4, 0xd4, 0x0d, 0x2f, - 0xb5, 0xf5, 0x08, 0xc5, 0x4c, 0x1f, 0x29, 0x97, 0x92, 0xda, 0xb6, 0xf9, 0xa1, 0x12, 0x92, 0xc9, - 0xdf, 0xc1, 0xe2, 0x28, 0x77, 0xf3, 0x57, 0xfc, 0x0c, 0x0a, 0x11, 0x2b, 0x70, 0xa3, 0x49, 0xa3, - 0x8c, 0xa6, 0x44, 0x89, 0xe5, 0x3e, 0x2c, 0x28, 0xc4, 0x20, 0xd8, 0x25, 0xff, 0xf6, 0x43, 0x92, - 0x6f, 0x42, 0x25, 0xed, 0x6a, 0x9e, 0x70, 0x7f, 0x16, 0x20, 0xcf, 0x43, 0x03, 0x2d, 0x41, 0xe6, - 0xc2, 0xe0, 0xc9, 0xe8, 0x6a, 0xcc, 0xba, 0x99, 0xb1, 0xac, 0x8b, 0xee, 0x41, 0xd1, 0x66, 0x59, - 0x8d, 0xdd, 0xbd, 0x45, 0xfa, 0xae, 0x94, 0xad, 0x66, 0x97, 0x45, 0x25, 0xbe, 0x29, 0xaf, 0x82, - 0xd8, 0x09, 0x36, 0x50, 0x19, 0xb2, 0x27, 0xa4, 0xef, 0x89, 0x23, 0x2a, 0xec, 0x2f, 0x9a, 0x85, - 0x2b, 0xef, 0xb0, 0x71, 0x1a, 0x84, 0xaa, 0xbf, 0x90, 0x7f, 0x04, 0x31, 0x14, 0x0f, 0x49, 0x90, - 0xb7, 0x1d, 0xeb, 0x7b, 0xc2, 0x4b, 0x9a, 0xa8, 0x04, 0x4b, 0x84, 0x60, 0x32, 0x12, 0xe6, 0xde, - 0x7f, 0x34, 0x0f, 0x39, 0xd5, 0xea, 0x61, 0xdd, 0xcf, 0xf3, 0xa2, 0xc2, 0x57, 0x0c, 0xe5, 0x1d, - 0x71, 0x58, 0x6a, 0xf4, 0x9e, 0x9d, 0xa8, 0x04, 0x4b, 0x86, 0xf2, 0xfa, 0x75, 0xbb, 0x29, 0x5d, - 0xf1, 0x51, 0xd8, 0x7f, 0xf9, 0x7d, 0x06, 0xa6, 0x82, 0xdc, 0x8d, 0x4a, 0xa1, 0x0d, 0x45, 0xcf, - 0x56, 0x91, 0xba, 0x95, 0x19, 0xaf, 0x6e, 0x3d, 0x80, 0x49, 0xcf, 0xb2, 0x59, 0x2f, 0x51, 0x2e, - 0xa4, 0x96, 0x08, 0xc6, 0xa6, 0x78, 0x64, 0x31, 0x67, 0x4c, 0x8e, 0xe7, 0x8c, 0x27, 0x2c, 0xcd, - 0x73, 0x33, 0xbb, 0xd2, 0x15, 0xef, 0x9e, 0xf9, 0x44, 0x9a, 0xe7, 0xc7, 0x4a, 0x84, 0x12, 0xdd, - 0x83, 0x49, 0x8a, 0x35, 0x57, 0xca, 0x79, 0x1c, 0xc3, 0x35, 0xdd, 0x3b, 0x65, 0x61, 0x7b, 0xe4, - 0xf5, 0x08, 0x2a, 0x0b, 0xdb, 0xfc, 0xc5, 0x61, 0xcb, 0xa9, 0x1b, 0x54, 0xee, 0xc0, 0x74, 0x54, - 0xc3, 0xd0, 0x67, 0x42, 0xc4, 0x67, 0x1f, 0x45, 0x1f, 0x01, 0x93, 0x3b, 0x68, 0x87, 0x6b, 0xac, - 0x1d, 0xae, 0xbd, 0xf4, 0xdb, 0xe1, 0xe0, 0x71, 0x18, 0x90, 0xdd, 0xc7, 0x5a, 0x2a, 0xd0, 0xed, - 0x94, 0x8e, 0x2d, 0xd6, 0xaf, 0x45, 0x5c, 0x97, 0x1d, 0xaf, 0x27, 0xfd, 0x49, 0x80, 0xa9, 0xc0, - 0xde, 0xe8, 0x19, 0xe4, 0x4f, 0x48, 0xbf, 0xdb, 0xc3, 0x36, 0xaf, 0x79, 0x77, 0x52, 0xfd, 0x52, - 0xdb, 0x22, 0xfd, 0x6d, 0x6c, 0xb7, 0x4c, 0xea, 0xf4, 0x95, 0xdc, 0x89, 0xb7, 0xa8, 0x3c, 0x85, - 0x42, 0x64, 0x7b, 0xdc, 0x50, 0x78, 0x96, 0xf9, 0x44, 0x90, 0x77, 0xa1, 0x9c, 0xac, 0xef, 0xe8, - 0x39, 0xe4, 0xfd, 0x0a, 0xef, 0xa6, 0x8a, 0xb2, 0xa7, 0x9b, 0x9a, 0x41, 0x3a, 0x8e, 0x65, 0x13, - 0x87, 0xf6, 0x7d, 0x6e, 0x25, 0xe0, 0x90, 0xff, 0xce, 0xc2, 0x6c, 0x1a, 0x05, 0xfa, 0x02, 0x80, - 0x15, 0xcf, 0x58, 0xa3, 0xb1, 0x98, 0x7c, 0x14, 0x71, 0x9e, 0xcd, 0x09, 0x45, 0xa4, 0x58, 0xe3, - 0x00, 0xaf, 0xa0, 0x1c, 0xbe, 0xae, 0x6e, 0xac, 0x57, 0xbb, 0x97, 0xfe, 0x1a, 0x87, 0xc0, 0xae, - 0x86, 0xfc, 0x1c, 0x72, 0x07, 0xae, 0x86, 0x4e, 0xe5, 0x88, 0xbe, 0xef, 0xee, 0xa6, 0xc6, 0xd1, - 0x10, 0x60, 0x29, 0xe0, 0xe6, 0x78, 0x5b, 0x50, 0x0a, 0xfa, 0x0a, 0x0e, 0xe7, 0xc7, 0x98, 0x9c, - 0xf6, 0x14, 0x86, 0xd0, 0x8a, 0x9c, 0x97, 0x83, 0x75, 0x60, 0x8a, 0x11, 0x60, 0x6a, 0x39, 0x12, - 0x54, 0x85, 0xe5, 0xd2, 0xca, 0xa3, 0x0b, 0xfd, 0x50, 0x5b, 0xb7, 0x7a, 0x36, 0x76, 0x74, 0x97, - 0x75, 0x5c, 0x3e, 0xaf, 0x12, 0xa2, 0xc8, 0x55, 0x40, 0xc3, 0xe7, 0x08, 0x20, 0xd7, 0x7a, 0xf5, - 0xba, 0xf1, 0x72, 0xaf, 0x3c, 0xb1, 0x36, 0x03, 0x57, 0x6d, 0x0e, 0xc8, 0x35, 0x90, 0x37, 0x60, - 0x3e, 0x5d, 0xff, 0xe4, 0x10, 0x23, 0x0c, 0x0f, 0x31, 0x6b, 0x00, 0x53, 0x01, 0x9e, 0xfc, 0x29, - 0xcc, 0x0c, 0x79, 0x38, 0x36, 0xe5, 0x08, 0xc9, 0x29, 0x27, 0xca, 0xfd, 0x2d, 0x5c, 0x1f, 0xe1, - 0x58, 0xf4, 0xc8, 0x0f, 0x1d, 0xd6, 0x38, 0x08, 0xbc, 0x71, 0x88, 0xda, 0x69, 0x8b, 0xf4, 0x0f, - 0xd8, 0x7b, 0xef, 0x60, 0x9d, 0x59, 0x99, 0x05, 0xcd, 0x01, 0x36, 0x62, 0xe0, 0x4f, 0x60, 0x3a, - 0x4a, 0x35, 0x76, 0x31, 0xf9, 0x45, 0x80, 0xb9, 0x54, 0x6f, 0xa2, 0x4a, 0xa2, 0xb2, 0x30, 0xb5, - 0x82, 0xda, 0x32, 0x1b, 0xad, 0x2d, 0x9b, 0x13, 0x3c, 0xc1, 0x48, 0xf1, 0xea, 0xc2, 0x24, 0xe5, - 0xf5, 0xa5, 0x92, 0xa8, 0x2f, 0x0c, 0x8b, 0x6f, 0xc4, 0xb4, 0xf8, 0x2d, 0x03, 0x33, 0x43, 0x1d, - 0x37, 0x93, 0xdc, 0xd0, 0x7b, 0xba, 0x2f, 0x47, 0x51, 0xf1, 0x17, 0x6c, 0x37, 0xda, 0x2c, 0xfb, - 0x0b, 0xf4, 0x25, 0xe4, 0x5d, 0xcb, 0xa1, 0x5b, 0xa4, 0xef, 0x09, 0x51, 0x5a, 0x59, 0x3a, 0xbf, - 0x9d, 0xaf, 0xed, 0xf9, 0xd4, 0x4a, 0xc0, 0x86, 0x5e, 0x80, 0xc8, 0xfe, 0xee, 0x3a, 0x2a, 0x7f, - 0xfc, 0xa5, 0x95, 0xe5, 0x31, 0x30, 0x3c, 0x7a, 0x65, 0xc0, 0x2a, 0xdf, 0x07, 0x31, 0xdc, 0x47, - 0x25, 0x80, 0x66, 0x6b, 0x6f, 0xbd, 0xb5, 0xd3, 0x6c, 0xef, 0x6c, 0x94, 0x27, 0x50, 0x11, 0xc4, - 0x46, 0xb8, 0x14, 0xe4, 0x9b, 0x90, 0xe7, 0x72, 0xa0, 0x19, 0x28, 0xae, 0x2b, 0xad, 0xc6, 0x7e, - 0x7b, 0x77, 0xa7, 0xbb, 0xdf, 0xde, 0x6e, 0x95, 0x27, 0x56, 0xfe, 0xcc, 0x41, 0x81, 0xf9, 0x68, - 0xdd, 0x17, 0x00, 0x1d, 0x40, 0x31, 0xf6, 0xa5, 0x01, 0xc5, 0xb3, 0x5b, 0xda, 0xd7, 0x8c, 0x8a, - 0x7c, 0x1e, 0x09, 0xef, 0xf7, 0xb6, 0x01, 0x06, 0x5f, 0x18, 0x50, 0x3c, 0xb3, 0x0d, 0x7d, 0xc1, - 0xa8, 0xdc, 0x1e, 0x79, 0xce, 0xe1, 0xbe, 0x86, 0x52, 0x7c, 0x76, 0x46, 0x69, 0x42, 0x24, 0x86, - 0xf4, 0xca, 0xdd, 0x73, 0x69, 0x38, 0x74, 0x07, 0x0a, 0x91, 0x8f, 0x05, 0x68, 0x48, 0x94, 0x24, - 0x68, 0x75, 0x34, 0x01, 0x47, 0x6c, 0x40, 0xce, 0x9f, 0xcc, 0x51, 0xbc, 0x09, 0x8d, 0xcd, 0xf8, - 0x95, 0x1b, 0xa9, 0x67, 0x1c, 0xe2, 0x00, 0x8a, 0xb1, 0x41, 0x38, 0xe1, 0x96, 0xb4, 0x29, 0x3f, - 0xe1, 0x96, 0xf4, 0x39, 0x7a, 0x0f, 0xa6, 0xa3, 0x43, 0x26, 0xaa, 0x0e, 0xf1, 0x24, 0xa6, 0xe1, - 0xca, 0x9d, 0x73, 0x28, 0x38, 0xe8, 0x5b, 0x98, 0x4f, 0xef, 0xfe, 0xd1, 0xfd, 0xa4, 0xad, 0x46, - 0x4f, 0x84, 0x95, 0xff, 0x8f, 0x45, 0xcb, 0xaf, 0x24, 0x80, 0x86, 0xfb, 0x72, 0xb4, 0x94, 0xe8, - 0xf9, 0x47, 0xcc, 0x0c, 0x95, 0xff, 0x5d, 0x48, 0xe7, 0x5f, 0xb3, 0xf6, 0xd9, 0x37, 0xcf, 0x35, - 0x9d, 0xbe, 0x39, 0x3d, 0xac, 0x1d, 0x59, 0xbd, 0xba, 0xd7, 0x2c, 0x59, 0x8e, 0x56, 0x0f, 0x3f, - 0x22, 0x6a, 0xc4, 0xac, 0xdb, 0x87, 0x0f, 0x34, 0xab, 0x9e, 0xf6, 0x31, 0xf2, 0x30, 0xe7, 0x75, - 0x6c, 0xab, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x55, 0xcd, 0xf1, 0xcd, 0xab, 0x14, 0x00, 0x00, + // 1659 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x58, 0x4b, 0x6f, 0xdb, 0xc6, + 0x13, 0x37, 0x25, 0x47, 0x32, 0x47, 0x96, 0x22, 0x6f, 0x6c, 0x87, 0x56, 0x12, 0x47, 0x61, 0x02, + 0xff, 0x8d, 0xfc, 0x1b, 0x29, 0xb5, 0x93, 0xa0, 0x49, 0xfa, 0x92, 0x2d, 0xc5, 0x56, 0x1d, 0x3f, + 0x42, 0x3f, 0x80, 0x3e, 0x00, 0x61, 0x6d, 0xae, 0x19, 0xd6, 0x14, 0xc9, 0x90, 0xeb, 0xd4, 0x3a, + 0x15, 0xbd, 0xf4, 0xd0, 0xf6, 0x56, 0xa0, 0x5f, 0xa0, 0x1f, 0xa4, 0xc7, 0xf4, 0xd4, 0xcf, 0x54, + 0x2c, 0xb9, 0xa4, 0x48, 0x8a, 0xb2, 0x15, 0x1f, 0x02, 0xf4, 0x42, 0x70, 0x77, 0x67, 0x7e, 0x3b, + 0x8f, 0x9d, 0x9d, 0x99, 0x85, 0x85, 0x63, 0xa3, 0x47, 0x89, 0xae, 0x1a, 0x75, 0x15, 0x53, 0x7c, + 0x84, 0x29, 0x36, 0x2c, 0x2d, 0xfa, 0x5f, 0xb3, 0x1d, 0x8b, 0x5a, 0xa8, 0x10, 0x99, 0xaa, 0xdc, + 0x0c, 0x99, 0x8e, 0x2c, 0x87, 0xd4, 0x0d, 0x9d, 0x12, 0x07, 0x1b, 0xae, 0x4f, 0x5a, 0x99, 0xd7, + 0x2c, 0x4b, 0x33, 0x48, 0xdd, 0x1b, 0x1d, 0x9e, 0x1e, 0xd7, 0xd5, 0x53, 0x07, 0x53, 0xdd, 0x32, + 0xf9, 0xfa, 0xed, 0xe4, 0x3a, 0xd5, 0xbb, 0xc4, 0xa5, 0xb8, 0x6b, 0xfb, 0x04, 0xf2, 0x0b, 0x98, + 0x5e, 0x75, 0x08, 0xa6, 0xa4, 0x89, 0x29, 0x76, 0x09, 0x55, 0xc8, 0x9b, 0x53, 0xe2, 0x52, 0x54, + 0x83, 0xbc, 0xea, 0xcf, 0x48, 0x42, 0x55, 0x58, 0x2c, 0x2c, 0x4d, 0xd7, 0xa2, 0x82, 0x06, 0xd4, + 0x01, 0x91, 0x7c, 0x1d, 0x66, 0x12, 0x38, 0xae, 0x6d, 0x99, 0x2e, 0x91, 0x5b, 0x30, 0xb5, 0x46, + 0x68, 0x02, 0xfd, 0x61, 0x12, 0x7d, 0x36, 0x0d, 0xbd, 0xdd, 0xec, 0xe3, 0x37, 0x01, 0x45, 0x61, + 0x7c, 0xf0, 0xf7, 0x96, 0xf2, 0x0f, 0xc1, 0x83, 0x69, 0x38, 0x54, 0x3f, 0xc6, 0x47, 0x97, 0x17, + 0x07, 0xdd, 0x81, 0x02, 0xe6, 0x20, 0x1d, 0x5d, 0x95, 0x32, 0x55, 0x61, 0x51, 0x5c, 0x1f, 0x53, + 0x20, 0x98, 0x6c, 0xab, 0xe8, 0x06, 0x4c, 0x50, 0xac, 0x75, 0x4c, 0xdc, 0x25, 0x52, 0x96, 0xaf, + 0xe7, 0x29, 0xd6, 0xb6, 0x70, 0x97, 0xac, 0x94, 0x60, 0xf2, 0xcd, 0x29, 0x71, 0x7a, 0x9d, 0xd7, + 0xd8, 0x54, 0x0d, 0x22, 0xaf, 0xc3, 0xb5, 0x98, 0x5c, 0x5c, 0xbf, 0x8f, 0x61, 0x22, 0x40, 0xe4, + 0x92, 0xcd, 0xc4, 0x24, 0x0b, 0x19, 0x42, 0x32, 0xf9, 0xab, 0xc0, 0x11, 0x49, 0x25, 0x2f, 0x81, + 0x25, 0xc1, 0x6c, 0x12, 0x8b, 0x7b, 0x75, 0x19, 0x8a, 0x0d, 0x55, 0xdd, 0xc3, 0x5a, 0x80, 0x2e, + 0x43, 0x96, 0x62, 0x8d, 0x03, 0x97, 0x63, 0xc0, 0x8c, 0x8a, 0x2d, 0xca, 0x65, 0x28, 0x05, 0x4c, + 0x1c, 0xe6, 0x2f, 0x01, 0xa6, 0x5f, 0xea, 0x6e, 0xa8, 0xb8, 0x7b, 0x79, 0x8f, 0x3c, 0x86, 0xdc, + 0xb1, 0x6e, 0x50, 0xe2, 0x78, 0xce, 0x28, 0x2c, 0xdd, 0x8a, 0x31, 0xbc, 0xf0, 0x96, 0x5a, 0x67, + 0xb6, 0x43, 0x5c, 0x57, 0xb7, 0x4c, 0x85, 0x13, 0xa3, 0xcf, 0x01, 0x6c, 0xac, 0xe9, 0xa6, 0x17, + 0x34, 0x9e, 0x9f, 0x0a, 0x4b, 0xf3, 0x31, 0xd6, 0x9d, 0x70, 0x79, 0xdb, 0x66, 0x5f, 0x57, 0x89, + 0x70, 0xc8, 0x27, 0x30, 0x93, 0x50, 0x80, 0xbb, 0x6e, 0x19, 0xc4, 0xc0, 0x8e, 0xae, 0x24, 0x54, + 0xb3, 0xc3, 0xed, 0xdd, 0xa7, 0x43, 0xb7, 0x00, 0x4c, 0x72, 0x46, 0x3b, 0xd4, 0x3a, 0x21, 0xa6, + 0x7f, 0xaa, 0x14, 0x91, 0xcd, 0xec, 0xb1, 0x09, 0xf9, 0x37, 0x01, 0xae, 0xb1, 0xdd, 0xb8, 0xfa, + 0xa1, 0xb5, 0xfa, 0xba, 0x0b, 0x97, 0xd7, 0x3d, 0xf3, 0xde, 0xba, 0x6b, 0xbe, 0xf3, 0xfa, 0xd2, + 0x70, 0xd5, 0x1f, 0xc2, 0x04, 0xf7, 0x4a, 0xa0, 0x79, 0x7a, 0x58, 0x86, 0x54, 0x17, 0xe9, 0xfd, + 0xb7, 0x00, 0x33, 0xfb, 0xb6, 0x9a, 0x72, 0xa8, 0x3f, 0x78, 0xe4, 0xa2, 0x07, 0x30, 0xce, 0xa0, + 0xa4, 0x71, 0x4f, 0xb1, 0xb9, 0x54, 0x97, 0xb2, 0x6d, 0x15, 0x8f, 0x6c, 0x20, 0xd0, 0x25, 0x98, + 0x4d, 0x6a, 0xc2, 0x63, 0x01, 0x43, 0x51, 0x21, 0x2e, 0x71, 0xde, 0x7a, 0xc6, 0x6d, 0x37, 0xd1, + 0x63, 0x00, 0x2e, 0x34, 0x13, 0xf4, 0x7c, 0xf5, 0x44, 0x4e, 0xd9, 0x56, 0xd1, 0x5c, 0x44, 0x7a, + 0xdf, 0x92, 0x81, 0xec, 0xf2, 0x3b, 0x01, 0x6e, 0xad, 0x11, 0xba, 0xed, 0xb4, 0xce, 0x28, 0x31, + 0xd5, 0xc8, 0x76, 0x81, 0x3d, 0x1b, 0x50, 0x72, 0xfa, 0xb3, 0xfd, 0x7d, 0x2b, 0xb1, 0x7d, 0x63, + 0x72, 0x2a, 0xc5, 0x08, 0x87, 0xbf, 0xbf, 0xf5, 0x83, 0x49, 0x9c, 0xd0, 0xba, 0x4a, 0xde, 0x1b, + 0xb7, 0x55, 0xb4, 0x0e, 0xe8, 0x35, 0xc1, 0x0e, 0x3d, 0x24, 0x98, 0x76, 0x74, 0x93, 0x32, 0x2e, + 0x83, 0x07, 0xdd, 0x5c, 0xcd, 0x4f, 0x55, 0xb5, 0x20, 0x55, 0xd5, 0x9a, 0x3c, 0x95, 0x29, 0x53, + 0x21, 0x53, 0x9b, 0xf3, 0xc8, 0x7f, 0x66, 0xa0, 0x10, 0x91, 0xe2, 0xbf, 0x22, 0x37, 0x7a, 0x0a, + 0x40, 0xce, 0x6c, 0xdd, 0x21, 0x6e, 0x07, 0x53, 0x69, 0x9c, 0xcb, 0x98, 0x44, 0xd8, 0x0b, 0x92, + 0xb4, 0x22, 0x72, 0xea, 0x86, 0x77, 0x7f, 0x77, 0x09, 0xc5, 0xde, 0xe1, 0xcb, 0xa5, 0xdc, 0xdf, + 0x9b, 0x7c, 0x51, 0x09, 0xc9, 0xe4, 0xef, 0x60, 0x7e, 0x98, 0xbb, 0x79, 0xa8, 0x3e, 0x83, 0x42, + 0xc4, 0x0a, 0xdc, 0x68, 0xd2, 0x30, 0xa3, 0x29, 0x51, 0x62, 0xb9, 0x07, 0x73, 0x0a, 0x31, 0x08, + 0x76, 0xc9, 0x87, 0x3e, 0x48, 0xf2, 0x4d, 0xa8, 0xa4, 0x6d, 0xcd, 0x23, 0xe9, 0x17, 0x01, 0xf2, + 0x3c, 0x34, 0xd0, 0x02, 0x64, 0x2e, 0x0c, 0x9e, 0x8c, 0xae, 0xc6, 0xac, 0x9b, 0x19, 0xc9, 0xba, + 0xe8, 0x1e, 0x14, 0x6d, 0x76, 0x6b, 0xb0, 0xbd, 0x37, 0x48, 0xcf, 0x95, 0xb2, 0xd5, 0xec, 0xa2, + 0xa8, 0xc4, 0x27, 0xe5, 0x65, 0x10, 0x77, 0x82, 0x09, 0x54, 0x86, 0xec, 0x09, 0xe9, 0x79, 0xe2, + 0x88, 0x0a, 0xfb, 0x45, 0xd3, 0x70, 0xe5, 0x2d, 0x36, 0x4e, 0x83, 0x50, 0xf5, 0x07, 0xf2, 0x8f, + 0x20, 0x86, 0xe2, 0x21, 0x09, 0xf2, 0xb6, 0x63, 0x7d, 0x4f, 0x78, 0xde, 0x16, 0x95, 0x60, 0x88, + 0x10, 0x8c, 0x47, 0xc2, 0xdc, 0xfb, 0x47, 0xb3, 0x90, 0x53, 0xad, 0x2e, 0xd6, 0xfd, 0x64, 0x26, + 0x2a, 0x7c, 0xc4, 0x50, 0xde, 0x12, 0x87, 0xdd, 0xff, 0xde, 0xb1, 0x13, 0x95, 0x60, 0xc8, 0x50, + 0xf6, 0xf7, 0xdb, 0x4d, 0xe9, 0x8a, 0x8f, 0xc2, 0xfe, 0xe5, 0x77, 0x19, 0x98, 0x08, 0x6e, 0x28, + 0x54, 0x0a, 0x6d, 0x28, 0x7a, 0xb6, 0x8a, 0x5c, 0xba, 0x99, 0xd1, 0x2e, 0xdd, 0xe0, 0xd2, 0xcc, + 0x8e, 0x74, 0x69, 0xc6, 0x9c, 0x31, 0x3e, 0x9a, 0x33, 0x9e, 0xb0, 0x5c, 0xc6, 0xcd, 0xec, 0x4a, + 0x57, 0xbc, 0x7d, 0x66, 0x13, 0xb9, 0x8c, 0x2f, 0x2b, 0x11, 0x4a, 0x74, 0x0f, 0xc6, 0x29, 0xd6, + 0x5c, 0x29, 0xe7, 0x71, 0x0c, 0x16, 0x2e, 0xde, 0x2a, 0x0b, 0xdb, 0x23, 0xaf, 0x10, 0x52, 0x59, + 0xd8, 0xe6, 0x2f, 0x0e, 0x5b, 0x4e, 0xdd, 0xa0, 0xf2, 0x0e, 0x4c, 0x46, 0x35, 0x0c, 0x7d, 0x26, + 0x44, 0x7c, 0xf6, 0x51, 0xf4, 0x10, 0x30, 0xb9, 0x83, 0x9a, 0xbf, 0xc6, 0x6a, 0xfe, 0xda, 0x4b, + 0xbf, 0xe6, 0x0f, 0x0e, 0x87, 0x01, 0xd9, 0x3d, 0xac, 0xa5, 0x02, 0xdd, 0x4e, 0x49, 0x6e, 0xb1, + 0xd4, 0x16, 0x71, 0x5d, 0x76, 0xb4, 0xc2, 0xfb, 0x27, 0x01, 0x26, 0x02, 0x7b, 0xa3, 0x67, 0x90, + 0x3f, 0x21, 0xbd, 0x4e, 0x17, 0xdb, 0x3c, 0xb1, 0xdf, 0x49, 0xf5, 0x4b, 0x6d, 0x83, 0xf4, 0x36, + 0xb1, 0xdd, 0x32, 0xa9, 0xd3, 0x53, 0x72, 0x27, 0xde, 0xa0, 0xf2, 0x14, 0x0a, 0x91, 0xe9, 0x51, + 0x43, 0xe1, 0x59, 0xe6, 0x13, 0x41, 0xde, 0x86, 0x72, 0xb2, 0x88, 0x41, 0xcf, 0x21, 0xef, 0x97, + 0x31, 0x6e, 0xaa, 0x28, 0xbb, 0xba, 0xa9, 0x19, 0x64, 0xc7, 0xb1, 0x6c, 0xe2, 0xd0, 0x9e, 0xcf, + 0xad, 0x04, 0x1c, 0xf2, 0x3f, 0x59, 0x98, 0x4e, 0xa3, 0x40, 0x5f, 0x00, 0xb0, 0xe4, 0x19, 0xab, + 0xa6, 0xe6, 0x93, 0x87, 0x22, 0xce, 0xb3, 0x3e, 0xa6, 0x88, 0x14, 0x6b, 0x1c, 0xe0, 0x15, 0x94, + 0xc3, 0xd3, 0xd5, 0x89, 0x15, 0xa4, 0xf7, 0xd2, 0x4f, 0xe3, 0x00, 0xd8, 0xd5, 0x90, 0x9f, 0x43, + 0x6e, 0xc1, 0xd5, 0xd0, 0xa9, 0x1c, 0xd1, 0xf7, 0xdd, 0xdd, 0xd4, 0x38, 0x1a, 0x00, 0x2c, 0x05, + 0xdc, 0x1c, 0x6f, 0x03, 0x4a, 0x41, 0x5d, 0xc1, 0xe1, 0xfc, 0x18, 0x93, 0xd3, 0x8e, 0xc2, 0x00, + 0x5a, 0x91, 0xf3, 0x72, 0xb0, 0x1d, 0x98, 0x60, 0x04, 0x98, 0x5a, 0x8e, 0x04, 0x55, 0x61, 0xb1, + 0xb4, 0xf4, 0xe8, 0x42, 0x3f, 0xd4, 0x56, 0xad, 0xae, 0x8d, 0x1d, 0xdd, 0x65, 0x65, 0xa5, 0xcf, + 0xab, 0x84, 0x28, 0x72, 0x15, 0xd0, 0xe0, 0x3a, 0x02, 0xc8, 0xb5, 0x5e, 0xed, 0x37, 0x5e, 0xee, + 0x96, 0xc7, 0x56, 0xa6, 0xe0, 0xaa, 0xcd, 0x01, 0xb9, 0x06, 0xf2, 0x1a, 0xcc, 0xa6, 0xeb, 0x9f, + 0xac, 0xf7, 0x84, 0xc1, 0x7a, 0x6f, 0x05, 0x60, 0x22, 0xc0, 0x93, 0x3f, 0x85, 0xa9, 0x01, 0x0f, + 0xc7, 0x0a, 0x42, 0x21, 0xd9, 0xca, 0x45, 0xb9, 0xbf, 0x85, 0xeb, 0x43, 0x1c, 0x8b, 0x1e, 0xf9, + 0xa1, 0xc3, 0x0a, 0x07, 0x81, 0x17, 0x0e, 0x51, 0x3b, 0x6d, 0x90, 0xde, 0x01, 0x3b, 0xef, 0x3b, + 0x58, 0x67, 0x56, 0x66, 0x41, 0x73, 0x80, 0x8d, 0x18, 0xf8, 0x13, 0x98, 0x8c, 0x52, 0x8d, 0x9c, + 0x4c, 0x7e, 0x15, 0x60, 0x26, 0xd5, 0x9b, 0xa8, 0x92, 0xc8, 0x2c, 0x4c, 0xad, 0x20, 0xb7, 0x4c, + 0x47, 0x73, 0xcb, 0xfa, 0x18, 0xbf, 0x60, 0xa4, 0x78, 0x76, 0x61, 0x92, 0xf2, 0xfc, 0x52, 0x49, + 0xe4, 0x17, 0x86, 0xc5, 0x27, 0x62, 0x5a, 0xfc, 0x9e, 0x81, 0xa9, 0x81, 0xb6, 0x82, 0x49, 0x6e, + 0xe8, 0x5d, 0xdd, 0x97, 0xa3, 0xa8, 0xf8, 0x03, 0x36, 0x1b, 0xed, 0x08, 0xfc, 0x01, 0xfa, 0x12, + 0xf2, 0xae, 0xe5, 0xd0, 0x0d, 0xd2, 0xf3, 0x84, 0x28, 0x2d, 0x2d, 0x9c, 0xdf, 0xb3, 0xd4, 0x76, + 0x7d, 0x6a, 0x25, 0x60, 0x43, 0x2f, 0x40, 0x64, 0xbf, 0xdb, 0x8e, 0xca, 0x0f, 0x7f, 0x69, 0x69, + 0x71, 0x04, 0x0c, 0x8f, 0x5e, 0xe9, 0xb3, 0xca, 0xf7, 0x41, 0x0c, 0xe7, 0x51, 0x09, 0xa0, 0xd9, + 0xda, 0x5d, 0x6d, 0x6d, 0x35, 0xdb, 0x5b, 0x6b, 0xe5, 0x31, 0x54, 0x04, 0xb1, 0x11, 0x0e, 0x05, + 0xf9, 0x26, 0xe4, 0xb9, 0x1c, 0x68, 0x0a, 0x8a, 0xab, 0x4a, 0xab, 0xb1, 0xd7, 0xde, 0xde, 0xea, + 0xec, 0xb5, 0x37, 0x5b, 0xe5, 0xb1, 0xa5, 0x9f, 0xf3, 0x50, 0x60, 0x3e, 0x5a, 0xf5, 0x05, 0x40, + 0x07, 0x50, 0x8c, 0x3d, 0xa7, 0xa0, 0xf8, 0xed, 0x96, 0xf6, 0x64, 0x53, 0x91, 0xcf, 0x23, 0xe1, + 0xf5, 0xde, 0x26, 0x40, 0xff, 0x19, 0x05, 0xc5, 0x6f, 0xb6, 0x81, 0x67, 0x9a, 0xca, 0xed, 0xa1, + 0xeb, 0x1c, 0xee, 0x6b, 0x28, 0xc5, 0x1f, 0x08, 0x50, 0x9a, 0x10, 0x89, 0xa6, 0xad, 0x72, 0xf7, + 0x5c, 0x1a, 0x0e, 0xbd, 0x03, 0x85, 0xc8, 0x8b, 0x08, 0x1a, 0x10, 0x25, 0x09, 0x5a, 0x1d, 0x4e, + 0xc0, 0x11, 0x1b, 0x90, 0xf3, 0x9f, 0x1f, 0x50, 0xbc, 0x08, 0x8d, 0x3d, 0x64, 0x54, 0x6e, 0xa4, + 0xae, 0x71, 0x88, 0x03, 0x28, 0xc6, 0xba, 0xfd, 0x84, 0x5b, 0xd2, 0x9e, 0x32, 0x12, 0x6e, 0x49, + 0x7f, 0x2c, 0xd8, 0x85, 0xc9, 0x68, 0x27, 0x8d, 0xaa, 0x03, 0x3c, 0x89, 0x96, 0xbf, 0x72, 0xe7, + 0x1c, 0x8a, 0xbe, 0x73, 0xe2, 0xad, 0x66, 0xc2, 0x39, 0xa9, 0x1d, 0x75, 0xc2, 0x39, 0xe9, 0xbd, + 0x2a, 0x7a, 0x03, 0xb3, 0xe9, 0x8d, 0x05, 0xba, 0x9f, 0x74, 0xc3, 0xf0, 0x66, 0xb3, 0xf2, 0xff, + 0x91, 0x68, 0xf9, 0x96, 0x04, 0xd0, 0x60, 0xc9, 0x8f, 0x16, 0x12, 0xed, 0xc4, 0x90, 0x76, 0xa4, + 0xf2, 0xbf, 0x0b, 0xe9, 0xfc, 0x6d, 0x56, 0x3e, 0xfb, 0xe6, 0xb9, 0xa6, 0xd3, 0xd7, 0xa7, 0x87, + 0xb5, 0x23, 0xab, 0x5b, 0xf7, 0xea, 0x30, 0xcb, 0xd1, 0xea, 0xe1, 0x23, 0xac, 0x46, 0xcc, 0xba, + 0x7d, 0xf8, 0x40, 0xb3, 0xea, 0x69, 0x8f, 0xb9, 0x87, 0x39, 0xaf, 0x18, 0x5c, 0xfe, 0x37, 0x00, + 0x00, 0xff, 0xff, 0x79, 0xd7, 0x0e, 0x85, 0xeb, 0x15, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2223,6 +2364,8 @@ type DataCatalogClient interface { ListArtifacts(ctx context.Context, in *ListArtifactsRequest, opts ...grpc.CallOption) (*ListArtifactsResponse, error) // Return a paginated list of datasets ListDatasets(ctx context.Context, in *ListDatasetsRequest, opts ...grpc.CallOption) (*ListDatasetsResponse, error) + // Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage. + UpdateArtifact(ctx context.Context, in *UpdateArtifactRequest, opts ...grpc.CallOption) (*UpdateArtifactResponse, error) // Attempts to get or extend a reservation for the corresponding artifact. If one already exists // (ie. another entity owns the reservation) then that reservation is retrieved. // Once you acquire a reservation, you need to periodically extend the reservation with an @@ -2311,6 +2454,15 @@ func (c *dataCatalogClient) ListDatasets(ctx context.Context, in *ListDatasetsRe return out, nil } +func (c *dataCatalogClient) UpdateArtifact(ctx context.Context, in *UpdateArtifactRequest, opts ...grpc.CallOption) (*UpdateArtifactResponse, error) { + out := new(UpdateArtifactResponse) + err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/UpdateArtifact", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *dataCatalogClient) GetOrExtendReservation(ctx context.Context, in *GetOrExtendReservationRequest, opts ...grpc.CallOption) (*GetOrExtendReservationResponse, error) { out := new(GetOrExtendReservationResponse) err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/GetOrExtendReservation", in, out, opts...) @@ -2347,6 +2499,8 @@ type DataCatalogServer interface { ListArtifacts(context.Context, *ListArtifactsRequest) (*ListArtifactsResponse, error) // Return a paginated list of datasets ListDatasets(context.Context, *ListDatasetsRequest) (*ListDatasetsResponse, error) + // Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage. + UpdateArtifact(context.Context, *UpdateArtifactRequest) (*UpdateArtifactResponse, error) // Attempts to get or extend a reservation for the corresponding artifact. If one already exists // (ie. another entity owns the reservation) then that reservation is retrieved. // Once you acquire a reservation, you need to periodically extend the reservation with an @@ -2389,6 +2543,9 @@ func (*UnimplementedDataCatalogServer) ListArtifacts(ctx context.Context, req *L func (*UnimplementedDataCatalogServer) ListDatasets(ctx context.Context, req *ListDatasetsRequest) (*ListDatasetsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListDatasets not implemented") } +func (*UnimplementedDataCatalogServer) UpdateArtifact(ctx context.Context, req *UpdateArtifactRequest) (*UpdateArtifactResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateArtifact not implemented") +} func (*UnimplementedDataCatalogServer) GetOrExtendReservation(ctx context.Context, req *GetOrExtendReservationRequest) (*GetOrExtendReservationResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetOrExtendReservation not implemented") } @@ -2526,6 +2683,24 @@ func _DataCatalog_ListDatasets_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _DataCatalog_UpdateArtifact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateArtifactRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataCatalogServer).UpdateArtifact(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/datacatalog.DataCatalog/UpdateArtifact", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataCatalogServer).UpdateArtifact(ctx, req.(*UpdateArtifactRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _DataCatalog_GetOrExtendReservation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetOrExtendReservationRequest) if err := dec(in); err != nil { @@ -2594,6 +2769,10 @@ var _DataCatalog_serviceDesc = grpc.ServiceDesc{ MethodName: "ListDatasets", Handler: _DataCatalog_ListDatasets_Handler, }, + { + MethodName: "UpdateArtifact", + Handler: _DataCatalog_UpdateArtifact_Handler, + }, { MethodName: "GetOrExtendReservation", Handler: _DataCatalog_GetOrExtendReservation_Handler, diff --git a/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.validate.go b/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.validate.go index 906ec758f..b5624596b 100644 --- a/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.validate.go +++ b/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.validate.go @@ -1134,6 +1134,175 @@ var _ interface { ErrorName() string } = ListDatasetsResponseValidationError{} +// Validate checks the field values on UpdateArtifactRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *UpdateArtifactRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetDataset()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return UpdateArtifactRequestValidationError{ + field: "Dataset", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetData() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return UpdateArtifactRequestValidationError{ + field: fmt.Sprintf("Data[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + switch m.QueryHandle.(type) { + + case *UpdateArtifactRequest_ArtifactId: + // no validation rules for ArtifactId + + case *UpdateArtifactRequest_TagName: + // no validation rules for TagName + + } + + return nil +} + +// UpdateArtifactRequestValidationError is the validation error returned by +// UpdateArtifactRequest.Validate if the designated constraints aren't met. +type UpdateArtifactRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e UpdateArtifactRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e UpdateArtifactRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e UpdateArtifactRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e UpdateArtifactRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e UpdateArtifactRequestValidationError) ErrorName() string { + return "UpdateArtifactRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e UpdateArtifactRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sUpdateArtifactRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = UpdateArtifactRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = UpdateArtifactRequestValidationError{} + +// Validate checks the field values on UpdateArtifactResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *UpdateArtifactResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// UpdateArtifactResponseValidationError is the validation error returned by +// UpdateArtifactResponse.Validate if the designated constraints aren't met. +type UpdateArtifactResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e UpdateArtifactResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e UpdateArtifactResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e UpdateArtifactResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e UpdateArtifactResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e UpdateArtifactResponseValidationError) ErrorName() string { + return "UpdateArtifactResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e UpdateArtifactResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sUpdateArtifactResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = UpdateArtifactResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = UpdateArtifactResponseValidationError{} + // Validate checks the field values on ReservationID with the rules defined in // the proto definition for this message. If any rules are violated, an error // is returned. diff --git a/gen/pb-java/datacatalog/Datacatalog.java b/gen/pb-java/datacatalog/Datacatalog.java index b29625e76..8181fc473 100644 --- a/gen/pb-java/datacatalog/Datacatalog.java +++ b/gen/pb-java/datacatalog/Datacatalog.java @@ -10239,6 +10239,2007 @@ public datacatalog.Datacatalog.ListDatasetsResponse getDefaultInstanceForType() } + public interface UpdateArtifactRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.UpdateArtifactRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * ID of dataset the artifact is associated with
+     * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + boolean hasDataset(); + /** + *
+     * ID of dataset the artifact is associated with
+     * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + datacatalog.Datacatalog.DatasetID getDataset(); + /** + *
+     * ID of dataset the artifact is associated with
+     * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder(); + + /** + * string artifact_id = 2; + */ + java.lang.String getArtifactId(); + /** + * string artifact_id = 2; + */ + com.google.protobuf.ByteString + getArtifactIdBytes(); + + /** + * string tag_name = 3; + */ + java.lang.String getTagName(); + /** + * string tag_name = 3; + */ + com.google.protobuf.ByteString + getTagNameBytes(); + + /** + *
+     * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+     * ArtifactData entries will be removed from the underlying blob storage and database.
+     * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + java.util.List + getDataList(); + /** + *
+     * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+     * ArtifactData entries will be removed from the underlying blob storage and database.
+     * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + datacatalog.Datacatalog.ArtifactData getData(int index); + /** + *
+     * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+     * ArtifactData entries will be removed from the underlying blob storage and database.
+     * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + int getDataCount(); + /** + *
+     * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+     * ArtifactData entries will be removed from the underlying blob storage and database.
+     * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + java.util.List + getDataOrBuilderList(); + /** + *
+     * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+     * ArtifactData entries will be removed from the underlying blob storage and database.
+     * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + datacatalog.Datacatalog.ArtifactDataOrBuilder getDataOrBuilder( + int index); + + public datacatalog.Datacatalog.UpdateArtifactRequest.QueryHandleCase getQueryHandleCase(); + } + /** + *
+   * Request message for updating an Artifact and overwriting its associated ArtifactData.
+   * 
+ * + * Protobuf type {@code datacatalog.UpdateArtifactRequest} + */ + public static final class UpdateArtifactRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.UpdateArtifactRequest) + UpdateArtifactRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateArtifactRequest.newBuilder() to construct. + private UpdateArtifactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateArtifactRequest() { + data_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UpdateArtifactRequest( + 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: { + datacatalog.Datacatalog.DatasetID.Builder subBuilder = null; + if (dataset_ != null) { + subBuilder = dataset_.toBuilder(); + } + dataset_ = input.readMessage(datacatalog.Datacatalog.DatasetID.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataset_); + dataset_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + queryHandleCase_ = 2; + queryHandle_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + queryHandleCase_ = 3; + queryHandle_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + data_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + data_.add( + input.readMessage(datacatalog.Datacatalog.ArtifactData.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_ & 0x00000008) != 0)) { + data_ = java.util.Collections.unmodifiableList(data_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_UpdateArtifactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_UpdateArtifactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.UpdateArtifactRequest.class, datacatalog.Datacatalog.UpdateArtifactRequest.Builder.class); + } + + private int bitField0_; + private int queryHandleCase_ = 0; + private java.lang.Object queryHandle_; + public enum QueryHandleCase + implements com.google.protobuf.Internal.EnumLite { + ARTIFACT_ID(2), + TAG_NAME(3), + QUERYHANDLE_NOT_SET(0); + private final int value; + private QueryHandleCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static QueryHandleCase valueOf(int value) { + return forNumber(value); + } + + public static QueryHandleCase forNumber(int value) { + switch (value) { + case 2: return ARTIFACT_ID; + case 3: return TAG_NAME; + case 0: return QUERYHANDLE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public QueryHandleCase + getQueryHandleCase() { + return QueryHandleCase.forNumber( + queryHandleCase_); + } + + public static final int DATASET_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.DatasetID dataset_; + /** + *
+     * ID of dataset the artifact is associated with
+     * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public boolean hasDataset() { + return dataset_ != null; + } + /** + *
+     * ID of dataset the artifact is associated with
+     * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetID getDataset() { + return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } + /** + *
+     * ID of dataset the artifact is associated with
+     * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { + return getDataset(); + } + + public static final int ARTIFACT_ID_FIELD_NUMBER = 2; + /** + * string artifact_id = 2; + */ + public java.lang.String getArtifactId() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 2) { + ref = queryHandle_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryHandleCase_ == 2) { + queryHandle_ = s; + } + return s; + } + } + /** + * string artifact_id = 2; + */ + public com.google.protobuf.ByteString + getArtifactIdBytes() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 2) { + ref = queryHandle_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (queryHandleCase_ == 2) { + queryHandle_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TAG_NAME_FIELD_NUMBER = 3; + /** + * string tag_name = 3; + */ + public java.lang.String getTagName() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 3) { + ref = queryHandle_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryHandleCase_ == 3) { + queryHandle_ = s; + } + return s; + } + } + /** + * string tag_name = 3; + */ + public com.google.protobuf.ByteString + getTagNameBytes() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 3) { + ref = queryHandle_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (queryHandleCase_ == 3) { + queryHandle_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_FIELD_NUMBER = 4; + private java.util.List data_; + /** + *
+     * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+     * ArtifactData entries will be removed from the underlying blob storage and database.
+     * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public java.util.List getDataList() { + return data_; + } + /** + *
+     * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+     * ArtifactData entries will be removed from the underlying blob storage and database.
+     * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public java.util.List + getDataOrBuilderList() { + return data_; + } + /** + *
+     * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+     * ArtifactData entries will be removed from the underlying blob storage and database.
+     * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public int getDataCount() { + return data_.size(); + } + /** + *
+     * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+     * ArtifactData entries will be removed from the underlying blob storage and database.
+     * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public datacatalog.Datacatalog.ArtifactData getData(int index) { + return data_.get(index); + } + /** + *
+     * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+     * ArtifactData entries will be removed from the underlying blob storage and database.
+     * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public datacatalog.Datacatalog.ArtifactDataOrBuilder getDataOrBuilder( + int index) { + return data_.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 { + if (dataset_ != null) { + output.writeMessage(1, getDataset()); + } + if (queryHandleCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, queryHandle_); + } + if (queryHandleCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, queryHandle_); + } + for (int i = 0; i < data_.size(); i++) { + output.writeMessage(4, data_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataset_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDataset()); + } + if (queryHandleCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, queryHandle_); + } + if (queryHandleCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, queryHandle_); + } + for (int i = 0; i < data_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, data_.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 datacatalog.Datacatalog.UpdateArtifactRequest)) { + return super.equals(obj); + } + datacatalog.Datacatalog.UpdateArtifactRequest other = (datacatalog.Datacatalog.UpdateArtifactRequest) obj; + + if (hasDataset() != other.hasDataset()) return false; + if (hasDataset()) { + if (!getDataset() + .equals(other.getDataset())) return false; + } + if (!getDataList() + .equals(other.getDataList())) return false; + if (!getQueryHandleCase().equals(other.getQueryHandleCase())) return false; + switch (queryHandleCase_) { + case 2: + if (!getArtifactId() + .equals(other.getArtifactId())) return false; + break; + case 3: + if (!getTagName() + .equals(other.getTagName())) return false; + break; + case 0: + default: + } + 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 (hasDataset()) { + hash = (37 * hash) + DATASET_FIELD_NUMBER; + hash = (53 * hash) + getDataset().hashCode(); + } + if (getDataCount() > 0) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getDataList().hashCode(); + } + switch (queryHandleCase_) { + case 2: + hash = (37 * hash) + ARTIFACT_ID_FIELD_NUMBER; + hash = (53 * hash) + getArtifactId().hashCode(); + break; + case 3: + hash = (37 * hash) + TAG_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTagName().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.UpdateArtifactRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.UpdateArtifactRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.UpdateArtifactRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.UpdateArtifactRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.UpdateArtifactRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.UpdateArtifactRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.UpdateArtifactRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.UpdateArtifactRequest 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 datacatalog.Datacatalog.UpdateArtifactRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.UpdateArtifactRequest 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 datacatalog.Datacatalog.UpdateArtifactRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.UpdateArtifactRequest 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(datacatalog.Datacatalog.UpdateArtifactRequest 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; + } + /** + *
+     * Request message for updating an Artifact and overwriting its associated ArtifactData.
+     * 
+ * + * Protobuf type {@code datacatalog.UpdateArtifactRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.UpdateArtifactRequest) + datacatalog.Datacatalog.UpdateArtifactRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_UpdateArtifactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_UpdateArtifactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.UpdateArtifactRequest.class, datacatalog.Datacatalog.UpdateArtifactRequest.Builder.class); + } + + // Construct using datacatalog.Datacatalog.UpdateArtifactRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDataFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (datasetBuilder_ == null) { + dataset_ = null; + } else { + dataset_ = null; + datasetBuilder_ = null; + } + if (dataBuilder_ == null) { + data_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + dataBuilder_.clear(); + } + queryHandleCase_ = 0; + queryHandle_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_UpdateArtifactRequest_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.UpdateArtifactRequest getDefaultInstanceForType() { + return datacatalog.Datacatalog.UpdateArtifactRequest.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.UpdateArtifactRequest build() { + datacatalog.Datacatalog.UpdateArtifactRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.UpdateArtifactRequest buildPartial() { + datacatalog.Datacatalog.UpdateArtifactRequest result = new datacatalog.Datacatalog.UpdateArtifactRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (datasetBuilder_ == null) { + result.dataset_ = dataset_; + } else { + result.dataset_ = datasetBuilder_.build(); + } + if (queryHandleCase_ == 2) { + result.queryHandle_ = queryHandle_; + } + if (queryHandleCase_ == 3) { + result.queryHandle_ = queryHandle_; + } + if (dataBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + data_ = java.util.Collections.unmodifiableList(data_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.data_ = data_; + } else { + result.data_ = dataBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + result.queryHandleCase_ = queryHandleCase_; + 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 datacatalog.Datacatalog.UpdateArtifactRequest) { + return mergeFrom((datacatalog.Datacatalog.UpdateArtifactRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.UpdateArtifactRequest other) { + if (other == datacatalog.Datacatalog.UpdateArtifactRequest.getDefaultInstance()) return this; + if (other.hasDataset()) { + mergeDataset(other.getDataset()); + } + if (dataBuilder_ == null) { + if (!other.data_.isEmpty()) { + if (data_.isEmpty()) { + data_ = other.data_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureDataIsMutable(); + data_.addAll(other.data_); + } + onChanged(); + } + } else { + if (!other.data_.isEmpty()) { + if (dataBuilder_.isEmpty()) { + dataBuilder_.dispose(); + dataBuilder_ = null; + data_ = other.data_; + bitField0_ = (bitField0_ & ~0x00000008); + dataBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDataFieldBuilder() : null; + } else { + dataBuilder_.addAllMessages(other.data_); + } + } + } + switch (other.getQueryHandleCase()) { + case ARTIFACT_ID: { + queryHandleCase_ = 2; + queryHandle_ = other.queryHandle_; + onChanged(); + break; + } + case TAG_NAME: { + queryHandleCase_ = 3; + queryHandle_ = other.queryHandle_; + onChanged(); + break; + } + case QUERYHANDLE_NOT_SET: { + break; + } + } + 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 { + datacatalog.Datacatalog.UpdateArtifactRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.UpdateArtifactRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int queryHandleCase_ = 0; + private java.lang.Object queryHandle_; + public QueryHandleCase + getQueryHandleCase() { + return QueryHandleCase.forNumber( + queryHandleCase_); + } + + public Builder clearQueryHandle() { + queryHandleCase_ = 0; + queryHandle_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private datacatalog.Datacatalog.DatasetID dataset_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> datasetBuilder_; + /** + *
+       * ID of dataset the artifact is associated with
+       * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public boolean hasDataset() { + return datasetBuilder_ != null || dataset_ != null; + } + /** + *
+       * ID of dataset the artifact is associated with
+       * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetID getDataset() { + if (datasetBuilder_ == null) { + return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } else { + return datasetBuilder_.getMessage(); + } + } + /** + *
+       * ID of dataset the artifact is associated with
+       * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public Builder setDataset(datacatalog.Datacatalog.DatasetID value) { + if (datasetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataset_ = value; + onChanged(); + } else { + datasetBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * ID of dataset the artifact is associated with
+       * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public Builder setDataset( + datacatalog.Datacatalog.DatasetID.Builder builderForValue) { + if (datasetBuilder_ == null) { + dataset_ = builderForValue.build(); + onChanged(); + } else { + datasetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * ID of dataset the artifact is associated with
+       * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public Builder mergeDataset(datacatalog.Datacatalog.DatasetID value) { + if (datasetBuilder_ == null) { + if (dataset_ != null) { + dataset_ = + datacatalog.Datacatalog.DatasetID.newBuilder(dataset_).mergeFrom(value).buildPartial(); + } else { + dataset_ = value; + } + onChanged(); + } else { + datasetBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * ID of dataset the artifact is associated with
+       * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public Builder clearDataset() { + if (datasetBuilder_ == null) { + dataset_ = null; + onChanged(); + } else { + dataset_ = null; + datasetBuilder_ = null; + } + + return this; + } + /** + *
+       * ID of dataset the artifact is associated with
+       * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetID.Builder getDatasetBuilder() { + + onChanged(); + return getDatasetFieldBuilder().getBuilder(); + } + /** + *
+       * ID of dataset the artifact is associated with
+       * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { + if (datasetBuilder_ != null) { + return datasetBuilder_.getMessageOrBuilder(); + } else { + return dataset_ == null ? + datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } + } + /** + *
+       * ID of dataset the artifact is associated with
+       * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> + getDatasetFieldBuilder() { + if (datasetBuilder_ == null) { + datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder>( + getDataset(), + getParentForChildren(), + isClean()); + dataset_ = null; + } + return datasetBuilder_; + } + + /** + * string artifact_id = 2; + */ + public java.lang.String getArtifactId() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 2) { + ref = queryHandle_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryHandleCase_ == 2) { + queryHandle_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string artifact_id = 2; + */ + public com.google.protobuf.ByteString + getArtifactIdBytes() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 2) { + ref = queryHandle_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (queryHandleCase_ == 2) { + queryHandle_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string artifact_id = 2; + */ + public Builder setArtifactId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + queryHandleCase_ = 2; + queryHandle_ = value; + onChanged(); + return this; + } + /** + * string artifact_id = 2; + */ + public Builder clearArtifactId() { + if (queryHandleCase_ == 2) { + queryHandleCase_ = 0; + queryHandle_ = null; + onChanged(); + } + return this; + } + /** + * string artifact_id = 2; + */ + public Builder setArtifactIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryHandleCase_ = 2; + queryHandle_ = value; + onChanged(); + return this; + } + + /** + * string tag_name = 3; + */ + public java.lang.String getTagName() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 3) { + ref = queryHandle_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryHandleCase_ == 3) { + queryHandle_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string tag_name = 3; + */ + public com.google.protobuf.ByteString + getTagNameBytes() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 3) { + ref = queryHandle_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (queryHandleCase_ == 3) { + queryHandle_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string tag_name = 3; + */ + public Builder setTagName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + queryHandleCase_ = 3; + queryHandle_ = value; + onChanged(); + return this; + } + /** + * string tag_name = 3; + */ + public Builder clearTagName() { + if (queryHandleCase_ == 3) { + queryHandleCase_ = 0; + queryHandle_ = null; + onChanged(); + } + return this; + } + /** + * string tag_name = 3; + */ + public Builder setTagNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryHandleCase_ = 3; + queryHandle_ = value; + onChanged(); + return this; + } + + private java.util.List data_ = + java.util.Collections.emptyList(); + private void ensureDataIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + data_ = new java.util.ArrayList(data_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.ArtifactData, datacatalog.Datacatalog.ArtifactData.Builder, datacatalog.Datacatalog.ArtifactDataOrBuilder> dataBuilder_; + + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public java.util.List getDataList() { + if (dataBuilder_ == null) { + return java.util.Collections.unmodifiableList(data_); + } else { + return dataBuilder_.getMessageList(); + } + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public int getDataCount() { + if (dataBuilder_ == null) { + return data_.size(); + } else { + return dataBuilder_.getCount(); + } + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public datacatalog.Datacatalog.ArtifactData getData(int index) { + if (dataBuilder_ == null) { + return data_.get(index); + } else { + return dataBuilder_.getMessage(index); + } + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public Builder setData( + int index, datacatalog.Datacatalog.ArtifactData value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataIsMutable(); + data_.set(index, value); + onChanged(); + } else { + dataBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public Builder setData( + int index, datacatalog.Datacatalog.ArtifactData.Builder builderForValue) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.set(index, builderForValue.build()); + onChanged(); + } else { + dataBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public Builder addData(datacatalog.Datacatalog.ArtifactData value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataIsMutable(); + data_.add(value); + onChanged(); + } else { + dataBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public Builder addData( + int index, datacatalog.Datacatalog.ArtifactData value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataIsMutable(); + data_.add(index, value); + onChanged(); + } else { + dataBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public Builder addData( + datacatalog.Datacatalog.ArtifactData.Builder builderForValue) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.add(builderForValue.build()); + onChanged(); + } else { + dataBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public Builder addData( + int index, datacatalog.Datacatalog.ArtifactData.Builder builderForValue) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.add(index, builderForValue.build()); + onChanged(); + } else { + dataBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public Builder addAllData( + java.lang.Iterable values) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, data_); + onChanged(); + } else { + dataBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public Builder clearData() { + if (dataBuilder_ == null) { + data_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + dataBuilder_.clear(); + } + return this; + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public Builder removeData(int index) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.remove(index); + onChanged(); + } else { + dataBuilder_.remove(index); + } + return this; + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public datacatalog.Datacatalog.ArtifactData.Builder getDataBuilder( + int index) { + return getDataFieldBuilder().getBuilder(index); + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public datacatalog.Datacatalog.ArtifactDataOrBuilder getDataOrBuilder( + int index) { + if (dataBuilder_ == null) { + return data_.get(index); } else { + return dataBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public java.util.List + getDataOrBuilderList() { + if (dataBuilder_ != null) { + return dataBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(data_); + } + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public datacatalog.Datacatalog.ArtifactData.Builder addDataBuilder() { + return getDataFieldBuilder().addBuilder( + datacatalog.Datacatalog.ArtifactData.getDefaultInstance()); + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public datacatalog.Datacatalog.ArtifactData.Builder addDataBuilder( + int index) { + return getDataFieldBuilder().addBuilder( + index, datacatalog.Datacatalog.ArtifactData.getDefaultInstance()); + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public java.util.List + getDataBuilderList() { + return getDataFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.ArtifactData, datacatalog.Datacatalog.ArtifactData.Builder, datacatalog.Datacatalog.ArtifactDataOrBuilder> + getDataFieldBuilder() { + if (dataBuilder_ == null) { + dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.ArtifactData, datacatalog.Datacatalog.ArtifactData.Builder, datacatalog.Datacatalog.ArtifactDataOrBuilder>( + data_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + data_ = null; + } + return dataBuilder_; + } + @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:datacatalog.UpdateArtifactRequest) + } + + // @@protoc_insertion_point(class_scope:datacatalog.UpdateArtifactRequest) + private static final datacatalog.Datacatalog.UpdateArtifactRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.UpdateArtifactRequest(); + } + + public static datacatalog.Datacatalog.UpdateArtifactRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateArtifactRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateArtifactRequest(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 datacatalog.Datacatalog.UpdateArtifactRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateArtifactResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.UpdateArtifactResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Response message for updating an Artifact.
+   * 
+ * + * Protobuf type {@code datacatalog.UpdateArtifactResponse} + */ + public static final class UpdateArtifactResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.UpdateArtifactResponse) + UpdateArtifactResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateArtifactResponse.newBuilder() to construct. + private UpdateArtifactResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateArtifactResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UpdateArtifactResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_UpdateArtifactResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_UpdateArtifactResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.UpdateArtifactResponse.class, datacatalog.Datacatalog.UpdateArtifactResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.UpdateArtifactResponse)) { + return super.equals(obj); + } + datacatalog.Datacatalog.UpdateArtifactResponse other = (datacatalog.Datacatalog.UpdateArtifactResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.UpdateArtifactResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.UpdateArtifactResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.UpdateArtifactResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.UpdateArtifactResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.UpdateArtifactResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.UpdateArtifactResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.UpdateArtifactResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.UpdateArtifactResponse 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 datacatalog.Datacatalog.UpdateArtifactResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.UpdateArtifactResponse 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 datacatalog.Datacatalog.UpdateArtifactResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.UpdateArtifactResponse 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(datacatalog.Datacatalog.UpdateArtifactResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Response message for updating an Artifact.
+     * 
+ * + * Protobuf type {@code datacatalog.UpdateArtifactResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.UpdateArtifactResponse) + datacatalog.Datacatalog.UpdateArtifactResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_UpdateArtifactResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_UpdateArtifactResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.UpdateArtifactResponse.class, datacatalog.Datacatalog.UpdateArtifactResponse.Builder.class); + } + + // Construct using datacatalog.Datacatalog.UpdateArtifactResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_UpdateArtifactResponse_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.UpdateArtifactResponse getDefaultInstanceForType() { + return datacatalog.Datacatalog.UpdateArtifactResponse.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.UpdateArtifactResponse build() { + datacatalog.Datacatalog.UpdateArtifactResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.UpdateArtifactResponse buildPartial() { + datacatalog.Datacatalog.UpdateArtifactResponse result = new datacatalog.Datacatalog.UpdateArtifactResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.UpdateArtifactResponse) { + return mergeFrom((datacatalog.Datacatalog.UpdateArtifactResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.UpdateArtifactResponse other) { + if (other == datacatalog.Datacatalog.UpdateArtifactResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.UpdateArtifactResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.UpdateArtifactResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.UpdateArtifactResponse) + } + + // @@protoc_insertion_point(class_scope:datacatalog.UpdateArtifactResponse) + private static final datacatalog.Datacatalog.UpdateArtifactResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.UpdateArtifactResponse(); + } + + public static datacatalog.Datacatalog.UpdateArtifactResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateArtifactResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateArtifactResponse(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 datacatalog.Datacatalog.UpdateArtifactResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + public interface ReservationIDOrBuilder extends // @@protoc_insertion_point(interface_extends:datacatalog.ReservationID) com.google.protobuf.MessageOrBuilder { @@ -30751,6 +32752,16 @@ public datacatalog.Datacatalog.PaginationOptions getDefaultInstanceForType() { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datacatalog_ListDatasetsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_UpdateArtifactRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_UpdateArtifactRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_UpdateArtifactResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_UpdateArtifactResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_datacatalog_ReservationID_descriptor; private static final @@ -30899,92 +32910,99 @@ public datacatalog.Datacatalog.PaginationOptions getDefaultInstanceForType() { "\002 \001(\0132\036.datacatalog.PaginationOptions\"R\n" + "\024ListDatasetsResponse\022&\n\010datasets\030\001 \003(\0132" + "\024.datacatalog.Dataset\022\022\n\nnext_token\030\002 \001(" + - "\t\"M\n\rReservationID\022*\n\ndataset_id\030\001 \001(\0132\026" + - ".datacatalog.DatasetID\022\020\n\010tag_name\030\002 \001(\t" + - "\"\234\001\n\035GetOrExtendReservationRequest\0222\n\016re" + - "servation_id\030\001 \001(\0132\032.datacatalog.Reserva" + - "tionID\022\020\n\010owner_id\030\002 \001(\t\0225\n\022heartbeat_in" + - "terval\030\003 \001(\0132\031.google.protobuf.Duration\"" + - "\343\001\n\013Reservation\0222\n\016reservation_id\030\001 \001(\0132" + - "\032.datacatalog.ReservationID\022\020\n\010owner_id\030" + - "\002 \001(\t\0225\n\022heartbeat_interval\030\003 \001(\0132\031.goog" + - "le.protobuf.Duration\022.\n\nexpires_at\030\004 \001(\013" + - "2\032.google.protobuf.Timestamp\022\'\n\010metadata" + - "\030\006 \001(\0132\025.datacatalog.Metadata\"O\n\036GetOrEx" + - "tendReservationResponse\022-\n\013reservation\030\001" + - " \001(\0132\030.datacatalog.Reservation\"a\n\031Releas" + - "eReservationRequest\0222\n\016reservation_id\030\001 " + - "\001(\0132\032.datacatalog.ReservationID\022\020\n\010owner" + - "_id\030\002 \001(\t\"\034\n\032ReleaseReservationResponse\"" + - "m\n\007Dataset\022\"\n\002id\030\001 \001(\0132\026.datacatalog.Dat" + - "asetID\022\'\n\010metadata\030\002 \001(\0132\025.datacatalog.M" + - "etadata\022\025\n\rpartitionKeys\030\003 \003(\t\"\'\n\tPartit" + - "ion\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"Y\n\tDatas" + - "etID\022\017\n\007project\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\016\n\006d" + - "omain\030\003 \001(\t\022\017\n\007version\030\004 \001(\t\022\014\n\004UUID\030\005 \001" + - "(\t\"\215\002\n\010Artifact\022\n\n\002id\030\001 \001(\t\022\'\n\007dataset\030\002" + - " \001(\0132\026.datacatalog.DatasetID\022\'\n\004data\030\003 \003" + - "(\0132\031.datacatalog.ArtifactData\022\'\n\010metadat" + - "a\030\004 \001(\0132\025.datacatalog.Metadata\022*\n\npartit" + - "ions\030\005 \003(\0132\026.datacatalog.Partition\022\036\n\004ta" + - "gs\030\006 \003(\0132\020.datacatalog.Tag\022.\n\ncreated_at" + - "\030\007 \001(\0132\032.google.protobuf.Timestamp\"C\n\014Ar" + - "tifactData\022\014\n\004name\030\001 \001(\t\022%\n\005value\030\002 \001(\0132" + - "\026.flyteidl.core.Literal\"Q\n\003Tag\022\014\n\004name\030\001" + - " \001(\t\022\023\n\013artifact_id\030\002 \001(\t\022\'\n\007dataset\030\003 \001" + - "(\0132\026.datacatalog.DatasetID\"m\n\010Metadata\0222" + - "\n\007key_map\030\001 \003(\0132!.datacatalog.Metadata.K" + - "eyMapEntry\032-\n\013KeyMapEntry\022\013\n\003key\030\001 \001(\t\022\r" + - "\n\005value\030\002 \001(\t:\0028\001\"F\n\020FilterExpression\0222\n" + - "\007filters\030\001 \003(\0132!.datacatalog.SinglePrope" + - "rtyFilter\"\211\003\n\024SinglePropertyFilter\0224\n\nta" + - "g_filter\030\001 \001(\0132\036.datacatalog.TagProperty" + - "FilterH\000\022@\n\020partition_filter\030\002 \001(\0132$.dat" + - "acatalog.PartitionPropertyFilterH\000\022>\n\017ar" + - "tifact_filter\030\003 \001(\0132#.datacatalog.Artifa" + - "ctPropertyFilterH\000\022<\n\016dataset_filter\030\004 \001" + - "(\0132\".datacatalog.DatasetPropertyFilterH\000" + - "\022F\n\010operator\030\n \001(\01624.datacatalog.SingleP" + - "ropertyFilter.ComparisonOperator\" \n\022Comp" + - "arisonOperator\022\n\n\006EQUALS\020\000B\021\n\017property_f" + - "ilter\";\n\026ArtifactPropertyFilter\022\025\n\013artif" + - "act_id\030\001 \001(\tH\000B\n\n\010property\"3\n\021TagPropert" + - "yFilter\022\022\n\010tag_name\030\001 \001(\tH\000B\n\n\010property\"" + - "S\n\027PartitionPropertyFilter\022,\n\007key_val\030\001 " + - "\001(\0132\031.datacatalog.KeyValuePairH\000B\n\n\010prop" + - "erty\"*\n\014KeyValuePair\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + - "ue\030\002 \001(\t\"k\n\025DatasetPropertyFilter\022\021\n\007pro" + - "ject\030\001 \001(\tH\000\022\016\n\004name\030\002 \001(\tH\000\022\020\n\006domain\030\003" + - " \001(\tH\000\022\021\n\007version\030\004 \001(\tH\000B\n\n\010property\"\361\001" + - "\n\021PaginationOptions\022\r\n\005limit\030\001 \001(\r\022\r\n\005to" + - "ken\030\002 \001(\t\0227\n\007sortKey\030\003 \001(\0162&.datacatalog" + - ".PaginationOptions.SortKey\022;\n\tsortOrder\030" + - "\004 \001(\0162(.datacatalog.PaginationOptions.So" + - "rtOrder\"*\n\tSortOrder\022\016\n\nDESCENDING\020\000\022\r\n\t" + - "ASCENDING\020\001\"\034\n\007SortKey\022\021\n\rCREATION_TIME\020" + - "\0002\253\006\n\013DataCatalog\022V\n\rCreateDataset\022!.dat" + - "acatalog.CreateDatasetRequest\032\".datacata" + - "log.CreateDatasetResponse\022M\n\nGetDataset\022" + - "\036.datacatalog.GetDatasetRequest\032\037.dataca" + - "talog.GetDatasetResponse\022Y\n\016CreateArtifa" + - "ct\022\".datacatalog.CreateArtifactRequest\032#" + - ".datacatalog.CreateArtifactResponse\022P\n\013G" + - "etArtifact\022\037.datacatalog.GetArtifactRequ" + - "est\032 .datacatalog.GetArtifactResponse\022A\n" + - "\006AddTag\022\032.datacatalog.AddTagRequest\032\033.da" + - "tacatalog.AddTagResponse\022V\n\rListArtifact" + - "s\022!.datacatalog.ListArtifactsRequest\032\".d" + - "atacatalog.ListArtifactsResponse\022S\n\014List" + - "Datasets\022 .datacatalog.ListDatasetsReque" + - "st\032!.datacatalog.ListDatasetsResponse\022q\n" + - "\026GetOrExtendReservation\022*.datacatalog.Ge" + - "tOrExtendReservationRequest\032+.datacatalo" + - "g.GetOrExtendReservationResponse\022e\n\022Rele" + - "aseReservation\022&.datacatalog.ReleaseRese" + - "rvationRequest\032\'.datacatalog.ReleaseRese" + - "rvationResponseB=Z;github.com/flyteorg/f" + - "lyteidl/gen/pb-go/flyteidl/datacatalogb\006" + - "proto3" + "\t\"\244\001\n\025UpdateArtifactRequest\022\'\n\007dataset\030\001" + + " \001(\0132\026.datacatalog.DatasetID\022\025\n\013artifact" + + "_id\030\002 \001(\tH\000\022\022\n\010tag_name\030\003 \001(\tH\000\022\'\n\004data\030" + + "\004 \003(\0132\031.datacatalog.ArtifactDataB\016\n\014quer" + + "y_handle\"\030\n\026UpdateArtifactResponse\"M\n\rRe" + + "servationID\022*\n\ndataset_id\030\001 \001(\0132\026.dataca" + + "talog.DatasetID\022\020\n\010tag_name\030\002 \001(\t\"\234\001\n\035Ge" + + "tOrExtendReservationRequest\0222\n\016reservati" + + "on_id\030\001 \001(\0132\032.datacatalog.ReservationID\022" + + "\020\n\010owner_id\030\002 \001(\t\0225\n\022heartbeat_interval\030" + + "\003 \001(\0132\031.google.protobuf.Duration\"\343\001\n\013Res" + + "ervation\0222\n\016reservation_id\030\001 \001(\0132\032.datac" + + "atalog.ReservationID\022\020\n\010owner_id\030\002 \001(\t\0225" + + "\n\022heartbeat_interval\030\003 \001(\0132\031.google.prot" + + "obuf.Duration\022.\n\nexpires_at\030\004 \001(\0132\032.goog" + + "le.protobuf.Timestamp\022\'\n\010metadata\030\006 \001(\0132" + + "\025.datacatalog.Metadata\"O\n\036GetOrExtendRes" + + "ervationResponse\022-\n\013reservation\030\001 \001(\0132\030." + + "datacatalog.Reservation\"a\n\031ReleaseReserv" + + "ationRequest\0222\n\016reservation_id\030\001 \001(\0132\032.d" + + "atacatalog.ReservationID\022\020\n\010owner_id\030\002 \001" + + "(\t\"\034\n\032ReleaseReservationResponse\"m\n\007Data" + + "set\022\"\n\002id\030\001 \001(\0132\026.datacatalog.DatasetID\022" + + "\'\n\010metadata\030\002 \001(\0132\025.datacatalog.Metadata" + + "\022\025\n\rpartitionKeys\030\003 \003(\t\"\'\n\tPartition\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"Y\n\tDatasetID\022\017\n" + + "\007project\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\016\n\006domain\030\003" + + " \001(\t\022\017\n\007version\030\004 \001(\t\022\014\n\004UUID\030\005 \001(\t\"\215\002\n\010" + + "Artifact\022\n\n\002id\030\001 \001(\t\022\'\n\007dataset\030\002 \001(\0132\026." + + "datacatalog.DatasetID\022\'\n\004data\030\003 \003(\0132\031.da" + + "tacatalog.ArtifactData\022\'\n\010metadata\030\004 \001(\013" + + "2\025.datacatalog.Metadata\022*\n\npartitions\030\005 " + + "\003(\0132\026.datacatalog.Partition\022\036\n\004tags\030\006 \003(" + + "\0132\020.datacatalog.Tag\022.\n\ncreated_at\030\007 \001(\0132" + + "\032.google.protobuf.Timestamp\"C\n\014ArtifactD" + + "ata\022\014\n\004name\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.flyte" + + "idl.core.Literal\"Q\n\003Tag\022\014\n\004name\030\001 \001(\t\022\023\n" + + "\013artifact_id\030\002 \001(\t\022\'\n\007dataset\030\003 \001(\0132\026.da" + + "tacatalog.DatasetID\"m\n\010Metadata\0222\n\007key_m" + + "ap\030\001 \003(\0132!.datacatalog.Metadata.KeyMapEn" + + "try\032-\n\013KeyMapEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\030\002 \001(\t:\0028\001\"F\n\020FilterExpression\0222\n\007filter" + + "s\030\001 \003(\0132!.datacatalog.SinglePropertyFilt" + + "er\"\211\003\n\024SinglePropertyFilter\0224\n\ntag_filte" + + "r\030\001 \001(\0132\036.datacatalog.TagPropertyFilterH" + + "\000\022@\n\020partition_filter\030\002 \001(\0132$.datacatalo" + + "g.PartitionPropertyFilterH\000\022>\n\017artifact_" + + "filter\030\003 \001(\0132#.datacatalog.ArtifactPrope" + + "rtyFilterH\000\022<\n\016dataset_filter\030\004 \001(\0132\".da" + + "tacatalog.DatasetPropertyFilterH\000\022F\n\010ope" + + "rator\030\n \001(\01624.datacatalog.SingleProperty" + + "Filter.ComparisonOperator\" \n\022ComparisonO" + + "perator\022\n\n\006EQUALS\020\000B\021\n\017property_filter\";" + + "\n\026ArtifactPropertyFilter\022\025\n\013artifact_id\030" + + "\001 \001(\tH\000B\n\n\010property\"3\n\021TagPropertyFilter" + + "\022\022\n\010tag_name\030\001 \001(\tH\000B\n\n\010property\"S\n\027Part" + + "itionPropertyFilter\022,\n\007key_val\030\001 \001(\0132\031.d" + + "atacatalog.KeyValuePairH\000B\n\n\010property\"*\n" + + "\014KeyValuePair\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t\"k\n\025DatasetPropertyFilter\022\021\n\007project\030\001 " + + "\001(\tH\000\022\016\n\004name\030\002 \001(\tH\000\022\020\n\006domain\030\003 \001(\tH\000\022" + + "\021\n\007version\030\004 \001(\tH\000B\n\n\010property\"\361\001\n\021Pagin" + + "ationOptions\022\r\n\005limit\030\001 \001(\r\022\r\n\005token\030\002 \001" + + "(\t\0227\n\007sortKey\030\003 \001(\0162&.datacatalog.Pagina" + + "tionOptions.SortKey\022;\n\tsortOrder\030\004 \001(\0162(" + + ".datacatalog.PaginationOptions.SortOrder" + + "\"*\n\tSortOrder\022\016\n\nDESCENDING\020\000\022\r\n\tASCENDI" + + "NG\020\001\"\034\n\007SortKey\022\021\n\rCREATION_TIME\020\0002\206\007\n\013D" + + "ataCatalog\022V\n\rCreateDataset\022!.datacatalo" + + "g.CreateDatasetRequest\032\".datacatalog.Cre" + + "ateDatasetResponse\022M\n\nGetDataset\022\036.datac" + + "atalog.GetDatasetRequest\032\037.datacatalog.G" + + "etDatasetResponse\022Y\n\016CreateArtifact\022\".da" + + "tacatalog.CreateArtifactRequest\032#.dataca" + + "talog.CreateArtifactResponse\022P\n\013GetArtif" + + "act\022\037.datacatalog.GetArtifactRequest\032 .d" + + "atacatalog.GetArtifactResponse\022A\n\006AddTag" + + "\022\032.datacatalog.AddTagRequest\032\033.datacatal" + + "og.AddTagResponse\022V\n\rListArtifacts\022!.dat" + + "acatalog.ListArtifactsRequest\032\".datacata" + + "log.ListArtifactsResponse\022S\n\014ListDataset" + + "s\022 .datacatalog.ListDatasetsRequest\032!.da" + + "tacatalog.ListDatasetsResponse\022Y\n\016Update" + + "Artifact\022\".datacatalog.UpdateArtifactReq" + + "uest\032#.datacatalog.UpdateArtifactRespons" + + "e\022q\n\026GetOrExtendReservation\022*.datacatalo" + + "g.GetOrExtendReservationRequest\032+.dataca" + + "talog.GetOrExtendReservationResponse\022e\n\022" + + "ReleaseReservation\022&.datacatalog.Release" + + "ReservationRequest\032\'.datacatalog.Release" + + "ReservationResponseB=Z;github.com/flyteo" + + "rg/flyteidl/gen/pb-go/flyteidl/datacatal" + + "ogb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -31085,80 +33103,92 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_ListDatasetsResponse_descriptor, new java.lang.String[] { "Datasets", "NextToken", }); - internal_static_datacatalog_ReservationID_descriptor = + internal_static_datacatalog_UpdateArtifactRequest_descriptor = getDescriptor().getMessageTypes().get(14); + internal_static_datacatalog_UpdateArtifactRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_UpdateArtifactRequest_descriptor, + new java.lang.String[] { "Dataset", "ArtifactId", "TagName", "Data", "QueryHandle", }); + internal_static_datacatalog_UpdateArtifactResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_datacatalog_UpdateArtifactResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_UpdateArtifactResponse_descriptor, + new java.lang.String[] { }); + internal_static_datacatalog_ReservationID_descriptor = + getDescriptor().getMessageTypes().get(16); internal_static_datacatalog_ReservationID_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_ReservationID_descriptor, new java.lang.String[] { "DatasetId", "TagName", }); internal_static_datacatalog_GetOrExtendReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_datacatalog_GetOrExtendReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_GetOrExtendReservationRequest_descriptor, new java.lang.String[] { "ReservationId", "OwnerId", "HeartbeatInterval", }); internal_static_datacatalog_Reservation_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_datacatalog_Reservation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_Reservation_descriptor, new java.lang.String[] { "ReservationId", "OwnerId", "HeartbeatInterval", "ExpiresAt", "Metadata", }); internal_static_datacatalog_GetOrExtendReservationResponse_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_datacatalog_GetOrExtendReservationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_GetOrExtendReservationResponse_descriptor, new java.lang.String[] { "Reservation", }); internal_static_datacatalog_ReleaseReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(20); internal_static_datacatalog_ReleaseReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_ReleaseReservationRequest_descriptor, new java.lang.String[] { "ReservationId", "OwnerId", }); internal_static_datacatalog_ReleaseReservationResponse_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(21); internal_static_datacatalog_ReleaseReservationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_ReleaseReservationResponse_descriptor, new java.lang.String[] { }); internal_static_datacatalog_Dataset_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(22); internal_static_datacatalog_Dataset_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_Dataset_descriptor, new java.lang.String[] { "Id", "Metadata", "PartitionKeys", }); internal_static_datacatalog_Partition_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(23); internal_static_datacatalog_Partition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_Partition_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_datacatalog_DatasetID_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(24); internal_static_datacatalog_DatasetID_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_DatasetID_descriptor, new java.lang.String[] { "Project", "Name", "Domain", "Version", "UUID", }); internal_static_datacatalog_Artifact_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(25); internal_static_datacatalog_Artifact_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_Artifact_descriptor, new java.lang.String[] { "Id", "Dataset", "Data", "Metadata", "Partitions", "Tags", "CreatedAt", }); internal_static_datacatalog_ArtifactData_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(26); internal_static_datacatalog_ArtifactData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_ArtifactData_descriptor, new java.lang.String[] { "Name", "Value", }); internal_static_datacatalog_Tag_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(27); internal_static_datacatalog_Tag_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_Tag_descriptor, new java.lang.String[] { "Name", "ArtifactId", "Dataset", }); internal_static_datacatalog_Metadata_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(28); internal_static_datacatalog_Metadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_Metadata_descriptor, @@ -31170,49 +33200,49 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_datacatalog_Metadata_KeyMapEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_datacatalog_FilterExpression_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(29); internal_static_datacatalog_FilterExpression_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_FilterExpression_descriptor, new java.lang.String[] { "Filters", }); internal_static_datacatalog_SinglePropertyFilter_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(30); internal_static_datacatalog_SinglePropertyFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_SinglePropertyFilter_descriptor, new java.lang.String[] { "TagFilter", "PartitionFilter", "ArtifactFilter", "DatasetFilter", "Operator", "PropertyFilter", }); internal_static_datacatalog_ArtifactPropertyFilter_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(31); internal_static_datacatalog_ArtifactPropertyFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_ArtifactPropertyFilter_descriptor, new java.lang.String[] { "ArtifactId", "Property", }); internal_static_datacatalog_TagPropertyFilter_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(32); internal_static_datacatalog_TagPropertyFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_TagPropertyFilter_descriptor, new java.lang.String[] { "TagName", "Property", }); internal_static_datacatalog_PartitionPropertyFilter_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(33); internal_static_datacatalog_PartitionPropertyFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_PartitionPropertyFilter_descriptor, new java.lang.String[] { "KeyVal", "Property", }); internal_static_datacatalog_KeyValuePair_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(34); internal_static_datacatalog_KeyValuePair_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_KeyValuePair_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_datacatalog_DatasetPropertyFilter_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(35); internal_static_datacatalog_DatasetPropertyFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_DatasetPropertyFilter_descriptor, new java.lang.String[] { "Project", "Name", "Domain", "Version", "Property", }); internal_static_datacatalog_PaginationOptions_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(36); internal_static_datacatalog_PaginationOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_PaginationOptions_descriptor, diff --git a/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py b/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py index 3df5071f9..cb10072c1 100644 --- a/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py +++ b/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py @@ -23,7 +23,7 @@ package='datacatalog', syntax='proto3', serialized_options=_b('Z;github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/datacatalog'), - serialized_pb=_b('\n&flyteidl/datacatalog/datacatalog.proto\x12\x0b\x64\x61tacatalog\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"=\n\x14\x43reateDatasetRequest\x12%\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x14.datacatalog.Dataset\"\x17\n\x15\x43reateDatasetResponse\"<\n\x11GetDatasetRequest\x12\'\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetID\";\n\x12GetDatasetResponse\x12%\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x14.datacatalog.Dataset\"x\n\x12GetArtifactRequest\x12\'\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetID\x12\x15\n\x0b\x61rtifact_id\x18\x02 \x01(\tH\x00\x12\x12\n\x08tag_name\x18\x03 \x01(\tH\x00\x42\x0e\n\x0cquery_handle\">\n\x13GetArtifactResponse\x12\'\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x15.datacatalog.Artifact\"@\n\x15\x43reateArtifactRequest\x12\'\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x15.datacatalog.Artifact\"\x18\n\x16\x43reateArtifactResponse\".\n\rAddTagRequest\x12\x1d\n\x03tag\x18\x01 \x01(\x0b\x32\x10.datacatalog.Tag\"\x10\n\x0e\x41\x64\x64TagResponse\"\xa2\x01\n\x14ListArtifactsRequest\x12\'\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetID\x12-\n\x06\x66ilter\x18\x02 \x01(\x0b\x32\x1d.datacatalog.FilterExpression\x12\x32\n\npagination\x18\x03 \x01(\x0b\x32\x1e.datacatalog.PaginationOptions\"U\n\x15ListArtifactsResponse\x12(\n\tartifacts\x18\x01 \x03(\x0b\x32\x15.datacatalog.Artifact\x12\x12\n\nnext_token\x18\x02 \x01(\t\"x\n\x13ListDatasetsRequest\x12-\n\x06\x66ilter\x18\x01 \x01(\x0b\x32\x1d.datacatalog.FilterExpression\x12\x32\n\npagination\x18\x02 \x01(\x0b\x32\x1e.datacatalog.PaginationOptions\"R\n\x14ListDatasetsResponse\x12&\n\x08\x64\x61tasets\x18\x01 \x03(\x0b\x32\x14.datacatalog.Dataset\x12\x12\n\nnext_token\x18\x02 \x01(\t\"M\n\rReservationID\x12*\n\ndataset_id\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetID\x12\x10\n\x08tag_name\x18\x02 \x01(\t\"\x9c\x01\n\x1dGetOrExtendReservationRequest\x12\x32\n\x0ereservation_id\x18\x01 \x01(\x0b\x32\x1a.datacatalog.ReservationID\x12\x10\n\x08owner_id\x18\x02 \x01(\t\x12\x35\n\x12heartbeat_interval\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xe3\x01\n\x0bReservation\x12\x32\n\x0ereservation_id\x18\x01 \x01(\x0b\x32\x1a.datacatalog.ReservationID\x12\x10\n\x08owner_id\x18\x02 \x01(\t\x12\x35\n\x12heartbeat_interval\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12.\n\nexpires_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x08metadata\x18\x06 \x01(\x0b\x32\x15.datacatalog.Metadata\"O\n\x1eGetOrExtendReservationResponse\x12-\n\x0breservation\x18\x01 \x01(\x0b\x32\x18.datacatalog.Reservation\"a\n\x19ReleaseReservationRequest\x12\x32\n\x0ereservation_id\x18\x01 \x01(\x0b\x32\x1a.datacatalog.ReservationID\x12\x10\n\x08owner_id\x18\x02 \x01(\t\"\x1c\n\x1aReleaseReservationResponse\"m\n\x07\x44\x61taset\x12\"\n\x02id\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetID\x12\'\n\x08metadata\x18\x02 \x01(\x0b\x32\x15.datacatalog.Metadata\x12\x15\n\rpartitionKeys\x18\x03 \x03(\t\"\'\n\tPartition\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"Y\n\tDatasetID\x12\x0f\n\x07project\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0e\n\x06\x64omain\x18\x03 \x01(\t\x12\x0f\n\x07version\x18\x04 \x01(\t\x12\x0c\n\x04UUID\x18\x05 \x01(\t\"\x8d\x02\n\x08\x41rtifact\x12\n\n\x02id\x18\x01 \x01(\t\x12\'\n\x07\x64\x61taset\x18\x02 \x01(\x0b\x32\x16.datacatalog.DatasetID\x12\'\n\x04\x64\x61ta\x18\x03 \x03(\x0b\x32\x19.datacatalog.ArtifactData\x12\'\n\x08metadata\x18\x04 \x01(\x0b\x32\x15.datacatalog.Metadata\x12*\n\npartitions\x18\x05 \x03(\x0b\x32\x16.datacatalog.Partition\x12\x1e\n\x04tags\x18\x06 \x03(\x0b\x32\x10.datacatalog.Tag\x12.\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"C\n\x0c\x41rtifactData\x12\x0c\n\x04name\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.flyteidl.core.Literal\"Q\n\x03Tag\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x61rtifact_id\x18\x02 \x01(\t\x12\'\n\x07\x64\x61taset\x18\x03 \x01(\x0b\x32\x16.datacatalog.DatasetID\"m\n\x08Metadata\x12\x32\n\x07key_map\x18\x01 \x03(\x0b\x32!.datacatalog.Metadata.KeyMapEntry\x1a-\n\x0bKeyMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"F\n\x10\x46ilterExpression\x12\x32\n\x07\x66ilters\x18\x01 \x03(\x0b\x32!.datacatalog.SinglePropertyFilter\"\x89\x03\n\x14SinglePropertyFilter\x12\x34\n\ntag_filter\x18\x01 \x01(\x0b\x32\x1e.datacatalog.TagPropertyFilterH\x00\x12@\n\x10partition_filter\x18\x02 \x01(\x0b\x32$.datacatalog.PartitionPropertyFilterH\x00\x12>\n\x0f\x61rtifact_filter\x18\x03 \x01(\x0b\x32#.datacatalog.ArtifactPropertyFilterH\x00\x12<\n\x0e\x64\x61taset_filter\x18\x04 \x01(\x0b\x32\".datacatalog.DatasetPropertyFilterH\x00\x12\x46\n\x08operator\x18\n \x01(\x0e\x32\x34.datacatalog.SinglePropertyFilter.ComparisonOperator\" \n\x12\x43omparisonOperator\x12\n\n\x06\x45QUALS\x10\x00\x42\x11\n\x0fproperty_filter\";\n\x16\x41rtifactPropertyFilter\x12\x15\n\x0b\x61rtifact_id\x18\x01 \x01(\tH\x00\x42\n\n\x08property\"3\n\x11TagPropertyFilter\x12\x12\n\x08tag_name\x18\x01 \x01(\tH\x00\x42\n\n\x08property\"S\n\x17PartitionPropertyFilter\x12,\n\x07key_val\x18\x01 \x01(\x0b\x32\x19.datacatalog.KeyValuePairH\x00\x42\n\n\x08property\"*\n\x0cKeyValuePair\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"k\n\x15\x44\x61tasetPropertyFilter\x12\x11\n\x07project\x18\x01 \x01(\tH\x00\x12\x0e\n\x04name\x18\x02 \x01(\tH\x00\x12\x10\n\x06\x64omain\x18\x03 \x01(\tH\x00\x12\x11\n\x07version\x18\x04 \x01(\tH\x00\x42\n\n\x08property\"\xf1\x01\n\x11PaginationOptions\x12\r\n\x05limit\x18\x01 \x01(\r\x12\r\n\x05token\x18\x02 \x01(\t\x12\x37\n\x07sortKey\x18\x03 \x01(\x0e\x32&.datacatalog.PaginationOptions.SortKey\x12;\n\tsortOrder\x18\x04 \x01(\x0e\x32(.datacatalog.PaginationOptions.SortOrder\"*\n\tSortOrder\x12\x0e\n\nDESCENDING\x10\x00\x12\r\n\tASCENDING\x10\x01\"\x1c\n\x07SortKey\x12\x11\n\rCREATION_TIME\x10\x00\x32\xab\x06\n\x0b\x44\x61taCatalog\x12V\n\rCreateDataset\x12!.datacatalog.CreateDatasetRequest\x1a\".datacatalog.CreateDatasetResponse\x12M\n\nGetDataset\x12\x1e.datacatalog.GetDatasetRequest\x1a\x1f.datacatalog.GetDatasetResponse\x12Y\n\x0e\x43reateArtifact\x12\".datacatalog.CreateArtifactRequest\x1a#.datacatalog.CreateArtifactResponse\x12P\n\x0bGetArtifact\x12\x1f.datacatalog.GetArtifactRequest\x1a .datacatalog.GetArtifactResponse\x12\x41\n\x06\x41\x64\x64Tag\x12\x1a.datacatalog.AddTagRequest\x1a\x1b.datacatalog.AddTagResponse\x12V\n\rListArtifacts\x12!.datacatalog.ListArtifactsRequest\x1a\".datacatalog.ListArtifactsResponse\x12S\n\x0cListDatasets\x12 .datacatalog.ListDatasetsRequest\x1a!.datacatalog.ListDatasetsResponse\x12q\n\x16GetOrExtendReservation\x12*.datacatalog.GetOrExtendReservationRequest\x1a+.datacatalog.GetOrExtendReservationResponse\x12\x65\n\x12ReleaseReservation\x12&.datacatalog.ReleaseReservationRequest\x1a\'.datacatalog.ReleaseReservationResponseB=Z;github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/datacatalogb\x06proto3') + serialized_pb=_b('\n&flyteidl/datacatalog/datacatalog.proto\x12\x0b\x64\x61tacatalog\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"=\n\x14\x43reateDatasetRequest\x12%\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x14.datacatalog.Dataset\"\x17\n\x15\x43reateDatasetResponse\"<\n\x11GetDatasetRequest\x12\'\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetID\";\n\x12GetDatasetResponse\x12%\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x14.datacatalog.Dataset\"x\n\x12GetArtifactRequest\x12\'\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetID\x12\x15\n\x0b\x61rtifact_id\x18\x02 \x01(\tH\x00\x12\x12\n\x08tag_name\x18\x03 \x01(\tH\x00\x42\x0e\n\x0cquery_handle\">\n\x13GetArtifactResponse\x12\'\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x15.datacatalog.Artifact\"@\n\x15\x43reateArtifactRequest\x12\'\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x15.datacatalog.Artifact\"\x18\n\x16\x43reateArtifactResponse\".\n\rAddTagRequest\x12\x1d\n\x03tag\x18\x01 \x01(\x0b\x32\x10.datacatalog.Tag\"\x10\n\x0e\x41\x64\x64TagResponse\"\xa2\x01\n\x14ListArtifactsRequest\x12\'\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetID\x12-\n\x06\x66ilter\x18\x02 \x01(\x0b\x32\x1d.datacatalog.FilterExpression\x12\x32\n\npagination\x18\x03 \x01(\x0b\x32\x1e.datacatalog.PaginationOptions\"U\n\x15ListArtifactsResponse\x12(\n\tartifacts\x18\x01 \x03(\x0b\x32\x15.datacatalog.Artifact\x12\x12\n\nnext_token\x18\x02 \x01(\t\"x\n\x13ListDatasetsRequest\x12-\n\x06\x66ilter\x18\x01 \x01(\x0b\x32\x1d.datacatalog.FilterExpression\x12\x32\n\npagination\x18\x02 \x01(\x0b\x32\x1e.datacatalog.PaginationOptions\"R\n\x14ListDatasetsResponse\x12&\n\x08\x64\x61tasets\x18\x01 \x03(\x0b\x32\x14.datacatalog.Dataset\x12\x12\n\nnext_token\x18\x02 \x01(\t\"\xa4\x01\n\x15UpdateArtifactRequest\x12\'\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetID\x12\x15\n\x0b\x61rtifact_id\x18\x02 \x01(\tH\x00\x12\x12\n\x08tag_name\x18\x03 \x01(\tH\x00\x12\'\n\x04\x64\x61ta\x18\x04 \x03(\x0b\x32\x19.datacatalog.ArtifactDataB\x0e\n\x0cquery_handle\"\x18\n\x16UpdateArtifactResponse\"M\n\rReservationID\x12*\n\ndataset_id\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetID\x12\x10\n\x08tag_name\x18\x02 \x01(\t\"\x9c\x01\n\x1dGetOrExtendReservationRequest\x12\x32\n\x0ereservation_id\x18\x01 \x01(\x0b\x32\x1a.datacatalog.ReservationID\x12\x10\n\x08owner_id\x18\x02 \x01(\t\x12\x35\n\x12heartbeat_interval\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xe3\x01\n\x0bReservation\x12\x32\n\x0ereservation_id\x18\x01 \x01(\x0b\x32\x1a.datacatalog.ReservationID\x12\x10\n\x08owner_id\x18\x02 \x01(\t\x12\x35\n\x12heartbeat_interval\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12.\n\nexpires_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x08metadata\x18\x06 \x01(\x0b\x32\x15.datacatalog.Metadata\"O\n\x1eGetOrExtendReservationResponse\x12-\n\x0breservation\x18\x01 \x01(\x0b\x32\x18.datacatalog.Reservation\"a\n\x19ReleaseReservationRequest\x12\x32\n\x0ereservation_id\x18\x01 \x01(\x0b\x32\x1a.datacatalog.ReservationID\x12\x10\n\x08owner_id\x18\x02 \x01(\t\"\x1c\n\x1aReleaseReservationResponse\"m\n\x07\x44\x61taset\x12\"\n\x02id\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetID\x12\'\n\x08metadata\x18\x02 \x01(\x0b\x32\x15.datacatalog.Metadata\x12\x15\n\rpartitionKeys\x18\x03 \x03(\t\"\'\n\tPartition\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"Y\n\tDatasetID\x12\x0f\n\x07project\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0e\n\x06\x64omain\x18\x03 \x01(\t\x12\x0f\n\x07version\x18\x04 \x01(\t\x12\x0c\n\x04UUID\x18\x05 \x01(\t\"\x8d\x02\n\x08\x41rtifact\x12\n\n\x02id\x18\x01 \x01(\t\x12\'\n\x07\x64\x61taset\x18\x02 \x01(\x0b\x32\x16.datacatalog.DatasetID\x12\'\n\x04\x64\x61ta\x18\x03 \x03(\x0b\x32\x19.datacatalog.ArtifactData\x12\'\n\x08metadata\x18\x04 \x01(\x0b\x32\x15.datacatalog.Metadata\x12*\n\npartitions\x18\x05 \x03(\x0b\x32\x16.datacatalog.Partition\x12\x1e\n\x04tags\x18\x06 \x03(\x0b\x32\x10.datacatalog.Tag\x12.\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"C\n\x0c\x41rtifactData\x12\x0c\n\x04name\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.flyteidl.core.Literal\"Q\n\x03Tag\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x61rtifact_id\x18\x02 \x01(\t\x12\'\n\x07\x64\x61taset\x18\x03 \x01(\x0b\x32\x16.datacatalog.DatasetID\"m\n\x08Metadata\x12\x32\n\x07key_map\x18\x01 \x03(\x0b\x32!.datacatalog.Metadata.KeyMapEntry\x1a-\n\x0bKeyMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"F\n\x10\x46ilterExpression\x12\x32\n\x07\x66ilters\x18\x01 \x03(\x0b\x32!.datacatalog.SinglePropertyFilter\"\x89\x03\n\x14SinglePropertyFilter\x12\x34\n\ntag_filter\x18\x01 \x01(\x0b\x32\x1e.datacatalog.TagPropertyFilterH\x00\x12@\n\x10partition_filter\x18\x02 \x01(\x0b\x32$.datacatalog.PartitionPropertyFilterH\x00\x12>\n\x0f\x61rtifact_filter\x18\x03 \x01(\x0b\x32#.datacatalog.ArtifactPropertyFilterH\x00\x12<\n\x0e\x64\x61taset_filter\x18\x04 \x01(\x0b\x32\".datacatalog.DatasetPropertyFilterH\x00\x12\x46\n\x08operator\x18\n \x01(\x0e\x32\x34.datacatalog.SinglePropertyFilter.ComparisonOperator\" \n\x12\x43omparisonOperator\x12\n\n\x06\x45QUALS\x10\x00\x42\x11\n\x0fproperty_filter\";\n\x16\x41rtifactPropertyFilter\x12\x15\n\x0b\x61rtifact_id\x18\x01 \x01(\tH\x00\x42\n\n\x08property\"3\n\x11TagPropertyFilter\x12\x12\n\x08tag_name\x18\x01 \x01(\tH\x00\x42\n\n\x08property\"S\n\x17PartitionPropertyFilter\x12,\n\x07key_val\x18\x01 \x01(\x0b\x32\x19.datacatalog.KeyValuePairH\x00\x42\n\n\x08property\"*\n\x0cKeyValuePair\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"k\n\x15\x44\x61tasetPropertyFilter\x12\x11\n\x07project\x18\x01 \x01(\tH\x00\x12\x0e\n\x04name\x18\x02 \x01(\tH\x00\x12\x10\n\x06\x64omain\x18\x03 \x01(\tH\x00\x12\x11\n\x07version\x18\x04 \x01(\tH\x00\x42\n\n\x08property\"\xf1\x01\n\x11PaginationOptions\x12\r\n\x05limit\x18\x01 \x01(\r\x12\r\n\x05token\x18\x02 \x01(\t\x12\x37\n\x07sortKey\x18\x03 \x01(\x0e\x32&.datacatalog.PaginationOptions.SortKey\x12;\n\tsortOrder\x18\x04 \x01(\x0e\x32(.datacatalog.PaginationOptions.SortOrder\"*\n\tSortOrder\x12\x0e\n\nDESCENDING\x10\x00\x12\r\n\tASCENDING\x10\x01\"\x1c\n\x07SortKey\x12\x11\n\rCREATION_TIME\x10\x00\x32\x86\x07\n\x0b\x44\x61taCatalog\x12V\n\rCreateDataset\x12!.datacatalog.CreateDatasetRequest\x1a\".datacatalog.CreateDatasetResponse\x12M\n\nGetDataset\x12\x1e.datacatalog.GetDatasetRequest\x1a\x1f.datacatalog.GetDatasetResponse\x12Y\n\x0e\x43reateArtifact\x12\".datacatalog.CreateArtifactRequest\x1a#.datacatalog.CreateArtifactResponse\x12P\n\x0bGetArtifact\x12\x1f.datacatalog.GetArtifactRequest\x1a .datacatalog.GetArtifactResponse\x12\x41\n\x06\x41\x64\x64Tag\x12\x1a.datacatalog.AddTagRequest\x1a\x1b.datacatalog.AddTagResponse\x12V\n\rListArtifacts\x12!.datacatalog.ListArtifactsRequest\x1a\".datacatalog.ListArtifactsResponse\x12S\n\x0cListDatasets\x12 .datacatalog.ListDatasetsRequest\x1a!.datacatalog.ListDatasetsResponse\x12Y\n\x0eUpdateArtifact\x12\".datacatalog.UpdateArtifactRequest\x1a#.datacatalog.UpdateArtifactResponse\x12q\n\x16GetOrExtendReservation\x12*.datacatalog.GetOrExtendReservationRequest\x1a+.datacatalog.GetOrExtendReservationResponse\x12\x65\n\x12ReleaseReservation\x12&.datacatalog.ReleaseReservationRequest\x1a\'.datacatalog.ReleaseReservationResponseB=Z;github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/datacatalogb\x06proto3') , dependencies=[flyteidl_dot_core_dot_literals__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) @@ -42,8 +42,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=3034, - serialized_end=3066, + serialized_start=3227, + serialized_end=3259, ) _sym_db.RegisterEnumDescriptor(_SINGLEPROPERTYFILTER_COMPARISONOPERATOR) @@ -64,8 +64,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=3609, - serialized_end=3651, + serialized_start=3802, + serialized_end=3844, ) _sym_db.RegisterEnumDescriptor(_PAGINATIONOPTIONS_SORTORDER) @@ -82,8 +82,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=3653, - serialized_end=3681, + serialized_start=3846, + serialized_end=3874, ) _sym_db.RegisterEnumDescriptor(_PAGINATIONOPTIONS_SORTKEY) @@ -553,6 +553,85 @@ ) +_UPDATEARTIFACTREQUEST = _descriptor.Descriptor( + name='UpdateArtifactRequest', + full_name='datacatalog.UpdateArtifactRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='dataset', full_name='datacatalog.UpdateArtifactRequest.dataset', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='artifact_id', full_name='datacatalog.UpdateArtifactRequest.artifact_id', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='tag_name', full_name='datacatalog.UpdateArtifactRequest.tag_name', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='data', full_name='datacatalog.UpdateArtifactRequest.data', index=3, + number=4, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='query_handle', full_name='datacatalog.UpdateArtifactRequest.query_handle', + index=0, containing_type=None, fields=[]), + ], + serialized_start=1164, + serialized_end=1328, +) + + +_UPDATEARTIFACTRESPONSE = _descriptor.Descriptor( + name='UpdateArtifactResponse', + full_name='datacatalog.UpdateArtifactResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1330, + serialized_end=1354, +) + + _RESERVATIONID = _descriptor.Descriptor( name='ReservationID', full_name='datacatalog.ReservationID', @@ -586,8 +665,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1163, - serialized_end=1240, + serialized_start=1356, + serialized_end=1433, ) @@ -631,8 +710,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1243, - serialized_end=1399, + serialized_start=1436, + serialized_end=1592, ) @@ -690,8 +769,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1402, - serialized_end=1629, + serialized_start=1595, + serialized_end=1822, ) @@ -721,8 +800,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1631, - serialized_end=1710, + serialized_start=1824, + serialized_end=1903, ) @@ -759,8 +838,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1712, - serialized_end=1809, + serialized_start=1905, + serialized_end=2002, ) @@ -783,8 +862,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1811, - serialized_end=1839, + serialized_start=2004, + serialized_end=2032, ) @@ -828,8 +907,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1841, - serialized_end=1950, + serialized_start=2034, + serialized_end=2143, ) @@ -866,8 +945,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1952, - serialized_end=1991, + serialized_start=2145, + serialized_end=2184, ) @@ -925,8 +1004,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1993, - serialized_end=2082, + serialized_start=2186, + serialized_end=2275, ) @@ -998,8 +1077,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2085, - serialized_end=2354, + serialized_start=2278, + serialized_end=2547, ) @@ -1036,8 +1115,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2356, - serialized_end=2423, + serialized_start=2549, + serialized_end=2616, ) @@ -1081,8 +1160,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2425, - serialized_end=2506, + serialized_start=2618, + serialized_end=2699, ) @@ -1119,8 +1198,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2572, - serialized_end=2617, + serialized_start=2765, + serialized_end=2810, ) _METADATA = _descriptor.Descriptor( @@ -1149,8 +1228,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2508, - serialized_end=2617, + serialized_start=2701, + serialized_end=2810, ) @@ -1180,8 +1259,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2619, - serialized_end=2689, + serialized_start=2812, + serialized_end=2882, ) @@ -1243,8 +1322,8 @@ name='property_filter', full_name='datacatalog.SinglePropertyFilter.property_filter', index=0, containing_type=None, fields=[]), ], - serialized_start=2692, - serialized_end=3085, + serialized_start=2885, + serialized_end=3278, ) @@ -1277,8 +1356,8 @@ name='property', full_name='datacatalog.ArtifactPropertyFilter.property', index=0, containing_type=None, fields=[]), ], - serialized_start=3087, - serialized_end=3146, + serialized_start=3280, + serialized_end=3339, ) @@ -1311,8 +1390,8 @@ name='property', full_name='datacatalog.TagPropertyFilter.property', index=0, containing_type=None, fields=[]), ], - serialized_start=3148, - serialized_end=3199, + serialized_start=3341, + serialized_end=3392, ) @@ -1345,8 +1424,8 @@ name='property', full_name='datacatalog.PartitionPropertyFilter.property', index=0, containing_type=None, fields=[]), ], - serialized_start=3201, - serialized_end=3284, + serialized_start=3394, + serialized_end=3477, ) @@ -1383,8 +1462,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3286, - serialized_end=3328, + serialized_start=3479, + serialized_end=3521, ) @@ -1438,8 +1517,8 @@ name='property', full_name='datacatalog.DatasetPropertyFilter.property', index=0, containing_type=None, fields=[]), ], - serialized_start=3330, - serialized_end=3437, + serialized_start=3523, + serialized_end=3630, ) @@ -1492,8 +1571,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3440, - serialized_end=3681, + serialized_start=3633, + serialized_end=3874, ) _CREATEDATASETREQUEST.fields_by_name['dataset'].message_type = _DATASET @@ -1516,6 +1595,14 @@ _LISTDATASETSREQUEST.fields_by_name['filter'].message_type = _FILTEREXPRESSION _LISTDATASETSREQUEST.fields_by_name['pagination'].message_type = _PAGINATIONOPTIONS _LISTDATASETSRESPONSE.fields_by_name['datasets'].message_type = _DATASET +_UPDATEARTIFACTREQUEST.fields_by_name['dataset'].message_type = _DATASETID +_UPDATEARTIFACTREQUEST.fields_by_name['data'].message_type = _ARTIFACTDATA +_UPDATEARTIFACTREQUEST.oneofs_by_name['query_handle'].fields.append( + _UPDATEARTIFACTREQUEST.fields_by_name['artifact_id']) +_UPDATEARTIFACTREQUEST.fields_by_name['artifact_id'].containing_oneof = _UPDATEARTIFACTREQUEST.oneofs_by_name['query_handle'] +_UPDATEARTIFACTREQUEST.oneofs_by_name['query_handle'].fields.append( + _UPDATEARTIFACTREQUEST.fields_by_name['tag_name']) +_UPDATEARTIFACTREQUEST.fields_by_name['tag_name'].containing_oneof = _UPDATEARTIFACTREQUEST.oneofs_by_name['query_handle'] _RESERVATIONID.fields_by_name['dataset_id'].message_type = _DATASETID _GETOREXTENDRESERVATIONREQUEST.fields_by_name['reservation_id'].message_type = _RESERVATIONID _GETOREXTENDRESERVATIONREQUEST.fields_by_name['heartbeat_interval'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION @@ -1596,6 +1683,8 @@ DESCRIPTOR.message_types_by_name['ListArtifactsResponse'] = _LISTARTIFACTSRESPONSE DESCRIPTOR.message_types_by_name['ListDatasetsRequest'] = _LISTDATASETSREQUEST DESCRIPTOR.message_types_by_name['ListDatasetsResponse'] = _LISTDATASETSRESPONSE +DESCRIPTOR.message_types_by_name['UpdateArtifactRequest'] = _UPDATEARTIFACTREQUEST +DESCRIPTOR.message_types_by_name['UpdateArtifactResponse'] = _UPDATEARTIFACTRESPONSE DESCRIPTOR.message_types_by_name['ReservationID'] = _RESERVATIONID DESCRIPTOR.message_types_by_name['GetOrExtendReservationRequest'] = _GETOREXTENDRESERVATIONREQUEST DESCRIPTOR.message_types_by_name['Reservation'] = _RESERVATION @@ -1717,6 +1806,20 @@ )) _sym_db.RegisterMessage(ListDatasetsResponse) +UpdateArtifactRequest = _reflection.GeneratedProtocolMessageType('UpdateArtifactRequest', (_message.Message,), dict( + DESCRIPTOR = _UPDATEARTIFACTREQUEST, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:datacatalog.UpdateArtifactRequest) + )) +_sym_db.RegisterMessage(UpdateArtifactRequest) + +UpdateArtifactResponse = _reflection.GeneratedProtocolMessageType('UpdateArtifactResponse', (_message.Message,), dict( + DESCRIPTOR = _UPDATEARTIFACTRESPONSE, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:datacatalog.UpdateArtifactResponse) + )) +_sym_db.RegisterMessage(UpdateArtifactResponse) + ReservationID = _reflection.GeneratedProtocolMessageType('ReservationID', (_message.Message,), dict( DESCRIPTOR = _RESERVATIONID, __module__ = 'flyteidl.datacatalog.datacatalog_pb2' @@ -1882,8 +1985,8 @@ file=DESCRIPTOR, index=0, serialized_options=None, - serialized_start=3684, - serialized_end=4495, + serialized_start=3877, + serialized_end=4779, methods=[ _descriptor.MethodDescriptor( name='CreateDataset', @@ -1948,10 +2051,19 @@ output_type=_LISTDATASETSRESPONSE, serialized_options=None, ), + _descriptor.MethodDescriptor( + name='UpdateArtifact', + full_name='datacatalog.DataCatalog.UpdateArtifact', + index=7, + containing_service=None, + input_type=_UPDATEARTIFACTREQUEST, + output_type=_UPDATEARTIFACTRESPONSE, + serialized_options=None, + ), _descriptor.MethodDescriptor( name='GetOrExtendReservation', full_name='datacatalog.DataCatalog.GetOrExtendReservation', - index=7, + index=8, containing_service=None, input_type=_GETOREXTENDRESERVATIONREQUEST, output_type=_GETOREXTENDRESERVATIONRESPONSE, @@ -1960,7 +2072,7 @@ _descriptor.MethodDescriptor( name='ReleaseReservation', full_name='datacatalog.DataCatalog.ReleaseReservation', - index=8, + index=9, containing_service=None, input_type=_RELEASERESERVATIONREQUEST, output_type=_RELEASERESERVATIONRESPONSE, diff --git a/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py b/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py index 3167390a8..53955df20 100644 --- a/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py +++ b/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py @@ -52,6 +52,11 @@ def __init__(self, channel): request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsRequest.SerializeToString, response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsResponse.FromString, ) + self.UpdateArtifact = channel.unary_unary( + '/datacatalog.DataCatalog/UpdateArtifact', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.UpdateArtifactRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.UpdateArtifactResponse.FromString, + ) self.GetOrExtendReservation = channel.unary_unary( '/datacatalog.DataCatalog/GetOrExtendReservation', request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationRequest.SerializeToString, @@ -122,6 +127,13 @@ def ListDatasets(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def UpdateArtifact(self, request, context): + """Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def GetOrExtendReservation(self, request, context): """Attempts to get or extend a reservation for the corresponding artifact. If one already exists (ie. another entity owns the reservation) then that reservation is retrieved. @@ -185,6 +197,11 @@ def add_DataCatalogServicer_to_server(servicer, server): request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsRequest.FromString, response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsResponse.SerializeToString, ), + 'UpdateArtifact': grpc.unary_unary_rpc_method_handler( + servicer.UpdateArtifact, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.UpdateArtifactRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.UpdateArtifactResponse.SerializeToString, + ), 'GetOrExtendReservation': grpc.unary_unary_rpc_method_handler( servicer.GetOrExtendReservation, request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationRequest.FromString, diff --git a/protos/docs/datacatalog/datacatalog.rst b/protos/docs/datacatalog/datacatalog.rst index 36df9eea8..356675abb 100644 --- a/protos/docs/datacatalog/datacatalog.rst +++ b/protos/docs/datacatalog/datacatalog.rst @@ -790,6 +790,44 @@ Tag properties we can filter by + +.. _ref_datacatalog.UpdateArtifactRequest: + +UpdateArtifactRequest +------------------------------------------------------------------ + +Request message for updating an Artifact and overwriting its associated ArtifactData. + + + +.. csv-table:: UpdateArtifactRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "dataset", ":ref:`ref_datacatalog.DatasetID`", "", "ID of dataset the artifact is associated with" + "artifact_id", ":ref:`ref_string`", "", "" + "tag_name", ":ref:`ref_string`", "", "" + "data", ":ref:`ref_datacatalog.ArtifactData`", "repeated", "List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing ArtifactData entries will be removed from the underlying blob storage and database." + + + + + + + +.. _ref_datacatalog.UpdateArtifactResponse: + +UpdateArtifactResponse +------------------------------------------------------------------ + +Response message for updating an Artifact. + + + + + + + .. end messages @@ -869,6 +907,7 @@ Artifacts are associated with a Dataset, and can be tagged for retrieval. "AddTag", ":ref:`ref_datacatalog.AddTagRequest`", ":ref:`ref_datacatalog.AddTagResponse`", "Associate a tag with an artifact. Tags are unique within a Dataset." "ListArtifacts", ":ref:`ref_datacatalog.ListArtifactsRequest`", ":ref:`ref_datacatalog.ListArtifactsResponse`", "Return a paginated list of artifacts" "ListDatasets", ":ref:`ref_datacatalog.ListDatasetsRequest`", ":ref:`ref_datacatalog.ListDatasetsResponse`", "Return a paginated list of datasets" + "UpdateArtifact", ":ref:`ref_datacatalog.UpdateArtifactRequest`", ":ref:`ref_datacatalog.UpdateArtifactResponse`", "Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage." "GetOrExtendReservation", ":ref:`ref_datacatalog.GetOrExtendReservationRequest`", ":ref:`ref_datacatalog.GetOrExtendReservationResponse`", "Attempts to get or extend a reservation for the corresponding artifact. If one already exists (ie. another entity owns the reservation) then that reservation is retrieved. Once you acquire a reservation, you need to periodically extend the reservation with an identical call. If the reservation is not extended before the defined expiration, it may be acquired by another task. Note: We may have multiple concurrent tasks with the same signature and the same input that try to populate the same artifact at the same time. Thus with reservation, only one task can run at a time, until the reservation expires. Note: If task A does not extend the reservation in time and the reservation expires, another task B may take over the reservation, resulting in two tasks A and B running in parallel. So a third task C may get the Artifact from A or B, whichever writes last." "ReleaseReservation", ":ref:`ref_datacatalog.ReleaseReservationRequest`", ":ref:`ref_datacatalog.ReleaseReservationResponse`", "Release the reservation when the task holding the spot fails so that the other tasks can grab the spot." diff --git a/protos/flyteidl/datacatalog/datacatalog.proto b/protos/flyteidl/datacatalog/datacatalog.proto index 51b6d05e2..aa70c4000 100644 --- a/protos/flyteidl/datacatalog/datacatalog.proto +++ b/protos/flyteidl/datacatalog/datacatalog.proto @@ -37,6 +37,9 @@ service DataCatalog { // Return a paginated list of datasets rpc ListDatasets (ListDatasetsRequest) returns (ListDatasetsResponse); + // Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage. + rpc UpdateArtifact (UpdateArtifactRequest) returns (UpdateArtifactResponse); + // Attempts to get or extend a reservation for the corresponding artifact. If one already exists // (ie. another entity owns the reservation) then that reservation is retrieved. // Once you acquire a reservation, you need to periodically extend the reservation with an @@ -170,6 +173,31 @@ message ListDatasetsResponse { string next_token = 2; } +/* + * Request message for updating an Artifact and overwriting its associated ArtifactData. + */ +message UpdateArtifactRequest { + // ID of dataset the artifact is associated with + DatasetID dataset = 1; + + // Either ID of artifact or name of tag to retrieve existing artifact from + oneof query_handle { + string artifact_id = 2; + string tag_name = 3; + } + + // List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing + // ArtifactData entries will be removed from the underlying blob storage and database. + repeated ArtifactData data = 4; +} + +/* + * Response message for updating an Artifact. + */ +message UpdateArtifactResponse { + +} + /* * ReservationID message that is composed of several string fields. */