From 192e509180fc670f5f05e2ca5ea462e2722e765c Mon Sep 17 00:00:00 2001 From: Chao-Han Tsai Date: Wed, 21 Apr 2021 13:32:35 -0700 Subject: [PATCH] Add GetOrReserveArtifact and ExtendReservation API (#142) Signed-off-by: Eduardo Apolinario --- .../go/datacatalog/mocks/DataCatalogClient.go | 144 + .../datacatalog/datacatalog.grpc.pb.cc | 126 + .../datacatalog/datacatalog.grpc.pb.h | 557 +- .../flyteidl/datacatalog/datacatalog.pb.cc | 3517 +++++++++- .../flyteidl/datacatalog/datacatalog.pb.h | 5266 ++++++++++----- .../flyteidl/datacatalog/datacatalog.pb.go | 782 ++- .../datacatalog/datacatalog.pb.validate.go | 555 ++ .../gen/pb-java/datacatalog/Datacatalog.java | 5694 ++++++++++++++++- .../datacatalog/datacatalog.proto.rst | 286 +- .../flyteidl/datacatalog/datacatalog_pb2.py | 530 +- .../datacatalog/datacatalog_pb2_grpc.py | 70 + .../flyteidl/datacatalog/datacatalog.proto | 83 + 12 files changed, 15183 insertions(+), 2427 deletions(-) diff --git a/flyteidl/clients/go/datacatalog/mocks/DataCatalogClient.go b/flyteidl/clients/go/datacatalog/mocks/DataCatalogClient.go index 972497a2f6b..bd2891bb9ea 100644 --- a/flyteidl/clients/go/datacatalog/mocks/DataCatalogClient.go +++ b/flyteidl/clients/go/datacatalog/mocks/DataCatalogClient.go @@ -160,6 +160,54 @@ func (_m *DataCatalogClient) CreateDataset(ctx context.Context, in *datacatalog. return r0, r1 } +type DataCatalogClient_ExtendReservation struct { + *mock.Call +} + +func (_m DataCatalogClient_ExtendReservation) Return(_a0 *datacatalog.ExtendReservationResponse, _a1 error) *DataCatalogClient_ExtendReservation { + return &DataCatalogClient_ExtendReservation{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataCatalogClient) OnExtendReservation(ctx context.Context, in *datacatalog.ExtendReservationRequest, opts ...grpc.CallOption) *DataCatalogClient_ExtendReservation { + c := _m.On("ExtendReservation", ctx, in, opts) + return &DataCatalogClient_ExtendReservation{Call: c} +} + +func (_m *DataCatalogClient) OnExtendReservationMatch(matchers ...interface{}) *DataCatalogClient_ExtendReservation { + c := _m.On("ExtendReservation", matchers...) + return &DataCatalogClient_ExtendReservation{Call: c} +} + +// ExtendReservation provides a mock function with given fields: ctx, in, opts +func (_m *DataCatalogClient) ExtendReservation(ctx context.Context, in *datacatalog.ExtendReservationRequest, opts ...grpc.CallOption) (*datacatalog.ExtendReservationResponse, 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.ExtendReservationResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.ExtendReservationRequest, ...grpc.CallOption) *datacatalog.ExtendReservationResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.ExtendReservationResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.ExtendReservationRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + type DataCatalogClient_GetArtifact struct { *mock.Call } @@ -256,6 +304,54 @@ func (_m *DataCatalogClient) GetDataset(ctx context.Context, in *datacatalog.Get return r0, r1 } +type DataCatalogClient_GetOrReserveArtifact struct { + *mock.Call +} + +func (_m DataCatalogClient_GetOrReserveArtifact) Return(_a0 *datacatalog.GetOrReserveArtifactResponse, _a1 error) *DataCatalogClient_GetOrReserveArtifact { + return &DataCatalogClient_GetOrReserveArtifact{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataCatalogClient) OnGetOrReserveArtifact(ctx context.Context, in *datacatalog.GetOrReserveArtifactRequest, opts ...grpc.CallOption) *DataCatalogClient_GetOrReserveArtifact { + c := _m.On("GetOrReserveArtifact", ctx, in, opts) + return &DataCatalogClient_GetOrReserveArtifact{Call: c} +} + +func (_m *DataCatalogClient) OnGetOrReserveArtifactMatch(matchers ...interface{}) *DataCatalogClient_GetOrReserveArtifact { + c := _m.On("GetOrReserveArtifact", matchers...) + return &DataCatalogClient_GetOrReserveArtifact{Call: c} +} + +// GetOrReserveArtifact provides a mock function with given fields: ctx, in, opts +func (_m *DataCatalogClient) GetOrReserveArtifact(ctx context.Context, in *datacatalog.GetOrReserveArtifactRequest, opts ...grpc.CallOption) (*datacatalog.GetOrReserveArtifactResponse, 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.GetOrReserveArtifactResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.GetOrReserveArtifactRequest, ...grpc.CallOption) *datacatalog.GetOrReserveArtifactResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.GetOrReserveArtifactResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.GetOrReserveArtifactRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + type DataCatalogClient_ListArtifacts struct { *mock.Call } @@ -351,3 +447,51 @@ func (_m *DataCatalogClient) ListDatasets(ctx context.Context, in *datacatalog.L return r0, r1 } + +type DataCatalogClient_ReleaseReservation struct { + *mock.Call +} + +func (_m DataCatalogClient_ReleaseReservation) Return(_a0 *datacatalog.ReleaseReservationResponse, _a1 error) *DataCatalogClient_ReleaseReservation { + return &DataCatalogClient_ReleaseReservation{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataCatalogClient) OnReleaseReservation(ctx context.Context, in *datacatalog.ReleaseReservationRequest, opts ...grpc.CallOption) *DataCatalogClient_ReleaseReservation { + c := _m.On("ReleaseReservation", ctx, in, opts) + return &DataCatalogClient_ReleaseReservation{Call: c} +} + +func (_m *DataCatalogClient) OnReleaseReservationMatch(matchers ...interface{}) *DataCatalogClient_ReleaseReservation { + c := _m.On("ReleaseReservation", matchers...) + return &DataCatalogClient_ReleaseReservation{Call: c} +} + +// ReleaseReservation provides a mock function with given fields: ctx, in, opts +func (_m *DataCatalogClient) ReleaseReservation(ctx context.Context, in *datacatalog.ReleaseReservationRequest, opts ...grpc.CallOption) (*datacatalog.ReleaseReservationResponse, 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.ReleaseReservationResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.ReleaseReservationRequest, ...grpc.CallOption) *datacatalog.ReleaseReservationResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.ReleaseReservationResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.ReleaseReservationRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.cc index d6c615aed82..8df98bffb7f 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.cc +++ b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.cc @@ -26,6 +26,9 @@ static const char* DataCatalog_method_names[] = { "/datacatalog.DataCatalog/AddTag", "/datacatalog.DataCatalog/ListArtifacts", "/datacatalog.DataCatalog/ListDatasets", + "/datacatalog.DataCatalog/GetOrReserveArtifact", + "/datacatalog.DataCatalog/ExtendReservation", + "/datacatalog.DataCatalog/ReleaseReservation", }; std::unique_ptr< DataCatalog::Stub> DataCatalog::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { @@ -42,6 +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_GetOrReserveArtifact_(DataCatalog_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ExtendReservation_(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) { @@ -240,6 +246,90 @@ ::grpc::ClientAsyncResponseReader< ::datacatalog::ListDatasetsResponse>* DataCat return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::ListDatasetsResponse>::Create(channel_.get(), cq, rpcmethod_ListDatasets_, context, request, false); } +::grpc::Status DataCatalog::Stub::GetOrReserveArtifact(::grpc::ClientContext* context, const ::datacatalog::GetOrReserveArtifactRequest& request, ::datacatalog::GetOrReserveArtifactResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetOrReserveArtifact_, context, request, response); +} + +void DataCatalog::Stub::experimental_async::GetOrReserveArtifact(::grpc::ClientContext* context, const ::datacatalog::GetOrReserveArtifactRequest* request, ::datacatalog::GetOrReserveArtifactResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetOrReserveArtifact_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::GetOrReserveArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetOrReserveArtifactResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetOrReserveArtifact_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::GetOrReserveArtifact(::grpc::ClientContext* context, const ::datacatalog::GetOrReserveArtifactRequest* request, ::datacatalog::GetOrReserveArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetOrReserveArtifact_, context, request, response, reactor); +} + +void DataCatalog::Stub::experimental_async::GetOrReserveArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetOrReserveArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetOrReserveArtifact_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrReserveArtifactResponse>* DataCatalog::Stub::AsyncGetOrReserveArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrReserveArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::GetOrReserveArtifactResponse>::Create(channel_.get(), cq, rpcmethod_GetOrReserveArtifact_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrReserveArtifactResponse>* DataCatalog::Stub::PrepareAsyncGetOrReserveArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrReserveArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::GetOrReserveArtifactResponse>::Create(channel_.get(), cq, rpcmethod_GetOrReserveArtifact_, context, request, false); +} + +::grpc::Status DataCatalog::Stub::ExtendReservation(::grpc::ClientContext* context, const ::datacatalog::ExtendReservationRequest& request, ::datacatalog::ExtendReservationResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ExtendReservation_, context, request, response); +} + +void DataCatalog::Stub::experimental_async::ExtendReservation(::grpc::ClientContext* context, const ::datacatalog::ExtendReservationRequest* request, ::datacatalog::ExtendReservationResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ExtendReservation_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::ExtendReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ExtendReservationResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ExtendReservation_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::ExtendReservation(::grpc::ClientContext* context, const ::datacatalog::ExtendReservationRequest* request, ::datacatalog::ExtendReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ExtendReservation_, context, request, response, reactor); +} + +void DataCatalog::Stub::experimental_async::ExtendReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ExtendReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ExtendReservation_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::ExtendReservationResponse>* DataCatalog::Stub::AsyncExtendReservationRaw(::grpc::ClientContext* context, const ::datacatalog::ExtendReservationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::ExtendReservationResponse>::Create(channel_.get(), cq, rpcmethod_ExtendReservation_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::ExtendReservationResponse>* DataCatalog::Stub::PrepareAsyncExtendReservationRaw(::grpc::ClientContext* context, const ::datacatalog::ExtendReservationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::ExtendReservationResponse>::Create(channel_.get(), cq, rpcmethod_ExtendReservation_, context, request, false); +} + +::grpc::Status DataCatalog::Stub::ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::datacatalog::ReleaseReservationResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ReleaseReservation_, context, request, response); +} + +void DataCatalog::Stub::experimental_async::ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ReleaseReservation_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::ReleaseReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ReleaseReservationResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ReleaseReservation_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ReleaseReservation_, context, request, response, reactor); +} + +void DataCatalog::Stub::experimental_async::ReleaseReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ReleaseReservation_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>* DataCatalog::Stub::AsyncReleaseReservationRaw(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::ReleaseReservationResponse>::Create(channel_.get(), cq, rpcmethod_ReleaseReservation_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>* DataCatalog::Stub::PrepareAsyncReleaseReservationRaw(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::ReleaseReservationResponse>::Create(channel_.get(), cq, rpcmethod_ReleaseReservation_, context, request, false); +} + DataCatalog::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( DataCatalog_method_names[0], @@ -276,6 +366,21 @@ DataCatalog::Service::Service() { ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::ListDatasetsRequest, ::datacatalog::ListDatasetsResponse>( std::mem_fn(&DataCatalog::Service::ListDatasets), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + DataCatalog_method_names[7], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::GetOrReserveArtifactRequest, ::datacatalog::GetOrReserveArtifactResponse>( + std::mem_fn(&DataCatalog::Service::GetOrReserveArtifact), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + DataCatalog_method_names[8], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::ExtendReservationRequest, ::datacatalog::ExtendReservationResponse>( + std::mem_fn(&DataCatalog::Service::ExtendReservation), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + 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))); } DataCatalog::Service::~Service() { @@ -330,6 +435,27 @@ ::grpc::Status DataCatalog::Service::ListDatasets(::grpc::ServerContext* context return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status DataCatalog::Service::GetOrReserveArtifact(::grpc::ServerContext* context, const ::datacatalog::GetOrReserveArtifactRequest* request, ::datacatalog::GetOrReserveArtifactResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status DataCatalog::Service::ExtendReservation(::grpc::ServerContext* context, const ::datacatalog::ExtendReservationRequest* request, ::datacatalog::ExtendReservationResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status DataCatalog::Service::ReleaseReservation(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + } // namespace datacatalog diff --git a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.h index 354b924e329..675ad8b586b 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.h +++ b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.h @@ -109,6 +109,49 @@ 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)); } + // Get an artifact and the corresponding data. If the artifact does not exist, + // try to reserve a spot for populating the artifact. + // + // Once you preserve a spot, you should call ExtendReservation API periodically + // to extend the reservation. Otherwise, the reservation can expire and other + // tasks may take the spot. + // + // If the same owner_id calls this API for the same dataset and it has an active reservation and the artifacts have not been written yet by a different owner, the API will respond with an Acquired Reservation Status (providing idempotency). + // + // 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. + virtual ::grpc::Status GetOrReserveArtifact(::grpc::ClientContext* context, const ::datacatalog::GetOrReserveArtifactRequest& request, ::datacatalog::GetOrReserveArtifactResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetOrReserveArtifactResponse>> AsyncGetOrReserveArtifact(::grpc::ClientContext* context, const ::datacatalog::GetOrReserveArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetOrReserveArtifactResponse>>(AsyncGetOrReserveArtifactRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetOrReserveArtifactResponse>> PrepareAsyncGetOrReserveArtifact(::grpc::ClientContext* context, const ::datacatalog::GetOrReserveArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetOrReserveArtifactResponse>>(PrepareAsyncGetOrReserveArtifactRaw(context, request, cq)); + } + // Extend the reservation to keep it from expiring. If the reservation expires, + // other tasks can take over the reservation by calling GetOrReserveArtifact. + virtual ::grpc::Status ExtendReservation(::grpc::ClientContext* context, const ::datacatalog::ExtendReservationRequest& request, ::datacatalog::ExtendReservationResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ExtendReservationResponse>> AsyncExtendReservation(::grpc::ClientContext* context, const ::datacatalog::ExtendReservationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ExtendReservationResponse>>(AsyncExtendReservationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ExtendReservationResponse>> PrepareAsyncExtendReservation(::grpc::ClientContext* context, const ::datacatalog::ExtendReservationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ExtendReservationResponse>>(PrepareAsyncExtendReservationRaw(context, request, cq)); + } + // Release the reservation when the task holding the spot fails so that the other tasks + // can grab the spot. + virtual ::grpc::Status ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::datacatalog::ReleaseReservationResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ReleaseReservationResponse>> AsyncReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ReleaseReservationResponse>>(AsyncReleaseReservationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ReleaseReservationResponse>> PrepareAsyncReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ReleaseReservationResponse>>(PrepareAsyncReleaseReservationRaw(context, request, cq)); + } class experimental_async_interface { public: virtual ~experimental_async_interface() {} @@ -149,6 +192,40 @@ 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; + // Get an artifact and the corresponding data. If the artifact does not exist, + // try to reserve a spot for populating the artifact. + // + // Once you preserve a spot, you should call ExtendReservation API periodically + // to extend the reservation. Otherwise, the reservation can expire and other + // tasks may take the spot. + // + // If the same owner_id calls this API for the same dataset and it has an active reservation and the artifacts have not been written yet by a different owner, the API will respond with an Acquired Reservation Status (providing idempotency). + // + // 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. + virtual void GetOrReserveArtifact(::grpc::ClientContext* context, const ::datacatalog::GetOrReserveArtifactRequest* request, ::datacatalog::GetOrReserveArtifactResponse* response, std::function) = 0; + virtual void GetOrReserveArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetOrReserveArtifactResponse* response, std::function) = 0; + virtual void GetOrReserveArtifact(::grpc::ClientContext* context, const ::datacatalog::GetOrReserveArtifactRequest* request, ::datacatalog::GetOrReserveArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetOrReserveArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetOrReserveArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Extend the reservation to keep it from expiring. If the reservation expires, + // other tasks can take over the reservation by calling GetOrReserveArtifact. + virtual void ExtendReservation(::grpc::ClientContext* context, const ::datacatalog::ExtendReservationRequest* request, ::datacatalog::ExtendReservationResponse* response, std::function) = 0; + virtual void ExtendReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ExtendReservationResponse* response, std::function) = 0; + virtual void ExtendReservation(::grpc::ClientContext* context, const ::datacatalog::ExtendReservationRequest* request, ::datacatalog::ExtendReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void ExtendReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ExtendReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Release the reservation when the task holding the spot fails so that the other tasks + // can grab the spot. + virtual void ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response, std::function) = 0; + virtual void ReleaseReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ReleaseReservationResponse* response, std::function) = 0; + virtual void ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void ReleaseReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; }; virtual class experimental_async_interface* experimental_async() { return nullptr; } private: @@ -166,6 +243,12 @@ 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::GetOrReserveArtifactResponse>* AsyncGetOrReserveArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrReserveArtifactRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetOrReserveArtifactResponse>* PrepareAsyncGetOrReserveArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrReserveArtifactRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ExtendReservationResponse>* AsyncExtendReservationRaw(::grpc::ClientContext* context, const ::datacatalog::ExtendReservationRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ExtendReservationResponse>* PrepareAsyncExtendReservationRaw(::grpc::ClientContext* context, const ::datacatalog::ExtendReservationRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ReleaseReservationResponse>* AsyncReleaseReservationRaw(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ReleaseReservationResponse>* PrepareAsyncReleaseReservationRaw(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) = 0; }; class Stub final : public StubInterface { public: @@ -219,6 +302,27 @@ 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 GetOrReserveArtifact(::grpc::ClientContext* context, const ::datacatalog::GetOrReserveArtifactRequest& request, ::datacatalog::GetOrReserveArtifactResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrReserveArtifactResponse>> AsyncGetOrReserveArtifact(::grpc::ClientContext* context, const ::datacatalog::GetOrReserveArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrReserveArtifactResponse>>(AsyncGetOrReserveArtifactRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrReserveArtifactResponse>> PrepareAsyncGetOrReserveArtifact(::grpc::ClientContext* context, const ::datacatalog::GetOrReserveArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrReserveArtifactResponse>>(PrepareAsyncGetOrReserveArtifactRaw(context, request, cq)); + } + ::grpc::Status ExtendReservation(::grpc::ClientContext* context, const ::datacatalog::ExtendReservationRequest& request, ::datacatalog::ExtendReservationResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ExtendReservationResponse>> AsyncExtendReservation(::grpc::ClientContext* context, const ::datacatalog::ExtendReservationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ExtendReservationResponse>>(AsyncExtendReservationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ExtendReservationResponse>> PrepareAsyncExtendReservation(::grpc::ClientContext* context, const ::datacatalog::ExtendReservationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ExtendReservationResponse>>(PrepareAsyncExtendReservationRaw(context, request, cq)); + } + ::grpc::Status ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::datacatalog::ReleaseReservationResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>> AsyncReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>>(AsyncReleaseReservationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>> PrepareAsyncReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>>(PrepareAsyncReleaseReservationRaw(context, request, cq)); + } class experimental_async final : public StubInterface::experimental_async_interface { public: @@ -250,6 +354,18 @@ 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 GetOrReserveArtifact(::grpc::ClientContext* context, const ::datacatalog::GetOrReserveArtifactRequest* request, ::datacatalog::GetOrReserveArtifactResponse* response, std::function) override; + void GetOrReserveArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetOrReserveArtifactResponse* response, std::function) override; + void GetOrReserveArtifact(::grpc::ClientContext* context, const ::datacatalog::GetOrReserveArtifactRequest* request, ::datacatalog::GetOrReserveArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetOrReserveArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetOrReserveArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ExtendReservation(::grpc::ClientContext* context, const ::datacatalog::ExtendReservationRequest* request, ::datacatalog::ExtendReservationResponse* response, std::function) override; + void ExtendReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ExtendReservationResponse* response, std::function) override; + void ExtendReservation(::grpc::ClientContext* context, const ::datacatalog::ExtendReservationRequest* request, ::datacatalog::ExtendReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ExtendReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ExtendReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response, std::function) override; + void ReleaseReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ReleaseReservationResponse* response, std::function) override; + void ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ReleaseReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; private: friend class Stub; explicit experimental_async(Stub* stub): stub_(stub) { } @@ -275,6 +391,12 @@ 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::GetOrReserveArtifactResponse>* AsyncGetOrReserveArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrReserveArtifactRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrReserveArtifactResponse>* PrepareAsyncGetOrReserveArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrReserveArtifactRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::ExtendReservationResponse>* AsyncExtendReservationRaw(::grpc::ClientContext* context, const ::datacatalog::ExtendReservationRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::ExtendReservationResponse>* PrepareAsyncExtendReservationRaw(::grpc::ClientContext* context, const ::datacatalog::ExtendReservationRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>* AsyncReleaseReservationRaw(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>* PrepareAsyncReleaseReservationRaw(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_CreateDataset_; const ::grpc::internal::RpcMethod rpcmethod_GetDataset_; const ::grpc::internal::RpcMethod rpcmethod_CreateArtifact_; @@ -282,6 +404,9 @@ 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_GetOrReserveArtifact_; + const ::grpc::internal::RpcMethod rpcmethod_ExtendReservation_; + const ::grpc::internal::RpcMethod rpcmethod_ReleaseReservation_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -305,6 +430,31 @@ 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); + // Get an artifact and the corresponding data. If the artifact does not exist, + // try to reserve a spot for populating the artifact. + // + // Once you preserve a spot, you should call ExtendReservation API periodically + // to extend the reservation. Otherwise, the reservation can expire and other + // tasks may take the spot. + // + // If the same owner_id calls this API for the same dataset and it has an active reservation and the artifacts have not been written yet by a different owner, the API will respond with an Acquired Reservation Status (providing idempotency). + // + // 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. + virtual ::grpc::Status GetOrReserveArtifact(::grpc::ServerContext* context, const ::datacatalog::GetOrReserveArtifactRequest* request, ::datacatalog::GetOrReserveArtifactResponse* response); + // Extend the reservation to keep it from expiring. If the reservation expires, + // other tasks can take over the reservation by calling GetOrReserveArtifact. + virtual ::grpc::Status ExtendReservation(::grpc::ServerContext* context, const ::datacatalog::ExtendReservationRequest* request, ::datacatalog::ExtendReservationResponse* response); + // Release the reservation when the task holding the spot fails so that the other tasks + // can grab the spot. + virtual ::grpc::Status ReleaseReservation(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response); }; template class WithAsyncMethod_CreateDataset : public BaseClass { @@ -446,7 +596,67 @@ class DataCatalog final { ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_CreateDataset > > > > > > AsyncService; + template + class WithAsyncMethod_GetOrReserveArtifact : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetOrReserveArtifact() { + ::grpc::Service::MarkMethodAsync(7); + } + ~WithAsyncMethod_GetOrReserveArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOrReserveArtifact(::grpc::ServerContext* context, const ::datacatalog::GetOrReserveArtifactRequest* request, ::datacatalog::GetOrReserveArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetOrReserveArtifact(::grpc::ServerContext* context, ::datacatalog::GetOrReserveArtifactRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::GetOrReserveArtifactResponse>* 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_ExtendReservation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ExtendReservation() { + ::grpc::Service::MarkMethodAsync(8); + } + ~WithAsyncMethod_ExtendReservation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ExtendReservation(::grpc::ServerContext* context, const ::datacatalog::ExtendReservationRequest* request, ::datacatalog::ExtendReservationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestExtendReservation(::grpc::ServerContext* context, ::datacatalog::ExtendReservationRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::ExtendReservationResponse>* 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); + } + }; + template + class WithAsyncMethod_ReleaseReservation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ReleaseReservation() { + ::grpc::Service::MarkMethodAsync(9); + } + ~WithAsyncMethod_ReleaseReservation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ReleaseReservation(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response) override { + abort(); + 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(9, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_CreateDataset > > > > > > > > > AsyncService; template class ExperimentalWithCallbackMethod_CreateDataset : public BaseClass { private: @@ -664,7 +874,100 @@ 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, "")); } }; - typedef ExperimentalWithCallbackMethod_CreateDataset > > > > > > ExperimentalCallbackService; + template + class ExperimentalWithCallbackMethod_GetOrReserveArtifact : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GetOrReserveArtifact() { + ::grpc::Service::experimental().MarkMethodCallback(7, + new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::GetOrReserveArtifactRequest, ::datacatalog::GetOrReserveArtifactResponse>( + [this](::grpc::ServerContext* context, + const ::datacatalog::GetOrReserveArtifactRequest* request, + ::datacatalog::GetOrReserveArtifactResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetOrReserveArtifact(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetOrReserveArtifact( + ::grpc::experimental::MessageAllocator< ::datacatalog::GetOrReserveArtifactRequest, ::datacatalog::GetOrReserveArtifactResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::GetOrReserveArtifactRequest, ::datacatalog::GetOrReserveArtifactResponse>*>( + ::grpc::Service::experimental().GetHandler(7)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetOrReserveArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOrReserveArtifact(::grpc::ServerContext* context, const ::datacatalog::GetOrReserveArtifactRequest* request, ::datacatalog::GetOrReserveArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetOrReserveArtifact(::grpc::ServerContext* context, const ::datacatalog::GetOrReserveArtifactRequest* request, ::datacatalog::GetOrReserveArtifactResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_ExtendReservation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_ExtendReservation() { + ::grpc::Service::experimental().MarkMethodCallback(8, + new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::ExtendReservationRequest, ::datacatalog::ExtendReservationResponse>( + [this](::grpc::ServerContext* context, + const ::datacatalog::ExtendReservationRequest* request, + ::datacatalog::ExtendReservationResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->ExtendReservation(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_ExtendReservation( + ::grpc::experimental::MessageAllocator< ::datacatalog::ExtendReservationRequest, ::datacatalog::ExtendReservationResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::ExtendReservationRequest, ::datacatalog::ExtendReservationResponse>*>( + ::grpc::Service::experimental().GetHandler(8)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ExtendReservation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ExtendReservation(::grpc::ServerContext* context, const ::datacatalog::ExtendReservationRequest* request, ::datacatalog::ExtendReservationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ExtendReservation(::grpc::ServerContext* context, const ::datacatalog::ExtendReservationRequest* request, ::datacatalog::ExtendReservationResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_ReleaseReservation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_ReleaseReservation() { + ::grpc::Service::experimental().MarkMethodCallback(9, + new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::ReleaseReservationRequest, ::datacatalog::ReleaseReservationResponse>( + [this](::grpc::ServerContext* context, + const ::datacatalog::ReleaseReservationRequest* request, + ::datacatalog::ReleaseReservationResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->ReleaseReservation(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_ReleaseReservation( + ::grpc::experimental::MessageAllocator< ::datacatalog::ReleaseReservationRequest, ::datacatalog::ReleaseReservationResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::ReleaseReservationRequest, ::datacatalog::ReleaseReservationResponse>*>( + ::grpc::Service::experimental().GetHandler(9)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ReleaseReservation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ReleaseReservation(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + 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; template class WithGenericMethod_CreateDataset : public BaseClass { private: @@ -785,6 +1088,57 @@ class DataCatalog final { } }; template + class WithGenericMethod_GetOrReserveArtifact : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetOrReserveArtifact() { + ::grpc::Service::MarkMethodGeneric(7); + } + ~WithGenericMethod_GetOrReserveArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOrReserveArtifact(::grpc::ServerContext* context, const ::datacatalog::GetOrReserveArtifactRequest* request, ::datacatalog::GetOrReserveArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ExtendReservation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ExtendReservation() { + ::grpc::Service::MarkMethodGeneric(8); + } + ~WithGenericMethod_ExtendReservation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ExtendReservation(::grpc::ServerContext* context, const ::datacatalog::ExtendReservationRequest* request, ::datacatalog::ExtendReservationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ReleaseReservation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ReleaseReservation() { + ::grpc::Service::MarkMethodGeneric(9); + } + ~WithGenericMethod_ReleaseReservation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ReleaseReservation(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithRawMethod_CreateDataset : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} @@ -925,6 +1279,66 @@ class DataCatalog final { } }; template + class WithRawMethod_GetOrReserveArtifact : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetOrReserveArtifact() { + ::grpc::Service::MarkMethodRaw(7); + } + ~WithRawMethod_GetOrReserveArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOrReserveArtifact(::grpc::ServerContext* context, const ::datacatalog::GetOrReserveArtifactRequest* request, ::datacatalog::GetOrReserveArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetOrReserveArtifact(::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_ExtendReservation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ExtendReservation() { + ::grpc::Service::MarkMethodRaw(8); + } + ~WithRawMethod_ExtendReservation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ExtendReservation(::grpc::ServerContext* context, const ::datacatalog::ExtendReservationRequest* request, ::datacatalog::ExtendReservationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestExtendReservation(::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); + } + }; + template + class WithRawMethod_ReleaseReservation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ReleaseReservation() { + ::grpc::Service::MarkMethodRaw(9); + } + ~WithRawMethod_ReleaseReservation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ReleaseReservation(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response) override { + abort(); + 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(9, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class ExperimentalWithRawCallbackMethod_CreateDataset : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} @@ -1100,6 +1514,81 @@ 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_GetOrReserveArtifact : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GetOrReserveArtifact() { + ::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->GetOrReserveArtifact(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetOrReserveArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOrReserveArtifact(::grpc::ServerContext* context, const ::datacatalog::GetOrReserveArtifactRequest* request, ::datacatalog::GetOrReserveArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetOrReserveArtifact(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_ExtendReservation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_ExtendReservation() { + ::grpc::Service::experimental().MarkMethodRawCallback(8, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->ExtendReservation(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_ExtendReservation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ExtendReservation(::grpc::ServerContext* context, const ::datacatalog::ExtendReservationRequest* request, ::datacatalog::ExtendReservationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ExtendReservation(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_ReleaseReservation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_ReleaseReservation() { + ::grpc::Service::experimental().MarkMethodRawCallback(9, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->ReleaseReservation(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_ReleaseReservation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ReleaseReservation(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ReleaseReservation(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template class WithStreamedUnaryMethod_CreateDataset : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} @@ -1239,9 +1728,69 @@ class DataCatalog final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedListDatasets(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::ListDatasetsRequest,::datacatalog::ListDatasetsResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_CreateDataset > > > > > > StreamedUnaryService; + template + class WithStreamedUnaryMethod_GetOrReserveArtifact : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetOrReserveArtifact() { + ::grpc::Service::MarkMethodStreamed(7, + new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::GetOrReserveArtifactRequest, ::datacatalog::GetOrReserveArtifactResponse>(std::bind(&WithStreamedUnaryMethod_GetOrReserveArtifact::StreamedGetOrReserveArtifact, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetOrReserveArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetOrReserveArtifact(::grpc::ServerContext* context, const ::datacatalog::GetOrReserveArtifactRequest* request, ::datacatalog::GetOrReserveArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetOrReserveArtifact(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::GetOrReserveArtifactRequest,::datacatalog::GetOrReserveArtifactResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ExtendReservation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ExtendReservation() { + ::grpc::Service::MarkMethodStreamed(8, + new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::ExtendReservationRequest, ::datacatalog::ExtendReservationResponse>(std::bind(&WithStreamedUnaryMethod_ExtendReservation::StreamedExtendReservation, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ExtendReservation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ExtendReservation(::grpc::ServerContext* context, const ::datacatalog::ExtendReservationRequest* request, ::datacatalog::ExtendReservationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedExtendReservation(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::ExtendReservationRequest,::datacatalog::ExtendReservationResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ReleaseReservation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ReleaseReservation() { + ::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 { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ReleaseReservation(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // 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 Service SplitStreamedService; - typedef WithStreamedUnaryMethod_CreateDataset > > > > > > StreamedService; + typedef WithStreamedUnaryMethod_CreateDataset > > > > > > > > > StreamedService; }; } // namespace datacatalog diff --git a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.cc index b0c37cc9fae..cc3c6e157f9 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.cc +++ b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.cc @@ -29,6 +29,7 @@ extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::g extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_FilterExpression_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_PartitionPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ReservationStatus_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Tag_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Dataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_SinglePropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; @@ -93,6 +94,36 @@ class ListDatasetsResponseDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _ListDatasetsResponse_default_instance_; +class GetOrReserveArtifactRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GetOrReserveArtifactRequest_default_instance_; +class ReservationStatusDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ReservationStatus_default_instance_; +class GetOrReserveArtifactResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::datacatalog::Artifact* artifact_; + const ::datacatalog::ReservationStatus* reservation_status_; +} _GetOrReserveArtifactResponse_default_instance_; +class ExtendReservationRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ExtendReservationRequest_default_instance_; +class ExtendReservationResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ExtendReservationResponse_default_instance_; +class ReleaseReservationRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ReleaseReservationRequest_default_instance_; +class ReleaseReservationResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ReleaseReservationResponse_default_instance_; class DatasetDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; @@ -379,6 +410,110 @@ ::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 InitDefaultsGetOrReserveArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_GetOrReserveArtifactRequest_default_instance_; + new (ptr) ::datacatalog::GetOrReserveArtifactRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::GetOrReserveArtifactRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_GetOrReserveArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetOrReserveArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsReservationStatus_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_ReservationStatus_default_instance_; + new (ptr) ::datacatalog::ReservationStatus(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::ReservationStatus::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ReservationStatus_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsReservationStatus_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_Metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsGetOrReserveArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_GetOrReserveArtifactResponse_default_instance_; + new (ptr) ::datacatalog::GetOrReserveArtifactResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::GetOrReserveArtifactResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_GetOrReserveArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsGetOrReserveArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_ReservationStatus_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsExtendReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_ExtendReservationRequest_default_instance_; + new (ptr) ::datacatalog::ExtendReservationRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::ExtendReservationRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ExtendReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsExtendReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsExtendReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_ExtendReservationResponse_default_instance_; + new (ptr) ::datacatalog::ExtendReservationResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::ExtendReservationResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ExtendReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsExtendReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; + +static void InitDefaultsReleaseReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_ReleaseReservationRequest_default_instance_; + new (ptr) ::datacatalog::ReleaseReservationRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::ReleaseReservationRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ReleaseReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsReleaseReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsReleaseReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_ReleaseReservationResponse_default_instance_; + new (ptr) ::datacatalog::ReleaseReservationResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::ReleaseReservationResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ReleaseReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsReleaseReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; + static void InitDefaultsDataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -634,6 +769,13 @@ 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_GetOrReserveArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ReservationStatus_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetOrReserveArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ExtendReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ExtendReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ReleaseReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ReleaseReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_Dataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_Partition_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); @@ -652,8 +794,8 @@ 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[30]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[3]; +::google::protobuf::Metadata file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[37]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[4]; constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = nullptr; const ::google::protobuf::uint32 TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { @@ -747,6 +889,56 @@ 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::GetOrReserveArtifactRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::GetOrReserveArtifactRequest, dataset_id_), + PROTOBUF_FIELD_OFFSET(::datacatalog::GetOrReserveArtifactRequest, tag_name_), + PROTOBUF_FIELD_OFFSET(::datacatalog::GetOrReserveArtifactRequest, owner_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ReservationStatus, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ReservationStatus, state_), + PROTOBUF_FIELD_OFFSET(::datacatalog::ReservationStatus, metadata_), + PROTOBUF_FIELD_OFFSET(::datacatalog::ReservationStatus, owner_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::GetOrReserveArtifactResponse, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::datacatalog::GetOrReserveArtifactResponse, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::datacatalog::GetOrReserveArtifactResponseDefaultTypeInternal, artifact_), + offsetof(::datacatalog::GetOrReserveArtifactResponseDefaultTypeInternal, reservation_status_), + PROTOBUF_FIELD_OFFSET(::datacatalog::GetOrReserveArtifactResponse, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ExtendReservationRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ExtendReservationRequest, dataset_id_), + PROTOBUF_FIELD_OFFSET(::datacatalog::ExtendReservationRequest, tag_name_), + PROTOBUF_FIELD_OFFSET(::datacatalog::ExtendReservationRequest, owner_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ExtendReservationResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ReleaseReservationRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ReleaseReservationRequest, dataset_id_), + PROTOBUF_FIELD_OFFSET(::datacatalog::ReleaseReservationRequest, tag_name_), + PROTOBUF_FIELD_OFFSET(::datacatalog::ReleaseReservationRequest, owner_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ReleaseReservationResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::datacatalog::Dataset, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -893,22 +1085,29 @@ 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::Dataset)}, - { 97, -1, sizeof(::datacatalog::Partition)}, - { 104, -1, sizeof(::datacatalog::DatasetID)}, - { 114, -1, sizeof(::datacatalog::Artifact)}, - { 126, -1, sizeof(::datacatalog::ArtifactData)}, - { 133, -1, sizeof(::datacatalog::Tag)}, - { 141, 148, sizeof(::datacatalog::Metadata_KeyMapEntry_DoNotUse)}, - { 150, -1, sizeof(::datacatalog::Metadata)}, - { 156, -1, sizeof(::datacatalog::FilterExpression)}, - { 162, -1, sizeof(::datacatalog::SinglePropertyFilter)}, - { 173, -1, sizeof(::datacatalog::ArtifactPropertyFilter)}, - { 180, -1, sizeof(::datacatalog::TagPropertyFilter)}, - { 187, -1, sizeof(::datacatalog::PartitionPropertyFilter)}, - { 194, -1, sizeof(::datacatalog::KeyValuePair)}, - { 201, -1, sizeof(::datacatalog::DatasetPropertyFilter)}, - { 211, -1, sizeof(::datacatalog::PaginationOptions)}, + { 89, -1, sizeof(::datacatalog::GetOrReserveArtifactRequest)}, + { 97, -1, sizeof(::datacatalog::ReservationStatus)}, + { 105, -1, sizeof(::datacatalog::GetOrReserveArtifactResponse)}, + { 113, -1, sizeof(::datacatalog::ExtendReservationRequest)}, + { 121, -1, sizeof(::datacatalog::ExtendReservationResponse)}, + { 126, -1, sizeof(::datacatalog::ReleaseReservationRequest)}, + { 134, -1, sizeof(::datacatalog::ReleaseReservationResponse)}, + { 139, -1, sizeof(::datacatalog::Dataset)}, + { 147, -1, sizeof(::datacatalog::Partition)}, + { 154, -1, sizeof(::datacatalog::DatasetID)}, + { 164, -1, sizeof(::datacatalog::Artifact)}, + { 176, -1, sizeof(::datacatalog::ArtifactData)}, + { 183, -1, sizeof(::datacatalog::Tag)}, + { 191, 198, sizeof(::datacatalog::Metadata_KeyMapEntry_DoNotUse)}, + { 200, -1, sizeof(::datacatalog::Metadata)}, + { 206, -1, sizeof(::datacatalog::FilterExpression)}, + { 212, -1, sizeof(::datacatalog::SinglePropertyFilter)}, + { 223, -1, sizeof(::datacatalog::ArtifactPropertyFilter)}, + { 230, -1, sizeof(::datacatalog::TagPropertyFilter)}, + { 237, -1, sizeof(::datacatalog::PartitionPropertyFilter)}, + { 244, -1, sizeof(::datacatalog::KeyValuePair)}, + { 251, -1, sizeof(::datacatalog::DatasetPropertyFilter)}, + { 261, -1, sizeof(::datacatalog::PaginationOptions)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { @@ -926,6 +1125,13 @@ 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::_GetOrReserveArtifactRequest_default_instance_), + reinterpret_cast(&::datacatalog::_ReservationStatus_default_instance_), + reinterpret_cast(&::datacatalog::_GetOrReserveArtifactResponse_default_instance_), + reinterpret_cast(&::datacatalog::_ExtendReservationRequest_default_instance_), + reinterpret_cast(&::datacatalog::_ExtendReservationResponse_default_instance_), + reinterpret_cast(&::datacatalog::_ReleaseReservationRequest_default_instance_), + reinterpret_cast(&::datacatalog::_ReleaseReservationResponse_default_instance_), reinterpret_cast(&::datacatalog::_Dataset_default_instance_), reinterpret_cast(&::datacatalog::_Partition_default_instance_), reinterpret_cast(&::datacatalog::_DatasetID_default_instance_), @@ -947,123 +1153,171 @@ 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, 30, file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, file_level_service_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, + file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, 37, 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[] = "\n&flyteidl/datacatalog/datacatalog.proto" "\022\013datacatalog\032\034flyteidl/core/literals.pr" - "oto\032\037google/protobuf/timestamp.proto\"=\n\024" - "CreateDatasetRequest\022%\n\007dataset\030\001 \001(\0132\024." - "datacatalog.Dataset\"\027\n\025CreateDatasetResp" - "onse\"<\n\021GetDatasetRequest\022\'\n\007dataset\030\001 \001" - "(\0132\026.datacatalog.DatasetID\";\n\022GetDataset" - "Response\022%\n\007dataset\030\001 \001(\0132\024.datacatalog." - "Dataset\"x\n\022GetArtifactRequest\022\'\n\007dataset" - "\030\001 \001(\0132\026.datacatalog.DatasetID\022\025\n\013artifa" - "ct_id\030\002 \001(\tH\000\022\022\n\010tag_name\030\003 \001(\tH\000B\016\n\014que" - "ry_handle\">\n\023GetArtifactResponse\022\'\n\010arti" - "fact\030\001 \001(\0132\025.datacatalog.Artifact\"@\n\025Cre" - "ateArtifactRequest\022\'\n\010artifact\030\001 \001(\0132\025.d" - "atacatalog.Artifact\"\030\n\026CreateArtifactRes" - "ponse\".\n\rAddTagRequest\022\035\n\003tag\030\001 \001(\0132\020.da" - "tacatalog.Tag\"\020\n\016AddTagResponse\"\242\001\n\024List" - "ArtifactsRequest\022\'\n\007dataset\030\001 \001(\0132\026.data" - "catalog.DatasetID\022-\n\006filter\030\002 \001(\0132\035.data" - "catalog.FilterExpression\0222\n\npagination\030\003" - " \001(\0132\036.datacatalog.PaginationOptions\"U\n\025" - "ListArtifactsResponse\022(\n\tartifacts\030\001 \003(\013" - "2\025.datacatalog.Artifact\022\022\n\nnext_token\030\002 " - "\001(\t\"x\n\023ListDatasetsRequest\022-\n\006filter\030\001 \001" - "(\0132\035.datacatalog.FilterExpression\0222\n\npag" - "ination\030\002 \001(\0132\036.datacatalog.PaginationOp" - "tions\"R\n\024ListDatasetsResponse\022&\n\010dataset" - "s\030\001 \003(\0132\024.datacatalog.Dataset\022\022\n\nnext_to" - "ken\030\002 \001(\t\"m\n\007Dataset\022\"\n\002id\030\001 \001(\0132\026.datac" - "atalog.DatasetID\022\'\n\010metadata\030\002 \001(\0132\025.dat" - "acatalog.Metadata\022\025\n\rpartitionKeys\030\003 \003(\t" - "\"\'\n\tPartition\022\013\n\003key\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\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\010metadata\030\004 \001(\0132\025.datacatalog.Metadata" - "\022*\n\npartitions\030\005 \003(\0132\026.datacatalog.Parti" - "tion\022\036\n\004tags\030\006 \003(\0132\020.datacatalog.Tag\022.\n\n" - "created_at\030\007 \001(\0132\032.google.protobuf.Times" - "tamp\"C\n\014ArtifactData\022\014\n\004name\030\001 \001(\t\022%\n\005va" - "lue\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\007d" - "ataset\030\003 \001(\0132\026.datacatalog.DatasetID\"m\n\010" - "Metadata\0222\n\007key_map\030\001 \003(\0132!.datacatalog." - "Metadata.KeyMapEntry\032-\n\013KeyMapEntry\022\013\n\003k" - "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"F\n\020FilterExp" - "ression\0222\n\007filters\030\001 \003(\0132!.datacatalog.S" - "inglePropertyFilter\"\211\003\n\024SinglePropertyFi" - "lter\0224\n\ntag_filter\030\001 \001(\0132\036.datacatalog.T" - "agPropertyFilterH\000\022@\n\020partition_filter\030\002" - " \001(\0132$.datacatalog.PartitionPropertyFilt" - "erH\000\022>\n\017artifact_filter\030\003 \001(\0132#.datacata" - "log.ArtifactPropertyFilterH\000\022<\n\016dataset_" - "filter\030\004 \001(\0132\".datacatalog.DatasetProper" - "tyFilterH\000\022F\n\010operator\030\n \001(\01624.datacatal" - "og.SinglePropertyFilter.ComparisonOperat" - "or\" \n\022ComparisonOperator\022\n\n\006EQUALS\020\000B\021\n\017" - "property_filter\";\n\026ArtifactPropertyFilte" - "r\022\025\n\013artifact_id\030\001 \001(\tH\000B\n\n\010property\"3\n\021" - "TagPropertyFilter\022\022\n\010tag_name\030\001 \001(\tH\000B\n\n" - "\010property\"S\n\027PartitionPropertyFilter\022,\n\007" - "key_val\030\001 \001(\0132\031.datacatalog.KeyValuePair" - "H\000B\n\n\010property\"*\n\014KeyValuePair\022\013\n\003key\030\001 " - "\001(\t\022\r\n\005value\030\002 \001(\t\"k\n\025DatasetPropertyFil" - "ter\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\010p" - "roperty\"\361\001\n\021PaginationOptions\022\r\n\005limit\030\001" - " \001(\r\022\r\n\005token\030\002 \001(\t\0227\n\007sortKey\030\003 \001(\0162&.d" - "atacatalog.PaginationOptions.SortKey\022;\n\t" - "sortOrder\030\004 \001(\0162(.datacatalog.Pagination" - "Options.SortOrder\"*\n\tSortOrder\022\016\n\nDESCEN" - "DING\020\000\022\r\n\tASCENDING\020\001\"\034\n\007SortKey\022\021\n\rCREA" - "TION_TIME\020\0002\321\004\n\013DataCatalog\022V\n\rCreateDat" - "aset\022!.datacatalog.CreateDatasetRequest\032" - "\".datacatalog.CreateDatasetResponse\022M\n\nG" - "etDataset\022\036.datacatalog.GetDatasetReques" - "t\032\037.datacatalog.GetDatasetResponse\022Y\n\016Cr" - "eateArtifact\022\".datacatalog.CreateArtifac" - "tRequest\032#.datacatalog.CreateArtifactRes" - "ponse\022P\n\013GetArtifact\022\037.datacatalog.GetAr" - "tifactRequest\032 .datacatalog.GetArtifactR" - "esponse\022A\n\006AddTag\022\032.datacatalog.AddTagRe" - "quest\032\033.datacatalog.AddTagResponse\022V\n\rLi" - "stArtifacts\022!.datacatalog.ListArtifactsR" - "equest\032\".datacatalog.ListArtifactsRespon" - "se\022S\n\014ListDatasets\022 .datacatalog.ListDat" - "asetsRequest\032!.datacatalog.ListDatasetsR" - "esponseb\006proto3" + "oto\032\036google/protobuf/duration.proto\032\037goo" + "gle/protobuf/timestamp.proto\"=\n\024CreateDa" + "tasetRequest\022%\n\007dataset\030\001 \001(\0132\024.datacata" + "log.Dataset\"\027\n\025CreateDatasetResponse\"<\n\021" + "GetDatasetRequest\022\'\n\007dataset\030\001 \001(\0132\026.dat" + "acatalog.DatasetID\";\n\022GetDatasetResponse" + "\022%\n\007dataset\030\001 \001(\0132\024.datacatalog.Dataset\"" + "x\n\022GetArtifactRequest\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\000B\016\n\014query_handl" + "e\">\n\023GetArtifactResponse\022\'\n\010artifact\030\001 \001" + "(\0132\025.datacatalog.Artifact\"@\n\025CreateArtif" + "actRequest\022\'\n\010artifact\030\001 \001(\0132\025.datacatal" + "og.Artifact\"\030\n\026CreateArtifactResponse\".\n" + "\rAddTagRequest\022\035\n\003tag\030\001 \001(\0132\020.datacatalo" + "g.Tag\"\020\n\016AddTagResponse\"\242\001\n\024ListArtifact" + "sRequest\022\'\n\007dataset\030\001 \001(\0132\026.datacatalog." + "DatasetID\022-\n\006filter\030\002 \001(\0132\035.datacatalog." + "FilterExpression\0222\n\npagination\030\003 \001(\0132\036.d" + "atacatalog.PaginationOptions\"U\n\025ListArti" + "factsResponse\022(\n\tartifacts\030\001 \003(\0132\025.datac" + "atalog.Artifact\022\022\n\nnext_token\030\002 \001(\t\"x\n\023L" + "istDatasetsRequest\022-\n\006filter\030\001 \001(\0132\035.dat" + "acatalog.FilterExpression\0222\n\npagination\030" + "\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\033GetOrReserveArtifactRequest\022*\n\ndata" + "set_id\030\001 \001(\0132\026.datacatalog.DatasetID\022\020\n\010" + "tag_name\030\002 \001(\t\022\020\n\010owner_id\030\003 \001(\t\"\263\001\n\021Res" + "ervationStatus\0223\n\005state\030\001 \001(\0162$.datacata" + "log.ReservationStatus.State\022\'\n\010metadata\030" + "\002 \001(\0132\025.datacatalog.Metadata\022\020\n\010owner_id" + "\030\003 \001(\t\".\n\005State\022\014\n\010ACQUIRED\020\000\022\027\n\023ALREADY" + "_IN_PROGRESS\020\001\"\220\001\n\034GetOrReserveArtifactR" + "esponse\022)\n\010artifact\030\001 \001(\0132\025.datacatalog." + "ArtifactH\000\022<\n\022reservation_status\030\002 \001(\0132\036" + ".datacatalog.ReservationStatusH\000B\007\n\005valu" + "e\"j\n\030ExtendReservationRequest\022*\n\ndataset" + "_id\030\001 \001(\0132\026.datacatalog.DatasetID\022\020\n\010tag" + "_name\030\002 \001(\t\022\020\n\010owner_id\030\003 \001(\t\"\033\n\031ExtendR" + "eservationResponse\"k\n\031ReleaseReservation" + "Request\022*\n\ndataset_id\030\001 \001(\0132\026.datacatalo" + "g.DatasetID\022\020\n\010tag_name\030\002 \001(\t\022\020\n\010owner_i" + "d\030\003 \001(\t\"\034\n\032ReleaseReservationResponse\"m\n" + "\007Dataset\022\"\n\002id\030\001 \001(\0132\026.datacatalog.Datas" + "etID\022\'\n\010metadata\030\002 \001(\0132\025.datacatalog.Met" + "adata\022\025\n\rpartitionKeys\030\003 \003(\t\"\'\n\tPartitio" + "n\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"Y\n\tDataset" + "ID\022\017\n\007project\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\016\n\006dom" + "ain\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(\013" + "2\031.datacatalog.ArtifactData\022\'\n\010metadata\030" + "\004 \001(\0132\025.datacatalog.Metadata\022*\n\npartitio" + "ns\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\014Arti" + "factData\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(\013" + "2\026.datacatalog.DatasetID\"m\n\010Metadata\0222\n\007" + "key_map\030\001 \003(\0132!.datacatalog.Metadata.Key" + "MapEntry\032-\n\013KeyMapEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + "value\030\002 \001(\t:\0028\001\"F\n\020FilterExpression\0222\n\007f" + "ilters\030\001 \003(\0132!.datacatalog.SinglePropert" + "yFilter\"\211\003\n\024SinglePropertyFilter\0224\n\ntag_" + "filter\030\001 \001(\0132\036.datacatalog.TagPropertyFi" + "lterH\000\022@\n\020partition_filter\030\002 \001(\0132$.datac" + "atalog.PartitionPropertyFilterH\000\022>\n\017arti" + "fact_filter\030\003 \001(\0132#.datacatalog.Artifact" + "PropertyFilterH\000\022<\n\016dataset_filter\030\004 \001(\013" + "2\".datacatalog.DatasetPropertyFilterH\000\022F" + "\n\010operator\030\n \001(\01624.datacatalog.SinglePro" + "pertyFilter.ComparisonOperator\" \n\022Compar" + "isonOperator\022\n\n\006EQUALS\020\000B\021\n\017property_fil" + "ter\";\n\026ArtifactPropertyFilter\022\025\n\013artifac" + "t_id\030\001 \001(\tH\000B\n\n\010property\"3\n\021TagPropertyF" + "ilter\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\010proper" + "ty\"*\n\014KeyValuePair\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + "\030\002 \001(\t\"k\n\025DatasetPropertyFilter\022\021\n\007proje" + "ct\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\021" + "PaginationOptions\022\r\n\005limit\030\001 \001(\r\022\r\n\005toke" + "n\030\002 \001(\t\0227\n\007sortKey\030\003 \001(\0162&.datacatalog.P" + "aginationOptions.SortKey\022;\n\tsortOrder\030\004 " + "\001(\0162(.datacatalog.PaginationOptions.Sort" + "Order\"*\n\tSortOrder\022\016\n\nDESCENDING\020\000\022\r\n\tAS" + "CENDING\020\001\"\034\n\007SortKey\022\021\n\rCREATION_TIME\020\0002" + "\211\007\n\013DataCatalog\022V\n\rCreateDataset\022!.datac" + "atalog.CreateDatasetRequest\032\".datacatalo" + "g.CreateDatasetResponse\022M\n\nGetDataset\022\036." + "datacatalog.GetDatasetRequest\032\037.datacata" + "log.GetDatasetResponse\022Y\n\016CreateArtifact" + "\022\".datacatalog.CreateArtifactRequest\032#.d" + "atacatalog.CreateArtifactResponse\022P\n\013Get" + "Artifact\022\037.datacatalog.GetArtifactReques" + "t\032 .datacatalog.GetArtifactResponse\022A\n\006A" + "ddTag\022\032.datacatalog.AddTagRequest\032\033.data" + "catalog.AddTagResponse\022V\n\rListArtifacts\022" + "!.datacatalog.ListArtifactsRequest\032\".dat" + "acatalog.ListArtifactsResponse\022S\n\014ListDa" + "tasets\022 .datacatalog.ListDatasetsRequest" + "\032!.datacatalog.ListDatasetsResponse\022k\n\024G" + "etOrReserveArtifact\022(.datacatalog.GetOrR" + "eserveArtifactRequest\032).datacatalog.GetO" + "rReserveArtifactResponse\022b\n\021ExtendReserv" + "ation\022%.datacatalog.ExtendReservationReq" + "uest\032&.datacatalog.ExtendReservationResp" + "onse\022e\n\022ReleaseReservation\022&.datacatalog" + ".ReleaseReservationRequest\032\'.datacatalog" + ".ReleaseReservationResponseb\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, 3575, + "flyteidl/datacatalog/datacatalog.proto", &assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, 4635, }; void AddDescriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[2] = + static constexpr ::google::protobuf::internal::InitFunc deps[3] = { ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, + ::AddDescriptors_google_2fprotobuf_2fduration_2eproto, ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, deps, 2); + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, deps, 3); } // Force running AddDescriptors() at dynamic initialization time. static bool dynamic_init_dummy_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = []() { AddDescriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto(); return true; }(); namespace datacatalog { -const ::google::protobuf::EnumDescriptor* SinglePropertyFilter_ComparisonOperator_descriptor() { +const ::google::protobuf::EnumDescriptor* ReservationStatus_State_descriptor() { ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); return file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[0]; } +bool ReservationStatus_State_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const ReservationStatus_State ReservationStatus::ACQUIRED; +const ReservationStatus_State ReservationStatus::ALREADY_IN_PROGRESS; +const ReservationStatus_State ReservationStatus::State_MIN; +const ReservationStatus_State ReservationStatus::State_MAX; +const int ReservationStatus::State_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* SinglePropertyFilter_ComparisonOperator_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[1]; +} bool SinglePropertyFilter_ComparisonOperator_IsValid(int value) { switch (value) { case 0: @@ -1081,7 +1335,7 @@ const int SinglePropertyFilter::ComparisonOperator_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 const ::google::protobuf::EnumDescriptor* PaginationOptions_SortOrder_descriptor() { ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[1]; + return file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[2]; } bool PaginationOptions_SortOrder_IsValid(int value) { switch (value) { @@ -1102,7 +1356,7 @@ const int PaginationOptions::SortOrder_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 const ::google::protobuf::EnumDescriptor* PaginationOptions_SortKey_descriptor() { ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[2]; + return file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[3]; } bool PaginationOptions_SortKey_IsValid(int value) { switch (value) { @@ -4974,12 +5228,2697 @@ ::google::protobuf::uint8* ListDatasetsRequest::InternalSerializeWithCachedSizes target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:datacatalog.ListDatasetsRequest) + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.ListDatasetsRequest) + return target; +} + +size_t ListDatasetsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.ListDatasetsRequest) + 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; + + // .datacatalog.FilterExpression filter = 1; + if (this->has_filter()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *filter_); + } + + // .datacatalog.PaginationOptions pagination = 2; + if (this->has_pagination()) { + total_size += 1 + + ::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 GetOrReserveArtifactRequest::InitAsDefaultInstance() { + ::datacatalog::_GetOrReserveArtifactRequest_default_instance_._instance.get_mutable()->dataset_id_ = const_cast< ::datacatalog::DatasetID*>( + ::datacatalog::DatasetID::internal_default_instance()); +} +class GetOrReserveArtifactRequest::HasBitSetters { + public: + static const ::datacatalog::DatasetID& dataset_id(const GetOrReserveArtifactRequest* msg); +}; + +const ::datacatalog::DatasetID& +GetOrReserveArtifactRequest::HasBitSetters::dataset_id(const GetOrReserveArtifactRequest* msg) { + return *msg->dataset_id_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetOrReserveArtifactRequest::kDatasetIdFieldNumber; +const int GetOrReserveArtifactRequest::kTagNameFieldNumber; +const int GetOrReserveArtifactRequest::kOwnerIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetOrReserveArtifactRequest::GetOrReserveArtifactRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.GetOrReserveArtifactRequest) +} +GetOrReserveArtifactRequest::GetOrReserveArtifactRequest(const GetOrReserveArtifactRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.tag_name().size() > 0) { + tag_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tag_name_); + } + owner_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.owner_id().size() > 0) { + owner_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.owner_id_); + } + if (from.has_dataset_id()) { + dataset_id_ = new ::datacatalog::DatasetID(*from.dataset_id_); + } else { + dataset_id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.GetOrReserveArtifactRequest) +} + +void GetOrReserveArtifactRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_GetOrReserveArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + owner_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + dataset_id_ = nullptr; +} + +GetOrReserveArtifactRequest::~GetOrReserveArtifactRequest() { + // @@protoc_insertion_point(destructor:datacatalog.GetOrReserveArtifactRequest) + SharedDtor(); +} + +void GetOrReserveArtifactRequest::SharedDtor() { + tag_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + owner_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete dataset_id_; +} + +void GetOrReserveArtifactRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GetOrReserveArtifactRequest& GetOrReserveArtifactRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetOrReserveArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void GetOrReserveArtifactRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.GetOrReserveArtifactRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + tag_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + owner_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && dataset_id_ != nullptr) { + delete dataset_id_; + } + dataset_id_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GetOrReserveArtifactRequest::_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_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::DatasetID::_InternalParse; + object = msg->mutable_dataset_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string tag_name = 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.GetOrReserveArtifactRequest.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; + } + // string owner_id = 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.GetOrReserveArtifactRequest.owner_id"); + object = msg->mutable_owner_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; + } + 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 GetOrReserveArtifactRequest::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.GetOrReserveArtifactRequest) + 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_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_dataset_id())); + } else { + goto handle_unusual; + } + break; + } + + // string tag_name = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 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.GetOrReserveArtifactRequest.tag_name")); + } else { + goto handle_unusual; + } + break; + } + + // string owner_id = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_owner_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->owner_id().data(), static_cast(this->owner_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.GetOrReserveArtifactRequest.owner_id")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.GetOrReserveArtifactRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.GetOrReserveArtifactRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GetOrReserveArtifactRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.GetOrReserveArtifactRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.DatasetID dataset_id = 1; + if (this->has_dataset_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::dataset_id(this), output); + } + + // string tag_name = 2; + if (this->tag_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag_name().data(), static_cast(this->tag_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.GetOrReserveArtifactRequest.tag_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->tag_name(), output); + } + + // string owner_id = 3; + if (this->owner_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->owner_id().data(), static_cast(this->owner_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.GetOrReserveArtifactRequest.owner_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->owner_id(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.GetOrReserveArtifactRequest) +} + +::google::protobuf::uint8* GetOrReserveArtifactRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.GetOrReserveArtifactRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.DatasetID dataset_id = 1; + if (this->has_dataset_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::dataset_id(this), target); + } + + // string tag_name = 2; + if (this->tag_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag_name().data(), static_cast(this->tag_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.GetOrReserveArtifactRequest.tag_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->tag_name(), target); + } + + // string owner_id = 3; + if (this->owner_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->owner_id().data(), static_cast(this->owner_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.GetOrReserveArtifactRequest.owner_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->owner_id(), 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.GetOrReserveArtifactRequest) + return target; +} + +size_t GetOrReserveArtifactRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.GetOrReserveArtifactRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string tag_name = 2; + if (this->tag_name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->tag_name()); + } + + // string owner_id = 3; + if (this->owner_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->owner_id()); + } + + // .datacatalog.DatasetID dataset_id = 1; + if (this->has_dataset_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *dataset_id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetOrReserveArtifactRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.GetOrReserveArtifactRequest) + GOOGLE_DCHECK_NE(&from, this); + const GetOrReserveArtifactRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.GetOrReserveArtifactRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.GetOrReserveArtifactRequest) + MergeFrom(*source); + } +} + +void GetOrReserveArtifactRequest::MergeFrom(const GetOrReserveArtifactRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.GetOrReserveArtifactRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.tag_name().size() > 0) { + + tag_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tag_name_); + } + if (from.owner_id().size() > 0) { + + owner_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.owner_id_); + } + if (from.has_dataset_id()) { + mutable_dataset_id()->::datacatalog::DatasetID::MergeFrom(from.dataset_id()); + } +} + +void GetOrReserveArtifactRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.GetOrReserveArtifactRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetOrReserveArtifactRequest::CopyFrom(const GetOrReserveArtifactRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.GetOrReserveArtifactRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetOrReserveArtifactRequest::IsInitialized() const { + return true; +} + +void GetOrReserveArtifactRequest::Swap(GetOrReserveArtifactRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void GetOrReserveArtifactRequest::InternalSwap(GetOrReserveArtifactRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + tag_name_.Swap(&other->tag_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + owner_id_.Swap(&other->owner_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(dataset_id_, other->dataset_id_); +} + +::google::protobuf::Metadata GetOrReserveArtifactRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ReservationStatus::InitAsDefaultInstance() { + ::datacatalog::_ReservationStatus_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::datacatalog::Metadata*>( + ::datacatalog::Metadata::internal_default_instance()); +} +class ReservationStatus::HasBitSetters { + public: + static const ::datacatalog::Metadata& metadata(const ReservationStatus* msg); +}; + +const ::datacatalog::Metadata& +ReservationStatus::HasBitSetters::metadata(const ReservationStatus* msg) { + return *msg->metadata_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ReservationStatus::kStateFieldNumber; +const int ReservationStatus::kMetadataFieldNumber; +const int ReservationStatus::kOwnerIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ReservationStatus::ReservationStatus() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.ReservationStatus) +} +ReservationStatus::ReservationStatus(const ReservationStatus& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + owner_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.owner_id().size() > 0) { + owner_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.owner_id_); + } + if (from.has_metadata()) { + metadata_ = new ::datacatalog::Metadata(*from.metadata_); + } else { + metadata_ = nullptr; + } + state_ = from.state_; + // @@protoc_insertion_point(copy_constructor:datacatalog.ReservationStatus) +} + +void ReservationStatus::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ReservationStatus_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + owner_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&metadata_, 0, static_cast( + reinterpret_cast(&state_) - + reinterpret_cast(&metadata_)) + sizeof(state_)); +} + +ReservationStatus::~ReservationStatus() { + // @@protoc_insertion_point(destructor:datacatalog.ReservationStatus) + SharedDtor(); +} + +void ReservationStatus::SharedDtor() { + owner_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete metadata_; +} + +void ReservationStatus::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ReservationStatus& ReservationStatus::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ReservationStatus_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void ReservationStatus::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.ReservationStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + owner_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; + state_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ReservationStatus::_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.ReservationStatus.State state = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_state(static_cast<::datacatalog::ReservationStatus_State>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .datacatalog.Metadata metadata = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::Metadata::_InternalParse; + object = msg->mutable_metadata(); + 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 owner_id = 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.ReservationStatus.owner_id"); + object = msg->mutable_owner_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; + } + 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 ReservationStatus::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.ReservationStatus) + 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.ReservationStatus.State state = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_state(static_cast< ::datacatalog::ReservationStatus_State >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .datacatalog.Metadata metadata = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_metadata())); + } else { + goto handle_unusual; + } + break; + } + + // string owner_id = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_owner_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->owner_id().data(), static_cast(this->owner_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.ReservationStatus.owner_id")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.ReservationStatus) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.ReservationStatus) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ReservationStatus::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.ReservationStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.ReservationStatus.State state = 1; + if (this->state() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->state(), output); + } + + // .datacatalog.Metadata metadata = 2; + if (this->has_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::metadata(this), output); + } + + // string owner_id = 3; + if (this->owner_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->owner_id().data(), static_cast(this->owner_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.ReservationStatus.owner_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->owner_id(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.ReservationStatus) +} + +::google::protobuf::uint8* ReservationStatus::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ReservationStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.ReservationStatus.State state = 1; + if (this->state() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->state(), target); + } + + // .datacatalog.Metadata metadata = 2; + if (this->has_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::metadata(this), target); + } + + // string owner_id = 3; + if (this->owner_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->owner_id().data(), static_cast(this->owner_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.ReservationStatus.owner_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->owner_id(), 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.ReservationStatus) + return target; +} + +size_t ReservationStatus::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.ReservationStatus) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string owner_id = 3; + if (this->owner_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->owner_id()); + } + + // .datacatalog.Metadata metadata = 2; + if (this->has_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *metadata_); + } + + // .datacatalog.ReservationStatus.State state = 1; + if (this->state() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ReservationStatus::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ReservationStatus) + GOOGLE_DCHECK_NE(&from, this); + const ReservationStatus* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ReservationStatus) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ReservationStatus) + MergeFrom(*source); + } +} + +void ReservationStatus::MergeFrom(const ReservationStatus& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ReservationStatus) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.owner_id().size() > 0) { + + owner_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.owner_id_); + } + if (from.has_metadata()) { + mutable_metadata()->::datacatalog::Metadata::MergeFrom(from.metadata()); + } + if (from.state() != 0) { + set_state(from.state()); + } +} + +void ReservationStatus::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ReservationStatus) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ReservationStatus::CopyFrom(const ReservationStatus& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ReservationStatus) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReservationStatus::IsInitialized() const { + return true; +} + +void ReservationStatus::Swap(ReservationStatus* other) { + if (other == this) return; + InternalSwap(other); +} +void ReservationStatus::InternalSwap(ReservationStatus* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + owner_id_.Swap(&other->owner_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(metadata_, other->metadata_); + swap(state_, other->state_); +} + +::google::protobuf::Metadata ReservationStatus::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void GetOrReserveArtifactResponse::InitAsDefaultInstance() { + ::datacatalog::_GetOrReserveArtifactResponse_default_instance_.artifact_ = const_cast< ::datacatalog::Artifact*>( + ::datacatalog::Artifact::internal_default_instance()); + ::datacatalog::_GetOrReserveArtifactResponse_default_instance_.reservation_status_ = const_cast< ::datacatalog::ReservationStatus*>( + ::datacatalog::ReservationStatus::internal_default_instance()); +} +class GetOrReserveArtifactResponse::HasBitSetters { + public: + static const ::datacatalog::Artifact& artifact(const GetOrReserveArtifactResponse* msg); + static const ::datacatalog::ReservationStatus& reservation_status(const GetOrReserveArtifactResponse* msg); +}; + +const ::datacatalog::Artifact& +GetOrReserveArtifactResponse::HasBitSetters::artifact(const GetOrReserveArtifactResponse* msg) { + return *msg->value_.artifact_; +} +const ::datacatalog::ReservationStatus& +GetOrReserveArtifactResponse::HasBitSetters::reservation_status(const GetOrReserveArtifactResponse* msg) { + return *msg->value_.reservation_status_; +} +void GetOrReserveArtifactResponse::set_allocated_artifact(::datacatalog::Artifact* artifact) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (artifact) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + artifact = ::google::protobuf::internal::GetOwnedMessage( + message_arena, artifact, submessage_arena); + } + set_has_artifact(); + value_.artifact_ = artifact; + } + // @@protoc_insertion_point(field_set_allocated:datacatalog.GetOrReserveArtifactResponse.artifact) +} +void GetOrReserveArtifactResponse::set_allocated_reservation_status(::datacatalog::ReservationStatus* reservation_status) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (reservation_status) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + reservation_status = ::google::protobuf::internal::GetOwnedMessage( + message_arena, reservation_status, submessage_arena); + } + set_has_reservation_status(); + value_.reservation_status_ = reservation_status; + } + // @@protoc_insertion_point(field_set_allocated:datacatalog.GetOrReserveArtifactResponse.reservation_status) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetOrReserveArtifactResponse::kArtifactFieldNumber; +const int GetOrReserveArtifactResponse::kReservationStatusFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetOrReserveArtifactResponse::GetOrReserveArtifactResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.GetOrReserveArtifactResponse) +} +GetOrReserveArtifactResponse::GetOrReserveArtifactResponse(const GetOrReserveArtifactResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_value(); + switch (from.value_case()) { + case kArtifact: { + mutable_artifact()->::datacatalog::Artifact::MergeFrom(from.artifact()); + break; + } + case kReservationStatus: { + mutable_reservation_status()->::datacatalog::ReservationStatus::MergeFrom(from.reservation_status()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:datacatalog.GetOrReserveArtifactResponse) +} + +void GetOrReserveArtifactResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_GetOrReserveArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + clear_has_value(); +} + +GetOrReserveArtifactResponse::~GetOrReserveArtifactResponse() { + // @@protoc_insertion_point(destructor:datacatalog.GetOrReserveArtifactResponse) + SharedDtor(); +} + +void GetOrReserveArtifactResponse::SharedDtor() { + if (has_value()) { + clear_value(); + } +} + +void GetOrReserveArtifactResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GetOrReserveArtifactResponse& GetOrReserveArtifactResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetOrReserveArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void GetOrReserveArtifactResponse::clear_value() { +// @@protoc_insertion_point(one_of_clear_start:datacatalog.GetOrReserveArtifactResponse) + switch (value_case()) { + case kArtifact: { + delete value_.artifact_; + break; + } + case kReservationStatus: { + delete value_.reservation_status_; + break; + } + case VALUE_NOT_SET: { + break; + } + } + _oneof_case_[0] = VALUE_NOT_SET; +} + + +void GetOrReserveArtifactResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.GetOrReserveArtifactResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_value(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GetOrReserveArtifactResponse::_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.Artifact artifact = 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::Artifact::_InternalParse; + object = msg->mutable_artifact(); + 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; + } + // .datacatalog.ReservationStatus reservation_status = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::ReservationStatus::_InternalParse; + object = msg->mutable_reservation_status(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool GetOrReserveArtifactResponse::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.GetOrReserveArtifactResponse) + 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.Artifact artifact = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_artifact())); + } else { + goto handle_unusual; + } + break; + } + + // .datacatalog.ReservationStatus reservation_status = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_reservation_status())); + } 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.GetOrReserveArtifactResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.GetOrReserveArtifactResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GetOrReserveArtifactResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.GetOrReserveArtifactResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.Artifact artifact = 1; + if (has_artifact()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::artifact(this), output); + } + + // .datacatalog.ReservationStatus reservation_status = 2; + if (has_reservation_status()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::reservation_status(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.GetOrReserveArtifactResponse) +} + +::google::protobuf::uint8* GetOrReserveArtifactResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.GetOrReserveArtifactResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.Artifact artifact = 1; + if (has_artifact()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::artifact(this), target); + } + + // .datacatalog.ReservationStatus reservation_status = 2; + if (has_reservation_status()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::reservation_status(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.GetOrReserveArtifactResponse) + return target; +} + +size_t GetOrReserveArtifactResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.GetOrReserveArtifactResponse) + 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; + + switch (value_case()) { + // .datacatalog.Artifact artifact = 1; + case kArtifact: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.artifact_); + break; + } + // .datacatalog.ReservationStatus reservation_status = 2; + case kReservationStatus: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.reservation_status_); + break; + } + case VALUE_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetOrReserveArtifactResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.GetOrReserveArtifactResponse) + GOOGLE_DCHECK_NE(&from, this); + const GetOrReserveArtifactResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.GetOrReserveArtifactResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.GetOrReserveArtifactResponse) + MergeFrom(*source); + } +} + +void GetOrReserveArtifactResponse::MergeFrom(const GetOrReserveArtifactResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.GetOrReserveArtifactResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.value_case()) { + case kArtifact: { + mutable_artifact()->::datacatalog::Artifact::MergeFrom(from.artifact()); + break; + } + case kReservationStatus: { + mutable_reservation_status()->::datacatalog::ReservationStatus::MergeFrom(from.reservation_status()); + break; + } + case VALUE_NOT_SET: { + break; + } + } +} + +void GetOrReserveArtifactResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.GetOrReserveArtifactResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetOrReserveArtifactResponse::CopyFrom(const GetOrReserveArtifactResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.GetOrReserveArtifactResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetOrReserveArtifactResponse::IsInitialized() const { + return true; +} + +void GetOrReserveArtifactResponse::Swap(GetOrReserveArtifactResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void GetOrReserveArtifactResponse::InternalSwap(GetOrReserveArtifactResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(value_, other->value_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata GetOrReserveArtifactResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ExtendReservationRequest::InitAsDefaultInstance() { + ::datacatalog::_ExtendReservationRequest_default_instance_._instance.get_mutable()->dataset_id_ = const_cast< ::datacatalog::DatasetID*>( + ::datacatalog::DatasetID::internal_default_instance()); +} +class ExtendReservationRequest::HasBitSetters { + public: + static const ::datacatalog::DatasetID& dataset_id(const ExtendReservationRequest* msg); +}; + +const ::datacatalog::DatasetID& +ExtendReservationRequest::HasBitSetters::dataset_id(const ExtendReservationRequest* msg) { + return *msg->dataset_id_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ExtendReservationRequest::kDatasetIdFieldNumber; +const int ExtendReservationRequest::kTagNameFieldNumber; +const int ExtendReservationRequest::kOwnerIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExtendReservationRequest::ExtendReservationRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.ExtendReservationRequest) +} +ExtendReservationRequest::ExtendReservationRequest(const ExtendReservationRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.tag_name().size() > 0) { + tag_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tag_name_); + } + owner_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.owner_id().size() > 0) { + owner_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.owner_id_); + } + if (from.has_dataset_id()) { + dataset_id_ = new ::datacatalog::DatasetID(*from.dataset_id_); + } else { + dataset_id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.ExtendReservationRequest) +} + +void ExtendReservationRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ExtendReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + owner_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + dataset_id_ = nullptr; +} + +ExtendReservationRequest::~ExtendReservationRequest() { + // @@protoc_insertion_point(destructor:datacatalog.ExtendReservationRequest) + SharedDtor(); +} + +void ExtendReservationRequest::SharedDtor() { + tag_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + owner_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete dataset_id_; +} + +void ExtendReservationRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ExtendReservationRequest& ExtendReservationRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ExtendReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void ExtendReservationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.ExtendReservationRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + tag_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + owner_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && dataset_id_ != nullptr) { + delete dataset_id_; + } + dataset_id_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ExtendReservationRequest::_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_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::DatasetID::_InternalParse; + object = msg->mutable_dataset_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string tag_name = 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.ExtendReservationRequest.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; + } + // string owner_id = 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.ExtendReservationRequest.owner_id"); + object = msg->mutable_owner_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; + } + 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 ExtendReservationRequest::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.ExtendReservationRequest) + 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_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_dataset_id())); + } else { + goto handle_unusual; + } + break; + } + + // string tag_name = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 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.ExtendReservationRequest.tag_name")); + } else { + goto handle_unusual; + } + break; + } + + // string owner_id = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_owner_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->owner_id().data(), static_cast(this->owner_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.ExtendReservationRequest.owner_id")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.ExtendReservationRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.ExtendReservationRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ExtendReservationRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.ExtendReservationRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.DatasetID dataset_id = 1; + if (this->has_dataset_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::dataset_id(this), output); + } + + // string tag_name = 2; + if (this->tag_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag_name().data(), static_cast(this->tag_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.ExtendReservationRequest.tag_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->tag_name(), output); + } + + // string owner_id = 3; + if (this->owner_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->owner_id().data(), static_cast(this->owner_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.ExtendReservationRequest.owner_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->owner_id(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.ExtendReservationRequest) +} + +::google::protobuf::uint8* ExtendReservationRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ExtendReservationRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.DatasetID dataset_id = 1; + if (this->has_dataset_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::dataset_id(this), target); + } + + // string tag_name = 2; + if (this->tag_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag_name().data(), static_cast(this->tag_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.ExtendReservationRequest.tag_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->tag_name(), target); + } + + // string owner_id = 3; + if (this->owner_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->owner_id().data(), static_cast(this->owner_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.ExtendReservationRequest.owner_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->owner_id(), 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.ExtendReservationRequest) + return target; +} + +size_t ExtendReservationRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.ExtendReservationRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string tag_name = 2; + if (this->tag_name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->tag_name()); + } + + // string owner_id = 3; + if (this->owner_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->owner_id()); + } + + // .datacatalog.DatasetID dataset_id = 1; + if (this->has_dataset_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *dataset_id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ExtendReservationRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ExtendReservationRequest) + GOOGLE_DCHECK_NE(&from, this); + const ExtendReservationRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ExtendReservationRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ExtendReservationRequest) + MergeFrom(*source); + } +} + +void ExtendReservationRequest::MergeFrom(const ExtendReservationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ExtendReservationRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.tag_name().size() > 0) { + + tag_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tag_name_); + } + if (from.owner_id().size() > 0) { + + owner_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.owner_id_); + } + if (from.has_dataset_id()) { + mutable_dataset_id()->::datacatalog::DatasetID::MergeFrom(from.dataset_id()); + } +} + +void ExtendReservationRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ExtendReservationRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExtendReservationRequest::CopyFrom(const ExtendReservationRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ExtendReservationRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExtendReservationRequest::IsInitialized() const { + return true; +} + +void ExtendReservationRequest::Swap(ExtendReservationRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ExtendReservationRequest::InternalSwap(ExtendReservationRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + tag_name_.Swap(&other->tag_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + owner_id_.Swap(&other->owner_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(dataset_id_, other->dataset_id_); +} + +::google::protobuf::Metadata ExtendReservationRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ExtendReservationResponse::InitAsDefaultInstance() { +} +class ExtendReservationResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExtendReservationResponse::ExtendReservationResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.ExtendReservationResponse) +} +ExtendReservationResponse::ExtendReservationResponse(const ExtendReservationResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:datacatalog.ExtendReservationResponse) +} + +void ExtendReservationResponse::SharedCtor() { +} + +ExtendReservationResponse::~ExtendReservationResponse() { + // @@protoc_insertion_point(destructor:datacatalog.ExtendReservationResponse) + SharedDtor(); +} + +void ExtendReservationResponse::SharedDtor() { +} + +void ExtendReservationResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ExtendReservationResponse& ExtendReservationResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ExtendReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void ExtendReservationResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.ExtendReservationResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ExtendReservationResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ExtendReservationResponse::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.ExtendReservationResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.ExtendReservationResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.ExtendReservationResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ExtendReservationResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.ExtendReservationResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.ExtendReservationResponse) +} + +::google::protobuf::uint8* ExtendReservationResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ExtendReservationResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.ExtendReservationResponse) + return target; +} + +size_t ExtendReservationResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.ExtendReservationResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ExtendReservationResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ExtendReservationResponse) + GOOGLE_DCHECK_NE(&from, this); + const ExtendReservationResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ExtendReservationResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ExtendReservationResponse) + MergeFrom(*source); + } +} + +void ExtendReservationResponse::MergeFrom(const ExtendReservationResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ExtendReservationResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void ExtendReservationResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ExtendReservationResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExtendReservationResponse::CopyFrom(const ExtendReservationResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ExtendReservationResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExtendReservationResponse::IsInitialized() const { + return true; +} + +void ExtendReservationResponse::Swap(ExtendReservationResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void ExtendReservationResponse::InternalSwap(ExtendReservationResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata ExtendReservationResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ReleaseReservationRequest::InitAsDefaultInstance() { + ::datacatalog::_ReleaseReservationRequest_default_instance_._instance.get_mutable()->dataset_id_ = const_cast< ::datacatalog::DatasetID*>( + ::datacatalog::DatasetID::internal_default_instance()); +} +class ReleaseReservationRequest::HasBitSetters { + public: + static const ::datacatalog::DatasetID& dataset_id(const ReleaseReservationRequest* msg); +}; + +const ::datacatalog::DatasetID& +ReleaseReservationRequest::HasBitSetters::dataset_id(const ReleaseReservationRequest* msg) { + return *msg->dataset_id_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ReleaseReservationRequest::kDatasetIdFieldNumber; +const int ReleaseReservationRequest::kTagNameFieldNumber; +const int ReleaseReservationRequest::kOwnerIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ReleaseReservationRequest::ReleaseReservationRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.ReleaseReservationRequest) +} +ReleaseReservationRequest::ReleaseReservationRequest(const ReleaseReservationRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.tag_name().size() > 0) { + tag_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tag_name_); + } + owner_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.owner_id().size() > 0) { + owner_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.owner_id_); + } + if (from.has_dataset_id()) { + dataset_id_ = new ::datacatalog::DatasetID(*from.dataset_id_); + } else { + dataset_id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.ReleaseReservationRequest) +} + +void ReleaseReservationRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ReleaseReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + owner_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + dataset_id_ = nullptr; +} + +ReleaseReservationRequest::~ReleaseReservationRequest() { + // @@protoc_insertion_point(destructor:datacatalog.ReleaseReservationRequest) + SharedDtor(); +} + +void ReleaseReservationRequest::SharedDtor() { + tag_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + owner_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete dataset_id_; +} + +void ReleaseReservationRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ReleaseReservationRequest& ReleaseReservationRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ReleaseReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void ReleaseReservationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.ReleaseReservationRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + tag_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + owner_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && dataset_id_ != nullptr) { + delete dataset_id_; + } + dataset_id_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ReleaseReservationRequest::_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_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::DatasetID::_InternalParse; + object = msg->mutable_dataset_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string tag_name = 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.ReleaseReservationRequest.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; + } + // string owner_id = 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.ReleaseReservationRequest.owner_id"); + object = msg->mutable_owner_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; + } + 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 ReleaseReservationRequest::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.ReleaseReservationRequest) + 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_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_dataset_id())); + } else { + goto handle_unusual; + } + break; + } + + // string tag_name = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 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.ReleaseReservationRequest.tag_name")); + } else { + goto handle_unusual; + } + break; + } + + // string owner_id = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_owner_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->owner_id().data(), static_cast(this->owner_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.ReleaseReservationRequest.owner_id")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.ReleaseReservationRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.ReleaseReservationRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ReleaseReservationRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.ReleaseReservationRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.DatasetID dataset_id = 1; + if (this->has_dataset_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::dataset_id(this), output); + } + + // string tag_name = 2; + if (this->tag_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag_name().data(), static_cast(this->tag_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.ReleaseReservationRequest.tag_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->tag_name(), output); + } + + // string owner_id = 3; + if (this->owner_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->owner_id().data(), static_cast(this->owner_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.ReleaseReservationRequest.owner_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->owner_id(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.ReleaseReservationRequest) +} + +::google::protobuf::uint8* ReleaseReservationRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ReleaseReservationRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.DatasetID dataset_id = 1; + if (this->has_dataset_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::dataset_id(this), target); + } + + // string tag_name = 2; + if (this->tag_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag_name().data(), static_cast(this->tag_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.ReleaseReservationRequest.tag_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->tag_name(), target); + } + + // string owner_id = 3; + if (this->owner_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->owner_id().data(), static_cast(this->owner_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.ReleaseReservationRequest.owner_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->owner_id(), 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.ReleaseReservationRequest) return target; } -size_t ListDatasetsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.ListDatasetsRequest) +size_t ReleaseReservationRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.ReleaseReservationRequest) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -4991,18 +7930,25 @@ size_t ListDatasetsRequest::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .datacatalog.FilterExpression filter = 1; - if (this->has_filter()) { + // string tag_name = 2; + if (this->tag_name().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *filter_); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->tag_name()); } - // .datacatalog.PaginationOptions pagination = 2; - if (this->has_pagination()) { + // string owner_id = 3; + if (this->owner_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->owner_id()); + } + + // .datacatalog.DatasetID dataset_id = 1; + if (this->has_dataset_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( - *pagination_); + *dataset_id_); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -5010,66 +7956,74 @@ size_t ListDatasetsRequest::ByteSizeLong() const { return total_size; } -void ListDatasetsRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ListDatasetsRequest) +void ReleaseReservationRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ReleaseReservationRequest) GOOGLE_DCHECK_NE(&from, this); - const ListDatasetsRequest* source = - ::google::protobuf::DynamicCastToGenerated( + const ReleaseReservationRequest* 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.ReleaseReservationRequest) ::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.ReleaseReservationRequest) MergeFrom(*source); } } -void ListDatasetsRequest::MergeFrom(const ListDatasetsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ListDatasetsRequest) +void ReleaseReservationRequest::MergeFrom(const ReleaseReservationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ReleaseReservationRequest) 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.tag_name().size() > 0) { + + tag_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tag_name_); } - if (from.has_pagination()) { - mutable_pagination()->::datacatalog::PaginationOptions::MergeFrom(from.pagination()); + if (from.owner_id().size() > 0) { + + owner_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.owner_id_); + } + if (from.has_dataset_id()) { + mutable_dataset_id()->::datacatalog::DatasetID::MergeFrom(from.dataset_id()); } } -void ListDatasetsRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ListDatasetsRequest) +void ReleaseReservationRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ReleaseReservationRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void ListDatasetsRequest::CopyFrom(const ListDatasetsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ListDatasetsRequest) +void ReleaseReservationRequest::CopyFrom(const ReleaseReservationRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ReleaseReservationRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool ListDatasetsRequest::IsInitialized() const { +bool ReleaseReservationRequest::IsInitialized() const { return true; } -void ListDatasetsRequest::Swap(ListDatasetsRequest* other) { +void ReleaseReservationRequest::Swap(ReleaseReservationRequest* other) { if (other == this) return; InternalSwap(other); } -void ListDatasetsRequest::InternalSwap(ListDatasetsRequest* other) { +void ReleaseReservationRequest::InternalSwap(ReleaseReservationRequest* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - swap(filter_, other->filter_); - swap(pagination_, other->pagination_); + tag_name_.Swap(&other->tag_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + owner_id_.Swap(&other->owner_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(dataset_id_, other->dataset_id_); } -::google::protobuf::Metadata ListDatasetsRequest::GetMetadata() const { +::google::protobuf::Metadata ReleaseReservationRequest::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; } @@ -5077,73 +8031,60 @@ ::google::protobuf::Metadata ListDatasetsRequest::GetMetadata() const { // =================================================================== -void ListDatasetsResponse::InitAsDefaultInstance() { +void ReleaseReservationResponse::InitAsDefaultInstance() { } -class ListDatasetsResponse::HasBitSetters { +class ReleaseReservationResponse::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() +ReleaseReservationResponse::ReleaseReservationResponse() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.ListDatasetsResponse) + // @@protoc_insertion_point(constructor:datacatalog.ReleaseReservationResponse) } -ListDatasetsResponse::ListDatasetsResponse(const ListDatasetsResponse& from) +ReleaseReservationResponse::ReleaseReservationResponse(const ReleaseReservationResponse& 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.ReleaseReservationResponse) } -void ListDatasetsResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ListDatasetsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - next_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +void ReleaseReservationResponse::SharedCtor() { } -ListDatasetsResponse::~ListDatasetsResponse() { - // @@protoc_insertion_point(destructor:datacatalog.ListDatasetsResponse) +ReleaseReservationResponse::~ReleaseReservationResponse() { + // @@protoc_insertion_point(destructor:datacatalog.ReleaseReservationResponse) SharedDtor(); } -void ListDatasetsResponse::SharedDtor() { - next_token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +void ReleaseReservationResponse::SharedDtor() { } -void ListDatasetsResponse::SetCachedSize(int size) const { +void ReleaseReservationResponse::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 ReleaseReservationResponse& ReleaseReservationResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ReleaseReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); return *internal_default_instance(); } -void ListDatasetsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.ListDatasetsResponse) +void ReleaseReservationResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.ReleaseReservationResponse) ::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* ReleaseReservationResponse::_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; @@ -5153,40 +8094,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; @@ -5200,139 +8108,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 ReleaseReservationResponse::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.ReleaseReservationResponse) 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.ReleaseReservationResponse) return true; failure: - // @@protoc_insertion_point(parse_failure:datacatalog.ListDatasetsResponse) + // @@protoc_insertion_point(parse_failure:datacatalog.ReleaseReservationResponse) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void ListDatasetsResponse::SerializeWithCachedSizes( +void ReleaseReservationResponse::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.ListDatasetsResponse) + // @@protoc_insertion_point(serialize_start:datacatalog.ReleaseReservationResponse) ::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.ReleaseReservationResponse) } -::google::protobuf::uint8* ListDatasetsResponse::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* ReleaseReservationResponse::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ListDatasetsResponse) + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ReleaseReservationResponse) ::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.ReleaseReservationResponse) return target; } -size_t ListDatasetsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.ListDatasetsResponse) +size_t ReleaseReservationResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.ReleaseReservationResponse) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -5344,89 +8176,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 ReleaseReservationResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ReleaseReservationResponse) GOOGLE_DCHECK_NE(&from, this); - const ListDatasetsResponse* source = - ::google::protobuf::DynamicCastToGenerated( + const ReleaseReservationResponse* 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.ReleaseReservationResponse) ::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.ReleaseReservationResponse) MergeFrom(*source); } } -void ListDatasetsResponse::MergeFrom(const ListDatasetsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ListDatasetsResponse) +void ReleaseReservationResponse::MergeFrom(const ReleaseReservationResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ReleaseReservationResponse) 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 ReleaseReservationResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ReleaseReservationResponse) if (&from == this) return; Clear(); MergeFrom(from); } -void ListDatasetsResponse::CopyFrom(const ListDatasetsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ListDatasetsResponse) +void ReleaseReservationResponse::CopyFrom(const ReleaseReservationResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ReleaseReservationResponse) if (&from == this) return; Clear(); MergeFrom(from); } -bool ListDatasetsResponse::IsInitialized() const { +bool ReleaseReservationResponse::IsInitialized() const { return true; } -void ListDatasetsResponse::Swap(ListDatasetsResponse* other) { +void ReleaseReservationResponse::Swap(ReleaseReservationResponse* other) { if (other == this) return; InternalSwap(other); } -void ListDatasetsResponse::InternalSwap(ListDatasetsResponse* other) { +void ReleaseReservationResponse::InternalSwap(ReleaseReservationResponse* 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 ReleaseReservationResponse::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; } @@ -8319,7 +11125,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[20]; + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[27]; } void Metadata_KeyMapEntry_DoNotUse::MergeFrom( const ::google::protobuf::Message& other) { @@ -12030,6 +14836,27 @@ 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::GetOrReserveArtifactRequest* Arena::CreateMaybeMessage< ::datacatalog::GetOrReserveArtifactRequest >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::GetOrReserveArtifactRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::ReservationStatus* Arena::CreateMaybeMessage< ::datacatalog::ReservationStatus >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::ReservationStatus >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::GetOrReserveArtifactResponse* Arena::CreateMaybeMessage< ::datacatalog::GetOrReserveArtifactResponse >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::GetOrReserveArtifactResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::ExtendReservationRequest* Arena::CreateMaybeMessage< ::datacatalog::ExtendReservationRequest >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::ExtendReservationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::ExtendReservationResponse* Arena::CreateMaybeMessage< ::datacatalog::ExtendReservationResponse >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::ExtendReservationResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::ReleaseReservationRequest* Arena::CreateMaybeMessage< ::datacatalog::ReleaseReservationRequest >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::ReleaseReservationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::ReleaseReservationResponse* Arena::CreateMaybeMessage< ::datacatalog::ReleaseReservationResponse >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::ReleaseReservationResponse >(arena); +} template<> PROTOBUF_NOINLINE ::datacatalog::Dataset* Arena::CreateMaybeMessage< ::datacatalog::Dataset >(Arena* arena) { return Arena::CreateInternal< ::datacatalog::Dataset >(arena); } diff --git a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.h b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.h index f711269ab84..8fc2a383e18 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.h +++ b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.h @@ -36,6 +36,7 @@ #include #include #include "flyteidl/core/literals.pb.h" +#include #include // @@protoc_insertion_point(includes) #include @@ -47,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[30] + static const ::google::protobuf::internal::ParseTable schema[37] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::FieldMetadata field_metadata[]; static const ::google::protobuf::internal::SerializationTable serialization_table[]; @@ -91,6 +92,12 @@ extern DatasetIDDefaultTypeInternal _DatasetID_default_instance_; class DatasetPropertyFilter; class DatasetPropertyFilterDefaultTypeInternal; extern DatasetPropertyFilterDefaultTypeInternal _DatasetPropertyFilter_default_instance_; +class ExtendReservationRequest; +class ExtendReservationRequestDefaultTypeInternal; +extern ExtendReservationRequestDefaultTypeInternal _ExtendReservationRequest_default_instance_; +class ExtendReservationResponse; +class ExtendReservationResponseDefaultTypeInternal; +extern ExtendReservationResponseDefaultTypeInternal _ExtendReservationResponse_default_instance_; class FilterExpression; class FilterExpressionDefaultTypeInternal; extern FilterExpressionDefaultTypeInternal _FilterExpression_default_instance_; @@ -106,6 +113,12 @@ extern GetDatasetRequestDefaultTypeInternal _GetDatasetRequest_default_instance_ class GetDatasetResponse; class GetDatasetResponseDefaultTypeInternal; extern GetDatasetResponseDefaultTypeInternal _GetDatasetResponse_default_instance_; +class GetOrReserveArtifactRequest; +class GetOrReserveArtifactRequestDefaultTypeInternal; +extern GetOrReserveArtifactRequestDefaultTypeInternal _GetOrReserveArtifactRequest_default_instance_; +class GetOrReserveArtifactResponse; +class GetOrReserveArtifactResponseDefaultTypeInternal; +extern GetOrReserveArtifactResponseDefaultTypeInternal _GetOrReserveArtifactResponse_default_instance_; class KeyValuePair; class KeyValuePairDefaultTypeInternal; extern KeyValuePairDefaultTypeInternal _KeyValuePair_default_instance_; @@ -136,6 +149,15 @@ extern PartitionDefaultTypeInternal _Partition_default_instance_; class PartitionPropertyFilter; class PartitionPropertyFilterDefaultTypeInternal; extern PartitionPropertyFilterDefaultTypeInternal _PartitionPropertyFilter_default_instance_; +class ReleaseReservationRequest; +class ReleaseReservationRequestDefaultTypeInternal; +extern ReleaseReservationRequestDefaultTypeInternal _ReleaseReservationRequest_default_instance_; +class ReleaseReservationResponse; +class ReleaseReservationResponseDefaultTypeInternal; +extern ReleaseReservationResponseDefaultTypeInternal _ReleaseReservationResponse_default_instance_; +class ReservationStatus; +class ReservationStatusDefaultTypeInternal; +extern ReservationStatusDefaultTypeInternal _ReservationStatus_default_instance_; class SinglePropertyFilter; class SinglePropertyFilterDefaultTypeInternal; extern SinglePropertyFilterDefaultTypeInternal _SinglePropertyFilter_default_instance_; @@ -160,11 +182,15 @@ template<> ::datacatalog::CreateDatasetResponse* Arena::CreateMaybeMessage<::dat template<> ::datacatalog::Dataset* Arena::CreateMaybeMessage<::datacatalog::Dataset>(Arena*); template<> ::datacatalog::DatasetID* Arena::CreateMaybeMessage<::datacatalog::DatasetID>(Arena*); template<> ::datacatalog::DatasetPropertyFilter* Arena::CreateMaybeMessage<::datacatalog::DatasetPropertyFilter>(Arena*); +template<> ::datacatalog::ExtendReservationRequest* Arena::CreateMaybeMessage<::datacatalog::ExtendReservationRequest>(Arena*); +template<> ::datacatalog::ExtendReservationResponse* Arena::CreateMaybeMessage<::datacatalog::ExtendReservationResponse>(Arena*); template<> ::datacatalog::FilterExpression* Arena::CreateMaybeMessage<::datacatalog::FilterExpression>(Arena*); template<> ::datacatalog::GetArtifactRequest* Arena::CreateMaybeMessage<::datacatalog::GetArtifactRequest>(Arena*); template<> ::datacatalog::GetArtifactResponse* Arena::CreateMaybeMessage<::datacatalog::GetArtifactResponse>(Arena*); template<> ::datacatalog::GetDatasetRequest* Arena::CreateMaybeMessage<::datacatalog::GetDatasetRequest>(Arena*); template<> ::datacatalog::GetDatasetResponse* Arena::CreateMaybeMessage<::datacatalog::GetDatasetResponse>(Arena*); +template<> ::datacatalog::GetOrReserveArtifactRequest* Arena::CreateMaybeMessage<::datacatalog::GetOrReserveArtifactRequest>(Arena*); +template<> ::datacatalog::GetOrReserveArtifactResponse* Arena::CreateMaybeMessage<::datacatalog::GetOrReserveArtifactResponse>(Arena*); template<> ::datacatalog::KeyValuePair* Arena::CreateMaybeMessage<::datacatalog::KeyValuePair>(Arena*); template<> ::datacatalog::ListArtifactsRequest* Arena::CreateMaybeMessage<::datacatalog::ListArtifactsRequest>(Arena*); template<> ::datacatalog::ListArtifactsResponse* Arena::CreateMaybeMessage<::datacatalog::ListArtifactsResponse>(Arena*); @@ -175,6 +201,9 @@ template<> ::datacatalog::Metadata_KeyMapEntry_DoNotUse* Arena::CreateMaybeMessa template<> ::datacatalog::PaginationOptions* Arena::CreateMaybeMessage<::datacatalog::PaginationOptions>(Arena*); template<> ::datacatalog::Partition* Arena::CreateMaybeMessage<::datacatalog::Partition>(Arena*); template<> ::datacatalog::PartitionPropertyFilter* Arena::CreateMaybeMessage<::datacatalog::PartitionPropertyFilter>(Arena*); +template<> ::datacatalog::ReleaseReservationRequest* Arena::CreateMaybeMessage<::datacatalog::ReleaseReservationRequest>(Arena*); +template<> ::datacatalog::ReleaseReservationResponse* Arena::CreateMaybeMessage<::datacatalog::ReleaseReservationResponse>(Arena*); +template<> ::datacatalog::ReservationStatus* Arena::CreateMaybeMessage<::datacatalog::ReservationStatus>(Arena*); template<> ::datacatalog::SinglePropertyFilter* Arena::CreateMaybeMessage<::datacatalog::SinglePropertyFilter>(Arena*); template<> ::datacatalog::Tag* Arena::CreateMaybeMessage<::datacatalog::Tag>(Arena*); template<> ::datacatalog::TagPropertyFilter* Arena::CreateMaybeMessage<::datacatalog::TagPropertyFilter>(Arena*); @@ -182,6 +211,27 @@ template<> ::datacatalog::TagPropertyFilter* Arena::CreateMaybeMessage<::datacat } // namespace google namespace datacatalog { +enum ReservationStatus_State { + ReservationStatus_State_ACQUIRED = 0, + ReservationStatus_State_ALREADY_IN_PROGRESS = 1, + ReservationStatus_State_ReservationStatus_State_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + ReservationStatus_State_ReservationStatus_State_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool ReservationStatus_State_IsValid(int value); +const ReservationStatus_State ReservationStatus_State_State_MIN = ReservationStatus_State_ACQUIRED; +const ReservationStatus_State ReservationStatus_State_State_MAX = ReservationStatus_State_ALREADY_IN_PROGRESS; +const int ReservationStatus_State_State_ARRAYSIZE = ReservationStatus_State_State_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ReservationStatus_State_descriptor(); +inline const ::std::string& ReservationStatus_State_Name(ReservationStatus_State value) { + return ::google::protobuf::internal::NameOfEnum( + ReservationStatus_State_descriptor(), value); +} +inline bool ReservationStatus_State_Parse( + const ::std::string& name, ReservationStatus_State* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ReservationStatus_State_descriptor(), name, value); +} enum SinglePropertyFilter_ComparisonOperator { SinglePropertyFilter_ComparisonOperator_EQUALS = 0, SinglePropertyFilter_ComparisonOperator_SinglePropertyFilter_ComparisonOperator_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), @@ -1945,25 +1995,25 @@ class ListDatasetsResponse final : }; // ------------------------------------------------------------------- -class Dataset final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.Dataset) */ { +class GetOrReserveArtifactRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.GetOrReserveArtifactRequest) */ { public: - Dataset(); - virtual ~Dataset(); + GetOrReserveArtifactRequest(); + virtual ~GetOrReserveArtifactRequest(); - Dataset(const Dataset& from); + GetOrReserveArtifactRequest(const GetOrReserveArtifactRequest& from); - inline Dataset& operator=(const Dataset& from) { + inline GetOrReserveArtifactRequest& operator=(const GetOrReserveArtifactRequest& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - Dataset(Dataset&& from) noexcept - : Dataset() { + GetOrReserveArtifactRequest(GetOrReserveArtifactRequest&& from) noexcept + : GetOrReserveArtifactRequest() { *this = ::std::move(from); } - inline Dataset& operator=(Dataset&& from) noexcept { + inline GetOrReserveArtifactRequest& operator=(GetOrReserveArtifactRequest&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -1975,34 +2025,34 @@ class Dataset final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const Dataset& default_instance(); + static const GetOrReserveArtifactRequest& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Dataset* internal_default_instance() { - return reinterpret_cast( - &_Dataset_default_instance_); + static inline const GetOrReserveArtifactRequest* internal_default_instance() { + return reinterpret_cast( + &_GetOrReserveArtifactRequest_default_instance_); } static constexpr int kIndexInFileMessages = 14; - void Swap(Dataset* other); - friend void swap(Dataset& a, Dataset& b) { + void Swap(GetOrReserveArtifactRequest* other); + friend void swap(GetOrReserveArtifactRequest& a, GetOrReserveArtifactRequest& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline Dataset* New() const final { - return CreateMaybeMessage(nullptr); + inline GetOrReserveArtifactRequest* New() const final { + return CreateMaybeMessage(nullptr); } - Dataset* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + GetOrReserveArtifactRequest* 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 Dataset& from); - void MergeFrom(const Dataset& from); + void CopyFrom(const GetOrReserveArtifactRequest& from); + void MergeFrom(const GetOrReserveArtifactRequest& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2024,7 +2074,7 @@ class Dataset final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(Dataset* other); + void InternalSwap(GetOrReserveArtifactRequest* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -2040,78 +2090,75 @@ class Dataset final : // accessors ------------------------------------------------------- - // repeated string partitionKeys = 3; - int partitionkeys_size() const; - void clear_partitionkeys(); - static const int kPartitionKeysFieldNumber = 3; - const ::std::string& partitionkeys(int index) const; - ::std::string* mutable_partitionkeys(int index); - void set_partitionkeys(int index, const ::std::string& value); + // string tag_name = 2; + void clear_tag_name(); + static const int kTagNameFieldNumber = 2; + const ::std::string& tag_name() const; + void set_tag_name(const ::std::string& value); #if LANG_CXX11 - void set_partitionkeys(int index, ::std::string&& value); + void set_tag_name(::std::string&& value); #endif - void set_partitionkeys(int index, const char* value); - void set_partitionkeys(int index, const char* value, size_t size); - ::std::string* add_partitionkeys(); - void add_partitionkeys(const ::std::string& value); + 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); + + // string owner_id = 3; + void clear_owner_id(); + static const int kOwnerIdFieldNumber = 3; + const ::std::string& owner_id() const; + void set_owner_id(const ::std::string& value); #if LANG_CXX11 - void add_partitionkeys(::std::string&& value); + void set_owner_id(::std::string&& value); #endif - void add_partitionkeys(const char* value); - void add_partitionkeys(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& partitionkeys() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_partitionkeys(); - - // .datacatalog.DatasetID id = 1; - bool has_id() const; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::datacatalog::DatasetID& id() const; - ::datacatalog::DatasetID* release_id(); - ::datacatalog::DatasetID* mutable_id(); - void set_allocated_id(::datacatalog::DatasetID* id); - - // .datacatalog.Metadata metadata = 2; - bool has_metadata() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 2; - const ::datacatalog::Metadata& metadata() const; - ::datacatalog::Metadata* release_metadata(); - ::datacatalog::Metadata* mutable_metadata(); - void set_allocated_metadata(::datacatalog::Metadata* metadata); - - // @@protoc_insertion_point(class_scope:datacatalog.Dataset) + void set_owner_id(const char* value); + void set_owner_id(const char* value, size_t size); + ::std::string* mutable_owner_id(); + ::std::string* release_owner_id(); + void set_allocated_owner_id(::std::string* owner_id); + + // .datacatalog.DatasetID dataset_id = 1; + bool has_dataset_id() const; + void clear_dataset_id(); + static const int kDatasetIdFieldNumber = 1; + const ::datacatalog::DatasetID& dataset_id() const; + ::datacatalog::DatasetID* release_dataset_id(); + ::datacatalog::DatasetID* mutable_dataset_id(); + void set_allocated_dataset_id(::datacatalog::DatasetID* dataset_id); + + // @@protoc_insertion_point(class_scope:datacatalog.GetOrReserveArtifactRequest) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField<::std::string> partitionkeys_; - ::datacatalog::DatasetID* id_; - ::datacatalog::Metadata* metadata_; + ::google::protobuf::internal::ArenaStringPtr tag_name_; + ::google::protobuf::internal::ArenaStringPtr owner_id_; + ::datacatalog::DatasetID* dataset_id_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; }; // ------------------------------------------------------------------- -class Partition final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.Partition) */ { +class ReservationStatus final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ReservationStatus) */ { public: - Partition(); - virtual ~Partition(); + ReservationStatus(); + virtual ~ReservationStatus(); - Partition(const Partition& from); + ReservationStatus(const ReservationStatus& from); - inline Partition& operator=(const Partition& from) { + inline ReservationStatus& operator=(const ReservationStatus& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - Partition(Partition&& from) noexcept - : Partition() { + ReservationStatus(ReservationStatus&& from) noexcept + : ReservationStatus() { *this = ::std::move(from); } - inline Partition& operator=(Partition&& from) noexcept { + inline ReservationStatus& operator=(ReservationStatus&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -2123,34 +2170,34 @@ class Partition final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const Partition& default_instance(); + static const ReservationStatus& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Partition* internal_default_instance() { - return reinterpret_cast( - &_Partition_default_instance_); + static inline const ReservationStatus* internal_default_instance() { + return reinterpret_cast( + &_ReservationStatus_default_instance_); } static constexpr int kIndexInFileMessages = 15; - void Swap(Partition* other); - friend void swap(Partition& a, Partition& b) { + void Swap(ReservationStatus* other); + friend void swap(ReservationStatus& a, ReservationStatus& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline Partition* New() const final { - return CreateMaybeMessage(nullptr); + inline ReservationStatus* New() const final { + return CreateMaybeMessage(nullptr); } - Partition* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + ReservationStatus* 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 Partition& from); - void MergeFrom(const Partition& from); + void CopyFrom(const ReservationStatus& from); + void MergeFrom(const ReservationStatus& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2172,7 +2219,7 @@ class Partition final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(Partition* other); + void InternalSwap(ReservationStatus* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -2186,67 +2233,95 @@ class Partition final : // nested types ---------------------------------------------------- + typedef ReservationStatus_State State; + static const State ACQUIRED = + ReservationStatus_State_ACQUIRED; + static const State ALREADY_IN_PROGRESS = + ReservationStatus_State_ALREADY_IN_PROGRESS; + static inline bool State_IsValid(int value) { + return ReservationStatus_State_IsValid(value); + } + static const State State_MIN = + ReservationStatus_State_State_MIN; + static const State State_MAX = + ReservationStatus_State_State_MAX; + static const int State_ARRAYSIZE = + ReservationStatus_State_State_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + State_descriptor() { + return ReservationStatus_State_descriptor(); + } + static inline const ::std::string& State_Name(State value) { + return ReservationStatus_State_Name(value); + } + static inline bool State_Parse(const ::std::string& name, + State* value) { + return ReservationStatus_State_Parse(name, value); + } + // accessors ------------------------------------------------------- - // string key = 1; - void clear_key(); - static const int kKeyFieldNumber = 1; - const ::std::string& key() const; - void set_key(const ::std::string& value); + // string owner_id = 3; + void clear_owner_id(); + static const int kOwnerIdFieldNumber = 3; + const ::std::string& owner_id() const; + void set_owner_id(const ::std::string& value); #if LANG_CXX11 - void set_key(::std::string&& value); + void set_owner_id(::std::string&& value); #endif - void set_key(const char* value); - void set_key(const char* value, size_t size); - ::std::string* mutable_key(); - ::std::string* release_key(); - void set_allocated_key(::std::string* key); + void set_owner_id(const char* value); + void set_owner_id(const char* value, size_t size); + ::std::string* mutable_owner_id(); + ::std::string* release_owner_id(); + void set_allocated_owner_id(::std::string* owner_id); - // string value = 2; - void clear_value(); - static const int kValueFieldNumber = 2; - const ::std::string& value() const; - void set_value(const ::std::string& value); - #if LANG_CXX11 - void set_value(::std::string&& value); - #endif - void set_value(const char* value); - void set_value(const char* value, size_t size); - ::std::string* mutable_value(); - ::std::string* release_value(); - void set_allocated_value(::std::string* value); + // .datacatalog.Metadata metadata = 2; + bool has_metadata() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 2; + const ::datacatalog::Metadata& metadata() const; + ::datacatalog::Metadata* release_metadata(); + ::datacatalog::Metadata* mutable_metadata(); + void set_allocated_metadata(::datacatalog::Metadata* metadata); - // @@protoc_insertion_point(class_scope:datacatalog.Partition) + // .datacatalog.ReservationStatus.State state = 1; + void clear_state(); + static const int kStateFieldNumber = 1; + ::datacatalog::ReservationStatus_State state() const; + void set_state(::datacatalog::ReservationStatus_State value); + + // @@protoc_insertion_point(class_scope:datacatalog.ReservationStatus) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr key_; - ::google::protobuf::internal::ArenaStringPtr value_; + ::google::protobuf::internal::ArenaStringPtr owner_id_; + ::datacatalog::Metadata* metadata_; + int state_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; }; // ------------------------------------------------------------------- -class DatasetID final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.DatasetID) */ { +class GetOrReserveArtifactResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.GetOrReserveArtifactResponse) */ { public: - DatasetID(); - virtual ~DatasetID(); + GetOrReserveArtifactResponse(); + virtual ~GetOrReserveArtifactResponse(); - DatasetID(const DatasetID& from); + GetOrReserveArtifactResponse(const GetOrReserveArtifactResponse& from); - inline DatasetID& operator=(const DatasetID& from) { + inline GetOrReserveArtifactResponse& operator=(const GetOrReserveArtifactResponse& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - DatasetID(DatasetID&& from) noexcept - : DatasetID() { + GetOrReserveArtifactResponse(GetOrReserveArtifactResponse&& from) noexcept + : GetOrReserveArtifactResponse() { *this = ::std::move(from); } - inline DatasetID& operator=(DatasetID&& from) noexcept { + inline GetOrReserveArtifactResponse& operator=(GetOrReserveArtifactResponse&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -2258,34 +2333,40 @@ class DatasetID final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const DatasetID& default_instance(); + static const GetOrReserveArtifactResponse& default_instance(); + + enum ValueCase { + kArtifact = 1, + kReservationStatus = 2, + VALUE_NOT_SET = 0, + }; static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DatasetID* internal_default_instance() { - return reinterpret_cast( - &_DatasetID_default_instance_); + static inline const GetOrReserveArtifactResponse* internal_default_instance() { + return reinterpret_cast( + &_GetOrReserveArtifactResponse_default_instance_); } static constexpr int kIndexInFileMessages = 16; - void Swap(DatasetID* other); - friend void swap(DatasetID& a, DatasetID& b) { + void Swap(GetOrReserveArtifactResponse* other); + friend void swap(GetOrReserveArtifactResponse& a, GetOrReserveArtifactResponse& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline DatasetID* New() const final { - return CreateMaybeMessage(nullptr); + inline GetOrReserveArtifactResponse* New() const final { + return CreateMaybeMessage(nullptr); } - DatasetID* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + GetOrReserveArtifactResponse* 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 DatasetID& from); - void MergeFrom(const DatasetID& from); + void CopyFrom(const GetOrReserveArtifactResponse& from); + void MergeFrom(const GetOrReserveArtifactResponse& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2307,7 +2388,7 @@ class DatasetID final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(DatasetID* other); + void InternalSwap(GetOrReserveArtifactResponse* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -2323,110 +2404,67 @@ class DatasetID final : // accessors ------------------------------------------------------- - // string project = 1; - void clear_project(); - static const int kProjectFieldNumber = 1; - const ::std::string& project() const; - void set_project(const ::std::string& value); - #if LANG_CXX11 - void set_project(::std::string&& value); - #endif - void set_project(const char* value); - void set_project(const char* value, size_t size); - ::std::string* mutable_project(); - ::std::string* release_project(); - void set_allocated_project(::std::string* project); - - // string name = 2; - void clear_name(); - static const int kNameFieldNumber = 2; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // string domain = 3; - void clear_domain(); - static const int kDomainFieldNumber = 3; - const ::std::string& domain() const; - void set_domain(const ::std::string& value); - #if LANG_CXX11 - void set_domain(::std::string&& value); - #endif - void set_domain(const char* value); - void set_domain(const char* value, size_t size); - ::std::string* mutable_domain(); - ::std::string* release_domain(); - void set_allocated_domain(::std::string* domain); - - // string version = 4; - void clear_version(); - static const int kVersionFieldNumber = 4; - const ::std::string& version() const; - void set_version(const ::std::string& value); - #if LANG_CXX11 - void set_version(::std::string&& value); - #endif - void set_version(const char* value); - void set_version(const char* value, size_t size); - ::std::string* mutable_version(); - ::std::string* release_version(); - void set_allocated_version(::std::string* version); + // .datacatalog.Artifact artifact = 1; + bool has_artifact() const; + void clear_artifact(); + static const int kArtifactFieldNumber = 1; + const ::datacatalog::Artifact& artifact() const; + ::datacatalog::Artifact* release_artifact(); + ::datacatalog::Artifact* mutable_artifact(); + void set_allocated_artifact(::datacatalog::Artifact* artifact); - // string UUID = 5; - void clear_uuid(); - static const int kUUIDFieldNumber = 5; - const ::std::string& uuid() const; - void set_uuid(const ::std::string& value); - #if LANG_CXX11 - void set_uuid(::std::string&& value); - #endif - void set_uuid(const char* value); - void set_uuid(const char* value, size_t size); - ::std::string* mutable_uuid(); - ::std::string* release_uuid(); - void set_allocated_uuid(::std::string* uuid); + // .datacatalog.ReservationStatus reservation_status = 2; + bool has_reservation_status() const; + void clear_reservation_status(); + static const int kReservationStatusFieldNumber = 2; + const ::datacatalog::ReservationStatus& reservation_status() const; + ::datacatalog::ReservationStatus* release_reservation_status(); + ::datacatalog::ReservationStatus* mutable_reservation_status(); + void set_allocated_reservation_status(::datacatalog::ReservationStatus* reservation_status); - // @@protoc_insertion_point(class_scope:datacatalog.DatasetID) + void clear_value(); + ValueCase value_case() const; + // @@protoc_insertion_point(class_scope:datacatalog.GetOrReserveArtifactResponse) private: class HasBitSetters; + void set_has_artifact(); + void set_has_reservation_status(); + + inline bool has_value() const; + inline void clear_has_value(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr project_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr domain_; - ::google::protobuf::internal::ArenaStringPtr version_; - ::google::protobuf::internal::ArenaStringPtr uuid_; + union ValueUnion { + ValueUnion() {} + ::datacatalog::Artifact* artifact_; + ::datacatalog::ReservationStatus* reservation_status_; + } value_; mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; }; // ------------------------------------------------------------------- -class Artifact final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.Artifact) */ { +class ExtendReservationRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ExtendReservationRequest) */ { public: - Artifact(); - virtual ~Artifact(); + ExtendReservationRequest(); + virtual ~ExtendReservationRequest(); - Artifact(const Artifact& from); + ExtendReservationRequest(const ExtendReservationRequest& from); - inline Artifact& operator=(const Artifact& from) { + inline ExtendReservationRequest& operator=(const ExtendReservationRequest& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - Artifact(Artifact&& from) noexcept - : Artifact() { + ExtendReservationRequest(ExtendReservationRequest&& from) noexcept + : ExtendReservationRequest() { *this = ::std::move(from); } - inline Artifact& operator=(Artifact&& from) noexcept { + inline ExtendReservationRequest& operator=(ExtendReservationRequest&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -2438,34 +2476,34 @@ class Artifact final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const Artifact& default_instance(); + static const ExtendReservationRequest& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Artifact* internal_default_instance() { - return reinterpret_cast( - &_Artifact_default_instance_); + static inline const ExtendReservationRequest* internal_default_instance() { + return reinterpret_cast( + &_ExtendReservationRequest_default_instance_); } static constexpr int kIndexInFileMessages = 17; - void Swap(Artifact* other); - friend void swap(Artifact& a, Artifact& b) { + void Swap(ExtendReservationRequest* other); + friend void swap(ExtendReservationRequest& a, ExtendReservationRequest& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline Artifact* New() const final { - return CreateMaybeMessage(nullptr); + inline ExtendReservationRequest* New() const final { + return CreateMaybeMessage(nullptr); } - Artifact* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + ExtendReservationRequest* 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 Artifact& from); - void MergeFrom(const Artifact& from); + void CopyFrom(const ExtendReservationRequest& from); + void MergeFrom(const ExtendReservationRequest& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2487,7 +2525,7 @@ class Artifact final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(Artifact* other); + void InternalSwap(ExtendReservationRequest* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -2503,119 +2541,75 @@ class Artifact final : // accessors ------------------------------------------------------- - // repeated .datacatalog.ArtifactData data = 3; - int data_size() const; - void clear_data(); - static const int kDataFieldNumber = 3; - ::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; - - // repeated .datacatalog.Partition partitions = 5; - int partitions_size() const; - void clear_partitions(); - static const int kPartitionsFieldNumber = 5; - ::datacatalog::Partition* mutable_partitions(int index); - ::google::protobuf::RepeatedPtrField< ::datacatalog::Partition >* - mutable_partitions(); - const ::datacatalog::Partition& partitions(int index) const; - ::datacatalog::Partition* add_partitions(); - const ::google::protobuf::RepeatedPtrField< ::datacatalog::Partition >& - partitions() const; - - // repeated .datacatalog.Tag tags = 6; - int tags_size() const; - void clear_tags(); - static const int kTagsFieldNumber = 6; - ::datacatalog::Tag* mutable_tags(int index); - ::google::protobuf::RepeatedPtrField< ::datacatalog::Tag >* - mutable_tags(); - const ::datacatalog::Tag& tags(int index) const; - ::datacatalog::Tag* add_tags(); - const ::google::protobuf::RepeatedPtrField< ::datacatalog::Tag >& - tags() const; - - // string id = 1; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::std::string& id() const; - void set_id(const ::std::string& value); + // string tag_name = 2; + void clear_tag_name(); + static const int kTagNameFieldNumber = 2; + const ::std::string& tag_name() const; + void set_tag_name(const ::std::string& value); #if LANG_CXX11 - void set_id(::std::string&& value); + void set_tag_name(::std::string&& value); #endif - void set_id(const char* value); - void set_id(const char* value, size_t size); - ::std::string* mutable_id(); - ::std::string* release_id(); - void set_allocated_id(::std::string* id); - - // .datacatalog.DatasetID dataset = 2; - bool has_dataset() const; - void clear_dataset(); - static const int kDatasetFieldNumber = 2; - const ::datacatalog::DatasetID& dataset() const; - ::datacatalog::DatasetID* release_dataset(); - ::datacatalog::DatasetID* mutable_dataset(); - void set_allocated_dataset(::datacatalog::DatasetID* dataset); - - // .datacatalog.Metadata metadata = 4; - bool has_metadata() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 4; - const ::datacatalog::Metadata& metadata() const; - ::datacatalog::Metadata* release_metadata(); - ::datacatalog::Metadata* mutable_metadata(); - void set_allocated_metadata(::datacatalog::Metadata* metadata); - - // .google.protobuf.Timestamp created_at = 7; - bool has_created_at() const; - void clear_created_at(); - static const int kCreatedAtFieldNumber = 7; - const ::google::protobuf::Timestamp& created_at() const; - ::google::protobuf::Timestamp* release_created_at(); - ::google::protobuf::Timestamp* mutable_created_at(); - void set_allocated_created_at(::google::protobuf::Timestamp* created_at); + 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); - // @@protoc_insertion_point(class_scope:datacatalog.Artifact) + // string owner_id = 3; + void clear_owner_id(); + static const int kOwnerIdFieldNumber = 3; + const ::std::string& owner_id() const; + void set_owner_id(const ::std::string& value); + #if LANG_CXX11 + void set_owner_id(::std::string&& value); + #endif + void set_owner_id(const char* value); + void set_owner_id(const char* value, size_t size); + ::std::string* mutable_owner_id(); + ::std::string* release_owner_id(); + void set_allocated_owner_id(::std::string* owner_id); + + // .datacatalog.DatasetID dataset_id = 1; + bool has_dataset_id() const; + void clear_dataset_id(); + static const int kDatasetIdFieldNumber = 1; + const ::datacatalog::DatasetID& dataset_id() const; + ::datacatalog::DatasetID* release_dataset_id(); + ::datacatalog::DatasetID* mutable_dataset_id(); + void set_allocated_dataset_id(::datacatalog::DatasetID* dataset_id); + + // @@protoc_insertion_point(class_scope:datacatalog.ExtendReservationRequest) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData > data_; - ::google::protobuf::RepeatedPtrField< ::datacatalog::Partition > partitions_; - ::google::protobuf::RepeatedPtrField< ::datacatalog::Tag > tags_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::datacatalog::DatasetID* dataset_; - ::datacatalog::Metadata* metadata_; - ::google::protobuf::Timestamp* created_at_; + ::google::protobuf::internal::ArenaStringPtr tag_name_; + ::google::protobuf::internal::ArenaStringPtr owner_id_; + ::datacatalog::DatasetID* dataset_id_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; }; // ------------------------------------------------------------------- -class ArtifactData final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ArtifactData) */ { +class ExtendReservationResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ExtendReservationResponse) */ { public: - ArtifactData(); - virtual ~ArtifactData(); + ExtendReservationResponse(); + virtual ~ExtendReservationResponse(); - ArtifactData(const ArtifactData& from); + ExtendReservationResponse(const ExtendReservationResponse& from); - inline ArtifactData& operator=(const ArtifactData& from) { + inline ExtendReservationResponse& operator=(const ExtendReservationResponse& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - ArtifactData(ArtifactData&& from) noexcept - : ArtifactData() { + ExtendReservationResponse(ExtendReservationResponse&& from) noexcept + : ExtendReservationResponse() { *this = ::std::move(from); } - inline ArtifactData& operator=(ArtifactData&& from) noexcept { + inline ExtendReservationResponse& operator=(ExtendReservationResponse&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -2627,34 +2621,34 @@ class ArtifactData final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const ArtifactData& default_instance(); + static const ExtendReservationResponse& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ArtifactData* internal_default_instance() { - return reinterpret_cast( - &_ArtifactData_default_instance_); + static inline const ExtendReservationResponse* internal_default_instance() { + return reinterpret_cast( + &_ExtendReservationResponse_default_instance_); } static constexpr int kIndexInFileMessages = 18; - void Swap(ArtifactData* other); - friend void swap(ArtifactData& a, ArtifactData& b) { + void Swap(ExtendReservationResponse* other); + friend void swap(ExtendReservationResponse& a, ExtendReservationResponse& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline ArtifactData* New() const final { - return CreateMaybeMessage(nullptr); + inline ExtendReservationResponse* New() const final { + return CreateMaybeMessage(nullptr); } - ArtifactData* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + ExtendReservationResponse* 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 ArtifactData& from); - void MergeFrom(const ArtifactData& from); + void CopyFrom(const ExtendReservationResponse& from); + void MergeFrom(const ExtendReservationResponse& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2676,7 +2670,7 @@ class ArtifactData final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(ArtifactData* other); + void InternalSwap(ExtendReservationResponse* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -2692,60 +2686,35 @@ class ArtifactData final : // accessors ------------------------------------------------------- - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // .flyteidl.core.Literal value = 2; - bool has_value() const; - void clear_value(); - static const int kValueFieldNumber = 2; - const ::flyteidl::core::Literal& value() const; - ::flyteidl::core::Literal* release_value(); - ::flyteidl::core::Literal* mutable_value(); - void set_allocated_value(::flyteidl::core::Literal* value); - - // @@protoc_insertion_point(class_scope:datacatalog.ArtifactData) + // @@protoc_insertion_point(class_scope:datacatalog.ExtendReservationResponse) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::flyteidl::core::Literal* value_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; }; // ------------------------------------------------------------------- -class Tag final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.Tag) */ { +class ReleaseReservationRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ReleaseReservationRequest) */ { public: - Tag(); - virtual ~Tag(); + ReleaseReservationRequest(); + virtual ~ReleaseReservationRequest(); - Tag(const Tag& from); + ReleaseReservationRequest(const ReleaseReservationRequest& from); - inline Tag& operator=(const Tag& from) { + inline ReleaseReservationRequest& operator=(const ReleaseReservationRequest& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - Tag(Tag&& from) noexcept - : Tag() { + ReleaseReservationRequest(ReleaseReservationRequest&& from) noexcept + : ReleaseReservationRequest() { *this = ::std::move(from); } - inline Tag& operator=(Tag&& from) noexcept { + inline ReleaseReservationRequest& operator=(ReleaseReservationRequest&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -2757,34 +2726,34 @@ class Tag final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const Tag& default_instance(); + static const ReleaseReservationRequest& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Tag* internal_default_instance() { - return reinterpret_cast( - &_Tag_default_instance_); + static inline const ReleaseReservationRequest* internal_default_instance() { + return reinterpret_cast( + &_ReleaseReservationRequest_default_instance_); } static constexpr int kIndexInFileMessages = 19; - void Swap(Tag* other); - friend void swap(Tag& a, Tag& b) { + void Swap(ReleaseReservationRequest* other); + friend void swap(ReleaseReservationRequest& a, ReleaseReservationRequest& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline Tag* New() const final { - return CreateMaybeMessage(nullptr); + inline ReleaseReservationRequest* New() const final { + return CreateMaybeMessage(nullptr); } - Tag* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + ReleaseReservationRequest* 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 Tag& from); - void MergeFrom(const Tag& from); + void CopyFrom(const ReleaseReservationRequest& from); + void MergeFrom(const ReleaseReservationRequest& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2806,7 +2775,7 @@ class Tag final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(Tag* other); + void InternalSwap(ReleaseReservationRequest* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -2822,99 +2791,75 @@ class Tag final : // accessors ------------------------------------------------------- - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); + // string tag_name = 2; + void clear_tag_name(); + static const int kTagNameFieldNumber = 2; + const ::std::string& tag_name() const; + void set_tag_name(const ::std::string& value); #if LANG_CXX11 - void set_name(::std::string&& value); + void set_tag_name(::std::string&& value); #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); + 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); - // string artifact_id = 2; - void clear_artifact_id(); - static const int kArtifactIdFieldNumber = 2; - const ::std::string& artifact_id() const; - void set_artifact_id(const ::std::string& value); + // string owner_id = 3; + void clear_owner_id(); + static const int kOwnerIdFieldNumber = 3; + const ::std::string& owner_id() const; + void set_owner_id(const ::std::string& value); #if LANG_CXX11 - void set_artifact_id(::std::string&& value); + void set_owner_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); - - // .datacatalog.DatasetID dataset = 3; - bool has_dataset() const; - void clear_dataset(); - static const int kDatasetFieldNumber = 3; - const ::datacatalog::DatasetID& dataset() const; - ::datacatalog::DatasetID* release_dataset(); - ::datacatalog::DatasetID* mutable_dataset(); - void set_allocated_dataset(::datacatalog::DatasetID* dataset); - - // @@protoc_insertion_point(class_scope:datacatalog.Tag) + void set_owner_id(const char* value); + void set_owner_id(const char* value, size_t size); + ::std::string* mutable_owner_id(); + ::std::string* release_owner_id(); + void set_allocated_owner_id(::std::string* owner_id); + + // .datacatalog.DatasetID dataset_id = 1; + bool has_dataset_id() const; + void clear_dataset_id(); + static const int kDatasetIdFieldNumber = 1; + const ::datacatalog::DatasetID& dataset_id() const; + ::datacatalog::DatasetID* release_dataset_id(); + ::datacatalog::DatasetID* mutable_dataset_id(); + void set_allocated_dataset_id(::datacatalog::DatasetID* dataset_id); + + // @@protoc_insertion_point(class_scope:datacatalog.ReleaseReservationRequest) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr artifact_id_; - ::datacatalog::DatasetID* dataset_; + ::google::protobuf::internal::ArenaStringPtr tag_name_; + ::google::protobuf::internal::ArenaStringPtr owner_id_; + ::datacatalog::DatasetID* dataset_id_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; }; // ------------------------------------------------------------------- -class Metadata_KeyMapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - typedef ::google::protobuf::internal::MapEntry SuperType; - Metadata_KeyMapEntry_DoNotUse(); - Metadata_KeyMapEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const Metadata_KeyMapEntry_DoNotUse& other); - static const Metadata_KeyMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Metadata_KeyMapEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class Metadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.Metadata) */ { +class ReleaseReservationResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ReleaseReservationResponse) */ { public: - Metadata(); - virtual ~Metadata(); + ReleaseReservationResponse(); + virtual ~ReleaseReservationResponse(); - Metadata(const Metadata& from); + ReleaseReservationResponse(const ReleaseReservationResponse& from); - inline Metadata& operator=(const Metadata& from) { + inline ReleaseReservationResponse& operator=(const ReleaseReservationResponse& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - Metadata(Metadata&& from) noexcept - : Metadata() { + ReleaseReservationResponse(ReleaseReservationResponse&& from) noexcept + : ReleaseReservationResponse() { *this = ::std::move(from); } - inline Metadata& operator=(Metadata&& from) noexcept { + inline ReleaseReservationResponse& operator=(ReleaseReservationResponse&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -2926,34 +2871,34 @@ class Metadata final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const Metadata& default_instance(); + static const ReleaseReservationResponse& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Metadata* internal_default_instance() { - return reinterpret_cast( - &_Metadata_default_instance_); + static inline const ReleaseReservationResponse* internal_default_instance() { + return reinterpret_cast( + &_ReleaseReservationResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 21; + 20; - void Swap(Metadata* other); - friend void swap(Metadata& a, Metadata& b) { + void Swap(ReleaseReservationResponse* other); + friend void swap(ReleaseReservationResponse& a, ReleaseReservationResponse& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline Metadata* New() const final { - return CreateMaybeMessage(nullptr); + inline ReleaseReservationResponse* New() const final { + return CreateMaybeMessage(nullptr); } - Metadata* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + ReleaseReservationResponse* 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 Metadata& from); - void MergeFrom(const Metadata& from); + void CopyFrom(const ReleaseReservationResponse& from); + void MergeFrom(const ReleaseReservationResponse& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2975,7 +2920,7 @@ class Metadata final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(Metadata* other); + void InternalSwap(ReleaseReservationResponse* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -2989,53 +2934,37 @@ class Metadata final : // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- - // map key_map = 1; - int key_map_size() const; - void clear_key_map(); - static const int kKeyMapFieldNumber = 1; - const ::google::protobuf::Map< ::std::string, ::std::string >& - key_map() const; - ::google::protobuf::Map< ::std::string, ::std::string >* - mutable_key_map(); - - // @@protoc_insertion_point(class_scope:datacatalog.Metadata) + // @@protoc_insertion_point(class_scope:datacatalog.ReleaseReservationResponse) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< - Metadata_KeyMapEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 > key_map_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; }; // ------------------------------------------------------------------- -class FilterExpression final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.FilterExpression) */ { +class Dataset final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.Dataset) */ { public: - FilterExpression(); - virtual ~FilterExpression(); + Dataset(); + virtual ~Dataset(); - FilterExpression(const FilterExpression& from); + Dataset(const Dataset& from); - inline FilterExpression& operator=(const FilterExpression& from) { + inline Dataset& operator=(const Dataset& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - FilterExpression(FilterExpression&& from) noexcept - : FilterExpression() { + Dataset(Dataset&& from) noexcept + : Dataset() { *this = ::std::move(from); } - inline FilterExpression& operator=(FilterExpression&& from) noexcept { + inline Dataset& operator=(Dataset&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -3047,34 +2976,34 @@ class FilterExpression final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const FilterExpression& default_instance(); + static const Dataset& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const FilterExpression* internal_default_instance() { - return reinterpret_cast( - &_FilterExpression_default_instance_); + static inline const Dataset* internal_default_instance() { + return reinterpret_cast( + &_Dataset_default_instance_); } static constexpr int kIndexInFileMessages = - 22; + 21; - void Swap(FilterExpression* other); - friend void swap(FilterExpression& a, FilterExpression& b) { + void Swap(Dataset* other); + friend void swap(Dataset& a, Dataset& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline FilterExpression* New() const final { - return CreateMaybeMessage(nullptr); + inline Dataset* New() const final { + return CreateMaybeMessage(nullptr); } - FilterExpression* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + Dataset* 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 FilterExpression& from); - void MergeFrom(const FilterExpression& from); + void CopyFrom(const Dataset& from); + void MergeFrom(const Dataset& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -3096,7 +3025,7 @@ class FilterExpression final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(FilterExpression* other); + void InternalSwap(Dataset* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -3112,48 +3041,78 @@ class FilterExpression final : // accessors ------------------------------------------------------- - // repeated .datacatalog.SinglePropertyFilter filters = 1; - int filters_size() const; - void clear_filters(); - static const int kFiltersFieldNumber = 1; - ::datacatalog::SinglePropertyFilter* mutable_filters(int index); - ::google::protobuf::RepeatedPtrField< ::datacatalog::SinglePropertyFilter >* - mutable_filters(); - const ::datacatalog::SinglePropertyFilter& filters(int index) const; - ::datacatalog::SinglePropertyFilter* add_filters(); - const ::google::protobuf::RepeatedPtrField< ::datacatalog::SinglePropertyFilter >& - filters() const; + // repeated string partitionKeys = 3; + int partitionkeys_size() const; + void clear_partitionkeys(); + static const int kPartitionKeysFieldNumber = 3; + const ::std::string& partitionkeys(int index) const; + ::std::string* mutable_partitionkeys(int index); + void set_partitionkeys(int index, const ::std::string& value); + #if LANG_CXX11 + void set_partitionkeys(int index, ::std::string&& value); + #endif + void set_partitionkeys(int index, const char* value); + void set_partitionkeys(int index, const char* value, size_t size); + ::std::string* add_partitionkeys(); + void add_partitionkeys(const ::std::string& value); + #if LANG_CXX11 + void add_partitionkeys(::std::string&& value); + #endif + void add_partitionkeys(const char* value); + void add_partitionkeys(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& partitionkeys() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_partitionkeys(); - // @@protoc_insertion_point(class_scope:datacatalog.FilterExpression) + // .datacatalog.DatasetID id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::datacatalog::DatasetID& id() const; + ::datacatalog::DatasetID* release_id(); + ::datacatalog::DatasetID* mutable_id(); + void set_allocated_id(::datacatalog::DatasetID* id); + + // .datacatalog.Metadata metadata = 2; + bool has_metadata() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 2; + const ::datacatalog::Metadata& metadata() const; + ::datacatalog::Metadata* release_metadata(); + ::datacatalog::Metadata* mutable_metadata(); + void set_allocated_metadata(::datacatalog::Metadata* metadata); + + // @@protoc_insertion_point(class_scope:datacatalog.Dataset) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::datacatalog::SinglePropertyFilter > filters_; + ::google::protobuf::RepeatedPtrField<::std::string> partitionkeys_; + ::datacatalog::DatasetID* id_; + ::datacatalog::Metadata* metadata_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; }; // ------------------------------------------------------------------- -class SinglePropertyFilter final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.SinglePropertyFilter) */ { +class Partition final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.Partition) */ { public: - SinglePropertyFilter(); - virtual ~SinglePropertyFilter(); + Partition(); + virtual ~Partition(); - SinglePropertyFilter(const SinglePropertyFilter& from); + Partition(const Partition& from); - inline SinglePropertyFilter& operator=(const SinglePropertyFilter& from) { + inline Partition& operator=(const Partition& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - SinglePropertyFilter(SinglePropertyFilter&& from) noexcept - : SinglePropertyFilter() { + Partition(Partition&& from) noexcept + : Partition() { *this = ::std::move(from); } - inline SinglePropertyFilter& operator=(SinglePropertyFilter&& from) noexcept { + inline Partition& operator=(Partition&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -3165,42 +3124,34 @@ class SinglePropertyFilter final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const SinglePropertyFilter& default_instance(); - - enum PropertyFilterCase { - kTagFilter = 1, - kPartitionFilter = 2, - kArtifactFilter = 3, - kDatasetFilter = 4, - PROPERTY_FILTER_NOT_SET = 0, - }; + static const Partition& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SinglePropertyFilter* internal_default_instance() { - return reinterpret_cast( - &_SinglePropertyFilter_default_instance_); + static inline const Partition* internal_default_instance() { + return reinterpret_cast( + &_Partition_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 22; - void Swap(SinglePropertyFilter* other); - friend void swap(SinglePropertyFilter& a, SinglePropertyFilter& b) { + void Swap(Partition* other); + friend void swap(Partition& a, Partition& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline SinglePropertyFilter* New() const final { - return CreateMaybeMessage(nullptr); + inline Partition* New() const final { + return CreateMaybeMessage(nullptr); } - SinglePropertyFilter* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + Partition* 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 SinglePropertyFilter& from); - void MergeFrom(const SinglePropertyFilter& from); + void CopyFrom(const Partition& from); + void MergeFrom(const Partition& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -3222,7 +3173,7 @@ class SinglePropertyFilter final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(SinglePropertyFilter* other); + void InternalSwap(Partition* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -3236,122 +3187,67 @@ class SinglePropertyFilter final : // nested types ---------------------------------------------------- - typedef SinglePropertyFilter_ComparisonOperator ComparisonOperator; - static const ComparisonOperator EQUALS = - SinglePropertyFilter_ComparisonOperator_EQUALS; - static inline bool ComparisonOperator_IsValid(int value) { - return SinglePropertyFilter_ComparisonOperator_IsValid(value); - } - static const ComparisonOperator ComparisonOperator_MIN = - SinglePropertyFilter_ComparisonOperator_ComparisonOperator_MIN; - static const ComparisonOperator ComparisonOperator_MAX = - SinglePropertyFilter_ComparisonOperator_ComparisonOperator_MAX; - static const int ComparisonOperator_ARRAYSIZE = - SinglePropertyFilter_ComparisonOperator_ComparisonOperator_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - ComparisonOperator_descriptor() { - return SinglePropertyFilter_ComparisonOperator_descriptor(); - } - static inline const ::std::string& ComparisonOperator_Name(ComparisonOperator value) { - return SinglePropertyFilter_ComparisonOperator_Name(value); - } - static inline bool ComparisonOperator_Parse(const ::std::string& name, - ComparisonOperator* value) { - return SinglePropertyFilter_ComparisonOperator_Parse(name, value); - } - // accessors ------------------------------------------------------- - // .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; - void clear_operator_(); - static const int kOperatorFieldNumber = 10; - ::datacatalog::SinglePropertyFilter_ComparisonOperator operator_() const; - void set_operator_(::datacatalog::SinglePropertyFilter_ComparisonOperator value); + // string key = 1; + void clear_key(); + static const int kKeyFieldNumber = 1; + const ::std::string& key() const; + void set_key(const ::std::string& value); + #if LANG_CXX11 + void set_key(::std::string&& value); + #endif + void set_key(const char* value); + void set_key(const char* value, size_t size); + ::std::string* mutable_key(); + ::std::string* release_key(); + void set_allocated_key(::std::string* key); - // .datacatalog.TagPropertyFilter tag_filter = 1; - bool has_tag_filter() const; - void clear_tag_filter(); - static const int kTagFilterFieldNumber = 1; - const ::datacatalog::TagPropertyFilter& tag_filter() const; - ::datacatalog::TagPropertyFilter* release_tag_filter(); - ::datacatalog::TagPropertyFilter* mutable_tag_filter(); - void set_allocated_tag_filter(::datacatalog::TagPropertyFilter* tag_filter); + // string value = 2; + void clear_value(); + static const int kValueFieldNumber = 2; + const ::std::string& value() const; + void set_value(const ::std::string& value); + #if LANG_CXX11 + void set_value(::std::string&& value); + #endif + void set_value(const char* value); + void set_value(const char* value, size_t size); + ::std::string* mutable_value(); + ::std::string* release_value(); + void set_allocated_value(::std::string* value); - // .datacatalog.PartitionPropertyFilter partition_filter = 2; - bool has_partition_filter() const; - void clear_partition_filter(); - static const int kPartitionFilterFieldNumber = 2; - const ::datacatalog::PartitionPropertyFilter& partition_filter() const; - ::datacatalog::PartitionPropertyFilter* release_partition_filter(); - ::datacatalog::PartitionPropertyFilter* mutable_partition_filter(); - void set_allocated_partition_filter(::datacatalog::PartitionPropertyFilter* partition_filter); - - // .datacatalog.ArtifactPropertyFilter artifact_filter = 3; - bool has_artifact_filter() const; - void clear_artifact_filter(); - static const int kArtifactFilterFieldNumber = 3; - const ::datacatalog::ArtifactPropertyFilter& artifact_filter() const; - ::datacatalog::ArtifactPropertyFilter* release_artifact_filter(); - ::datacatalog::ArtifactPropertyFilter* mutable_artifact_filter(); - void set_allocated_artifact_filter(::datacatalog::ArtifactPropertyFilter* artifact_filter); - - // .datacatalog.DatasetPropertyFilter dataset_filter = 4; - bool has_dataset_filter() const; - void clear_dataset_filter(); - static const int kDatasetFilterFieldNumber = 4; - const ::datacatalog::DatasetPropertyFilter& dataset_filter() const; - ::datacatalog::DatasetPropertyFilter* release_dataset_filter(); - ::datacatalog::DatasetPropertyFilter* mutable_dataset_filter(); - void set_allocated_dataset_filter(::datacatalog::DatasetPropertyFilter* dataset_filter); - - void clear_property_filter(); - PropertyFilterCase property_filter_case() const; - // @@protoc_insertion_point(class_scope:datacatalog.SinglePropertyFilter) + // @@protoc_insertion_point(class_scope:datacatalog.Partition) private: class HasBitSetters; - void set_has_tag_filter(); - void set_has_partition_filter(); - void set_has_artifact_filter(); - void set_has_dataset_filter(); - - inline bool has_property_filter() const; - inline void clear_has_property_filter(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - int operator__; - union PropertyFilterUnion { - PropertyFilterUnion() {} - ::datacatalog::TagPropertyFilter* tag_filter_; - ::datacatalog::PartitionPropertyFilter* partition_filter_; - ::datacatalog::ArtifactPropertyFilter* artifact_filter_; - ::datacatalog::DatasetPropertyFilter* dataset_filter_; - } property_filter_; + ::google::protobuf::internal::ArenaStringPtr key_; + ::google::protobuf::internal::ArenaStringPtr value_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; }; // ------------------------------------------------------------------- -class ArtifactPropertyFilter final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ArtifactPropertyFilter) */ { +class DatasetID final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.DatasetID) */ { public: - ArtifactPropertyFilter(); - virtual ~ArtifactPropertyFilter(); + DatasetID(); + virtual ~DatasetID(); - ArtifactPropertyFilter(const ArtifactPropertyFilter& from); + DatasetID(const DatasetID& from); - inline ArtifactPropertyFilter& operator=(const ArtifactPropertyFilter& from) { + inline DatasetID& operator=(const DatasetID& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - ArtifactPropertyFilter(ArtifactPropertyFilter&& from) noexcept - : ArtifactPropertyFilter() { + DatasetID(DatasetID&& from) noexcept + : DatasetID() { *this = ::std::move(from); } - inline ArtifactPropertyFilter& operator=(ArtifactPropertyFilter&& from) noexcept { + inline DatasetID& operator=(DatasetID&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -3363,39 +3259,34 @@ class ArtifactPropertyFilter final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const ArtifactPropertyFilter& default_instance(); - - enum PropertyCase { - kArtifactId = 1, - PROPERTY_NOT_SET = 0, - }; + static const DatasetID& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ArtifactPropertyFilter* internal_default_instance() { - return reinterpret_cast( - &_ArtifactPropertyFilter_default_instance_); + static inline const DatasetID* internal_default_instance() { + return reinterpret_cast( + &_DatasetID_default_instance_); } static constexpr int kIndexInFileMessages = - 24; + 23; - void Swap(ArtifactPropertyFilter* other); - friend void swap(ArtifactPropertyFilter& a, ArtifactPropertyFilter& b) { + void Swap(DatasetID* other); + friend void swap(DatasetID& a, DatasetID& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline ArtifactPropertyFilter* New() const final { - return CreateMaybeMessage(nullptr); + inline DatasetID* New() const final { + return CreateMaybeMessage(nullptr); } - ArtifactPropertyFilter* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + DatasetID* 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 ArtifactPropertyFilter& from); - void MergeFrom(const ArtifactPropertyFilter& from); + void CopyFrom(const DatasetID& from); + void MergeFrom(const DatasetID& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -3417,7 +3308,7 @@ class ArtifactPropertyFilter final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(ArtifactPropertyFilter* other); + void InternalSwap(DatasetID* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -3433,64 +3324,110 @@ class ArtifactPropertyFilter final : // accessors ------------------------------------------------------- - // string artifact_id = 1; - private: - bool has_artifact_id() const; - public: - void clear_artifact_id(); - static const int kArtifactIdFieldNumber = 1; - const ::std::string& artifact_id() const; - void set_artifact_id(const ::std::string& value); + // string project = 1; + void clear_project(); + static const int kProjectFieldNumber = 1; + const ::std::string& project() const; + void set_project(const ::std::string& value); #if LANG_CXX11 - void set_artifact_id(::std::string&& value); + void set_project(::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); + void set_project(const char* value); + void set_project(const char* value, size_t size); + ::std::string* mutable_project(); + ::std::string* release_project(); + void set_allocated_project(::std::string* project); - void clear_property(); - PropertyCase property_case() const; - // @@protoc_insertion_point(class_scope:datacatalog.ArtifactPropertyFilter) + // string name = 2; + void clear_name(); + static const int kNameFieldNumber = 2; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // string domain = 3; + void clear_domain(); + static const int kDomainFieldNumber = 3; + const ::std::string& domain() const; + void set_domain(const ::std::string& value); + #if LANG_CXX11 + void set_domain(::std::string&& value); + #endif + void set_domain(const char* value); + void set_domain(const char* value, size_t size); + ::std::string* mutable_domain(); + ::std::string* release_domain(); + void set_allocated_domain(::std::string* domain); + + // string version = 4; + void clear_version(); + static const int kVersionFieldNumber = 4; + const ::std::string& version() const; + void set_version(const ::std::string& value); + #if LANG_CXX11 + void set_version(::std::string&& value); + #endif + void set_version(const char* value); + void set_version(const char* value, size_t size); + ::std::string* mutable_version(); + ::std::string* release_version(); + void set_allocated_version(::std::string* version); + + // string UUID = 5; + void clear_uuid(); + static const int kUUIDFieldNumber = 5; + const ::std::string& uuid() const; + void set_uuid(const ::std::string& value); + #if LANG_CXX11 + void set_uuid(::std::string&& value); + #endif + void set_uuid(const char* value); + void set_uuid(const char* value, size_t size); + ::std::string* mutable_uuid(); + ::std::string* release_uuid(); + void set_allocated_uuid(::std::string* uuid); + + // @@protoc_insertion_point(class_scope:datacatalog.DatasetID) private: class HasBitSetters; - void set_has_artifact_id(); - - inline bool has_property() const; - inline void clear_has_property(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - union PropertyUnion { - PropertyUnion() {} - ::google::protobuf::internal::ArenaStringPtr artifact_id_; - } property_; + ::google::protobuf::internal::ArenaStringPtr project_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr domain_; + ::google::protobuf::internal::ArenaStringPtr version_; + ::google::protobuf::internal::ArenaStringPtr uuid_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; }; // ------------------------------------------------------------------- -class TagPropertyFilter final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.TagPropertyFilter) */ { +class Artifact final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.Artifact) */ { public: - TagPropertyFilter(); - virtual ~TagPropertyFilter(); + Artifact(); + virtual ~Artifact(); - TagPropertyFilter(const TagPropertyFilter& from); + Artifact(const Artifact& from); - inline TagPropertyFilter& operator=(const TagPropertyFilter& from) { + inline Artifact& operator=(const Artifact& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - TagPropertyFilter(TagPropertyFilter&& from) noexcept - : TagPropertyFilter() { + Artifact(Artifact&& from) noexcept + : Artifact() { *this = ::std::move(from); } - inline TagPropertyFilter& operator=(TagPropertyFilter&& from) noexcept { + inline Artifact& operator=(Artifact&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -3502,39 +3439,34 @@ class TagPropertyFilter final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const TagPropertyFilter& default_instance(); - - enum PropertyCase { - kTagName = 1, - PROPERTY_NOT_SET = 0, - }; + static const Artifact& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TagPropertyFilter* internal_default_instance() { - return reinterpret_cast( - &_TagPropertyFilter_default_instance_); + static inline const Artifact* internal_default_instance() { + return reinterpret_cast( + &_Artifact_default_instance_); } static constexpr int kIndexInFileMessages = - 25; + 24; - void Swap(TagPropertyFilter* other); - friend void swap(TagPropertyFilter& a, TagPropertyFilter& b) { + void Swap(Artifact* other); + friend void swap(Artifact& a, Artifact& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline TagPropertyFilter* New() const final { - return CreateMaybeMessage(nullptr); + inline Artifact* New() const final { + return CreateMaybeMessage(nullptr); } - TagPropertyFilter* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + Artifact* 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 TagPropertyFilter& from); - void MergeFrom(const TagPropertyFilter& from); + void CopyFrom(const Artifact& from); + void MergeFrom(const Artifact& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -3556,7 +3488,7 @@ class TagPropertyFilter final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(TagPropertyFilter* other); + void InternalSwap(Artifact* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -3572,64 +3504,119 @@ class TagPropertyFilter final : // accessors ------------------------------------------------------- - // string tag_name = 1; - private: - bool has_tag_name() const; - public: - void clear_tag_name(); - static const int kTagNameFieldNumber = 1; - const ::std::string& tag_name() const; - void set_tag_name(const ::std::string& value); + // repeated .datacatalog.ArtifactData data = 3; + int data_size() const; + void clear_data(); + static const int kDataFieldNumber = 3; + ::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; + + // repeated .datacatalog.Partition partitions = 5; + int partitions_size() const; + void clear_partitions(); + static const int kPartitionsFieldNumber = 5; + ::datacatalog::Partition* mutable_partitions(int index); + ::google::protobuf::RepeatedPtrField< ::datacatalog::Partition >* + mutable_partitions(); + const ::datacatalog::Partition& partitions(int index) const; + ::datacatalog::Partition* add_partitions(); + const ::google::protobuf::RepeatedPtrField< ::datacatalog::Partition >& + partitions() const; + + // repeated .datacatalog.Tag tags = 6; + int tags_size() const; + void clear_tags(); + static const int kTagsFieldNumber = 6; + ::datacatalog::Tag* mutable_tags(int index); + ::google::protobuf::RepeatedPtrField< ::datacatalog::Tag >* + mutable_tags(); + const ::datacatalog::Tag& tags(int index) const; + ::datacatalog::Tag* add_tags(); + const ::google::protobuf::RepeatedPtrField< ::datacatalog::Tag >& + tags() const; + + // string id = 1; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::std::string& id() const; + void set_id(const ::std::string& value); #if LANG_CXX11 - void set_tag_name(::std::string&& value); + void set_id(::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 set_id(const char* value); + void set_id(const char* value, size_t size); + ::std::string* mutable_id(); + ::std::string* release_id(); + void set_allocated_id(::std::string* id); - void clear_property(); - PropertyCase property_case() const; - // @@protoc_insertion_point(class_scope:datacatalog.TagPropertyFilter) + // .datacatalog.DatasetID dataset = 2; + bool has_dataset() const; + void clear_dataset(); + static const int kDatasetFieldNumber = 2; + const ::datacatalog::DatasetID& dataset() const; + ::datacatalog::DatasetID* release_dataset(); + ::datacatalog::DatasetID* mutable_dataset(); + void set_allocated_dataset(::datacatalog::DatasetID* dataset); + + // .datacatalog.Metadata metadata = 4; + bool has_metadata() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 4; + const ::datacatalog::Metadata& metadata() const; + ::datacatalog::Metadata* release_metadata(); + ::datacatalog::Metadata* mutable_metadata(); + void set_allocated_metadata(::datacatalog::Metadata* metadata); + + // .google.protobuf.Timestamp created_at = 7; + bool has_created_at() const; + void clear_created_at(); + static const int kCreatedAtFieldNumber = 7; + const ::google::protobuf::Timestamp& created_at() const; + ::google::protobuf::Timestamp* release_created_at(); + ::google::protobuf::Timestamp* mutable_created_at(); + void set_allocated_created_at(::google::protobuf::Timestamp* created_at); + + // @@protoc_insertion_point(class_scope:datacatalog.Artifact) private: class HasBitSetters; - void set_has_tag_name(); - - inline bool has_property() const; - inline void clear_has_property(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - union PropertyUnion { - PropertyUnion() {} - ::google::protobuf::internal::ArenaStringPtr tag_name_; - } property_; + ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData > data_; + ::google::protobuf::RepeatedPtrField< ::datacatalog::Partition > partitions_; + ::google::protobuf::RepeatedPtrField< ::datacatalog::Tag > tags_; + ::google::protobuf::internal::ArenaStringPtr id_; + ::datacatalog::DatasetID* dataset_; + ::datacatalog::Metadata* metadata_; + ::google::protobuf::Timestamp* created_at_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; }; // ------------------------------------------------------------------- -class PartitionPropertyFilter final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.PartitionPropertyFilter) */ { +class ArtifactData final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ArtifactData) */ { public: - PartitionPropertyFilter(); - virtual ~PartitionPropertyFilter(); + ArtifactData(); + virtual ~ArtifactData(); - PartitionPropertyFilter(const PartitionPropertyFilter& from); + ArtifactData(const ArtifactData& from); - inline PartitionPropertyFilter& operator=(const PartitionPropertyFilter& from) { + inline ArtifactData& operator=(const ArtifactData& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - PartitionPropertyFilter(PartitionPropertyFilter&& from) noexcept - : PartitionPropertyFilter() { + ArtifactData(ArtifactData&& from) noexcept + : ArtifactData() { *this = ::std::move(from); } - inline PartitionPropertyFilter& operator=(PartitionPropertyFilter&& from) noexcept { + inline ArtifactData& operator=(ArtifactData&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -3641,39 +3628,34 @@ class PartitionPropertyFilter final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const PartitionPropertyFilter& default_instance(); - - enum PropertyCase { - kKeyVal = 1, - PROPERTY_NOT_SET = 0, - }; + static const ArtifactData& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PartitionPropertyFilter* internal_default_instance() { - return reinterpret_cast( - &_PartitionPropertyFilter_default_instance_); + static inline const ArtifactData* internal_default_instance() { + return reinterpret_cast( + &_ArtifactData_default_instance_); } static constexpr int kIndexInFileMessages = - 26; + 25; - void Swap(PartitionPropertyFilter* other); - friend void swap(PartitionPropertyFilter& a, PartitionPropertyFilter& b) { + void Swap(ArtifactData* other); + friend void swap(ArtifactData& a, ArtifactData& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline PartitionPropertyFilter* New() const final { - return CreateMaybeMessage(nullptr); + inline ArtifactData* New() const final { + return CreateMaybeMessage(nullptr); } - PartitionPropertyFilter* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + ArtifactData* 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 PartitionPropertyFilter& from); - void MergeFrom(const PartitionPropertyFilter& from); + void CopyFrom(const ArtifactData& from); + void MergeFrom(const ArtifactData& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -3695,7 +3677,7 @@ class PartitionPropertyFilter final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(PartitionPropertyFilter* other); + void InternalSwap(ArtifactData* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -3711,56 +3693,60 @@ class PartitionPropertyFilter final : // accessors ------------------------------------------------------- - // .datacatalog.KeyValuePair key_val = 1; - bool has_key_val() const; - void clear_key_val(); - static const int kKeyValFieldNumber = 1; - const ::datacatalog::KeyValuePair& key_val() const; - ::datacatalog::KeyValuePair* release_key_val(); - ::datacatalog::KeyValuePair* mutable_key_val(); - void set_allocated_key_val(::datacatalog::KeyValuePair* key_val); + // string name = 1; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); - void clear_property(); - PropertyCase property_case() const; - // @@protoc_insertion_point(class_scope:datacatalog.PartitionPropertyFilter) + // .flyteidl.core.Literal value = 2; + bool has_value() const; + void clear_value(); + static const int kValueFieldNumber = 2; + const ::flyteidl::core::Literal& value() const; + ::flyteidl::core::Literal* release_value(); + ::flyteidl::core::Literal* mutable_value(); + void set_allocated_value(::flyteidl::core::Literal* value); + + // @@protoc_insertion_point(class_scope:datacatalog.ArtifactData) private: class HasBitSetters; - void set_has_key_val(); - - inline bool has_property() const; - inline void clear_has_property(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - union PropertyUnion { - PropertyUnion() {} - ::datacatalog::KeyValuePair* key_val_; - } property_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::flyteidl::core::Literal* value_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; }; // ------------------------------------------------------------------- -class KeyValuePair final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.KeyValuePair) */ { +class Tag final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.Tag) */ { public: - KeyValuePair(); - virtual ~KeyValuePair(); + Tag(); + virtual ~Tag(); - KeyValuePair(const KeyValuePair& from); + Tag(const Tag& from); - inline KeyValuePair& operator=(const KeyValuePair& from) { + inline Tag& operator=(const Tag& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - KeyValuePair(KeyValuePair&& from) noexcept - : KeyValuePair() { + Tag(Tag&& from) noexcept + : Tag() { *this = ::std::move(from); } - inline KeyValuePair& operator=(KeyValuePair&& from) noexcept { + inline Tag& operator=(Tag&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -3772,34 +3758,34 @@ class KeyValuePair final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const KeyValuePair& default_instance(); + static const Tag& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const KeyValuePair* internal_default_instance() { - return reinterpret_cast( - &_KeyValuePair_default_instance_); + static inline const Tag* internal_default_instance() { + return reinterpret_cast( + &_Tag_default_instance_); } static constexpr int kIndexInFileMessages = - 27; + 26; - void Swap(KeyValuePair* other); - friend void swap(KeyValuePair& a, KeyValuePair& b) { + void Swap(Tag* other); + friend void swap(Tag& a, Tag& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline KeyValuePair* New() const final { - return CreateMaybeMessage(nullptr); + inline Tag* New() const final { + return CreateMaybeMessage(nullptr); } - KeyValuePair* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + Tag* 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 KeyValuePair& from); - void MergeFrom(const KeyValuePair& from); + void CopyFrom(const Tag& from); + void MergeFrom(const Tag& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -3821,7 +3807,7 @@ class KeyValuePair final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(KeyValuePair* other); + void InternalSwap(Tag* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -3837,65 +3823,99 @@ class KeyValuePair final : // accessors ------------------------------------------------------- - // string key = 1; - void clear_key(); - static const int kKeyFieldNumber = 1; - const ::std::string& key() const; - void set_key(const ::std::string& value); + // string name = 1; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); #if LANG_CXX11 - void set_key(::std::string&& value); + void set_name(::std::string&& value); #endif - void set_key(const char* value); - void set_key(const char* value, size_t size); - ::std::string* mutable_key(); - ::std::string* release_key(); - void set_allocated_key(::std::string* key); + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); - // string value = 2; - void clear_value(); - static const int kValueFieldNumber = 2; - const ::std::string& value() const; - void set_value(const ::std::string& value); + // string artifact_id = 2; + 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_value(::std::string&& value); + void set_artifact_id(::std::string&& value); #endif - void set_value(const char* value); - void set_value(const char* value, size_t size); - ::std::string* mutable_value(); - ::std::string* release_value(); - void set_allocated_value(::std::string* value); + 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); - // @@protoc_insertion_point(class_scope:datacatalog.KeyValuePair) + // .datacatalog.DatasetID dataset = 3; + bool has_dataset() const; + void clear_dataset(); + static const int kDatasetFieldNumber = 3; + const ::datacatalog::DatasetID& dataset() const; + ::datacatalog::DatasetID* release_dataset(); + ::datacatalog::DatasetID* mutable_dataset(); + void set_allocated_dataset(::datacatalog::DatasetID* dataset); + + // @@protoc_insertion_point(class_scope:datacatalog.Tag) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr key_; - ::google::protobuf::internal::ArenaStringPtr value_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr artifact_id_; + ::datacatalog::DatasetID* dataset_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; }; // ------------------------------------------------------------------- -class DatasetPropertyFilter final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.DatasetPropertyFilter) */ { +class Metadata_KeyMapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + typedef ::google::protobuf::internal::MapEntry SuperType; + Metadata_KeyMapEntry_DoNotUse(); + Metadata_KeyMapEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const Metadata_KeyMapEntry_DoNotUse& other); + static const Metadata_KeyMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Metadata_KeyMapEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class Metadata final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.Metadata) */ { public: - DatasetPropertyFilter(); - virtual ~DatasetPropertyFilter(); + Metadata(); + virtual ~Metadata(); - DatasetPropertyFilter(const DatasetPropertyFilter& from); + Metadata(const Metadata& from); - inline DatasetPropertyFilter& operator=(const DatasetPropertyFilter& from) { + inline Metadata& operator=(const Metadata& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - DatasetPropertyFilter(DatasetPropertyFilter&& from) noexcept - : DatasetPropertyFilter() { + Metadata(Metadata&& from) noexcept + : Metadata() { *this = ::std::move(from); } - inline DatasetPropertyFilter& operator=(DatasetPropertyFilter&& from) noexcept { + inline Metadata& operator=(Metadata&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -3907,42 +3927,34 @@ class DatasetPropertyFilter final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const DatasetPropertyFilter& default_instance(); - - enum PropertyCase { - kProject = 1, - kName = 2, - kDomain = 3, - kVersion = 4, - PROPERTY_NOT_SET = 0, - }; + static const Metadata& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DatasetPropertyFilter* internal_default_instance() { - return reinterpret_cast( - &_DatasetPropertyFilter_default_instance_); + static inline const Metadata* internal_default_instance() { + return reinterpret_cast( + &_Metadata_default_instance_); } static constexpr int kIndexInFileMessages = 28; - void Swap(DatasetPropertyFilter* other); - friend void swap(DatasetPropertyFilter& a, DatasetPropertyFilter& b) { + void Swap(Metadata* other); + friend void swap(Metadata& a, Metadata& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline DatasetPropertyFilter* New() const final { - return CreateMaybeMessage(nullptr); + inline Metadata* New() const final { + return CreateMaybeMessage(nullptr); } - DatasetPropertyFilter* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + Metadata* 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 DatasetPropertyFilter& from); - void MergeFrom(const DatasetPropertyFilter& from); + void CopyFrom(const Metadata& from); + void MergeFrom(const Metadata& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -3964,7 +3976,7 @@ class DatasetPropertyFilter final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(DatasetPropertyFilter* other); + void InternalSwap(Metadata* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -3978,123 +3990,53 @@ class DatasetPropertyFilter final : // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- - - // string project = 1; - private: - bool has_project() const; - public: - void clear_project(); - static const int kProjectFieldNumber = 1; - const ::std::string& project() const; - void set_project(const ::std::string& value); - #if LANG_CXX11 - void set_project(::std::string&& value); - #endif - void set_project(const char* value); - void set_project(const char* value, size_t size); - ::std::string* mutable_project(); - ::std::string* release_project(); - void set_allocated_project(::std::string* project); - - // string name = 2; - private: - bool has_name() const; - public: - void clear_name(); - static const int kNameFieldNumber = 2; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - // string domain = 3; - private: - bool has_domain() const; - public: - void clear_domain(); - static const int kDomainFieldNumber = 3; - const ::std::string& domain() const; - void set_domain(const ::std::string& value); - #if LANG_CXX11 - void set_domain(::std::string&& value); - #endif - void set_domain(const char* value); - void set_domain(const char* value, size_t size); - ::std::string* mutable_domain(); - ::std::string* release_domain(); - void set_allocated_domain(::std::string* domain); + // accessors ------------------------------------------------------- - // string version = 4; - private: - bool has_version() const; - public: - void clear_version(); - static const int kVersionFieldNumber = 4; - const ::std::string& version() const; - void set_version(const ::std::string& value); - #if LANG_CXX11 - void set_version(::std::string&& value); - #endif - void set_version(const char* value); - void set_version(const char* value, size_t size); - ::std::string* mutable_version(); - ::std::string* release_version(); - void set_allocated_version(::std::string* version); + // map key_map = 1; + int key_map_size() const; + void clear_key_map(); + static const int kKeyMapFieldNumber = 1; + const ::google::protobuf::Map< ::std::string, ::std::string >& + key_map() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_key_map(); - void clear_property(); - PropertyCase property_case() const; - // @@protoc_insertion_point(class_scope:datacatalog.DatasetPropertyFilter) + // @@protoc_insertion_point(class_scope:datacatalog.Metadata) private: class HasBitSetters; - void set_has_project(); - void set_has_name(); - void set_has_domain(); - void set_has_version(); - - inline bool has_property() const; - inline void clear_has_property(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - union PropertyUnion { - PropertyUnion() {} - ::google::protobuf::internal::ArenaStringPtr project_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr domain_; - ::google::protobuf::internal::ArenaStringPtr version_; - } property_; + ::google::protobuf::internal::MapField< + Metadata_KeyMapEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > key_map_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; }; // ------------------------------------------------------------------- -class PaginationOptions final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.PaginationOptions) */ { +class FilterExpression final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.FilterExpression) */ { public: - PaginationOptions(); - virtual ~PaginationOptions(); + FilterExpression(); + virtual ~FilterExpression(); - PaginationOptions(const PaginationOptions& from); + FilterExpression(const FilterExpression& from); - inline PaginationOptions& operator=(const PaginationOptions& from) { + inline FilterExpression& operator=(const FilterExpression& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - PaginationOptions(PaginationOptions&& from) noexcept - : PaginationOptions() { + FilterExpression(FilterExpression&& from) noexcept + : FilterExpression() { *this = ::std::move(from); } - inline PaginationOptions& operator=(PaginationOptions&& from) noexcept { + inline FilterExpression& operator=(FilterExpression&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -4106,34 +4048,34 @@ class PaginationOptions final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const PaginationOptions& default_instance(); + static const FilterExpression& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PaginationOptions* internal_default_instance() { - return reinterpret_cast( - &_PaginationOptions_default_instance_); + static inline const FilterExpression* internal_default_instance() { + return reinterpret_cast( + &_FilterExpression_default_instance_); } static constexpr int kIndexInFileMessages = 29; - void Swap(PaginationOptions* other); - friend void swap(PaginationOptions& a, PaginationOptions& b) { + void Swap(FilterExpression* other); + friend void swap(FilterExpression& a, FilterExpression& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline PaginationOptions* New() const final { - return CreateMaybeMessage(nullptr); + inline FilterExpression* New() const final { + return CreateMaybeMessage(nullptr); } - PaginationOptions* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + FilterExpression* 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 PaginationOptions& from); - void MergeFrom(const PaginationOptions& from); + void CopyFrom(const FilterExpression& from); + void MergeFrom(const FilterExpression& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -4155,7 +4097,7 @@ class PaginationOptions final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(PaginationOptions* other); + void InternalSwap(FilterExpression* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -4169,1138 +4111,2905 @@ class PaginationOptions final : // nested types ---------------------------------------------------- - typedef PaginationOptions_SortOrder SortOrder; - static const SortOrder DESCENDING = - PaginationOptions_SortOrder_DESCENDING; - static const SortOrder ASCENDING = - PaginationOptions_SortOrder_ASCENDING; - static inline bool SortOrder_IsValid(int value) { - return PaginationOptions_SortOrder_IsValid(value); - } - static const SortOrder SortOrder_MIN = - PaginationOptions_SortOrder_SortOrder_MIN; - static const SortOrder SortOrder_MAX = - PaginationOptions_SortOrder_SortOrder_MAX; - static const int SortOrder_ARRAYSIZE = - PaginationOptions_SortOrder_SortOrder_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - SortOrder_descriptor() { - return PaginationOptions_SortOrder_descriptor(); - } - static inline const ::std::string& SortOrder_Name(SortOrder value) { - return PaginationOptions_SortOrder_Name(value); - } - static inline bool SortOrder_Parse(const ::std::string& name, - SortOrder* value) { - return PaginationOptions_SortOrder_Parse(name, value); - } - - typedef PaginationOptions_SortKey SortKey; - static const SortKey CREATION_TIME = - PaginationOptions_SortKey_CREATION_TIME; - static inline bool SortKey_IsValid(int value) { - return PaginationOptions_SortKey_IsValid(value); - } - static const SortKey SortKey_MIN = - PaginationOptions_SortKey_SortKey_MIN; - static const SortKey SortKey_MAX = - PaginationOptions_SortKey_SortKey_MAX; - static const int SortKey_ARRAYSIZE = - PaginationOptions_SortKey_SortKey_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - SortKey_descriptor() { - return PaginationOptions_SortKey_descriptor(); - } - static inline const ::std::string& SortKey_Name(SortKey value) { - return PaginationOptions_SortKey_Name(value); - } - static inline bool SortKey_Parse(const ::std::string& name, - SortKey* value) { - return PaginationOptions_SortKey_Parse(name, value); - } - // accessors ------------------------------------------------------- - // string token = 2; - void clear_token(); - static const int kTokenFieldNumber = 2; - const ::std::string& token() const; - void set_token(const ::std::string& value); - #if LANG_CXX11 - void set_token(::std::string&& value); - #endif - void set_token(const char* value); - void set_token(const char* value, size_t size); - ::std::string* mutable_token(); - ::std::string* release_token(); - void set_allocated_token(::std::string* token); - - // uint32 limit = 1; - void clear_limit(); - static const int kLimitFieldNumber = 1; - ::google::protobuf::uint32 limit() const; - void set_limit(::google::protobuf::uint32 value); - - // .datacatalog.PaginationOptions.SortKey sortKey = 3; - void clear_sortkey(); - static const int kSortKeyFieldNumber = 3; - ::datacatalog::PaginationOptions_SortKey sortkey() const; - void set_sortkey(::datacatalog::PaginationOptions_SortKey value); - - // .datacatalog.PaginationOptions.SortOrder sortOrder = 4; - void clear_sortorder(); - static const int kSortOrderFieldNumber = 4; - ::datacatalog::PaginationOptions_SortOrder sortorder() const; - void set_sortorder(::datacatalog::PaginationOptions_SortOrder value); + // repeated .datacatalog.SinglePropertyFilter filters = 1; + int filters_size() const; + void clear_filters(); + static const int kFiltersFieldNumber = 1; + ::datacatalog::SinglePropertyFilter* mutable_filters(int index); + ::google::protobuf::RepeatedPtrField< ::datacatalog::SinglePropertyFilter >* + mutable_filters(); + const ::datacatalog::SinglePropertyFilter& filters(int index) const; + ::datacatalog::SinglePropertyFilter* add_filters(); + const ::google::protobuf::RepeatedPtrField< ::datacatalog::SinglePropertyFilter >& + filters() const; - // @@protoc_insertion_point(class_scope:datacatalog.PaginationOptions) + // @@protoc_insertion_point(class_scope:datacatalog.FilterExpression) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr token_; - ::google::protobuf::uint32 limit_; - int sortkey_; - int sortorder_; + ::google::protobuf::RepeatedPtrField< ::datacatalog::SinglePropertyFilter > filters_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; }; -// =================================================================== - +// ------------------------------------------------------------------- -// =================================================================== +class SinglePropertyFilter final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.SinglePropertyFilter) */ { + public: + SinglePropertyFilter(); + virtual ~SinglePropertyFilter(); -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// CreateDatasetRequest + SinglePropertyFilter(const SinglePropertyFilter& from); -// .datacatalog.Dataset dataset = 1; -inline bool CreateDatasetRequest::has_dataset() const { - return this != internal_default_instance() && dataset_ != nullptr; -} -inline void CreateDatasetRequest::clear_dataset() { - if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { - delete dataset_; - } - dataset_ = nullptr; -} -inline const ::datacatalog::Dataset& CreateDatasetRequest::dataset() const { - const ::datacatalog::Dataset* p = dataset_; - // @@protoc_insertion_point(field_get:datacatalog.CreateDatasetRequest.dataset) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_Dataset_default_instance_); -} -inline ::datacatalog::Dataset* CreateDatasetRequest::release_dataset() { - // @@protoc_insertion_point(field_release:datacatalog.CreateDatasetRequest.dataset) - - ::datacatalog::Dataset* temp = dataset_; - dataset_ = nullptr; - return temp; -} -inline ::datacatalog::Dataset* CreateDatasetRequest::mutable_dataset() { - - if (dataset_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::Dataset>(GetArenaNoVirtual()); - dataset_ = p; + inline SinglePropertyFilter& operator=(const SinglePropertyFilter& from) { + CopyFrom(from); + return *this; } - // @@protoc_insertion_point(field_mutable:datacatalog.CreateDatasetRequest.dataset) - return dataset_; -} -inline void CreateDatasetRequest::set_allocated_dataset(::datacatalog::Dataset* dataset) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete dataset_; + #if LANG_CXX11 + SinglePropertyFilter(SinglePropertyFilter&& from) noexcept + : SinglePropertyFilter() { + *this = ::std::move(from); } - if (dataset) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - dataset = ::google::protobuf::internal::GetOwnedMessage( - message_arena, dataset, submessage_arena); + + inline SinglePropertyFilter& operator=(SinglePropertyFilter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); } - - } else { - + return *this; } - dataset_ = dataset; - // @@protoc_insertion_point(field_set_allocated:datacatalog.CreateDatasetRequest.dataset) -} + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const SinglePropertyFilter& default_instance(); -// ------------------------------------------------------------------- + enum PropertyFilterCase { + kTagFilter = 1, + kPartitionFilter = 2, + kArtifactFilter = 3, + kDatasetFilter = 4, + PROPERTY_FILTER_NOT_SET = 0, + }; -// CreateDatasetResponse + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SinglePropertyFilter* internal_default_instance() { + return reinterpret_cast( + &_SinglePropertyFilter_default_instance_); + } + static constexpr int kIndexInFileMessages = + 30; -// ------------------------------------------------------------------- + void Swap(SinglePropertyFilter* other); + friend void swap(SinglePropertyFilter& a, SinglePropertyFilter& b) { + a.Swap(&b); + } -// GetDatasetRequest + // implements Message ---------------------------------------------- -// .datacatalog.DatasetID dataset = 1; -inline bool GetDatasetRequest::has_dataset() const { - return this != internal_default_instance() && dataset_ != nullptr; -} -inline void GetDatasetRequest::clear_dataset() { - if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { - delete dataset_; - } - dataset_ = nullptr; -} -inline const ::datacatalog::DatasetID& GetDatasetRequest::dataset() const { - const ::datacatalog::DatasetID* p = dataset_; - // @@protoc_insertion_point(field_get:datacatalog.GetDatasetRequest.dataset) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_DatasetID_default_instance_); -} -inline ::datacatalog::DatasetID* GetDatasetRequest::release_dataset() { - // @@protoc_insertion_point(field_release:datacatalog.GetDatasetRequest.dataset) - - ::datacatalog::DatasetID* temp = dataset_; - dataset_ = nullptr; - return temp; -} -inline ::datacatalog::DatasetID* GetDatasetRequest::mutable_dataset() { - - if (dataset_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); - dataset_ = p; + inline SinglePropertyFilter* New() const final { + return CreateMaybeMessage(nullptr); } - // @@protoc_insertion_point(field_mutable:datacatalog.GetDatasetRequest.dataset) - return dataset_; -} -inline void GetDatasetRequest::set_allocated_dataset(::datacatalog::DatasetID* dataset) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete dataset_; + + SinglePropertyFilter* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); } - if (dataset) { - ::google::protobuf::Arena* submessage_arena = nullptr; + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const SinglePropertyFilter& from); + void MergeFrom(const SinglePropertyFilter& 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(SinglePropertyFilter* 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 ---------------------------------------------------- + + typedef SinglePropertyFilter_ComparisonOperator ComparisonOperator; + static const ComparisonOperator EQUALS = + SinglePropertyFilter_ComparisonOperator_EQUALS; + static inline bool ComparisonOperator_IsValid(int value) { + return SinglePropertyFilter_ComparisonOperator_IsValid(value); + } + static const ComparisonOperator ComparisonOperator_MIN = + SinglePropertyFilter_ComparisonOperator_ComparisonOperator_MIN; + static const ComparisonOperator ComparisonOperator_MAX = + SinglePropertyFilter_ComparisonOperator_ComparisonOperator_MAX; + static const int ComparisonOperator_ARRAYSIZE = + SinglePropertyFilter_ComparisonOperator_ComparisonOperator_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + ComparisonOperator_descriptor() { + return SinglePropertyFilter_ComparisonOperator_descriptor(); + } + static inline const ::std::string& ComparisonOperator_Name(ComparisonOperator value) { + return SinglePropertyFilter_ComparisonOperator_Name(value); + } + static inline bool ComparisonOperator_Parse(const ::std::string& name, + ComparisonOperator* value) { + return SinglePropertyFilter_ComparisonOperator_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + void clear_operator_(); + static const int kOperatorFieldNumber = 10; + ::datacatalog::SinglePropertyFilter_ComparisonOperator operator_() const; + void set_operator_(::datacatalog::SinglePropertyFilter_ComparisonOperator value); + + // .datacatalog.TagPropertyFilter tag_filter = 1; + bool has_tag_filter() const; + void clear_tag_filter(); + static const int kTagFilterFieldNumber = 1; + const ::datacatalog::TagPropertyFilter& tag_filter() const; + ::datacatalog::TagPropertyFilter* release_tag_filter(); + ::datacatalog::TagPropertyFilter* mutable_tag_filter(); + void set_allocated_tag_filter(::datacatalog::TagPropertyFilter* tag_filter); + + // .datacatalog.PartitionPropertyFilter partition_filter = 2; + bool has_partition_filter() const; + void clear_partition_filter(); + static const int kPartitionFilterFieldNumber = 2; + const ::datacatalog::PartitionPropertyFilter& partition_filter() const; + ::datacatalog::PartitionPropertyFilter* release_partition_filter(); + ::datacatalog::PartitionPropertyFilter* mutable_partition_filter(); + void set_allocated_partition_filter(::datacatalog::PartitionPropertyFilter* partition_filter); + + // .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + bool has_artifact_filter() const; + void clear_artifact_filter(); + static const int kArtifactFilterFieldNumber = 3; + const ::datacatalog::ArtifactPropertyFilter& artifact_filter() const; + ::datacatalog::ArtifactPropertyFilter* release_artifact_filter(); + ::datacatalog::ArtifactPropertyFilter* mutable_artifact_filter(); + void set_allocated_artifact_filter(::datacatalog::ArtifactPropertyFilter* artifact_filter); + + // .datacatalog.DatasetPropertyFilter dataset_filter = 4; + bool has_dataset_filter() const; + void clear_dataset_filter(); + static const int kDatasetFilterFieldNumber = 4; + const ::datacatalog::DatasetPropertyFilter& dataset_filter() const; + ::datacatalog::DatasetPropertyFilter* release_dataset_filter(); + ::datacatalog::DatasetPropertyFilter* mutable_dataset_filter(); + void set_allocated_dataset_filter(::datacatalog::DatasetPropertyFilter* dataset_filter); + + void clear_property_filter(); + PropertyFilterCase property_filter_case() const; + // @@protoc_insertion_point(class_scope:datacatalog.SinglePropertyFilter) + private: + class HasBitSetters; + void set_has_tag_filter(); + void set_has_partition_filter(); + void set_has_artifact_filter(); + void set_has_dataset_filter(); + + inline bool has_property_filter() const; + inline void clear_has_property_filter(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + int operator__; + union PropertyFilterUnion { + PropertyFilterUnion() {} + ::datacatalog::TagPropertyFilter* tag_filter_; + ::datacatalog::PartitionPropertyFilter* partition_filter_; + ::datacatalog::ArtifactPropertyFilter* artifact_filter_; + ::datacatalog::DatasetPropertyFilter* dataset_filter_; + } property_filter_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class ArtifactPropertyFilter final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ArtifactPropertyFilter) */ { + public: + ArtifactPropertyFilter(); + virtual ~ArtifactPropertyFilter(); + + ArtifactPropertyFilter(const ArtifactPropertyFilter& from); + + inline ArtifactPropertyFilter& operator=(const ArtifactPropertyFilter& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ArtifactPropertyFilter(ArtifactPropertyFilter&& from) noexcept + : ArtifactPropertyFilter() { + *this = ::std::move(from); + } + + inline ArtifactPropertyFilter& operator=(ArtifactPropertyFilter&& 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 ArtifactPropertyFilter& default_instance(); + + enum PropertyCase { + kArtifactId = 1, + PROPERTY_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ArtifactPropertyFilter* internal_default_instance() { + return reinterpret_cast( + &_ArtifactPropertyFilter_default_instance_); + } + static constexpr int kIndexInFileMessages = + 31; + + void Swap(ArtifactPropertyFilter* other); + friend void swap(ArtifactPropertyFilter& a, ArtifactPropertyFilter& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ArtifactPropertyFilter* New() const final { + return CreateMaybeMessage(nullptr); + } + + ArtifactPropertyFilter* 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 ArtifactPropertyFilter& from); + void MergeFrom(const ArtifactPropertyFilter& 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(ArtifactPropertyFilter* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string artifact_id = 1; + private: + bool has_artifact_id() const; + public: + void clear_artifact_id(); + static const int kArtifactIdFieldNumber = 1; + 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); + + void clear_property(); + PropertyCase property_case() const; + // @@protoc_insertion_point(class_scope:datacatalog.ArtifactPropertyFilter) + private: + class HasBitSetters; + void set_has_artifact_id(); + + inline bool has_property() const; + inline void clear_has_property(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union PropertyUnion { + PropertyUnion() {} + ::google::protobuf::internal::ArenaStringPtr artifact_id_; + } property_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class TagPropertyFilter final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.TagPropertyFilter) */ { + public: + TagPropertyFilter(); + virtual ~TagPropertyFilter(); + + TagPropertyFilter(const TagPropertyFilter& from); + + inline TagPropertyFilter& operator=(const TagPropertyFilter& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TagPropertyFilter(TagPropertyFilter&& from) noexcept + : TagPropertyFilter() { + *this = ::std::move(from); + } + + inline TagPropertyFilter& operator=(TagPropertyFilter&& 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 TagPropertyFilter& default_instance(); + + enum PropertyCase { + kTagName = 1, + PROPERTY_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TagPropertyFilter* internal_default_instance() { + return reinterpret_cast( + &_TagPropertyFilter_default_instance_); + } + static constexpr int kIndexInFileMessages = + 32; + + void Swap(TagPropertyFilter* other); + friend void swap(TagPropertyFilter& a, TagPropertyFilter& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TagPropertyFilter* New() const final { + return CreateMaybeMessage(nullptr); + } + + TagPropertyFilter* 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 TagPropertyFilter& from); + void MergeFrom(const TagPropertyFilter& 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(TagPropertyFilter* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string tag_name = 1; + private: + bool has_tag_name() const; + public: + void clear_tag_name(); + static const int kTagNameFieldNumber = 1; + 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_property(); + PropertyCase property_case() const; + // @@protoc_insertion_point(class_scope:datacatalog.TagPropertyFilter) + private: + class HasBitSetters; + void set_has_tag_name(); + + inline bool has_property() const; + inline void clear_has_property(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union PropertyUnion { + PropertyUnion() {} + ::google::protobuf::internal::ArenaStringPtr tag_name_; + } property_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class PartitionPropertyFilter final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.PartitionPropertyFilter) */ { + public: + PartitionPropertyFilter(); + virtual ~PartitionPropertyFilter(); + + PartitionPropertyFilter(const PartitionPropertyFilter& from); + + inline PartitionPropertyFilter& operator=(const PartitionPropertyFilter& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + PartitionPropertyFilter(PartitionPropertyFilter&& from) noexcept + : PartitionPropertyFilter() { + *this = ::std::move(from); + } + + inline PartitionPropertyFilter& operator=(PartitionPropertyFilter&& 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 PartitionPropertyFilter& default_instance(); + + enum PropertyCase { + kKeyVal = 1, + PROPERTY_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PartitionPropertyFilter* internal_default_instance() { + return reinterpret_cast( + &_PartitionPropertyFilter_default_instance_); + } + static constexpr int kIndexInFileMessages = + 33; + + void Swap(PartitionPropertyFilter* other); + friend void swap(PartitionPropertyFilter& a, PartitionPropertyFilter& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline PartitionPropertyFilter* New() const final { + return CreateMaybeMessage(nullptr); + } + + PartitionPropertyFilter* 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 PartitionPropertyFilter& from); + void MergeFrom(const PartitionPropertyFilter& 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(PartitionPropertyFilter* 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 ------------------------------------------------------- + + // .datacatalog.KeyValuePair key_val = 1; + bool has_key_val() const; + void clear_key_val(); + static const int kKeyValFieldNumber = 1; + const ::datacatalog::KeyValuePair& key_val() const; + ::datacatalog::KeyValuePair* release_key_val(); + ::datacatalog::KeyValuePair* mutable_key_val(); + void set_allocated_key_val(::datacatalog::KeyValuePair* key_val); + + void clear_property(); + PropertyCase property_case() const; + // @@protoc_insertion_point(class_scope:datacatalog.PartitionPropertyFilter) + private: + class HasBitSetters; + void set_has_key_val(); + + inline bool has_property() const; + inline void clear_has_property(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union PropertyUnion { + PropertyUnion() {} + ::datacatalog::KeyValuePair* key_val_; + } property_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class KeyValuePair final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.KeyValuePair) */ { + public: + KeyValuePair(); + virtual ~KeyValuePair(); + + KeyValuePair(const KeyValuePair& from); + + inline KeyValuePair& operator=(const KeyValuePair& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + KeyValuePair(KeyValuePair&& from) noexcept + : KeyValuePair() { + *this = ::std::move(from); + } + + inline KeyValuePair& operator=(KeyValuePair&& 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 KeyValuePair& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const KeyValuePair* internal_default_instance() { + return reinterpret_cast( + &_KeyValuePair_default_instance_); + } + static constexpr int kIndexInFileMessages = + 34; + + void Swap(KeyValuePair* other); + friend void swap(KeyValuePair& a, KeyValuePair& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline KeyValuePair* New() const final { + return CreateMaybeMessage(nullptr); + } + + KeyValuePair* 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 KeyValuePair& from); + void MergeFrom(const KeyValuePair& 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(KeyValuePair* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string key = 1; + void clear_key(); + static const int kKeyFieldNumber = 1; + const ::std::string& key() const; + void set_key(const ::std::string& value); + #if LANG_CXX11 + void set_key(::std::string&& value); + #endif + void set_key(const char* value); + void set_key(const char* value, size_t size); + ::std::string* mutable_key(); + ::std::string* release_key(); + void set_allocated_key(::std::string* key); + + // string value = 2; + void clear_value(); + static const int kValueFieldNumber = 2; + const ::std::string& value() const; + void set_value(const ::std::string& value); + #if LANG_CXX11 + void set_value(::std::string&& value); + #endif + void set_value(const char* value); + void set_value(const char* value, size_t size); + ::std::string* mutable_value(); + ::std::string* release_value(); + void set_allocated_value(::std::string* value); + + // @@protoc_insertion_point(class_scope:datacatalog.KeyValuePair) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr key_; + ::google::protobuf::internal::ArenaStringPtr value_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class DatasetPropertyFilter final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.DatasetPropertyFilter) */ { + public: + DatasetPropertyFilter(); + virtual ~DatasetPropertyFilter(); + + DatasetPropertyFilter(const DatasetPropertyFilter& from); + + inline DatasetPropertyFilter& operator=(const DatasetPropertyFilter& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DatasetPropertyFilter(DatasetPropertyFilter&& from) noexcept + : DatasetPropertyFilter() { + *this = ::std::move(from); + } + + inline DatasetPropertyFilter& operator=(DatasetPropertyFilter&& 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 DatasetPropertyFilter& default_instance(); + + enum PropertyCase { + kProject = 1, + kName = 2, + kDomain = 3, + kVersion = 4, + PROPERTY_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DatasetPropertyFilter* internal_default_instance() { + return reinterpret_cast( + &_DatasetPropertyFilter_default_instance_); + } + static constexpr int kIndexInFileMessages = + 35; + + void Swap(DatasetPropertyFilter* other); + friend void swap(DatasetPropertyFilter& a, DatasetPropertyFilter& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DatasetPropertyFilter* New() const final { + return CreateMaybeMessage(nullptr); + } + + DatasetPropertyFilter* 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 DatasetPropertyFilter& from); + void MergeFrom(const DatasetPropertyFilter& 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(DatasetPropertyFilter* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string project = 1; + private: + bool has_project() const; + public: + void clear_project(); + static const int kProjectFieldNumber = 1; + const ::std::string& project() const; + void set_project(const ::std::string& value); + #if LANG_CXX11 + void set_project(::std::string&& value); + #endif + void set_project(const char* value); + void set_project(const char* value, size_t size); + ::std::string* mutable_project(); + ::std::string* release_project(); + void set_allocated_project(::std::string* project); + + // string name = 2; + private: + bool has_name() const; + public: + void clear_name(); + static const int kNameFieldNumber = 2; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // string domain = 3; + private: + bool has_domain() const; + public: + void clear_domain(); + static const int kDomainFieldNumber = 3; + const ::std::string& domain() const; + void set_domain(const ::std::string& value); + #if LANG_CXX11 + void set_domain(::std::string&& value); + #endif + void set_domain(const char* value); + void set_domain(const char* value, size_t size); + ::std::string* mutable_domain(); + ::std::string* release_domain(); + void set_allocated_domain(::std::string* domain); + + // string version = 4; + private: + bool has_version() const; + public: + void clear_version(); + static const int kVersionFieldNumber = 4; + const ::std::string& version() const; + void set_version(const ::std::string& value); + #if LANG_CXX11 + void set_version(::std::string&& value); + #endif + void set_version(const char* value); + void set_version(const char* value, size_t size); + ::std::string* mutable_version(); + ::std::string* release_version(); + void set_allocated_version(::std::string* version); + + void clear_property(); + PropertyCase property_case() const; + // @@protoc_insertion_point(class_scope:datacatalog.DatasetPropertyFilter) + private: + class HasBitSetters; + void set_has_project(); + void set_has_name(); + void set_has_domain(); + void set_has_version(); + + inline bool has_property() const; + inline void clear_has_property(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union PropertyUnion { + PropertyUnion() {} + ::google::protobuf::internal::ArenaStringPtr project_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr domain_; + ::google::protobuf::internal::ArenaStringPtr version_; + } property_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class PaginationOptions final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.PaginationOptions) */ { + public: + PaginationOptions(); + virtual ~PaginationOptions(); + + PaginationOptions(const PaginationOptions& from); + + inline PaginationOptions& operator=(const PaginationOptions& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + PaginationOptions(PaginationOptions&& from) noexcept + : PaginationOptions() { + *this = ::std::move(from); + } + + inline PaginationOptions& operator=(PaginationOptions&& 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 PaginationOptions& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PaginationOptions* internal_default_instance() { + return reinterpret_cast( + &_PaginationOptions_default_instance_); + } + static constexpr int kIndexInFileMessages = + 36; + + void Swap(PaginationOptions* other); + friend void swap(PaginationOptions& a, PaginationOptions& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline PaginationOptions* New() const final { + return CreateMaybeMessage(nullptr); + } + + PaginationOptions* 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 PaginationOptions& from); + void MergeFrom(const PaginationOptions& 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(PaginationOptions* 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 ---------------------------------------------------- + + typedef PaginationOptions_SortOrder SortOrder; + static const SortOrder DESCENDING = + PaginationOptions_SortOrder_DESCENDING; + static const SortOrder ASCENDING = + PaginationOptions_SortOrder_ASCENDING; + static inline bool SortOrder_IsValid(int value) { + return PaginationOptions_SortOrder_IsValid(value); + } + static const SortOrder SortOrder_MIN = + PaginationOptions_SortOrder_SortOrder_MIN; + static const SortOrder SortOrder_MAX = + PaginationOptions_SortOrder_SortOrder_MAX; + static const int SortOrder_ARRAYSIZE = + PaginationOptions_SortOrder_SortOrder_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + SortOrder_descriptor() { + return PaginationOptions_SortOrder_descriptor(); + } + static inline const ::std::string& SortOrder_Name(SortOrder value) { + return PaginationOptions_SortOrder_Name(value); + } + static inline bool SortOrder_Parse(const ::std::string& name, + SortOrder* value) { + return PaginationOptions_SortOrder_Parse(name, value); + } + + typedef PaginationOptions_SortKey SortKey; + static const SortKey CREATION_TIME = + PaginationOptions_SortKey_CREATION_TIME; + static inline bool SortKey_IsValid(int value) { + return PaginationOptions_SortKey_IsValid(value); + } + static const SortKey SortKey_MIN = + PaginationOptions_SortKey_SortKey_MIN; + static const SortKey SortKey_MAX = + PaginationOptions_SortKey_SortKey_MAX; + static const int SortKey_ARRAYSIZE = + PaginationOptions_SortKey_SortKey_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + SortKey_descriptor() { + return PaginationOptions_SortKey_descriptor(); + } + static inline const ::std::string& SortKey_Name(SortKey value) { + return PaginationOptions_SortKey_Name(value); + } + static inline bool SortKey_Parse(const ::std::string& name, + SortKey* value) { + return PaginationOptions_SortKey_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // string token = 2; + void clear_token(); + static const int kTokenFieldNumber = 2; + const ::std::string& token() const; + void set_token(const ::std::string& value); + #if LANG_CXX11 + void set_token(::std::string&& value); + #endif + void set_token(const char* value); + void set_token(const char* value, size_t size); + ::std::string* mutable_token(); + ::std::string* release_token(); + void set_allocated_token(::std::string* token); + + // uint32 limit = 1; + void clear_limit(); + static const int kLimitFieldNumber = 1; + ::google::protobuf::uint32 limit() const; + void set_limit(::google::protobuf::uint32 value); + + // .datacatalog.PaginationOptions.SortKey sortKey = 3; + void clear_sortkey(); + static const int kSortKeyFieldNumber = 3; + ::datacatalog::PaginationOptions_SortKey sortkey() const; + void set_sortkey(::datacatalog::PaginationOptions_SortKey value); + + // .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + void clear_sortorder(); + static const int kSortOrderFieldNumber = 4; + ::datacatalog::PaginationOptions_SortOrder sortorder() const; + void set_sortorder(::datacatalog::PaginationOptions_SortOrder value); + + // @@protoc_insertion_point(class_scope:datacatalog.PaginationOptions) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr token_; + ::google::protobuf::uint32 limit_; + int sortkey_; + int sortorder_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// CreateDatasetRequest + +// .datacatalog.Dataset dataset = 1; +inline bool CreateDatasetRequest::has_dataset() const { + return this != internal_default_instance() && dataset_ != nullptr; +} +inline void CreateDatasetRequest::clear_dataset() { + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; +} +inline const ::datacatalog::Dataset& CreateDatasetRequest::dataset() const { + const ::datacatalog::Dataset* p = dataset_; + // @@protoc_insertion_point(field_get:datacatalog.CreateDatasetRequest.dataset) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_Dataset_default_instance_); +} +inline ::datacatalog::Dataset* CreateDatasetRequest::release_dataset() { + // @@protoc_insertion_point(field_release:datacatalog.CreateDatasetRequest.dataset) + + ::datacatalog::Dataset* temp = dataset_; + dataset_ = nullptr; + return temp; +} +inline ::datacatalog::Dataset* CreateDatasetRequest::mutable_dataset() { + + if (dataset_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::Dataset>(GetArenaNoVirtual()); + dataset_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.CreateDatasetRequest.dataset) + return dataset_; +} +inline void CreateDatasetRequest::set_allocated_dataset(::datacatalog::Dataset* 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.CreateDatasetRequest.dataset) +} + +// ------------------------------------------------------------------- + +// CreateDatasetResponse + +// ------------------------------------------------------------------- + +// GetDatasetRequest + +// .datacatalog.DatasetID dataset = 1; +inline bool GetDatasetRequest::has_dataset() const { + return this != internal_default_instance() && dataset_ != nullptr; +} +inline void GetDatasetRequest::clear_dataset() { + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; +} +inline const ::datacatalog::DatasetID& GetDatasetRequest::dataset() const { + const ::datacatalog::DatasetID* p = dataset_; + // @@protoc_insertion_point(field_get:datacatalog.GetDatasetRequest.dataset) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_DatasetID_default_instance_); +} +inline ::datacatalog::DatasetID* GetDatasetRequest::release_dataset() { + // @@protoc_insertion_point(field_release:datacatalog.GetDatasetRequest.dataset) + + ::datacatalog::DatasetID* temp = dataset_; + dataset_ = nullptr; + return temp; +} +inline ::datacatalog::DatasetID* GetDatasetRequest::mutable_dataset() { + + if (dataset_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); + dataset_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.GetDatasetRequest.dataset) + return dataset_; +} +inline void GetDatasetRequest::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.GetDatasetRequest.dataset) +} + +// ------------------------------------------------------------------- + +// GetDatasetResponse + +// .datacatalog.Dataset dataset = 1; +inline bool GetDatasetResponse::has_dataset() const { + return this != internal_default_instance() && dataset_ != nullptr; +} +inline void GetDatasetResponse::clear_dataset() { + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; +} +inline const ::datacatalog::Dataset& GetDatasetResponse::dataset() const { + const ::datacatalog::Dataset* p = dataset_; + // @@protoc_insertion_point(field_get:datacatalog.GetDatasetResponse.dataset) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_Dataset_default_instance_); +} +inline ::datacatalog::Dataset* GetDatasetResponse::release_dataset() { + // @@protoc_insertion_point(field_release:datacatalog.GetDatasetResponse.dataset) + + ::datacatalog::Dataset* temp = dataset_; + dataset_ = nullptr; + return temp; +} +inline ::datacatalog::Dataset* GetDatasetResponse::mutable_dataset() { + + if (dataset_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::Dataset>(GetArenaNoVirtual()); + dataset_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.GetDatasetResponse.dataset) + return dataset_; +} +inline void GetDatasetResponse::set_allocated_dataset(::datacatalog::Dataset* 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.GetDatasetResponse.dataset) +} + +// ------------------------------------------------------------------- + +// GetArtifactRequest + +// .datacatalog.DatasetID dataset = 1; +inline bool GetArtifactRequest::has_dataset() const { + return this != internal_default_instance() && dataset_ != nullptr; +} +inline void GetArtifactRequest::clear_dataset() { + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; +} +inline const ::datacatalog::DatasetID& GetArtifactRequest::dataset() const { + const ::datacatalog::DatasetID* p = dataset_; + // @@protoc_insertion_point(field_get:datacatalog.GetArtifactRequest.dataset) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_DatasetID_default_instance_); +} +inline ::datacatalog::DatasetID* GetArtifactRequest::release_dataset() { + // @@protoc_insertion_point(field_release:datacatalog.GetArtifactRequest.dataset) + + ::datacatalog::DatasetID* temp = dataset_; + dataset_ = nullptr; + return temp; +} +inline ::datacatalog::DatasetID* GetArtifactRequest::mutable_dataset() { + + if (dataset_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); + dataset_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.GetArtifactRequest.dataset) + return dataset_; +} +inline void GetArtifactRequest::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.GetArtifactRequest.dataset) +} + +// string artifact_id = 2; +inline bool GetArtifactRequest::has_artifact_id() const { + return query_handle_case() == kArtifactId; +} +inline void GetArtifactRequest::set_has_artifact_id() { + _oneof_case_[0] = kArtifactId; +} +inline void GetArtifactRequest::clear_artifact_id() { + if (has_artifact_id()) { + query_handle_.artifact_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_query_handle(); + } +} +inline const ::std::string& GetArtifactRequest::artifact_id() const { + // @@protoc_insertion_point(field_get:datacatalog.GetArtifactRequest.artifact_id) + if (has_artifact_id()) { + return query_handle_.artifact_id_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void GetArtifactRequest::set_artifact_id(const ::std::string& value) { + // @@protoc_insertion_point(field_set:datacatalog.GetArtifactRequest.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.GetArtifactRequest.artifact_id) +} +#if LANG_CXX11 +inline void GetArtifactRequest::set_artifact_id(::std::string&& value) { + // @@protoc_insertion_point(field_set:datacatalog.GetArtifactRequest.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.GetArtifactRequest.artifact_id) +} +#endif +inline void GetArtifactRequest::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.GetArtifactRequest.artifact_id) +} +inline void GetArtifactRequest::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.GetArtifactRequest.artifact_id) +} +inline ::std::string* GetArtifactRequest::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.GetArtifactRequest.artifact_id) + return query_handle_.artifact_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* GetArtifactRequest::release_artifact_id() { + // @@protoc_insertion_point(field_release:datacatalog.GetArtifactRequest.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 GetArtifactRequest::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.GetArtifactRequest.artifact_id) +} + +// string tag_name = 3; +inline bool GetArtifactRequest::has_tag_name() const { + return query_handle_case() == kTagName; +} +inline void GetArtifactRequest::set_has_tag_name() { + _oneof_case_[0] = kTagName; +} +inline void GetArtifactRequest::clear_tag_name() { + if (has_tag_name()) { + query_handle_.tag_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_query_handle(); + } +} +inline const ::std::string& GetArtifactRequest::tag_name() const { + // @@protoc_insertion_point(field_get:datacatalog.GetArtifactRequest.tag_name) + if (has_tag_name()) { + return query_handle_.tag_name_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void GetArtifactRequest::set_tag_name(const ::std::string& value) { + // @@protoc_insertion_point(field_set:datacatalog.GetArtifactRequest.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.GetArtifactRequest.tag_name) +} +#if LANG_CXX11 +inline void GetArtifactRequest::set_tag_name(::std::string&& value) { + // @@protoc_insertion_point(field_set:datacatalog.GetArtifactRequest.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.GetArtifactRequest.tag_name) +} +#endif +inline void GetArtifactRequest::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.GetArtifactRequest.tag_name) +} +inline void GetArtifactRequest::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.GetArtifactRequest.tag_name) +} +inline ::std::string* GetArtifactRequest::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.GetArtifactRequest.tag_name) + return query_handle_.tag_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* GetArtifactRequest::release_tag_name() { + // @@protoc_insertion_point(field_release:datacatalog.GetArtifactRequest.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 GetArtifactRequest::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.GetArtifactRequest.tag_name) +} + +inline bool GetArtifactRequest::has_query_handle() const { + return query_handle_case() != QUERY_HANDLE_NOT_SET; +} +inline void GetArtifactRequest::clear_has_query_handle() { + _oneof_case_[0] = QUERY_HANDLE_NOT_SET; +} +inline GetArtifactRequest::QueryHandleCase GetArtifactRequest::query_handle_case() const { + return GetArtifactRequest::QueryHandleCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// GetArtifactResponse + +// .datacatalog.Artifact artifact = 1; +inline bool GetArtifactResponse::has_artifact() const { + return this != internal_default_instance() && artifact_ != nullptr; +} +inline void GetArtifactResponse::clear_artifact() { + if (GetArenaNoVirtual() == nullptr && artifact_ != nullptr) { + delete artifact_; + } + artifact_ = nullptr; +} +inline const ::datacatalog::Artifact& GetArtifactResponse::artifact() const { + const ::datacatalog::Artifact* p = artifact_; + // @@protoc_insertion_point(field_get:datacatalog.GetArtifactResponse.artifact) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_Artifact_default_instance_); +} +inline ::datacatalog::Artifact* GetArtifactResponse::release_artifact() { + // @@protoc_insertion_point(field_release:datacatalog.GetArtifactResponse.artifact) + + ::datacatalog::Artifact* temp = artifact_; + artifact_ = nullptr; + return temp; +} +inline ::datacatalog::Artifact* GetArtifactResponse::mutable_artifact() { + + if (artifact_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::Artifact>(GetArenaNoVirtual()); + artifact_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.GetArtifactResponse.artifact) + return artifact_; +} +inline void GetArtifactResponse::set_allocated_artifact(::datacatalog::Artifact* artifact) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete artifact_; + } + if (artifact) { + ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - dataset = ::google::protobuf::internal::GetOwnedMessage( - message_arena, dataset, submessage_arena); + artifact = ::google::protobuf::internal::GetOwnedMessage( + message_arena, artifact, submessage_arena); } } else { } - dataset_ = dataset; - // @@protoc_insertion_point(field_set_allocated:datacatalog.GetDatasetRequest.dataset) + artifact_ = artifact; + // @@protoc_insertion_point(field_set_allocated:datacatalog.GetArtifactResponse.artifact) } // ------------------------------------------------------------------- -// GetDatasetResponse +// CreateArtifactRequest -// .datacatalog.Dataset dataset = 1; -inline bool GetDatasetResponse::has_dataset() const { +// .datacatalog.Artifact artifact = 1; +inline bool CreateArtifactRequest::has_artifact() const { + return this != internal_default_instance() && artifact_ != nullptr; +} +inline void CreateArtifactRequest::clear_artifact() { + if (GetArenaNoVirtual() == nullptr && artifact_ != nullptr) { + delete artifact_; + } + artifact_ = nullptr; +} +inline const ::datacatalog::Artifact& CreateArtifactRequest::artifact() const { + const ::datacatalog::Artifact* p = artifact_; + // @@protoc_insertion_point(field_get:datacatalog.CreateArtifactRequest.artifact) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_Artifact_default_instance_); +} +inline ::datacatalog::Artifact* CreateArtifactRequest::release_artifact() { + // @@protoc_insertion_point(field_release:datacatalog.CreateArtifactRequest.artifact) + + ::datacatalog::Artifact* temp = artifact_; + artifact_ = nullptr; + return temp; +} +inline ::datacatalog::Artifact* CreateArtifactRequest::mutable_artifact() { + + if (artifact_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::Artifact>(GetArenaNoVirtual()); + artifact_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.CreateArtifactRequest.artifact) + return artifact_; +} +inline void CreateArtifactRequest::set_allocated_artifact(::datacatalog::Artifact* artifact) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete artifact_; + } + if (artifact) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + artifact = ::google::protobuf::internal::GetOwnedMessage( + message_arena, artifact, submessage_arena); + } + + } else { + + } + artifact_ = artifact; + // @@protoc_insertion_point(field_set_allocated:datacatalog.CreateArtifactRequest.artifact) +} + +// ------------------------------------------------------------------- + +// CreateArtifactResponse + +// ------------------------------------------------------------------- + +// AddTagRequest + +// .datacatalog.Tag tag = 1; +inline bool AddTagRequest::has_tag() const { + return this != internal_default_instance() && tag_ != nullptr; +} +inline void AddTagRequest::clear_tag() { + if (GetArenaNoVirtual() == nullptr && tag_ != nullptr) { + delete tag_; + } + tag_ = nullptr; +} +inline const ::datacatalog::Tag& AddTagRequest::tag() const { + const ::datacatalog::Tag* p = tag_; + // @@protoc_insertion_point(field_get:datacatalog.AddTagRequest.tag) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_Tag_default_instance_); +} +inline ::datacatalog::Tag* AddTagRequest::release_tag() { + // @@protoc_insertion_point(field_release:datacatalog.AddTagRequest.tag) + + ::datacatalog::Tag* temp = tag_; + tag_ = nullptr; + return temp; +} +inline ::datacatalog::Tag* AddTagRequest::mutable_tag() { + + if (tag_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::Tag>(GetArenaNoVirtual()); + tag_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.AddTagRequest.tag) + return tag_; +} +inline void AddTagRequest::set_allocated_tag(::datacatalog::Tag* tag) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete tag_; + } + if (tag) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + tag = ::google::protobuf::internal::GetOwnedMessage( + message_arena, tag, submessage_arena); + } + + } else { + + } + tag_ = tag; + // @@protoc_insertion_point(field_set_allocated:datacatalog.AddTagRequest.tag) +} + +// ------------------------------------------------------------------- + +// AddTagResponse + +// ------------------------------------------------------------------- + +// ListArtifactsRequest + +// .datacatalog.DatasetID dataset = 1; +inline bool ListArtifactsRequest::has_dataset() const { return this != internal_default_instance() && dataset_ != nullptr; } -inline void GetDatasetResponse::clear_dataset() { +inline void ListArtifactsRequest::clear_dataset() { if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { delete dataset_; } dataset_ = nullptr; } -inline const ::datacatalog::Dataset& GetDatasetResponse::dataset() const { - const ::datacatalog::Dataset* p = dataset_; - // @@protoc_insertion_point(field_get:datacatalog.GetDatasetResponse.dataset) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_Dataset_default_instance_); +inline const ::datacatalog::DatasetID& ListArtifactsRequest::dataset() const { + const ::datacatalog::DatasetID* p = dataset_; + // @@protoc_insertion_point(field_get:datacatalog.ListArtifactsRequest.dataset) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_DatasetID_default_instance_); } -inline ::datacatalog::Dataset* GetDatasetResponse::release_dataset() { - // @@protoc_insertion_point(field_release:datacatalog.GetDatasetResponse.dataset) +inline ::datacatalog::DatasetID* ListArtifactsRequest::release_dataset() { + // @@protoc_insertion_point(field_release:datacatalog.ListArtifactsRequest.dataset) - ::datacatalog::Dataset* temp = dataset_; + ::datacatalog::DatasetID* temp = dataset_; dataset_ = nullptr; return temp; } -inline ::datacatalog::Dataset* GetDatasetResponse::mutable_dataset() { +inline ::datacatalog::DatasetID* ListArtifactsRequest::mutable_dataset() { if (dataset_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::Dataset>(GetArenaNoVirtual()); + auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); dataset_ = p; } - // @@protoc_insertion_point(field_mutable:datacatalog.GetDatasetResponse.dataset) + // @@protoc_insertion_point(field_mutable:datacatalog.ListArtifactsRequest.dataset) return dataset_; } -inline void GetDatasetResponse::set_allocated_dataset(::datacatalog::Dataset* dataset) { +inline void ListArtifactsRequest::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.ListArtifactsRequest.dataset) +} + +// .datacatalog.FilterExpression filter = 2; +inline bool ListArtifactsRequest::has_filter() const { + return this != internal_default_instance() && filter_ != nullptr; +} +inline void ListArtifactsRequest::clear_filter() { + if (GetArenaNoVirtual() == nullptr && filter_ != nullptr) { + delete filter_; + } + filter_ = nullptr; +} +inline const ::datacatalog::FilterExpression& ListArtifactsRequest::filter() const { + const ::datacatalog::FilterExpression* p = filter_; + // @@protoc_insertion_point(field_get:datacatalog.ListArtifactsRequest.filter) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_FilterExpression_default_instance_); +} +inline ::datacatalog::FilterExpression* ListArtifactsRequest::release_filter() { + // @@protoc_insertion_point(field_release:datacatalog.ListArtifactsRequest.filter) + + ::datacatalog::FilterExpression* temp = filter_; + filter_ = nullptr; + return temp; +} +inline ::datacatalog::FilterExpression* ListArtifactsRequest::mutable_filter() { + + if (filter_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::FilterExpression>(GetArenaNoVirtual()); + filter_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.ListArtifactsRequest.filter) + return filter_; +} +inline void ListArtifactsRequest::set_allocated_filter(::datacatalog::FilterExpression* filter) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete dataset_; + delete filter_; } - if (dataset) { + if (filter) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - dataset = ::google::protobuf::internal::GetOwnedMessage( - message_arena, dataset, submessage_arena); + filter = ::google::protobuf::internal::GetOwnedMessage( + message_arena, filter, submessage_arena); } } else { } - dataset_ = dataset; - // @@protoc_insertion_point(field_set_allocated:datacatalog.GetDatasetResponse.dataset) + filter_ = filter; + // @@protoc_insertion_point(field_set_allocated:datacatalog.ListArtifactsRequest.filter) } -// ------------------------------------------------------------------- - -// GetArtifactRequest - -// .datacatalog.DatasetID dataset = 1; -inline bool GetArtifactRequest::has_dataset() const { - return this != internal_default_instance() && dataset_ != nullptr; +// .datacatalog.PaginationOptions pagination = 3; +inline bool ListArtifactsRequest::has_pagination() const { + return this != internal_default_instance() && pagination_ != nullptr; } -inline void GetArtifactRequest::clear_dataset() { - if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { - delete dataset_; +inline void ListArtifactsRequest::clear_pagination() { + if (GetArenaNoVirtual() == nullptr && pagination_ != nullptr) { + delete pagination_; } - dataset_ = nullptr; + pagination_ = nullptr; } -inline const ::datacatalog::DatasetID& GetArtifactRequest::dataset() const { - const ::datacatalog::DatasetID* p = dataset_; - // @@protoc_insertion_point(field_get:datacatalog.GetArtifactRequest.dataset) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_DatasetID_default_instance_); +inline const ::datacatalog::PaginationOptions& ListArtifactsRequest::pagination() const { + const ::datacatalog::PaginationOptions* p = pagination_; + // @@protoc_insertion_point(field_get:datacatalog.ListArtifactsRequest.pagination) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_PaginationOptions_default_instance_); } -inline ::datacatalog::DatasetID* GetArtifactRequest::release_dataset() { - // @@protoc_insertion_point(field_release:datacatalog.GetArtifactRequest.dataset) +inline ::datacatalog::PaginationOptions* ListArtifactsRequest::release_pagination() { + // @@protoc_insertion_point(field_release:datacatalog.ListArtifactsRequest.pagination) - ::datacatalog::DatasetID* temp = dataset_; - dataset_ = nullptr; + ::datacatalog::PaginationOptions* temp = pagination_; + pagination_ = nullptr; return temp; } -inline ::datacatalog::DatasetID* GetArtifactRequest::mutable_dataset() { +inline ::datacatalog::PaginationOptions* ListArtifactsRequest::mutable_pagination() { - if (dataset_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); - dataset_ = p; + if (pagination_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::PaginationOptions>(GetArenaNoVirtual()); + pagination_ = p; } - // @@protoc_insertion_point(field_mutable:datacatalog.GetArtifactRequest.dataset) - return dataset_; + // @@protoc_insertion_point(field_mutable:datacatalog.ListArtifactsRequest.pagination) + return pagination_; } -inline void GetArtifactRequest::set_allocated_dataset(::datacatalog::DatasetID* dataset) { +inline void ListArtifactsRequest::set_allocated_pagination(::datacatalog::PaginationOptions* pagination) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete dataset_; + delete pagination_; } - if (dataset) { + if (pagination) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - dataset = ::google::protobuf::internal::GetOwnedMessage( - message_arena, dataset, submessage_arena); + pagination = ::google::protobuf::internal::GetOwnedMessage( + message_arena, pagination, submessage_arena); } } else { } - dataset_ = dataset; - // @@protoc_insertion_point(field_set_allocated:datacatalog.GetArtifactRequest.dataset) + pagination_ = pagination; + // @@protoc_insertion_point(field_set_allocated:datacatalog.ListArtifactsRequest.pagination) } -// string artifact_id = 2; -inline bool GetArtifactRequest::has_artifact_id() const { - return query_handle_case() == kArtifactId; -} -inline void GetArtifactRequest::set_has_artifact_id() { - _oneof_case_[0] = kArtifactId; -} -inline void GetArtifactRequest::clear_artifact_id() { - if (has_artifact_id()) { - query_handle_.artifact_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_query_handle(); - } -} -inline const ::std::string& GetArtifactRequest::artifact_id() const { - // @@protoc_insertion_point(field_get:datacatalog.GetArtifactRequest.artifact_id) - if (has_artifact_id()) { - return query_handle_.artifact_id_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void GetArtifactRequest::set_artifact_id(const ::std::string& value) { - // @@protoc_insertion_point(field_set:datacatalog.GetArtifactRequest.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.GetArtifactRequest.artifact_id) +// ------------------------------------------------------------------- + +// ListArtifactsResponse + +// repeated .datacatalog.Artifact artifacts = 1; +inline int ListArtifactsResponse::artifacts_size() const { + return artifacts_.size(); } -#if LANG_CXX11 -inline void GetArtifactRequest::set_artifact_id(::std::string&& value) { - // @@protoc_insertion_point(field_set:datacatalog.GetArtifactRequest.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.GetArtifactRequest.artifact_id) +inline void ListArtifactsResponse::clear_artifacts() { + artifacts_.Clear(); } -#endif -inline void GetArtifactRequest::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.GetArtifactRequest.artifact_id) +inline ::datacatalog::Artifact* ListArtifactsResponse::mutable_artifacts(int index) { + // @@protoc_insertion_point(field_mutable:datacatalog.ListArtifactsResponse.artifacts) + return artifacts_.Mutable(index); } -inline void GetArtifactRequest::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.GetArtifactRequest.artifact_id) +inline ::google::protobuf::RepeatedPtrField< ::datacatalog::Artifact >* +ListArtifactsResponse::mutable_artifacts() { + // @@protoc_insertion_point(field_mutable_list:datacatalog.ListArtifactsResponse.artifacts) + return &artifacts_; } -inline ::std::string* GetArtifactRequest::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.GetArtifactRequest.artifact_id) - return query_handle_.artifact_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +inline const ::datacatalog::Artifact& ListArtifactsResponse::artifacts(int index) const { + // @@protoc_insertion_point(field_get:datacatalog.ListArtifactsResponse.artifacts) + return artifacts_.Get(index); } -inline ::std::string* GetArtifactRequest::release_artifact_id() { - // @@protoc_insertion_point(field_release:datacatalog.GetArtifactRequest.artifact_id) - if (has_artifact_id()) { - clear_has_query_handle(); - return query_handle_.artifact_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } +inline ::datacatalog::Artifact* ListArtifactsResponse::add_artifacts() { + // @@protoc_insertion_point(field_add:datacatalog.ListArtifactsResponse.artifacts) + return artifacts_.Add(); } -inline void GetArtifactRequest::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.GetArtifactRequest.artifact_id) +inline const ::google::protobuf::RepeatedPtrField< ::datacatalog::Artifact >& +ListArtifactsResponse::artifacts() const { + // @@protoc_insertion_point(field_list:datacatalog.ListArtifactsResponse.artifacts) + return artifacts_; } -// string tag_name = 3; -inline bool GetArtifactRequest::has_tag_name() const { - return query_handle_case() == kTagName; -} -inline void GetArtifactRequest::set_has_tag_name() { - _oneof_case_[0] = kTagName; -} -inline void GetArtifactRequest::clear_tag_name() { - if (has_tag_name()) { - query_handle_.tag_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_query_handle(); - } +// string next_token = 2; +inline void ListArtifactsResponse::clear_next_token() { + next_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& GetArtifactRequest::tag_name() const { - // @@protoc_insertion_point(field_get:datacatalog.GetArtifactRequest.tag_name) - if (has_tag_name()) { - return query_handle_.tag_name_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +inline const ::std::string& ListArtifactsResponse::next_token() const { + // @@protoc_insertion_point(field_get:datacatalog.ListArtifactsResponse.next_token) + return next_token_.GetNoArena(); } -inline void GetArtifactRequest::set_tag_name(const ::std::string& value) { - // @@protoc_insertion_point(field_set:datacatalog.GetArtifactRequest.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.GetArtifactRequest.tag_name) +inline void ListArtifactsResponse::set_next_token(const ::std::string& value) { + + next_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.ListArtifactsResponse.next_token) } #if LANG_CXX11 -inline void GetArtifactRequest::set_tag_name(::std::string&& value) { - // @@protoc_insertion_point(field_set:datacatalog.GetArtifactRequest.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.GetArtifactRequest.tag_name) +inline void ListArtifactsResponse::set_next_token(::std::string&& value) { + + next_token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.ListArtifactsResponse.next_token) } #endif -inline void GetArtifactRequest::set_tag_name(const char* value) { +inline void ListArtifactsResponse::set_next_token(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.GetArtifactRequest.tag_name) + + next_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.ListArtifactsResponse.next_token) +} +inline void ListArtifactsResponse::set_next_token(const char* value, size_t size) { + + next_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.ListArtifactsResponse.next_token) } -inline void GetArtifactRequest::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.GetArtifactRequest.tag_name) +inline ::std::string* ListArtifactsResponse::mutable_next_token() { + + // @@protoc_insertion_point(field_mutable:datacatalog.ListArtifactsResponse.next_token) + return next_token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* GetArtifactRequest::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.GetArtifactRequest.tag_name) - return query_handle_.tag_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +inline ::std::string* ListArtifactsResponse::release_next_token() { + // @@protoc_insertion_point(field_release:datacatalog.ListArtifactsResponse.next_token) + + return next_token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* GetArtifactRequest::release_tag_name() { - // @@protoc_insertion_point(field_release:datacatalog.GetArtifactRequest.tag_name) - if (has_tag_name()) { - clear_has_query_handle(); - return query_handle_.tag_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +inline void ListArtifactsResponse::set_allocated_next_token(::std::string* next_token) { + if (next_token != nullptr) { + } else { - return nullptr; - } -} -inline void GetArtifactRequest::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.GetArtifactRequest.tag_name) + next_token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), next_token); + // @@protoc_insertion_point(field_set_allocated:datacatalog.ListArtifactsResponse.next_token) } -inline bool GetArtifactRequest::has_query_handle() const { - return query_handle_case() != QUERY_HANDLE_NOT_SET; -} -inline void GetArtifactRequest::clear_has_query_handle() { - _oneof_case_[0] = QUERY_HANDLE_NOT_SET; -} -inline GetArtifactRequest::QueryHandleCase GetArtifactRequest::query_handle_case() const { - return GetArtifactRequest::QueryHandleCase(_oneof_case_[0]); -} // ------------------------------------------------------------------- -// GetArtifactResponse +// ListDatasetsRequest -// .datacatalog.Artifact artifact = 1; -inline bool GetArtifactResponse::has_artifact() const { - return this != internal_default_instance() && artifact_ != nullptr; +// .datacatalog.FilterExpression filter = 1; +inline bool ListDatasetsRequest::has_filter() const { + return this != internal_default_instance() && filter_ != nullptr; } -inline void GetArtifactResponse::clear_artifact() { - if (GetArenaNoVirtual() == nullptr && artifact_ != nullptr) { - delete artifact_; +inline void ListDatasetsRequest::clear_filter() { + if (GetArenaNoVirtual() == nullptr && filter_ != nullptr) { + delete filter_; } - artifact_ = nullptr; + filter_ = nullptr; } -inline const ::datacatalog::Artifact& GetArtifactResponse::artifact() const { - const ::datacatalog::Artifact* p = artifact_; - // @@protoc_insertion_point(field_get:datacatalog.GetArtifactResponse.artifact) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_Artifact_default_instance_); +inline const ::datacatalog::FilterExpression& ListDatasetsRequest::filter() const { + const ::datacatalog::FilterExpression* p = filter_; + // @@protoc_insertion_point(field_get:datacatalog.ListDatasetsRequest.filter) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_FilterExpression_default_instance_); } -inline ::datacatalog::Artifact* GetArtifactResponse::release_artifact() { - // @@protoc_insertion_point(field_release:datacatalog.GetArtifactResponse.artifact) +inline ::datacatalog::FilterExpression* ListDatasetsRequest::release_filter() { + // @@protoc_insertion_point(field_release:datacatalog.ListDatasetsRequest.filter) - ::datacatalog::Artifact* temp = artifact_; - artifact_ = nullptr; + ::datacatalog::FilterExpression* temp = filter_; + filter_ = nullptr; return temp; } -inline ::datacatalog::Artifact* GetArtifactResponse::mutable_artifact() { +inline ::datacatalog::FilterExpression* ListDatasetsRequest::mutable_filter() { - if (artifact_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::Artifact>(GetArenaNoVirtual()); - artifact_ = p; + if (filter_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::FilterExpression>(GetArenaNoVirtual()); + filter_ = p; } - // @@protoc_insertion_point(field_mutable:datacatalog.GetArtifactResponse.artifact) - return artifact_; + // @@protoc_insertion_point(field_mutable:datacatalog.ListDatasetsRequest.filter) + return filter_; } -inline void GetArtifactResponse::set_allocated_artifact(::datacatalog::Artifact* artifact) { +inline void ListDatasetsRequest::set_allocated_filter(::datacatalog::FilterExpression* filter) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete artifact_; + delete filter_; } - if (artifact) { + if (filter) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - artifact = ::google::protobuf::internal::GetOwnedMessage( - message_arena, artifact, submessage_arena); + filter = ::google::protobuf::internal::GetOwnedMessage( + message_arena, filter, submessage_arena); } } else { } - artifact_ = artifact; - // @@protoc_insertion_point(field_set_allocated:datacatalog.GetArtifactResponse.artifact) + filter_ = filter; + // @@protoc_insertion_point(field_set_allocated:datacatalog.ListDatasetsRequest.filter) } -// ------------------------------------------------------------------- - -// CreateArtifactRequest - -// .datacatalog.Artifact artifact = 1; -inline bool CreateArtifactRequest::has_artifact() const { - return this != internal_default_instance() && artifact_ != nullptr; +// .datacatalog.PaginationOptions pagination = 2; +inline bool ListDatasetsRequest::has_pagination() const { + return this != internal_default_instance() && pagination_ != nullptr; } -inline void CreateArtifactRequest::clear_artifact() { - if (GetArenaNoVirtual() == nullptr && artifact_ != nullptr) { - delete artifact_; +inline void ListDatasetsRequest::clear_pagination() { + if (GetArenaNoVirtual() == nullptr && pagination_ != nullptr) { + delete pagination_; } - artifact_ = nullptr; + pagination_ = nullptr; } -inline const ::datacatalog::Artifact& CreateArtifactRequest::artifact() const { - const ::datacatalog::Artifact* p = artifact_; - // @@protoc_insertion_point(field_get:datacatalog.CreateArtifactRequest.artifact) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_Artifact_default_instance_); +inline const ::datacatalog::PaginationOptions& ListDatasetsRequest::pagination() const { + const ::datacatalog::PaginationOptions* p = pagination_; + // @@protoc_insertion_point(field_get:datacatalog.ListDatasetsRequest.pagination) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_PaginationOptions_default_instance_); } -inline ::datacatalog::Artifact* CreateArtifactRequest::release_artifact() { - // @@protoc_insertion_point(field_release:datacatalog.CreateArtifactRequest.artifact) +inline ::datacatalog::PaginationOptions* ListDatasetsRequest::release_pagination() { + // @@protoc_insertion_point(field_release:datacatalog.ListDatasetsRequest.pagination) - ::datacatalog::Artifact* temp = artifact_; - artifact_ = nullptr; + ::datacatalog::PaginationOptions* temp = pagination_; + pagination_ = nullptr; return temp; } -inline ::datacatalog::Artifact* CreateArtifactRequest::mutable_artifact() { +inline ::datacatalog::PaginationOptions* ListDatasetsRequest::mutable_pagination() { - if (artifact_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::Artifact>(GetArenaNoVirtual()); - artifact_ = p; + if (pagination_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::PaginationOptions>(GetArenaNoVirtual()); + pagination_ = p; } - // @@protoc_insertion_point(field_mutable:datacatalog.CreateArtifactRequest.artifact) - return artifact_; + // @@protoc_insertion_point(field_mutable:datacatalog.ListDatasetsRequest.pagination) + return pagination_; } -inline void CreateArtifactRequest::set_allocated_artifact(::datacatalog::Artifact* artifact) { +inline void ListDatasetsRequest::set_allocated_pagination(::datacatalog::PaginationOptions* pagination) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete artifact_; + delete pagination_; } - if (artifact) { + if (pagination) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - artifact = ::google::protobuf::internal::GetOwnedMessage( - message_arena, artifact, submessage_arena); + pagination = ::google::protobuf::internal::GetOwnedMessage( + message_arena, pagination, submessage_arena); } } else { } - artifact_ = artifact; - // @@protoc_insertion_point(field_set_allocated:datacatalog.CreateArtifactRequest.artifact) + pagination_ = pagination; + // @@protoc_insertion_point(field_set_allocated:datacatalog.ListDatasetsRequest.pagination) +} + +// ------------------------------------------------------------------- + +// ListDatasetsResponse + +// repeated .datacatalog.Dataset datasets = 1; +inline int ListDatasetsResponse::datasets_size() const { + return datasets_.size(); +} +inline void ListDatasetsResponse::clear_datasets() { + datasets_.Clear(); +} +inline ::datacatalog::Dataset* ListDatasetsResponse::mutable_datasets(int index) { + // @@protoc_insertion_point(field_mutable:datacatalog.ListDatasetsResponse.datasets) + return datasets_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::datacatalog::Dataset >* +ListDatasetsResponse::mutable_datasets() { + // @@protoc_insertion_point(field_mutable_list:datacatalog.ListDatasetsResponse.datasets) + return &datasets_; +} +inline const ::datacatalog::Dataset& ListDatasetsResponse::datasets(int index) const { + // @@protoc_insertion_point(field_get:datacatalog.ListDatasetsResponse.datasets) + return datasets_.Get(index); +} +inline ::datacatalog::Dataset* ListDatasetsResponse::add_datasets() { + // @@protoc_insertion_point(field_add:datacatalog.ListDatasetsResponse.datasets) + return datasets_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::datacatalog::Dataset >& +ListDatasetsResponse::datasets() const { + // @@protoc_insertion_point(field_list:datacatalog.ListDatasetsResponse.datasets) + return datasets_; +} + +// string next_token = 2; +inline void ListDatasetsResponse::clear_next_token() { + next_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ListDatasetsResponse::next_token() const { + // @@protoc_insertion_point(field_get:datacatalog.ListDatasetsResponse.next_token) + return next_token_.GetNoArena(); +} +inline void ListDatasetsResponse::set_next_token(const ::std::string& value) { + + next_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.ListDatasetsResponse.next_token) +} +#if LANG_CXX11 +inline void ListDatasetsResponse::set_next_token(::std::string&& value) { + + next_token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.ListDatasetsResponse.next_token) +} +#endif +inline void ListDatasetsResponse::set_next_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + next_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.ListDatasetsResponse.next_token) +} +inline void ListDatasetsResponse::set_next_token(const char* value, size_t size) { + + next_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.ListDatasetsResponse.next_token) +} +inline ::std::string* ListDatasetsResponse::mutable_next_token() { + + // @@protoc_insertion_point(field_mutable:datacatalog.ListDatasetsResponse.next_token) + return next_token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ListDatasetsResponse::release_next_token() { + // @@protoc_insertion_point(field_release:datacatalog.ListDatasetsResponse.next_token) + + return next_token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ListDatasetsResponse::set_allocated_next_token(::std::string* next_token) { + if (next_token != nullptr) { + + } else { + + } + next_token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), next_token); + // @@protoc_insertion_point(field_set_allocated:datacatalog.ListDatasetsResponse.next_token) } // ------------------------------------------------------------------- -// CreateArtifactResponse - -// ------------------------------------------------------------------- - -// AddTagRequest +// GetOrReserveArtifactRequest -// .datacatalog.Tag tag = 1; -inline bool AddTagRequest::has_tag() const { - return this != internal_default_instance() && tag_ != nullptr; +// .datacatalog.DatasetID dataset_id = 1; +inline bool GetOrReserveArtifactRequest::has_dataset_id() const { + return this != internal_default_instance() && dataset_id_ != nullptr; } -inline void AddTagRequest::clear_tag() { - if (GetArenaNoVirtual() == nullptr && tag_ != nullptr) { - delete tag_; +inline void GetOrReserveArtifactRequest::clear_dataset_id() { + if (GetArenaNoVirtual() == nullptr && dataset_id_ != nullptr) { + delete dataset_id_; } - tag_ = nullptr; + dataset_id_ = nullptr; } -inline const ::datacatalog::Tag& AddTagRequest::tag() const { - const ::datacatalog::Tag* p = tag_; - // @@protoc_insertion_point(field_get:datacatalog.AddTagRequest.tag) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_Tag_default_instance_); +inline const ::datacatalog::DatasetID& GetOrReserveArtifactRequest::dataset_id() const { + const ::datacatalog::DatasetID* p = dataset_id_; + // @@protoc_insertion_point(field_get:datacatalog.GetOrReserveArtifactRequest.dataset_id) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_DatasetID_default_instance_); } -inline ::datacatalog::Tag* AddTagRequest::release_tag() { - // @@protoc_insertion_point(field_release:datacatalog.AddTagRequest.tag) +inline ::datacatalog::DatasetID* GetOrReserveArtifactRequest::release_dataset_id() { + // @@protoc_insertion_point(field_release:datacatalog.GetOrReserveArtifactRequest.dataset_id) - ::datacatalog::Tag* temp = tag_; - tag_ = nullptr; + ::datacatalog::DatasetID* temp = dataset_id_; + dataset_id_ = nullptr; return temp; } -inline ::datacatalog::Tag* AddTagRequest::mutable_tag() { +inline ::datacatalog::DatasetID* GetOrReserveArtifactRequest::mutable_dataset_id() { - if (tag_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::Tag>(GetArenaNoVirtual()); - tag_ = p; + if (dataset_id_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); + dataset_id_ = p; } - // @@protoc_insertion_point(field_mutable:datacatalog.AddTagRequest.tag) - return tag_; + // @@protoc_insertion_point(field_mutable:datacatalog.GetOrReserveArtifactRequest.dataset_id) + return dataset_id_; } -inline void AddTagRequest::set_allocated_tag(::datacatalog::Tag* tag) { +inline void GetOrReserveArtifactRequest::set_allocated_dataset_id(::datacatalog::DatasetID* dataset_id) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete tag_; + delete dataset_id_; } - if (tag) { + if (dataset_id) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - tag = ::google::protobuf::internal::GetOwnedMessage( - message_arena, tag, submessage_arena); + dataset_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, dataset_id, submessage_arena); } } else { } - tag_ = tag; - // @@protoc_insertion_point(field_set_allocated:datacatalog.AddTagRequest.tag) + dataset_id_ = dataset_id; + // @@protoc_insertion_point(field_set_allocated:datacatalog.GetOrReserveArtifactRequest.dataset_id) } -// ------------------------------------------------------------------- +// string tag_name = 2; +inline void GetOrReserveArtifactRequest::clear_tag_name() { + tag_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& GetOrReserveArtifactRequest::tag_name() const { + // @@protoc_insertion_point(field_get:datacatalog.GetOrReserveArtifactRequest.tag_name) + return tag_name_.GetNoArena(); +} +inline void GetOrReserveArtifactRequest::set_tag_name(const ::std::string& value) { + + tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.GetOrReserveArtifactRequest.tag_name) +} +#if LANG_CXX11 +inline void GetOrReserveArtifactRequest::set_tag_name(::std::string&& value) { + + tag_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.GetOrReserveArtifactRequest.tag_name) +} +#endif +inline void GetOrReserveArtifactRequest::set_tag_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.GetOrReserveArtifactRequest.tag_name) +} +inline void GetOrReserveArtifactRequest::set_tag_name(const char* value, size_t size) { + + tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.GetOrReserveArtifactRequest.tag_name) +} +inline ::std::string* GetOrReserveArtifactRequest::mutable_tag_name() { + + // @@protoc_insertion_point(field_mutable:datacatalog.GetOrReserveArtifactRequest.tag_name) + return tag_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* GetOrReserveArtifactRequest::release_tag_name() { + // @@protoc_insertion_point(field_release:datacatalog.GetOrReserveArtifactRequest.tag_name) + + return tag_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void GetOrReserveArtifactRequest::set_allocated_tag_name(::std::string* tag_name) { + if (tag_name != nullptr) { + + } else { + + } + tag_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tag_name); + // @@protoc_insertion_point(field_set_allocated:datacatalog.GetOrReserveArtifactRequest.tag_name) +} -// AddTagResponse +// string owner_id = 3; +inline void GetOrReserveArtifactRequest::clear_owner_id() { + owner_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& GetOrReserveArtifactRequest::owner_id() const { + // @@protoc_insertion_point(field_get:datacatalog.GetOrReserveArtifactRequest.owner_id) + return owner_id_.GetNoArena(); +} +inline void GetOrReserveArtifactRequest::set_owner_id(const ::std::string& value) { + + owner_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.GetOrReserveArtifactRequest.owner_id) +} +#if LANG_CXX11 +inline void GetOrReserveArtifactRequest::set_owner_id(::std::string&& value) { + + owner_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.GetOrReserveArtifactRequest.owner_id) +} +#endif +inline void GetOrReserveArtifactRequest::set_owner_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + owner_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.GetOrReserveArtifactRequest.owner_id) +} +inline void GetOrReserveArtifactRequest::set_owner_id(const char* value, size_t size) { + + owner_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.GetOrReserveArtifactRequest.owner_id) +} +inline ::std::string* GetOrReserveArtifactRequest::mutable_owner_id() { + + // @@protoc_insertion_point(field_mutable:datacatalog.GetOrReserveArtifactRequest.owner_id) + return owner_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* GetOrReserveArtifactRequest::release_owner_id() { + // @@protoc_insertion_point(field_release:datacatalog.GetOrReserveArtifactRequest.owner_id) + + return owner_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void GetOrReserveArtifactRequest::set_allocated_owner_id(::std::string* owner_id) { + if (owner_id != nullptr) { + + } else { + + } + owner_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), owner_id); + // @@protoc_insertion_point(field_set_allocated:datacatalog.GetOrReserveArtifactRequest.owner_id) +} // ------------------------------------------------------------------- -// ListArtifactsRequest +// ReservationStatus -// .datacatalog.DatasetID dataset = 1; -inline bool ListArtifactsRequest::has_dataset() const { - return this != internal_default_instance() && dataset_ != nullptr; +// .datacatalog.ReservationStatus.State state = 1; +inline void ReservationStatus::clear_state() { + state_ = 0; } -inline void ListArtifactsRequest::clear_dataset() { - if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { - delete dataset_; +inline ::datacatalog::ReservationStatus_State ReservationStatus::state() const { + // @@protoc_insertion_point(field_get:datacatalog.ReservationStatus.state) + return static_cast< ::datacatalog::ReservationStatus_State >(state_); +} +inline void ReservationStatus::set_state(::datacatalog::ReservationStatus_State value) { + + state_ = value; + // @@protoc_insertion_point(field_set:datacatalog.ReservationStatus.state) +} + +// .datacatalog.Metadata metadata = 2; +inline bool ReservationStatus::has_metadata() const { + return this != internal_default_instance() && metadata_ != nullptr; +} +inline void ReservationStatus::clear_metadata() { + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; } - dataset_ = nullptr; + metadata_ = nullptr; } -inline const ::datacatalog::DatasetID& ListArtifactsRequest::dataset() const { - const ::datacatalog::DatasetID* p = dataset_; - // @@protoc_insertion_point(field_get:datacatalog.ListArtifactsRequest.dataset) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_DatasetID_default_instance_); +inline const ::datacatalog::Metadata& ReservationStatus::metadata() const { + const ::datacatalog::Metadata* p = metadata_; + // @@protoc_insertion_point(field_get:datacatalog.ReservationStatus.metadata) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_Metadata_default_instance_); } -inline ::datacatalog::DatasetID* ListArtifactsRequest::release_dataset() { - // @@protoc_insertion_point(field_release:datacatalog.ListArtifactsRequest.dataset) +inline ::datacatalog::Metadata* ReservationStatus::release_metadata() { + // @@protoc_insertion_point(field_release:datacatalog.ReservationStatus.metadata) - ::datacatalog::DatasetID* temp = dataset_; - dataset_ = nullptr; + ::datacatalog::Metadata* temp = metadata_; + metadata_ = nullptr; return temp; } -inline ::datacatalog::DatasetID* ListArtifactsRequest::mutable_dataset() { +inline ::datacatalog::Metadata* ReservationStatus::mutable_metadata() { - if (dataset_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); - dataset_ = p; + if (metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::Metadata>(GetArenaNoVirtual()); + metadata_ = p; } - // @@protoc_insertion_point(field_mutable:datacatalog.ListArtifactsRequest.dataset) - return dataset_; + // @@protoc_insertion_point(field_mutable:datacatalog.ReservationStatus.metadata) + return metadata_; } -inline void ListArtifactsRequest::set_allocated_dataset(::datacatalog::DatasetID* dataset) { +inline void ReservationStatus::set_allocated_metadata(::datacatalog::Metadata* metadata) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete dataset_; + delete metadata_; } - if (dataset) { + if (metadata) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - dataset = ::google::protobuf::internal::GetOwnedMessage( - message_arena, dataset, submessage_arena); + metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); } } else { } - dataset_ = dataset; - // @@protoc_insertion_point(field_set_allocated:datacatalog.ListArtifactsRequest.dataset) + metadata_ = metadata; + // @@protoc_insertion_point(field_set_allocated:datacatalog.ReservationStatus.metadata) } -// .datacatalog.FilterExpression filter = 2; -inline bool ListArtifactsRequest::has_filter() const { - return this != internal_default_instance() && filter_ != nullptr; +// string owner_id = 3; +inline void ReservationStatus::clear_owner_id() { + owner_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void ListArtifactsRequest::clear_filter() { - if (GetArenaNoVirtual() == nullptr && filter_ != nullptr) { - delete filter_; - } - filter_ = nullptr; +inline const ::std::string& ReservationStatus::owner_id() const { + // @@protoc_insertion_point(field_get:datacatalog.ReservationStatus.owner_id) + return owner_id_.GetNoArena(); } -inline const ::datacatalog::FilterExpression& ListArtifactsRequest::filter() const { - const ::datacatalog::FilterExpression* p = filter_; - // @@protoc_insertion_point(field_get:datacatalog.ListArtifactsRequest.filter) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_FilterExpression_default_instance_); +inline void ReservationStatus::set_owner_id(const ::std::string& value) { + + owner_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.ReservationStatus.owner_id) } -inline ::datacatalog::FilterExpression* ListArtifactsRequest::release_filter() { - // @@protoc_insertion_point(field_release:datacatalog.ListArtifactsRequest.filter) +#if LANG_CXX11 +inline void ReservationStatus::set_owner_id(::std::string&& value) { - ::datacatalog::FilterExpression* temp = filter_; - filter_ = nullptr; - return temp; + owner_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.ReservationStatus.owner_id) } -inline ::datacatalog::FilterExpression* ListArtifactsRequest::mutable_filter() { +#endif +inline void ReservationStatus::set_owner_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); - if (filter_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::FilterExpression>(GetArenaNoVirtual()); - filter_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.ListArtifactsRequest.filter) - return filter_; + owner_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.ReservationStatus.owner_id) } -inline void ListArtifactsRequest::set_allocated_filter(::datacatalog::FilterExpression* filter) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete filter_; - } - if (filter) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - filter = ::google::protobuf::internal::GetOwnedMessage( - message_arena, filter, submessage_arena); - } +inline void ReservationStatus::set_owner_id(const char* value, size_t size) { + + owner_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.ReservationStatus.owner_id) +} +inline ::std::string* ReservationStatus::mutable_owner_id() { + + // @@protoc_insertion_point(field_mutable:datacatalog.ReservationStatus.owner_id) + return owner_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ReservationStatus::release_owner_id() { + // @@protoc_insertion_point(field_release:datacatalog.ReservationStatus.owner_id) + + return owner_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ReservationStatus::set_allocated_owner_id(::std::string* owner_id) { + if (owner_id != nullptr) { } else { } - filter_ = filter; - // @@protoc_insertion_point(field_set_allocated:datacatalog.ListArtifactsRequest.filter) + owner_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), owner_id); + // @@protoc_insertion_point(field_set_allocated:datacatalog.ReservationStatus.owner_id) } -// .datacatalog.PaginationOptions pagination = 3; -inline bool ListArtifactsRequest::has_pagination() const { - return this != internal_default_instance() && pagination_ != nullptr; +// ------------------------------------------------------------------- + +// GetOrReserveArtifactResponse + +// .datacatalog.Artifact artifact = 1; +inline bool GetOrReserveArtifactResponse::has_artifact() const { + return value_case() == kArtifact; } -inline void ListArtifactsRequest::clear_pagination() { - if (GetArenaNoVirtual() == nullptr && pagination_ != nullptr) { - delete pagination_; +inline void GetOrReserveArtifactResponse::set_has_artifact() { + _oneof_case_[0] = kArtifact; +} +inline void GetOrReserveArtifactResponse::clear_artifact() { + if (has_artifact()) { + delete value_.artifact_; + clear_has_value(); } - pagination_ = nullptr; } -inline const ::datacatalog::PaginationOptions& ListArtifactsRequest::pagination() const { - const ::datacatalog::PaginationOptions* p = pagination_; - // @@protoc_insertion_point(field_get:datacatalog.ListArtifactsRequest.pagination) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_PaginationOptions_default_instance_); +inline ::datacatalog::Artifact* GetOrReserveArtifactResponse::release_artifact() { + // @@protoc_insertion_point(field_release:datacatalog.GetOrReserveArtifactResponse.artifact) + if (has_artifact()) { + clear_has_value(); + ::datacatalog::Artifact* temp = value_.artifact_; + value_.artifact_ = nullptr; + return temp; + } else { + return nullptr; + } } -inline ::datacatalog::PaginationOptions* ListArtifactsRequest::release_pagination() { - // @@protoc_insertion_point(field_release:datacatalog.ListArtifactsRequest.pagination) +inline const ::datacatalog::Artifact& GetOrReserveArtifactResponse::artifact() const { + // @@protoc_insertion_point(field_get:datacatalog.GetOrReserveArtifactResponse.artifact) + return has_artifact() + ? *value_.artifact_ + : *reinterpret_cast< ::datacatalog::Artifact*>(&::datacatalog::_Artifact_default_instance_); +} +inline ::datacatalog::Artifact* GetOrReserveArtifactResponse::mutable_artifact() { + if (!has_artifact()) { + clear_value(); + set_has_artifact(); + value_.artifact_ = CreateMaybeMessage< ::datacatalog::Artifact >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:datacatalog.GetOrReserveArtifactResponse.artifact) + return value_.artifact_; +} + +// .datacatalog.ReservationStatus reservation_status = 2; +inline bool GetOrReserveArtifactResponse::has_reservation_status() const { + return value_case() == kReservationStatus; +} +inline void GetOrReserveArtifactResponse::set_has_reservation_status() { + _oneof_case_[0] = kReservationStatus; +} +inline void GetOrReserveArtifactResponse::clear_reservation_status() { + if (has_reservation_status()) { + delete value_.reservation_status_; + clear_has_value(); + } +} +inline ::datacatalog::ReservationStatus* GetOrReserveArtifactResponse::release_reservation_status() { + // @@protoc_insertion_point(field_release:datacatalog.GetOrReserveArtifactResponse.reservation_status) + if (has_reservation_status()) { + clear_has_value(); + ::datacatalog::ReservationStatus* temp = value_.reservation_status_; + value_.reservation_status_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::datacatalog::ReservationStatus& GetOrReserveArtifactResponse::reservation_status() const { + // @@protoc_insertion_point(field_get:datacatalog.GetOrReserveArtifactResponse.reservation_status) + return has_reservation_status() + ? *value_.reservation_status_ + : *reinterpret_cast< ::datacatalog::ReservationStatus*>(&::datacatalog::_ReservationStatus_default_instance_); +} +inline ::datacatalog::ReservationStatus* GetOrReserveArtifactResponse::mutable_reservation_status() { + if (!has_reservation_status()) { + clear_value(); + set_has_reservation_status(); + value_.reservation_status_ = CreateMaybeMessage< ::datacatalog::ReservationStatus >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:datacatalog.GetOrReserveArtifactResponse.reservation_status) + return value_.reservation_status_; +} + +inline bool GetOrReserveArtifactResponse::has_value() const { + return value_case() != VALUE_NOT_SET; +} +inline void GetOrReserveArtifactResponse::clear_has_value() { + _oneof_case_[0] = VALUE_NOT_SET; +} +inline GetOrReserveArtifactResponse::ValueCase GetOrReserveArtifactResponse::value_case() const { + return GetOrReserveArtifactResponse::ValueCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// ExtendReservationRequest + +// .datacatalog.DatasetID dataset_id = 1; +inline bool ExtendReservationRequest::has_dataset_id() const { + return this != internal_default_instance() && dataset_id_ != nullptr; +} +inline void ExtendReservationRequest::clear_dataset_id() { + if (GetArenaNoVirtual() == nullptr && dataset_id_ != nullptr) { + delete dataset_id_; + } + dataset_id_ = nullptr; +} +inline const ::datacatalog::DatasetID& ExtendReservationRequest::dataset_id() const { + const ::datacatalog::DatasetID* p = dataset_id_; + // @@protoc_insertion_point(field_get:datacatalog.ExtendReservationRequest.dataset_id) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_DatasetID_default_instance_); +} +inline ::datacatalog::DatasetID* ExtendReservationRequest::release_dataset_id() { + // @@protoc_insertion_point(field_release:datacatalog.ExtendReservationRequest.dataset_id) - ::datacatalog::PaginationOptions* temp = pagination_; - pagination_ = nullptr; + ::datacatalog::DatasetID* temp = dataset_id_; + dataset_id_ = nullptr; return temp; } -inline ::datacatalog::PaginationOptions* ListArtifactsRequest::mutable_pagination() { +inline ::datacatalog::DatasetID* ExtendReservationRequest::mutable_dataset_id() { - if (pagination_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::PaginationOptions>(GetArenaNoVirtual()); - pagination_ = p; + if (dataset_id_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); + dataset_id_ = p; } - // @@protoc_insertion_point(field_mutable:datacatalog.ListArtifactsRequest.pagination) - return pagination_; + // @@protoc_insertion_point(field_mutable:datacatalog.ExtendReservationRequest.dataset_id) + return dataset_id_; } -inline void ListArtifactsRequest::set_allocated_pagination(::datacatalog::PaginationOptions* pagination) { +inline void ExtendReservationRequest::set_allocated_dataset_id(::datacatalog::DatasetID* dataset_id) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete pagination_; + delete dataset_id_; } - if (pagination) { + if (dataset_id) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - pagination = ::google::protobuf::internal::GetOwnedMessage( - message_arena, pagination, submessage_arena); + dataset_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, dataset_id, submessage_arena); } } else { } - pagination_ = pagination; - // @@protoc_insertion_point(field_set_allocated:datacatalog.ListArtifactsRequest.pagination) + dataset_id_ = dataset_id; + // @@protoc_insertion_point(field_set_allocated:datacatalog.ExtendReservationRequest.dataset_id) } -// ------------------------------------------------------------------- - -// ListArtifactsResponse - -// repeated .datacatalog.Artifact artifacts = 1; -inline int ListArtifactsResponse::artifacts_size() const { - return artifacts_.size(); +// string tag_name = 2; +inline void ExtendReservationRequest::clear_tag_name() { + tag_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void ListArtifactsResponse::clear_artifacts() { - artifacts_.Clear(); +inline const ::std::string& ExtendReservationRequest::tag_name() const { + // @@protoc_insertion_point(field_get:datacatalog.ExtendReservationRequest.tag_name) + return tag_name_.GetNoArena(); } -inline ::datacatalog::Artifact* ListArtifactsResponse::mutable_artifacts(int index) { - // @@protoc_insertion_point(field_mutable:datacatalog.ListArtifactsResponse.artifacts) - return artifacts_.Mutable(index); +inline void ExtendReservationRequest::set_tag_name(const ::std::string& value) { + + tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.ExtendReservationRequest.tag_name) } -inline ::google::protobuf::RepeatedPtrField< ::datacatalog::Artifact >* -ListArtifactsResponse::mutable_artifacts() { - // @@protoc_insertion_point(field_mutable_list:datacatalog.ListArtifactsResponse.artifacts) - return &artifacts_; +#if LANG_CXX11 +inline void ExtendReservationRequest::set_tag_name(::std::string&& value) { + + tag_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.ExtendReservationRequest.tag_name) } -inline const ::datacatalog::Artifact& ListArtifactsResponse::artifacts(int index) const { - // @@protoc_insertion_point(field_get:datacatalog.ListArtifactsResponse.artifacts) - return artifacts_.Get(index); +#endif +inline void ExtendReservationRequest::set_tag_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.ExtendReservationRequest.tag_name) } -inline ::datacatalog::Artifact* ListArtifactsResponse::add_artifacts() { - // @@protoc_insertion_point(field_add:datacatalog.ListArtifactsResponse.artifacts) - return artifacts_.Add(); +inline void ExtendReservationRequest::set_tag_name(const char* value, size_t size) { + + tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.ExtendReservationRequest.tag_name) } -inline const ::google::protobuf::RepeatedPtrField< ::datacatalog::Artifact >& -ListArtifactsResponse::artifacts() const { - // @@protoc_insertion_point(field_list:datacatalog.ListArtifactsResponse.artifacts) - return artifacts_; +inline ::std::string* ExtendReservationRequest::mutable_tag_name() { + + // @@protoc_insertion_point(field_mutable:datacatalog.ExtendReservationRequest.tag_name) + return tag_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ExtendReservationRequest::release_tag_name() { + // @@protoc_insertion_point(field_release:datacatalog.ExtendReservationRequest.tag_name) + + return tag_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ExtendReservationRequest::set_allocated_tag_name(::std::string* tag_name) { + if (tag_name != nullptr) { + + } else { + + } + tag_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tag_name); + // @@protoc_insertion_point(field_set_allocated:datacatalog.ExtendReservationRequest.tag_name) } -// string next_token = 2; -inline void ListArtifactsResponse::clear_next_token() { - next_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +// string owner_id = 3; +inline void ExtendReservationRequest::clear_owner_id() { + owner_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& ListArtifactsResponse::next_token() const { - // @@protoc_insertion_point(field_get:datacatalog.ListArtifactsResponse.next_token) - return next_token_.GetNoArena(); +inline const ::std::string& ExtendReservationRequest::owner_id() const { + // @@protoc_insertion_point(field_get:datacatalog.ExtendReservationRequest.owner_id) + return owner_id_.GetNoArena(); } -inline void ListArtifactsResponse::set_next_token(const ::std::string& value) { +inline void ExtendReservationRequest::set_owner_id(const ::std::string& value) { - next_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.ListArtifactsResponse.next_token) + owner_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.ExtendReservationRequest.owner_id) } #if LANG_CXX11 -inline void ListArtifactsResponse::set_next_token(::std::string&& value) { +inline void ExtendReservationRequest::set_owner_id(::std::string&& value) { - next_token_.SetNoArena( + owner_id_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.ListArtifactsResponse.next_token) + // @@protoc_insertion_point(field_set_rvalue:datacatalog.ExtendReservationRequest.owner_id) } #endif -inline void ListArtifactsResponse::set_next_token(const char* value) { +inline void ExtendReservationRequest::set_owner_id(const char* value) { GOOGLE_DCHECK(value != nullptr); - next_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.ListArtifactsResponse.next_token) + owner_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.ExtendReservationRequest.owner_id) } -inline void ListArtifactsResponse::set_next_token(const char* value, size_t size) { +inline void ExtendReservationRequest::set_owner_id(const char* value, size_t size) { - next_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + owner_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.ListArtifactsResponse.next_token) + // @@protoc_insertion_point(field_set_pointer:datacatalog.ExtendReservationRequest.owner_id) } -inline ::std::string* ListArtifactsResponse::mutable_next_token() { +inline ::std::string* ExtendReservationRequest::mutable_owner_id() { - // @@protoc_insertion_point(field_mutable:datacatalog.ListArtifactsResponse.next_token) - return next_token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:datacatalog.ExtendReservationRequest.owner_id) + return owner_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* ListArtifactsResponse::release_next_token() { - // @@protoc_insertion_point(field_release:datacatalog.ListArtifactsResponse.next_token) +inline ::std::string* ExtendReservationRequest::release_owner_id() { + // @@protoc_insertion_point(field_release:datacatalog.ExtendReservationRequest.owner_id) - return next_token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return owner_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void ListArtifactsResponse::set_allocated_next_token(::std::string* next_token) { - if (next_token != nullptr) { +inline void ExtendReservationRequest::set_allocated_owner_id(::std::string* owner_id) { + if (owner_id != nullptr) { } else { } - next_token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), next_token); - // @@protoc_insertion_point(field_set_allocated:datacatalog.ListArtifactsResponse.next_token) + owner_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), owner_id); + // @@protoc_insertion_point(field_set_allocated:datacatalog.ExtendReservationRequest.owner_id) } // ------------------------------------------------------------------- -// ListDatasetsRequest +// ExtendReservationResponse -// .datacatalog.FilterExpression filter = 1; -inline bool ListDatasetsRequest::has_filter() const { - return this != internal_default_instance() && filter_ != nullptr; +// ------------------------------------------------------------------- + +// ReleaseReservationRequest + +// .datacatalog.DatasetID dataset_id = 1; +inline bool ReleaseReservationRequest::has_dataset_id() const { + return this != internal_default_instance() && dataset_id_ != nullptr; } -inline void ListDatasetsRequest::clear_filter() { - if (GetArenaNoVirtual() == nullptr && filter_ != nullptr) { - delete filter_; +inline void ReleaseReservationRequest::clear_dataset_id() { + if (GetArenaNoVirtual() == nullptr && dataset_id_ != nullptr) { + delete dataset_id_; } - filter_ = nullptr; + dataset_id_ = nullptr; } -inline const ::datacatalog::FilterExpression& ListDatasetsRequest::filter() const { - const ::datacatalog::FilterExpression* p = filter_; - // @@protoc_insertion_point(field_get:datacatalog.ListDatasetsRequest.filter) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_FilterExpression_default_instance_); +inline const ::datacatalog::DatasetID& ReleaseReservationRequest::dataset_id() const { + const ::datacatalog::DatasetID* p = dataset_id_; + // @@protoc_insertion_point(field_get:datacatalog.ReleaseReservationRequest.dataset_id) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_DatasetID_default_instance_); } -inline ::datacatalog::FilterExpression* ListDatasetsRequest::release_filter() { - // @@protoc_insertion_point(field_release:datacatalog.ListDatasetsRequest.filter) +inline ::datacatalog::DatasetID* ReleaseReservationRequest::release_dataset_id() { + // @@protoc_insertion_point(field_release:datacatalog.ReleaseReservationRequest.dataset_id) - ::datacatalog::FilterExpression* temp = filter_; - filter_ = nullptr; + ::datacatalog::DatasetID* temp = dataset_id_; + dataset_id_ = nullptr; return temp; } -inline ::datacatalog::FilterExpression* ListDatasetsRequest::mutable_filter() { +inline ::datacatalog::DatasetID* ReleaseReservationRequest::mutable_dataset_id() { - if (filter_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::FilterExpression>(GetArenaNoVirtual()); - filter_ = p; + if (dataset_id_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); + dataset_id_ = p; } - // @@protoc_insertion_point(field_mutable:datacatalog.ListDatasetsRequest.filter) - return filter_; + // @@protoc_insertion_point(field_mutable:datacatalog.ReleaseReservationRequest.dataset_id) + return dataset_id_; } -inline void ListDatasetsRequest::set_allocated_filter(::datacatalog::FilterExpression* filter) { +inline void ReleaseReservationRequest::set_allocated_dataset_id(::datacatalog::DatasetID* dataset_id) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete filter_; + delete dataset_id_; } - if (filter) { + if (dataset_id) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - filter = ::google::protobuf::internal::GetOwnedMessage( - message_arena, filter, submessage_arena); + dataset_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, dataset_id, submessage_arena); } } else { } - filter_ = filter; - // @@protoc_insertion_point(field_set_allocated:datacatalog.ListDatasetsRequest.filter) + dataset_id_ = dataset_id; + // @@protoc_insertion_point(field_set_allocated:datacatalog.ReleaseReservationRequest.dataset_id) } -// .datacatalog.PaginationOptions pagination = 2; -inline bool ListDatasetsRequest::has_pagination() const { - return this != internal_default_instance() && pagination_ != nullptr; +// string tag_name = 2; +inline void ReleaseReservationRequest::clear_tag_name() { + tag_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void ListDatasetsRequest::clear_pagination() { - if (GetArenaNoVirtual() == nullptr && pagination_ != nullptr) { - delete pagination_; - } - pagination_ = nullptr; +inline const ::std::string& ReleaseReservationRequest::tag_name() const { + // @@protoc_insertion_point(field_get:datacatalog.ReleaseReservationRequest.tag_name) + return tag_name_.GetNoArena(); } -inline const ::datacatalog::PaginationOptions& ListDatasetsRequest::pagination() const { - const ::datacatalog::PaginationOptions* p = pagination_; - // @@protoc_insertion_point(field_get:datacatalog.ListDatasetsRequest.pagination) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_PaginationOptions_default_instance_); +inline void ReleaseReservationRequest::set_tag_name(const ::std::string& value) { + + tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.ReleaseReservationRequest.tag_name) } -inline ::datacatalog::PaginationOptions* ListDatasetsRequest::release_pagination() { - // @@protoc_insertion_point(field_release:datacatalog.ListDatasetsRequest.pagination) +#if LANG_CXX11 +inline void ReleaseReservationRequest::set_tag_name(::std::string&& value) { - ::datacatalog::PaginationOptions* temp = pagination_; - pagination_ = nullptr; - return temp; + tag_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.ReleaseReservationRequest.tag_name) } -inline ::datacatalog::PaginationOptions* ListDatasetsRequest::mutable_pagination() { +#endif +inline void ReleaseReservationRequest::set_tag_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); - if (pagination_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::PaginationOptions>(GetArenaNoVirtual()); - pagination_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.ListDatasetsRequest.pagination) - return pagination_; + tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.ReleaseReservationRequest.tag_name) } -inline void ListDatasetsRequest::set_allocated_pagination(::datacatalog::PaginationOptions* pagination) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete pagination_; - } - if (pagination) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - pagination = ::google::protobuf::internal::GetOwnedMessage( - message_arena, pagination, submessage_arena); - } +inline void ReleaseReservationRequest::set_tag_name(const char* value, size_t size) { + + tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.ReleaseReservationRequest.tag_name) +} +inline ::std::string* ReleaseReservationRequest::mutable_tag_name() { + + // @@protoc_insertion_point(field_mutable:datacatalog.ReleaseReservationRequest.tag_name) + return tag_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ReleaseReservationRequest::release_tag_name() { + // @@protoc_insertion_point(field_release:datacatalog.ReleaseReservationRequest.tag_name) + + return tag_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ReleaseReservationRequest::set_allocated_tag_name(::std::string* tag_name) { + if (tag_name != nullptr) { } else { } - pagination_ = pagination; - // @@protoc_insertion_point(field_set_allocated:datacatalog.ListDatasetsRequest.pagination) -} - -// ------------------------------------------------------------------- - -// ListDatasetsResponse - -// repeated .datacatalog.Dataset datasets = 1; -inline int ListDatasetsResponse::datasets_size() const { - return datasets_.size(); -} -inline void ListDatasetsResponse::clear_datasets() { - datasets_.Clear(); -} -inline ::datacatalog::Dataset* ListDatasetsResponse::mutable_datasets(int index) { - // @@protoc_insertion_point(field_mutable:datacatalog.ListDatasetsResponse.datasets) - return datasets_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::datacatalog::Dataset >* -ListDatasetsResponse::mutable_datasets() { - // @@protoc_insertion_point(field_mutable_list:datacatalog.ListDatasetsResponse.datasets) - return &datasets_; -} -inline const ::datacatalog::Dataset& ListDatasetsResponse::datasets(int index) const { - // @@protoc_insertion_point(field_get:datacatalog.ListDatasetsResponse.datasets) - return datasets_.Get(index); -} -inline ::datacatalog::Dataset* ListDatasetsResponse::add_datasets() { - // @@protoc_insertion_point(field_add:datacatalog.ListDatasetsResponse.datasets) - return datasets_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::datacatalog::Dataset >& -ListDatasetsResponse::datasets() const { - // @@protoc_insertion_point(field_list:datacatalog.ListDatasetsResponse.datasets) - return datasets_; + tag_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tag_name); + // @@protoc_insertion_point(field_set_allocated:datacatalog.ReleaseReservationRequest.tag_name) } -// string next_token = 2; -inline void ListDatasetsResponse::clear_next_token() { - next_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +// string owner_id = 3; +inline void ReleaseReservationRequest::clear_owner_id() { + owner_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& ListDatasetsResponse::next_token() const { - // @@protoc_insertion_point(field_get:datacatalog.ListDatasetsResponse.next_token) - return next_token_.GetNoArena(); +inline const ::std::string& ReleaseReservationRequest::owner_id() const { + // @@protoc_insertion_point(field_get:datacatalog.ReleaseReservationRequest.owner_id) + return owner_id_.GetNoArena(); } -inline void ListDatasetsResponse::set_next_token(const ::std::string& value) { +inline void ReleaseReservationRequest::set_owner_id(const ::std::string& value) { - next_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.ListDatasetsResponse.next_token) + owner_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.ReleaseReservationRequest.owner_id) } #if LANG_CXX11 -inline void ListDatasetsResponse::set_next_token(::std::string&& value) { +inline void ReleaseReservationRequest::set_owner_id(::std::string&& value) { - next_token_.SetNoArena( + owner_id_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.ListDatasetsResponse.next_token) + // @@protoc_insertion_point(field_set_rvalue:datacatalog.ReleaseReservationRequest.owner_id) } #endif -inline void ListDatasetsResponse::set_next_token(const char* value) { +inline void ReleaseReservationRequest::set_owner_id(const char* value) { GOOGLE_DCHECK(value != nullptr); - next_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.ListDatasetsResponse.next_token) + owner_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.ReleaseReservationRequest.owner_id) } -inline void ListDatasetsResponse::set_next_token(const char* value, size_t size) { +inline void ReleaseReservationRequest::set_owner_id(const char* value, size_t size) { - next_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + owner_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.ListDatasetsResponse.next_token) + // @@protoc_insertion_point(field_set_pointer:datacatalog.ReleaseReservationRequest.owner_id) } -inline ::std::string* ListDatasetsResponse::mutable_next_token() { +inline ::std::string* ReleaseReservationRequest::mutable_owner_id() { - // @@protoc_insertion_point(field_mutable:datacatalog.ListDatasetsResponse.next_token) - return next_token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:datacatalog.ReleaseReservationRequest.owner_id) + return owner_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* ListDatasetsResponse::release_next_token() { - // @@protoc_insertion_point(field_release:datacatalog.ListDatasetsResponse.next_token) +inline ::std::string* ReleaseReservationRequest::release_owner_id() { + // @@protoc_insertion_point(field_release:datacatalog.ReleaseReservationRequest.owner_id) - return next_token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return owner_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void ListDatasetsResponse::set_allocated_next_token(::std::string* next_token) { - if (next_token != nullptr) { +inline void ReleaseReservationRequest::set_allocated_owner_id(::std::string* owner_id) { + if (owner_id != nullptr) { } else { } - next_token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), next_token); - // @@protoc_insertion_point(field_set_allocated:datacatalog.ListDatasetsResponse.next_token) + owner_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), owner_id); + // @@protoc_insertion_point(field_set_allocated:datacatalog.ReleaseReservationRequest.owner_id) } // ------------------------------------------------------------------- +// ReleaseReservationResponse + +// ------------------------------------------------------------------- + // Dataset // .datacatalog.DatasetID id = 1; @@ -7575,6 +9284,20 @@ inline void PaginationOptions::set_sortorder(::datacatalog::PaginationOptions_So // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) @@ -7583,6 +9306,11 @@ inline void PaginationOptions::set_sortorder(::datacatalog::PaginationOptions_So namespace google { namespace protobuf { +template <> struct is_proto_enum< ::datacatalog::ReservationStatus_State> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::datacatalog::ReservationStatus_State>() { + return ::datacatalog::ReservationStatus_State_descriptor(); +} template <> struct is_proto_enum< ::datacatalog::SinglePropertyFilter_ComparisonOperator> : ::std::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::datacatalog::SinglePropertyFilter_ComparisonOperator>() { diff --git a/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go b/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go index 47e4fa072e8..63c0a8d1f31 100644 --- a/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go @@ -8,6 +8,7 @@ import ( fmt "fmt" core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" proto "github.com/golang/protobuf/proto" + _ "github.com/golang/protobuf/ptypes/duration" timestamp "github.com/golang/protobuf/ptypes/timestamp" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -26,6 +27,33 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +type ReservationStatus_State int32 + +const ( + // Acquired the reservation successfully. + ReservationStatus_ACQUIRED ReservationStatus_State = 0 + // Indicates an existing active reservation exist for a different owner_id. + ReservationStatus_ALREADY_IN_PROGRESS ReservationStatus_State = 1 +) + +var ReservationStatus_State_name = map[int32]string{ + 0: "ACQUIRED", + 1: "ALREADY_IN_PROGRESS", +} + +var ReservationStatus_State_value = map[string]int32{ + "ACQUIRED": 0, + "ALREADY_IN_PROGRESS": 1, +} + +func (x ReservationStatus_State) String() string { + return proto.EnumName(ReservationStatus_State_name, int32(x)) +} + +func (ReservationStatus_State) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{15, 0} +} + // as use-cases come up we can add more operators, ex: gte, like, not eq etc. type SinglePropertyFilter_ComparisonOperator int32 @@ -46,7 +74,7 @@ func (x SinglePropertyFilter_ComparisonOperator) String() string { } func (SinglePropertyFilter_ComparisonOperator) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{22, 0} + return fileDescriptor_275951237ff4368a, []int{29, 0} } type PaginationOptions_SortOrder int32 @@ -71,7 +99,7 @@ func (x PaginationOptions_SortOrder) String() string { } func (PaginationOptions_SortOrder) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{28, 0} + return fileDescriptor_275951237ff4368a, []int{35, 0} } type PaginationOptions_SortKey int32 @@ -93,7 +121,7 @@ func (x PaginationOptions_SortKey) String() string { } func (PaginationOptions_SortKey) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{28, 1} + return fileDescriptor_275951237ff4368a, []int{35, 1} } // @@ -745,6 +773,375 @@ func (m *ListDatasetsResponse) GetNextToken() string { return "" } +// Get the Artifact or try to reserve a spot if the Artifact does not exist. +type GetOrReserveArtifactRequest struct { + DatasetId *DatasetID `protobuf:"bytes,1,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"` + TagName string `protobuf:"bytes,2,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"` + OwnerId string `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetOrReserveArtifactRequest) Reset() { *m = GetOrReserveArtifactRequest{} } +func (m *GetOrReserveArtifactRequest) String() string { return proto.CompactTextString(m) } +func (*GetOrReserveArtifactRequest) ProtoMessage() {} +func (*GetOrReserveArtifactRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{14} +} + +func (m *GetOrReserveArtifactRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetOrReserveArtifactRequest.Unmarshal(m, b) +} +func (m *GetOrReserveArtifactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetOrReserveArtifactRequest.Marshal(b, m, deterministic) +} +func (m *GetOrReserveArtifactRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetOrReserveArtifactRequest.Merge(m, src) +} +func (m *GetOrReserveArtifactRequest) XXX_Size() int { + return xxx_messageInfo_GetOrReserveArtifactRequest.Size(m) +} +func (m *GetOrReserveArtifactRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetOrReserveArtifactRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetOrReserveArtifactRequest proto.InternalMessageInfo + +func (m *GetOrReserveArtifactRequest) GetDatasetId() *DatasetID { + if m != nil { + return m.DatasetId + } + return nil +} + +func (m *GetOrReserveArtifactRequest) GetTagName() string { + if m != nil { + return m.TagName + } + return "" +} + +func (m *GetOrReserveArtifactRequest) GetOwnerId() string { + if m != nil { + return m.OwnerId + } + return "" +} + +// Whether we successfully reserve a spot. +type ReservationStatus struct { + State ReservationStatus_State `protobuf:"varint,1,opt,name=state,proto3,enum=datacatalog.ReservationStatus_State" json:"state,omitempty"` + Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + OwnerId string `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ReservationStatus) Reset() { *m = ReservationStatus{} } +func (m *ReservationStatus) String() string { return proto.CompactTextString(m) } +func (*ReservationStatus) ProtoMessage() {} +func (*ReservationStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{15} +} + +func (m *ReservationStatus) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ReservationStatus.Unmarshal(m, b) +} +func (m *ReservationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ReservationStatus.Marshal(b, m, deterministic) +} +func (m *ReservationStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReservationStatus.Merge(m, src) +} +func (m *ReservationStatus) XXX_Size() int { + return xxx_messageInfo_ReservationStatus.Size(m) +} +func (m *ReservationStatus) XXX_DiscardUnknown() { + xxx_messageInfo_ReservationStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_ReservationStatus proto.InternalMessageInfo + +func (m *ReservationStatus) GetState() ReservationStatus_State { + if m != nil { + return m.State + } + return ReservationStatus_ACQUIRED +} + +func (m *ReservationStatus) GetMetadata() *Metadata { + if m != nil { + return m.Metadata + } + return nil +} + +func (m *ReservationStatus) GetOwnerId() string { + if m != nil { + return m.OwnerId + } + return "" +} + +// Response to get artifact or reserve spot. +type GetOrReserveArtifactResponse struct { + // Types that are valid to be assigned to Value: + // *GetOrReserveArtifactResponse_Artifact + // *GetOrReserveArtifactResponse_ReservationStatus + Value isGetOrReserveArtifactResponse_Value `protobuf_oneof:"value"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetOrReserveArtifactResponse) Reset() { *m = GetOrReserveArtifactResponse{} } +func (m *GetOrReserveArtifactResponse) String() string { return proto.CompactTextString(m) } +func (*GetOrReserveArtifactResponse) ProtoMessage() {} +func (*GetOrReserveArtifactResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{16} +} + +func (m *GetOrReserveArtifactResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetOrReserveArtifactResponse.Unmarshal(m, b) +} +func (m *GetOrReserveArtifactResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetOrReserveArtifactResponse.Marshal(b, m, deterministic) +} +func (m *GetOrReserveArtifactResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetOrReserveArtifactResponse.Merge(m, src) +} +func (m *GetOrReserveArtifactResponse) XXX_Size() int { + return xxx_messageInfo_GetOrReserveArtifactResponse.Size(m) +} +func (m *GetOrReserveArtifactResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetOrReserveArtifactResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetOrReserveArtifactResponse proto.InternalMessageInfo + +type isGetOrReserveArtifactResponse_Value interface { + isGetOrReserveArtifactResponse_Value() +} + +type GetOrReserveArtifactResponse_Artifact struct { + Artifact *Artifact `protobuf:"bytes,1,opt,name=artifact,proto3,oneof"` +} + +type GetOrReserveArtifactResponse_ReservationStatus struct { + ReservationStatus *ReservationStatus `protobuf:"bytes,2,opt,name=reservation_status,json=reservationStatus,proto3,oneof"` +} + +func (*GetOrReserveArtifactResponse_Artifact) isGetOrReserveArtifactResponse_Value() {} + +func (*GetOrReserveArtifactResponse_ReservationStatus) isGetOrReserveArtifactResponse_Value() {} + +func (m *GetOrReserveArtifactResponse) GetValue() isGetOrReserveArtifactResponse_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *GetOrReserveArtifactResponse) GetArtifact() *Artifact { + if x, ok := m.GetValue().(*GetOrReserveArtifactResponse_Artifact); ok { + return x.Artifact + } + return nil +} + +func (m *GetOrReserveArtifactResponse) GetReservationStatus() *ReservationStatus { + if x, ok := m.GetValue().(*GetOrReserveArtifactResponse_ReservationStatus); ok { + return x.ReservationStatus + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*GetOrReserveArtifactResponse) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*GetOrReserveArtifactResponse_Artifact)(nil), + (*GetOrReserveArtifactResponse_ReservationStatus)(nil), + } +} + +// Request to extend reservation +type ExtendReservationRequest struct { + DatasetId *DatasetID `protobuf:"bytes,1,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"` + TagName string `protobuf:"bytes,2,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"` + OwnerId string `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExtendReservationRequest) Reset() { *m = ExtendReservationRequest{} } +func (m *ExtendReservationRequest) String() string { return proto.CompactTextString(m) } +func (*ExtendReservationRequest) ProtoMessage() {} +func (*ExtendReservationRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{17} +} + +func (m *ExtendReservationRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExtendReservationRequest.Unmarshal(m, b) +} +func (m *ExtendReservationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExtendReservationRequest.Marshal(b, m, deterministic) +} +func (m *ExtendReservationRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExtendReservationRequest.Merge(m, src) +} +func (m *ExtendReservationRequest) XXX_Size() int { + return xxx_messageInfo_ExtendReservationRequest.Size(m) +} +func (m *ExtendReservationRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ExtendReservationRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ExtendReservationRequest proto.InternalMessageInfo + +func (m *ExtendReservationRequest) GetDatasetId() *DatasetID { + if m != nil { + return m.DatasetId + } + return nil +} + +func (m *ExtendReservationRequest) GetTagName() string { + if m != nil { + return m.TagName + } + return "" +} + +func (m *ExtendReservationRequest) GetOwnerId() string { + if m != nil { + return m.OwnerId + } + return "" +} + +// Response to extend reservation +type ExtendReservationResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExtendReservationResponse) Reset() { *m = ExtendReservationResponse{} } +func (m *ExtendReservationResponse) String() string { return proto.CompactTextString(m) } +func (*ExtendReservationResponse) ProtoMessage() {} +func (*ExtendReservationResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{18} +} + +func (m *ExtendReservationResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExtendReservationResponse.Unmarshal(m, b) +} +func (m *ExtendReservationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExtendReservationResponse.Marshal(b, m, deterministic) +} +func (m *ExtendReservationResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExtendReservationResponse.Merge(m, src) +} +func (m *ExtendReservationResponse) XXX_Size() int { + return xxx_messageInfo_ExtendReservationResponse.Size(m) +} +func (m *ExtendReservationResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ExtendReservationResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ExtendReservationResponse proto.InternalMessageInfo + +// Request to release reservation +type ReleaseReservationRequest struct { + DatasetId *DatasetID `protobuf:"bytes,1,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"` + TagName string `protobuf:"bytes,2,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"` + OwnerId string `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ReleaseReservationRequest) Reset() { *m = ReleaseReservationRequest{} } +func (m *ReleaseReservationRequest) String() string { return proto.CompactTextString(m) } +func (*ReleaseReservationRequest) ProtoMessage() {} +func (*ReleaseReservationRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{19} +} + +func (m *ReleaseReservationRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ReleaseReservationRequest.Unmarshal(m, b) +} +func (m *ReleaseReservationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ReleaseReservationRequest.Marshal(b, m, deterministic) +} +func (m *ReleaseReservationRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReleaseReservationRequest.Merge(m, src) +} +func (m *ReleaseReservationRequest) XXX_Size() int { + return xxx_messageInfo_ReleaseReservationRequest.Size(m) +} +func (m *ReleaseReservationRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ReleaseReservationRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ReleaseReservationRequest proto.InternalMessageInfo + +func (m *ReleaseReservationRequest) GetDatasetId() *DatasetID { + if m != nil { + return m.DatasetId + } + return nil +} + +func (m *ReleaseReservationRequest) GetTagName() string { + if m != nil { + return m.TagName + } + return "" +} + +func (m *ReleaseReservationRequest) GetOwnerId() string { + if m != nil { + return m.OwnerId + } + return "" +} + +// Response to release reservation +type ReleaseReservationResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ReleaseReservationResponse) Reset() { *m = ReleaseReservationResponse{} } +func (m *ReleaseReservationResponse) String() string { return proto.CompactTextString(m) } +func (*ReleaseReservationResponse) ProtoMessage() {} +func (*ReleaseReservationResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{20} +} + +func (m *ReleaseReservationResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ReleaseReservationResponse.Unmarshal(m, b) +} +func (m *ReleaseReservationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ReleaseReservationResponse.Marshal(b, m, deterministic) +} +func (m *ReleaseReservationResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReleaseReservationResponse.Merge(m, src) +} +func (m *ReleaseReservationResponse) XXX_Size() int { + return xxx_messageInfo_ReleaseReservationResponse.Size(m) +} +func (m *ReleaseReservationResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ReleaseReservationResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ReleaseReservationResponse proto.InternalMessageInfo + // // Dataset message. It is uniquely identified by DatasetID. type Dataset struct { @@ -760,7 +1157,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{14} + return fileDescriptor_275951237ff4368a, []int{21} } func (m *Dataset) XXX_Unmarshal(b []byte) error { @@ -816,7 +1213,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{15} + return fileDescriptor_275951237ff4368a, []int{22} } func (m *Partition) XXX_Unmarshal(b []byte) error { @@ -868,7 +1265,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{16} + return fileDescriptor_275951237ff4368a, []int{23} } func (m *DatasetID) XXX_Unmarshal(b []byte) error { @@ -943,7 +1340,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{17} + return fileDescriptor_275951237ff4368a, []int{24} } func (m *Artifact) XXX_Unmarshal(b []byte) error { @@ -1027,7 +1424,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{18} + return fileDescriptor_275951237ff4368a, []int{25} } func (m *ArtifactData) XXX_Unmarshal(b []byte) error { @@ -1078,7 +1475,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{19} + return fileDescriptor_275951237ff4368a, []int{26} } func (m *Tag) XXX_Unmarshal(b []byte) error { @@ -1133,7 +1530,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{20} + return fileDescriptor_275951237ff4368a, []int{27} } func (m *Metadata) XXX_Unmarshal(b []byte) error { @@ -1173,7 +1570,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{21} + return fileDescriptor_275951237ff4368a, []int{28} } func (m *FilterExpression) XXX_Unmarshal(b []byte) error { @@ -1219,7 +1616,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{22} + return fileDescriptor_275951237ff4368a, []int{29} } func (m *SinglePropertyFilter) XXX_Unmarshal(b []byte) error { @@ -1336,7 +1733,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{23} + return fileDescriptor_275951237ff4368a, []int{30} } func (m *ArtifactPropertyFilter) XXX_Unmarshal(b []byte) error { @@ -1402,7 +1799,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{24} + return fileDescriptor_275951237ff4368a, []int{31} } func (m *TagPropertyFilter) XXX_Unmarshal(b []byte) error { @@ -1468,7 +1865,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{25} + return fileDescriptor_275951237ff4368a, []int{32} } func (m *PartitionPropertyFilter) XXX_Unmarshal(b []byte) error { @@ -1532,7 +1929,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{26} + return fileDescriptor_275951237ff4368a, []int{33} } func (m *KeyValuePair) XXX_Unmarshal(b []byte) error { @@ -1584,7 +1981,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{27} + return fileDescriptor_275951237ff4368a, []int{34} } func (m *DatasetPropertyFilter) XXX_Unmarshal(b []byte) error { @@ -1697,7 +2094,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{28} + return fileDescriptor_275951237ff4368a, []int{35} } func (m *PaginationOptions) XXX_Unmarshal(b []byte) error { @@ -1747,6 +2144,7 @@ func (m *PaginationOptions) GetSortOrder() PaginationOptions_SortOrder { } func init() { + proto.RegisterEnum("datacatalog.ReservationStatus_State", ReservationStatus_State_name, ReservationStatus_State_value) proto.RegisterEnum("datacatalog.SinglePropertyFilter_ComparisonOperator", SinglePropertyFilter_ComparisonOperator_name, SinglePropertyFilter_ComparisonOperator_value) proto.RegisterEnum("datacatalog.PaginationOptions_SortOrder", PaginationOptions_SortOrder_name, PaginationOptions_SortOrder_value) proto.RegisterEnum("datacatalog.PaginationOptions_SortKey", PaginationOptions_SortKey_name, PaginationOptions_SortKey_value) @@ -1764,6 +2162,13 @@ func init() { proto.RegisterType((*ListArtifactsResponse)(nil), "datacatalog.ListArtifactsResponse") proto.RegisterType((*ListDatasetsRequest)(nil), "datacatalog.ListDatasetsRequest") proto.RegisterType((*ListDatasetsResponse)(nil), "datacatalog.ListDatasetsResponse") + proto.RegisterType((*GetOrReserveArtifactRequest)(nil), "datacatalog.GetOrReserveArtifactRequest") + proto.RegisterType((*ReservationStatus)(nil), "datacatalog.ReservationStatus") + proto.RegisterType((*GetOrReserveArtifactResponse)(nil), "datacatalog.GetOrReserveArtifactResponse") + proto.RegisterType((*ExtendReservationRequest)(nil), "datacatalog.ExtendReservationRequest") + proto.RegisterType((*ExtendReservationResponse)(nil), "datacatalog.ExtendReservationResponse") + proto.RegisterType((*ReleaseReservationRequest)(nil), "datacatalog.ReleaseReservationRequest") + proto.RegisterType((*ReleaseReservationResponse)(nil), "datacatalog.ReleaseReservationResponse") proto.RegisterType((*Dataset)(nil), "datacatalog.Dataset") proto.RegisterType((*Partition)(nil), "datacatalog.Partition") proto.RegisterType((*DatasetID)(nil), "datacatalog.DatasetID") @@ -1787,92 +2192,109 @@ func init() { } var fileDescriptor_275951237ff4368a = []byte{ - // 1347 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0x5f, 0x6f, 0xdb, 0xb6, - 0x17, 0xb5, 0x6c, 0xd7, 0xb6, 0xae, 0x63, 0xd7, 0x61, 0x9d, 0x54, 0x3f, 0xf5, 0x9f, 0xab, 0x16, - 0x45, 0xf0, 0xc3, 0xe6, 0x74, 0x4e, 0x57, 0xac, 0xdd, 0xb0, 0xcd, 0x8d, 0xdd, 0xc6, 0x4b, 0x93, - 0xb8, 0x8a, 0x1b, 0x60, 0xd8, 0x83, 0xc1, 0x46, 0x8c, 0xa6, 0x45, 0xb6, 0x54, 0x89, 0x29, 0xea, - 0xa7, 0x61, 0xaf, 0xdb, 0xde, 0x06, 0xec, 0xeb, 0xec, 0x71, 0x6f, 0x03, 0xf6, 0x8d, 0x06, 0x8a, - 0x94, 0x2c, 0xc9, 0x4a, 0xea, 0xe6, 0xc5, 0x10, 0xc9, 0x73, 0x8f, 0xef, 0xe5, 0xb9, 0xe4, 0xbd, - 0x84, 0x07, 0x27, 0xf6, 0x8c, 0x12, 0xcb, 0xb0, 0x37, 0x0d, 0x4c, 0xf1, 0x31, 0xa6, 0xd8, 0x76, - 0xcc, 0xf8, 0x77, 0xdb, 0xf5, 0x1c, 0xea, 0xa0, 0x6a, 0x6c, 0x4a, 0xbd, 0x19, 0x19, 0x1d, 0x3b, - 0x1e, 0xd9, 0xb4, 0x2d, 0x4a, 0x3c, 0x6c, 0xfb, 0x1c, 0xaa, 0xde, 0x31, 0x1d, 0xc7, 0xb4, 0xc9, - 0x66, 0x30, 0x7a, 0x73, 0x76, 0xb2, 0x49, 0xad, 0x09, 0xf1, 0x29, 0x9e, 0xb8, 0x1c, 0xa0, 0x3d, - 0x87, 0xe6, 0xb6, 0x47, 0x30, 0x25, 0x3d, 0x4c, 0xb1, 0x4f, 0xa8, 0x4e, 0xde, 0x9e, 0x11, 0x9f, - 0xa2, 0x36, 0x94, 0x0d, 0x3e, 0xa3, 0x48, 0x2d, 0x69, 0xa3, 0xda, 0x69, 0xb6, 0xe3, 0x8e, 0x84, - 0xe8, 0x10, 0xa4, 0x5d, 0x87, 0xb5, 0x14, 0x8f, 0xef, 0x3a, 0x53, 0x9f, 0x68, 0x7d, 0x58, 0x7d, - 0x41, 0x68, 0x8a, 0xfd, 0x61, 0x9a, 0x7d, 0x3d, 0x8b, 0x7d, 0xd0, 0x9b, 0xf3, 0xf7, 0x00, 0xc5, - 0x69, 0x38, 0xf9, 0x47, 0x7b, 0xf9, 0xa7, 0x14, 0xd0, 0x74, 0x3d, 0x6a, 0x9d, 0xe0, 0xe3, 0xcb, - 0xbb, 0x83, 0xee, 0x42, 0x15, 0x0b, 0x92, 0xb1, 0x65, 0x28, 0xf9, 0x96, 0xb4, 0x21, 0xef, 0xe4, - 0x74, 0x08, 0x27, 0x07, 0x06, 0xba, 0x01, 0x15, 0x8a, 0xcd, 0xf1, 0x14, 0x4f, 0x88, 0x52, 0x10, - 0xeb, 0x65, 0x8a, 0xcd, 0x7d, 0x3c, 0x21, 0xcf, 0xea, 0xb0, 0xf2, 0xf6, 0x8c, 0x78, 0xb3, 0xf1, - 0x8f, 0x78, 0x6a, 0xd8, 0x44, 0xdb, 0x81, 0x6b, 0x09, 0xbf, 0x44, 0x7c, 0x9f, 0x41, 0x25, 0x64, - 0x14, 0x9e, 0xad, 0x25, 0x3c, 0x8b, 0x0c, 0x22, 0x98, 0xf6, 0x5d, 0x28, 0x44, 0x3a, 0xc8, 0x4b, - 0x70, 0x29, 0xb0, 0x9e, 0xe6, 0x12, 0xaa, 0x6e, 0x41, 0xad, 0x6b, 0x18, 0x23, 0x6c, 0x86, 0xec, - 0x1a, 0x14, 0x28, 0x36, 0x05, 0x71, 0x23, 0x41, 0xcc, 0x50, 0x6c, 0x51, 0x6b, 0x40, 0x3d, 0x34, - 0x12, 0x34, 0x7f, 0x49, 0xd0, 0x7c, 0x69, 0xf9, 0x51, 0xe0, 0xfe, 0xe5, 0x15, 0xf9, 0x1c, 0x4a, - 0x27, 0x96, 0x4d, 0x89, 0x17, 0x88, 0x51, 0xed, 0xdc, 0x4a, 0x18, 0x3c, 0x0f, 0x96, 0xfa, 0xef, - 0x5d, 0x8f, 0xf8, 0xbe, 0xe5, 0x4c, 0x75, 0x01, 0x46, 0x5f, 0x03, 0xb8, 0xd8, 0xb4, 0xa6, 0x98, - 0x5a, 0xce, 0x34, 0xd0, 0xa9, 0xda, 0xb9, 0x9d, 0x30, 0x1d, 0x46, 0xcb, 0x07, 0x2e, 0xfb, 0xf5, - 0xf5, 0x98, 0x85, 0x76, 0x0a, 0x6b, 0xa9, 0x00, 0x84, 0x74, 0x5b, 0x20, 0x87, 0xfb, 0xe8, 0x2b, - 0x52, 0xab, 0x70, 0xfe, 0x7e, 0xcf, 0x71, 0xe8, 0x16, 0xc0, 0x94, 0xbc, 0xa7, 0x63, 0xea, 0x9c, - 0x92, 0x29, 0xcf, 0x2a, 0x5d, 0x66, 0x33, 0x23, 0x36, 0xa1, 0xfd, 0x2e, 0xc1, 0x35, 0xf6, 0x6f, - 0x22, 0xfc, 0x68, 0xb7, 0xe6, 0xb1, 0x4b, 0x97, 0x8f, 0x3d, 0xff, 0xd1, 0xb1, 0x9b, 0x5c, 0xbc, - 0xb9, 0x37, 0x22, 0xf4, 0x87, 0x50, 0x11, 0xaa, 0x84, 0x91, 0x67, 0x1f, 0xcb, 0x08, 0xf5, 0xa1, - 0xb8, 0x7f, 0x95, 0xa0, 0x2c, 0x8c, 0xd0, 0x03, 0xc8, 0x5b, 0xc6, 0x07, 0x92, 0x22, 0x6f, 0x19, - 0x2c, 0xdd, 0x27, 0x84, 0x62, 0x06, 0x10, 0xa1, 0x25, 0xb7, 0x7f, 0x4f, 0x2c, 0xea, 0x11, 0x0c, - 0xdd, 0x87, 0x9a, 0xcb, 0xb4, 0x60, 0xc1, 0xed, 0x92, 0x99, 0xaf, 0x14, 0x5a, 0x85, 0x0d, 0x59, - 0x4f, 0x4e, 0x6a, 0x5b, 0x20, 0x0f, 0xc3, 0x09, 0xd4, 0x80, 0xc2, 0x29, 0x99, 0x05, 0xee, 0xc8, - 0x3a, 0xfb, 0x44, 0x4d, 0xb8, 0xf2, 0x0e, 0xdb, 0x67, 0x44, 0x44, 0xc1, 0x07, 0xda, 0xcf, 0x20, - 0x47, 0xee, 0x21, 0x05, 0xca, 0xae, 0xe7, 0xfc, 0x44, 0xc4, 0x41, 0x94, 0xf5, 0x70, 0x88, 0x10, - 0x14, 0x83, 0xfb, 0x82, 0xdb, 0x06, 0xdf, 0x68, 0x1d, 0x4a, 0x86, 0x33, 0xc1, 0x16, 0xcf, 0x4e, - 0x59, 0x17, 0x23, 0xc6, 0xf2, 0x8e, 0x78, 0x4c, 0x50, 0xa5, 0xc8, 0x59, 0xc4, 0x90, 0xb1, 0xbc, - 0x7e, 0x3d, 0xe8, 0x29, 0x57, 0x38, 0x0b, 0xfb, 0xd6, 0xfe, 0xce, 0x43, 0x25, 0xcc, 0x38, 0x54, - 0x8f, 0xf6, 0x50, 0x0e, 0xf6, 0x2a, 0x76, 0xda, 0xf2, 0xcb, 0x9d, 0xb6, 0x4f, 0xa1, 0x18, 0xec, - 0x6c, 0x21, 0x90, 0xf7, 0x7f, 0x99, 0x89, 0xcd, 0xcc, 0xf4, 0x00, 0x96, 0x10, 0xa3, 0xb8, 0x9c, - 0x18, 0x8f, 0x59, 0x72, 0x8a, 0x6d, 0xf6, 0x95, 0x2b, 0xc1, 0xff, 0xac, 0xa7, 0x92, 0x53, 0x2c, - 0xeb, 0x31, 0x24, 0xba, 0x0f, 0x45, 0x8a, 0x4d, 0x5f, 0x29, 0x05, 0x16, 0x8b, 0x37, 0x51, 0xb0, - 0x8a, 0x9e, 0x00, 0x1c, 0x07, 0x37, 0x9b, 0x31, 0xc6, 0x54, 0x29, 0x07, 0x2e, 0xa9, 0x6d, 0x5e, - 0x2c, 0xdb, 0x61, 0xb1, 0x6c, 0x8f, 0xc2, 0x62, 0xa9, 0xcb, 0x02, 0xdd, 0xa5, 0xda, 0x10, 0x56, - 0xe2, 0x11, 0x46, 0x9a, 0x49, 0x31, 0xcd, 0x3e, 0x89, 0x27, 0x01, 0xf3, 0x3b, 0x2c, 0xd2, 0x6d, - 0x56, 0xa4, 0xdb, 0x2f, 0x79, 0x91, 0x0e, 0x93, 0xc3, 0x86, 0xc2, 0x08, 0x9b, 0x99, 0x44, 0x77, - 0x32, 0xea, 0x4c, 0xa2, 0xca, 0xc4, 0xa4, 0x2b, 0x2c, 0x57, 0x49, 0x7f, 0x91, 0xa0, 0x12, 0xee, - 0x37, 0x7a, 0x0a, 0xe5, 0x53, 0x32, 0x1b, 0x4f, 0xb0, 0x2b, 0x4e, 0xea, 0xdd, 0x4c, 0x5d, 0xda, - 0xbb, 0x64, 0xb6, 0x87, 0xdd, 0xfe, 0x94, 0x7a, 0x33, 0xbd, 0x74, 0x1a, 0x0c, 0xd4, 0x27, 0x50, - 0x8d, 0x4d, 0x2f, 0x7b, 0x14, 0x9e, 0xe6, 0xbf, 0x90, 0xb4, 0x03, 0x68, 0xa4, 0x6f, 0x25, 0xf4, - 0x25, 0x94, 0xf9, 0xbd, 0xe4, 0x67, 0xba, 0x72, 0x68, 0x4d, 0x4d, 0x9b, 0x0c, 0x3d, 0xc7, 0x25, - 0x1e, 0x9d, 0x71, 0x6b, 0x3d, 0xb4, 0xd0, 0xfe, 0x29, 0x40, 0x33, 0x0b, 0x81, 0xbe, 0x01, 0x60, - 0x55, 0x38, 0x71, 0x3d, 0xde, 0x4e, 0x27, 0x45, 0xd2, 0x66, 0x27, 0xa7, 0xcb, 0x14, 0x9b, 0x82, - 0xe0, 0x15, 0x34, 0xa2, 0xec, 0x1a, 0x27, 0x2a, 0xcc, 0xfd, 0xec, 0x6c, 0x5c, 0x20, 0xbb, 0x1a, - 0xd9, 0x0b, 0xca, 0x7d, 0xb8, 0x1a, 0x89, 0x2a, 0x18, 0xb9, 0x76, 0xf7, 0x32, 0xcf, 0xd1, 0x02, - 0x61, 0x3d, 0xb4, 0x16, 0x7c, 0xbb, 0x50, 0x17, 0xe2, 0x86, 0x74, 0xfc, 0x8c, 0x69, 0x59, 0xa9, - 0xb0, 0xc0, 0x56, 0x13, 0xb6, 0x82, 0x6c, 0x08, 0x15, 0x06, 0xc0, 0xd4, 0xf1, 0x14, 0x68, 0x49, - 0x1b, 0xf5, 0xce, 0xa3, 0x0f, 0xea, 0xd0, 0xde, 0x76, 0x26, 0x2e, 0xf6, 0x2c, 0x9f, 0xd5, 0x09, - 0x6e, 0xab, 0x47, 0x2c, 0x5a, 0x0b, 0xd0, 0xe2, 0x3a, 0x02, 0x28, 0xf5, 0x5f, 0xbd, 0xee, 0xbe, - 0x3c, 0x6c, 0xe4, 0x9e, 0xad, 0xc2, 0x55, 0x57, 0x10, 0x8a, 0x08, 0xb4, 0x17, 0xb0, 0x9e, 0x1d, - 0x7f, 0xba, 0xf5, 0x92, 0x16, 0x5b, 0xaf, 0x67, 0x00, 0x95, 0x90, 0x4f, 0xfb, 0x0a, 0x56, 0x17, - 0x14, 0x4e, 0xf4, 0x66, 0x52, 0xba, 0x37, 0x8b, 0x5b, 0xff, 0x00, 0xd7, 0xcf, 0x11, 0x16, 0x3d, - 0xe2, 0x47, 0xe7, 0x1d, 0xb6, 0x45, 0x5a, 0x25, 0x6f, 0xc1, 0x5d, 0x32, 0x3b, 0x62, 0xf9, 0x3e, - 0xc4, 0x16, 0xdb, 0x65, 0x76, 0x68, 0x8e, 0xb0, 0x9d, 0x20, 0x7f, 0x0c, 0x2b, 0x71, 0xd4, 0xd2, - 0xc5, 0xe4, 0x37, 0x09, 0xd6, 0x32, 0xd5, 0x44, 0x6a, 0xaa, 0xb2, 0xb0, 0xb0, 0xc2, 0xda, 0xd2, - 0x8c, 0xd7, 0x96, 0x9d, 0x9c, 0xb8, 0x60, 0x94, 0x64, 0x75, 0x61, 0x9e, 0x8a, 0xfa, 0xa2, 0xa6, - 0xea, 0x0b, 0xe3, 0x12, 0x13, 0x89, 0x28, 0xfe, 0xc8, 0xc3, 0xea, 0x42, 0x9f, 0xc0, 0x3c, 0xb7, - 0xad, 0x89, 0xc5, 0xfd, 0xa8, 0xe9, 0x7c, 0xc0, 0x66, 0xe3, 0x25, 0x9e, 0x0f, 0xd0, 0xb7, 0x50, - 0xf6, 0x1d, 0x8f, 0xee, 0x92, 0x59, 0xe0, 0x44, 0xbd, 0xf3, 0xe0, 0xe2, 0x26, 0xa4, 0x7d, 0xc8, - 0xd1, 0x7a, 0x68, 0x86, 0x9e, 0x83, 0xcc, 0x3e, 0x0f, 0x3c, 0x43, 0x24, 0x7f, 0xbd, 0xb3, 0xb1, - 0x04, 0x47, 0x80, 0xd7, 0xe7, 0xa6, 0xda, 0xff, 0x41, 0x8e, 0xe6, 0x51, 0x1d, 0xa0, 0xd7, 0x3f, - 0xdc, 0xee, 0xef, 0xf7, 0x06, 0xfb, 0x2f, 0x1a, 0x39, 0x54, 0x03, 0xb9, 0x1b, 0x0d, 0x25, 0xed, - 0x26, 0x94, 0x85, 0x1f, 0x68, 0x15, 0x6a, 0xdb, 0x7a, 0xbf, 0x3b, 0x1a, 0x1c, 0xec, 0x8f, 0x47, - 0x83, 0xbd, 0x7e, 0x23, 0xd7, 0xf9, 0xb7, 0x08, 0x55, 0xa6, 0xd1, 0x36, 0x77, 0x00, 0x1d, 0x41, - 0x2d, 0xf1, 0x3e, 0x42, 0xc9, 0xdb, 0x2d, 0xeb, 0x0d, 0xa6, 0x6a, 0x17, 0x41, 0x44, 0xaf, 0xb5, - 0x07, 0x30, 0x7f, 0x17, 0xa1, 0xe4, 0xcd, 0xb6, 0xf0, 0xee, 0x52, 0xef, 0x9c, 0xbb, 0x2e, 0xe8, - 0xbe, 0x87, 0x7a, 0xb2, 0xe3, 0x47, 0x59, 0x4e, 0xa4, 0x9e, 0x16, 0xea, 0xbd, 0x0b, 0x31, 0x82, - 0x7a, 0x08, 0xd5, 0xd8, 0x13, 0x07, 0x2d, 0xb8, 0x92, 0x26, 0x6d, 0x9d, 0x0f, 0x10, 0x8c, 0x5d, - 0x28, 0xf1, 0xf7, 0x04, 0x52, 0x93, 0x17, 0x67, 0xfc, 0x65, 0xa2, 0xde, 0xc8, 0x5c, 0x13, 0x14, - 0x47, 0x50, 0x4b, 0xb4, 0xef, 0x29, 0x59, 0xb2, 0xde, 0x26, 0x29, 0x59, 0xb2, 0xbb, 0xff, 0x43, - 0x58, 0x89, 0xb7, 0xc6, 0xa8, 0xb5, 0x60, 0x93, 0xea, 0xe1, 0xd5, 0xbb, 0x17, 0x20, 0x38, 0xe9, - 0x9b, 0x52, 0xd0, 0x98, 0x6c, 0xfd, 0x17, 0x00, 0x00, 0xff, 0xff, 0x93, 0xd2, 0x4d, 0xdb, 0x28, - 0x10, 0x00, 0x00, + // 1622 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0x5f, 0x53, 0xdb, 0xc6, + 0x16, 0xb7, 0x6c, 0xc0, 0xd6, 0x31, 0x76, 0xec, 0x0d, 0x10, 0x21, 0x48, 0x42, 0x14, 0x2e, 0x97, + 0x7b, 0xe7, 0x5e, 0x93, 0x42, 0x92, 0x69, 0xd2, 0x4e, 0x5b, 0x83, 0x1d, 0x70, 0xf9, 0xe7, 0xc8, + 0xc0, 0x4c, 0xa6, 0x0f, 0x9e, 0x0d, 0x5a, 0x5c, 0x15, 0xd9, 0x72, 0xa4, 0x85, 0xc6, 0x4f, 0x9d, + 0x3e, 0xb5, 0x4d, 0xfb, 0xd6, 0x99, 0x7e, 0x8b, 0x7e, 0x86, 0x3e, 0xf6, 0xa9, 0xfd, 0x4c, 0x9d, + 0x95, 0x56, 0xb2, 0xfe, 0x19, 0x1c, 0x5e, 0xf2, 0x02, 0xde, 0x3d, 0xe7, 0xfc, 0xf6, 0xfc, 0xdb, + 0xb3, 0xe7, 0x08, 0x56, 0xce, 0x8c, 0x01, 0x25, 0xba, 0x66, 0xac, 0x69, 0x98, 0xe2, 0x53, 0x4c, + 0xb1, 0x61, 0x76, 0x82, 0xbf, 0x2b, 0x7d, 0xcb, 0xa4, 0x26, 0xca, 0x07, 0xb6, 0xe4, 0x45, 0x5f, + 0xe8, 0xd4, 0xb4, 0xc8, 0x9a, 0xa1, 0x53, 0x62, 0x61, 0xc3, 0x76, 0x59, 0xe5, 0x7b, 0x1d, 0xd3, + 0xec, 0x18, 0x64, 0xcd, 0x59, 0xbd, 0xbe, 0x38, 0x5b, 0xd3, 0x2e, 0x2c, 0x4c, 0x75, 0xb3, 0xc7, + 0xe9, 0xf7, 0xa3, 0x74, 0xaa, 0x77, 0x89, 0x4d, 0x71, 0xb7, 0xef, 0x32, 0x28, 0x2f, 0x60, 0x66, + 0xcb, 0x22, 0x98, 0x92, 0x1a, 0xa6, 0xd8, 0x26, 0x54, 0x25, 0x6f, 0x2e, 0x88, 0x4d, 0x51, 0x05, + 0xb2, 0x9a, 0xbb, 0x23, 0x09, 0x4b, 0xc2, 0x6a, 0x7e, 0x7d, 0xa6, 0x12, 0x54, 0xd4, 0xe3, 0xf6, + 0x98, 0x94, 0x3b, 0x30, 0x1b, 0xc1, 0xb1, 0xfb, 0x66, 0xcf, 0x26, 0x4a, 0x1d, 0xca, 0xdb, 0x84, + 0x46, 0xd0, 0x1f, 0x45, 0xd1, 0xe7, 0x92, 0xd0, 0x1b, 0xb5, 0x21, 0x7e, 0x0d, 0x50, 0x10, 0xc6, + 0x05, 0x7f, 0x6f, 0x2d, 0x7f, 0x13, 0x1c, 0x98, 0xaa, 0x45, 0xf5, 0x33, 0x7c, 0x7a, 0x73, 0x75, + 0xd0, 0x03, 0xc8, 0x63, 0x0e, 0xd2, 0xd6, 0x35, 0x29, 0xbd, 0x24, 0xac, 0x8a, 0x3b, 0x29, 0x15, + 0xbc, 0xcd, 0x86, 0x86, 0x16, 0x20, 0x47, 0x71, 0xa7, 0xdd, 0xc3, 0x5d, 0x22, 0x65, 0x38, 0x3d, + 0x4b, 0x71, 0xe7, 0x00, 0x77, 0xc9, 0x66, 0x11, 0xa6, 0xdf, 0x5c, 0x10, 0x6b, 0xd0, 0xfe, 0x1a, + 0xf7, 0x34, 0x83, 0x28, 0x3b, 0x70, 0x3b, 0xa4, 0x17, 0xb7, 0xef, 0x23, 0xc8, 0x79, 0x88, 0x5c, + 0xb3, 0xd9, 0x90, 0x66, 0xbe, 0x80, 0xcf, 0xa6, 0x7c, 0xe9, 0x05, 0x22, 0x6a, 0xe4, 0x0d, 0xb0, + 0x24, 0x98, 0x8b, 0x62, 0xf1, 0xa8, 0x6e, 0x40, 0xa1, 0xaa, 0x69, 0x47, 0xb8, 0xe3, 0xa1, 0x2b, + 0x90, 0xa1, 0xb8, 0xc3, 0x81, 0x4b, 0x21, 0x60, 0xc6, 0xc5, 0x88, 0x4a, 0x09, 0x8a, 0x9e, 0x10, + 0x87, 0xf9, 0x43, 0x80, 0x99, 0x3d, 0xdd, 0xf6, 0x0d, 0xb7, 0x6f, 0x1e, 0x91, 0x27, 0x30, 0x75, + 0xa6, 0x1b, 0x94, 0x58, 0x4e, 0x30, 0xf2, 0xeb, 0x77, 0x43, 0x02, 0x2f, 0x1c, 0x52, 0xfd, 0x6d, + 0xdf, 0x22, 0xb6, 0xad, 0x9b, 0x3d, 0x95, 0x33, 0xa3, 0xcf, 0x00, 0xfa, 0xb8, 0xa3, 0xf7, 0x9c, + 0x4b, 0xe3, 0xc4, 0x29, 0xbf, 0x7e, 0x2f, 0x24, 0xda, 0xf4, 0xc9, 0x87, 0x7d, 0xf6, 0xd7, 0x56, + 0x03, 0x12, 0xca, 0x39, 0xcc, 0x46, 0x0c, 0xe0, 0xa1, 0xdb, 0x00, 0xd1, 0xf3, 0xa3, 0x2d, 0x09, + 0x4b, 0x99, 0xd1, 0xfe, 0x1e, 0xf2, 0xa1, 0xbb, 0x00, 0x3d, 0xf2, 0x96, 0xb6, 0xa9, 0x79, 0x4e, + 0x7a, 0x6e, 0x56, 0xa9, 0x22, 0xdb, 0x39, 0x62, 0x1b, 0xca, 0x2f, 0x02, 0xdc, 0x66, 0xa7, 0x71, + 0xf3, 0x7d, 0x6f, 0x0d, 0x6d, 0x17, 0x6e, 0x6e, 0x7b, 0xfa, 0xbd, 0x6d, 0xef, 0xb8, 0xc1, 0x1b, + 0x6a, 0xc3, 0x4d, 0x7f, 0x04, 0x39, 0x1e, 0x15, 0xcf, 0xf2, 0xe4, 0x6b, 0xe9, 0x73, 0x5d, 0x67, + 0xf7, 0x3b, 0x01, 0x16, 0xb6, 0x09, 0x3d, 0xb4, 0x54, 0x62, 0x13, 0xeb, 0x32, 0x96, 0xda, 0x4f, + 0x00, 0x38, 0x14, 0xbb, 0x8c, 0x57, 0x27, 0x8c, 0xc8, 0x39, 0x1b, 0x1a, 0x9a, 0x0f, 0xdc, 0x50, + 0xf7, 0x4c, 0xef, 0x7e, 0x32, 0x92, 0xf9, 0x6d, 0x8f, 0x58, 0x0c, 0x2f, 0xe3, 0x92, 0x9c, 0x75, + 0x43, 0x53, 0xfe, 0x12, 0xa0, 0xec, 0xea, 0xe1, 0x78, 0xa1, 0x45, 0x31, 0xbd, 0xb0, 0xd1, 0x73, + 0x98, 0xb4, 0x29, 0xa6, 0xc4, 0x39, 0xbd, 0xb8, 0xbe, 0x1c, 0x3a, 0x3d, 0xc6, 0x5e, 0x61, 0xff, + 0x88, 0xea, 0x8a, 0xb0, 0x9b, 0xd9, 0x25, 0x14, 0x33, 0x09, 0x1e, 0x85, 0x70, 0xa6, 0xec, 0x73, + 0xa2, 0xea, 0xb3, 0x5d, 0xa5, 0x5f, 0x05, 0x26, 0x1d, 0x74, 0x34, 0x0d, 0xb9, 0xea, 0xd6, 0xcb, + 0xe3, 0x86, 0x5a, 0xaf, 0x95, 0x52, 0xe8, 0x0e, 0xdc, 0xae, 0xee, 0xa9, 0xf5, 0x6a, 0xed, 0x55, + 0xbb, 0x71, 0xd0, 0x6e, 0xaa, 0x87, 0xdb, 0x6a, 0xbd, 0xd5, 0x2a, 0x09, 0xca, 0xef, 0x02, 0x2c, + 0x26, 0x3b, 0xd7, 0xcf, 0xe4, 0xf1, 0x0a, 0xc7, 0x4e, 0x6a, 0x58, 0x3a, 0xd0, 0x21, 0x20, 0x6b, + 0x68, 0x75, 0xdb, 0x76, 0xcc, 0x4e, 0xcc, 0xb1, 0x98, 0x73, 0x76, 0x52, 0x6a, 0xd9, 0x8a, 0x6e, + 0x6e, 0x66, 0x61, 0xf2, 0x12, 0x1b, 0x17, 0x44, 0xf9, 0x41, 0x00, 0xa9, 0xfe, 0x96, 0x92, 0x9e, + 0x16, 0x90, 0xfc, 0x20, 0x99, 0xb0, 0x00, 0xf3, 0x09, 0x8a, 0xf0, 0xd2, 0xf6, 0xa3, 0x00, 0xf3, + 0x2a, 0x31, 0x08, 0xb6, 0xc9, 0x87, 0xd6, 0x73, 0x11, 0xe4, 0x24, 0x4d, 0xb8, 0xa2, 0xef, 0x04, + 0xc8, 0xf2, 0xc3, 0xd0, 0x0a, 0xa4, 0xaf, 0x55, 0x27, 0xad, 0x6b, 0x37, 0xc9, 0xd8, 0x65, 0x28, + 0xf4, 0x59, 0x76, 0xb0, 0xb3, 0x77, 0xc9, 0xc0, 0x96, 0x32, 0x4b, 0x99, 0x55, 0x51, 0x0d, 0x6f, + 0x2a, 0x1b, 0x20, 0x36, 0xbd, 0x0d, 0x54, 0x82, 0xcc, 0x39, 0x19, 0x38, 0xea, 0x88, 0x2a, 0xfb, + 0x89, 0x66, 0x78, 0x12, 0x70, 0xe3, 0x79, 0x46, 0x7c, 0x07, 0xa2, 0xaf, 0x1e, 0x92, 0x20, 0xdb, + 0xb7, 0xcc, 0x6f, 0x08, 0x4f, 0x56, 0x51, 0xf5, 0x96, 0x08, 0xc1, 0x44, 0xc0, 0x71, 0xce, 0x6f, + 0x34, 0x07, 0x53, 0x9a, 0xd9, 0xc5, 0x7a, 0x8f, 0xfb, 0x8c, 0xaf, 0x18, 0xca, 0x25, 0xb1, 0x58, + 0xb5, 0x94, 0x26, 0x5c, 0x14, 0xbe, 0x64, 0x28, 0xc7, 0xc7, 0x8d, 0x9a, 0x34, 0xe9, 0xa2, 0xb0, + 0xdf, 0xca, 0x9f, 0x69, 0xc8, 0x79, 0xb7, 0x00, 0x15, 0x7d, 0x1f, 0x8a, 0x8e, 0xaf, 0x02, 0x4f, + 0x59, 0x7a, 0xbc, 0xa7, 0xec, 0xff, 0x30, 0xe1, 0x78, 0x36, 0xe3, 0xd4, 0xce, 0xf9, 0xc4, 0xcb, + 0xc6, 0xc4, 0x54, 0x87, 0x2d, 0x14, 0x8c, 0x89, 0xf1, 0x82, 0xf1, 0x94, 0x55, 0x7e, 0xee, 0x66, + 0x5b, 0x9a, 0x74, 0xce, 0x99, 0x8b, 0x54, 0x7e, 0x4e, 0x56, 0x03, 0x9c, 0x68, 0x19, 0x26, 0x28, + 0xee, 0xd8, 0xd2, 0x94, 0x23, 0x11, 0x7f, 0xe6, 0x1d, 0x2a, 0x7a, 0x06, 0x70, 0xea, 0xb4, 0x0d, + 0x5a, 0x1b, 0x53, 0x29, 0xeb, 0xa8, 0x24, 0x57, 0xdc, 0x4e, 0xb4, 0xe2, 0x75, 0xa2, 0x95, 0x23, + 0xaf, 0x13, 0x55, 0x45, 0xce, 0x5d, 0xa5, 0x4a, 0x13, 0xa6, 0x83, 0x16, 0xfa, 0x31, 0x13, 0x02, + 0x31, 0xfb, 0x5f, 0x30, 0x09, 0x98, 0xde, 0x5e, 0x87, 0x5c, 0x61, 0x1d, 0x72, 0x65, 0xcf, 0xed, + 0x90, 0xbd, 0xe4, 0x30, 0x20, 0x73, 0x84, 0x3b, 0x89, 0x40, 0xf7, 0x13, 0x9a, 0xb8, 0x50, 0x0b, + 0x17, 0x08, 0x5d, 0x66, 0xbc, 0x36, 0xf5, 0x7b, 0x01, 0x72, 0x9e, 0xbf, 0xd1, 0x73, 0xc8, 0x9e, + 0x93, 0x41, 0xbb, 0x8b, 0xfb, 0xfc, 0x19, 0x7c, 0x90, 0x18, 0x97, 0xca, 0x2e, 0x19, 0xec, 0xe3, + 0x7e, 0xbd, 0x47, 0xad, 0x81, 0x3a, 0x75, 0xee, 0x2c, 0xe4, 0x67, 0x90, 0x0f, 0x6c, 0x8f, 0x7b, + 0x15, 0x9e, 0xa7, 0x3f, 0x16, 0x94, 0x43, 0x28, 0x45, 0x9f, 0x7c, 0xf4, 0x09, 0x64, 0xdd, 0x47, + 0xdf, 0x4e, 0x54, 0xa5, 0xa5, 0xf7, 0x3a, 0x06, 0x69, 0x5a, 0x66, 0x9f, 0x58, 0x74, 0xe0, 0x4a, + 0xab, 0x9e, 0x84, 0xf2, 0x77, 0x06, 0x66, 0x92, 0x38, 0xd0, 0xe7, 0x00, 0xac, 0x1c, 0x85, 0x7a, + 0x8f, 0x7b, 0xd1, 0xa4, 0x08, 0xcb, 0xec, 0xa4, 0x54, 0x91, 0xe2, 0x0e, 0x07, 0x78, 0x09, 0x25, + 0x3f, 0xbb, 0xda, 0xa1, 0xf6, 0x6d, 0x39, 0x39, 0x1b, 0x63, 0x60, 0xb7, 0x7c, 0x79, 0x0e, 0x79, + 0x00, 0xb7, 0xfc, 0xa0, 0x72, 0x44, 0x37, 0x76, 0x0f, 0x13, 0xef, 0x51, 0x0c, 0xb0, 0xe8, 0x49, + 0x73, 0xbc, 0x5d, 0x28, 0x7a, 0x95, 0x9a, 0xc3, 0xb9, 0x77, 0x4c, 0x49, 0x4a, 0x85, 0x18, 0x5a, + 0x81, 0xcb, 0x72, 0xb0, 0x26, 0xe4, 0x18, 0x03, 0xa6, 0xa6, 0x25, 0x81, 0xd3, 0x28, 0x3c, 0xbe, + 0x36, 0x0e, 0x95, 0x2d, 0xb3, 0xdb, 0xc7, 0x96, 0x6e, 0xb3, 0x26, 0xcc, 0x95, 0x55, 0x7d, 0x14, + 0x65, 0x09, 0x50, 0x9c, 0x8e, 0x00, 0xa6, 0xea, 0x2f, 0x8f, 0xab, 0x7b, 0xad, 0x52, 0x6a, 0xb3, + 0x0c, 0xb7, 0xfa, 0x1c, 0x90, 0x5b, 0xa0, 0x6c, 0xc3, 0x5c, 0xb2, 0xfd, 0xd1, 0xb9, 0x46, 0x88, + 0xcf, 0x35, 0x9b, 0x00, 0x39, 0x0f, 0x4f, 0xf9, 0x14, 0xca, 0xb1, 0x08, 0x87, 0x06, 0x1f, 0x21, + 0x3a, 0xf8, 0x04, 0xa5, 0xbf, 0x82, 0x3b, 0x23, 0x02, 0x8b, 0x1e, 0xbb, 0x57, 0xe7, 0x12, 0x1b, + 0x3c, 0xad, 0xc2, 0x55, 0x70, 0x97, 0x0c, 0x4e, 0x58, 0xbe, 0x37, 0xb1, 0xce, 0xbc, 0xcc, 0x2e, + 0xcd, 0x09, 0x36, 0x42, 0xe0, 0x4f, 0x61, 0x3a, 0xc8, 0x35, 0xf6, 0x63, 0xf2, 0xb3, 0x00, 0xb3, + 0x89, 0xd1, 0x44, 0x72, 0xe4, 0x65, 0x61, 0x66, 0x79, 0x6f, 0xcb, 0x4c, 0xf0, 0x6d, 0xd9, 0x49, + 0xf1, 0x02, 0x23, 0x85, 0x5f, 0x17, 0xa6, 0x29, 0x7f, 0x5f, 0xe4, 0xc8, 0xfb, 0xc2, 0xb0, 0xf8, + 0x46, 0xc8, 0x8a, 0x5f, 0xd3, 0x50, 0x8e, 0x35, 0xe1, 0x4c, 0x73, 0x43, 0xef, 0xea, 0xae, 0x1e, + 0x05, 0xd5, 0x5d, 0xb0, 0xdd, 0x60, 0xff, 0xec, 0x2e, 0xd0, 0x17, 0x90, 0xb5, 0x4d, 0x8b, 0xee, + 0x92, 0x81, 0xa3, 0x44, 0x71, 0x7d, 0xe5, 0xea, 0x0e, 0xbf, 0xd2, 0x72, 0xb9, 0x55, 0x4f, 0x0c, + 0xbd, 0x00, 0x91, 0xfd, 0x3c, 0xb4, 0x34, 0x9e, 0xfc, 0xc5, 0xf5, 0xd5, 0x31, 0x30, 0x1c, 0x7e, + 0x75, 0x28, 0xaa, 0xfc, 0x17, 0x44, 0x7f, 0x1f, 0x15, 0x01, 0x6a, 0xf5, 0xd6, 0x56, 0xfd, 0xa0, + 0xd6, 0x38, 0xd8, 0x2e, 0xa5, 0x50, 0x01, 0xc4, 0xaa, 0xbf, 0x14, 0x94, 0x45, 0xc8, 0x72, 0x3d, + 0x50, 0x19, 0x0a, 0x5b, 0x6a, 0xbd, 0x7a, 0xd4, 0x38, 0x3c, 0x68, 0x1f, 0x35, 0xf6, 0xeb, 0xa5, + 0xd4, 0xfa, 0x4f, 0x59, 0xc8, 0xb3, 0x18, 0x6d, 0xb9, 0x0a, 0xa0, 0x13, 0x28, 0x84, 0x3e, 0x3e, + 0xa0, 0x70, 0x75, 0x4b, 0xfa, 0xc0, 0x21, 0x2b, 0x57, 0xb1, 0xf0, 0xce, 0x77, 0x1f, 0x60, 0xf8, + 0xd1, 0x01, 0x85, 0x2b, 0x5b, 0xec, 0xa3, 0x86, 0x7c, 0x7f, 0x24, 0x9d, 0xc3, 0xbd, 0x82, 0x62, + 0x78, 0x9c, 0x46, 0x49, 0x4a, 0x44, 0x86, 0x1b, 0xf9, 0xe1, 0x95, 0x3c, 0x1c, 0xba, 0x09, 0xf9, + 0xc0, 0xf7, 0x03, 0x14, 0x53, 0x25, 0x0a, 0xba, 0x34, 0x9a, 0x81, 0x23, 0x56, 0x61, 0xca, 0x1d, + 0xd6, 0x91, 0x1c, 0x2e, 0x9c, 0xc1, 0xb1, 0x5f, 0x5e, 0x48, 0xa4, 0x71, 0x88, 0x13, 0x28, 0x84, + 0x66, 0xe3, 0x48, 0x58, 0x92, 0x06, 0xff, 0x48, 0x58, 0x92, 0x47, 0xeb, 0x16, 0x4c, 0x07, 0xe7, + 0x4e, 0xb4, 0x14, 0x93, 0x89, 0x0c, 0xc8, 0xf2, 0x83, 0x2b, 0x38, 0x38, 0xe8, 0x39, 0xcc, 0x24, + 0x4d, 0x41, 0x68, 0x35, 0xea, 0xa9, 0x51, 0x53, 0xa8, 0xfc, 0x9f, 0x31, 0x38, 0xf9, 0x61, 0xaf, + 0xa1, 0x1c, 0x9b, 0x1c, 0xd0, 0xbf, 0x42, 0xf2, 0xa3, 0x46, 0x1c, 0x79, 0xe5, 0x3a, 0x36, 0x7e, + 0x06, 0x01, 0x14, 0xef, 0xfa, 0xd1, 0x4a, 0x64, 0xf6, 0x1a, 0x31, 0xa0, 0xc8, 0xff, 0xbe, 0x96, + 0xcf, 0x3d, 0xe6, 0xf5, 0x94, 0xd3, 0xd0, 0x6d, 0xfc, 0x13, 0x00, 0x00, 0xff, 0xff, 0xfd, 0xd6, + 0x61, 0x3b, 0xdd, 0x14, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1903,6 +2325,31 @@ 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) + // Get an artifact and the corresponding data. If the artifact does not exist, + // try to reserve a spot for populating the artifact. + // + // Once you preserve a spot, you should call ExtendReservation API periodically + // to extend the reservation. Otherwise, the reservation can expire and other + // tasks may take the spot. + // + // If the same owner_id calls this API for the same dataset and it has an active reservation and the artifacts have not been written yet by a different owner, the API will respond with an Acquired Reservation Status (providing idempotency). + // + // 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. + GetOrReserveArtifact(ctx context.Context, in *GetOrReserveArtifactRequest, opts ...grpc.CallOption) (*GetOrReserveArtifactResponse, error) + // Extend the reservation to keep it from expiring. If the reservation expires, + // other tasks can take over the reservation by calling GetOrReserveArtifact. + ExtendReservation(ctx context.Context, in *ExtendReservationRequest, opts ...grpc.CallOption) (*ExtendReservationResponse, error) + // Release the reservation when the task holding the spot fails so that the other tasks + // can grab the spot. + ReleaseReservation(ctx context.Context, in *ReleaseReservationRequest, opts ...grpc.CallOption) (*ReleaseReservationResponse, error) } type dataCatalogClient struct { @@ -1976,6 +2423,33 @@ func (c *dataCatalogClient) ListDatasets(ctx context.Context, in *ListDatasetsRe return out, nil } +func (c *dataCatalogClient) GetOrReserveArtifact(ctx context.Context, in *GetOrReserveArtifactRequest, opts ...grpc.CallOption) (*GetOrReserveArtifactResponse, error) { + out := new(GetOrReserveArtifactResponse) + err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/GetOrReserveArtifact", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dataCatalogClient) ExtendReservation(ctx context.Context, in *ExtendReservationRequest, opts ...grpc.CallOption) (*ExtendReservationResponse, error) { + out := new(ExtendReservationResponse) + err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/ExtendReservation", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dataCatalogClient) ReleaseReservation(ctx context.Context, in *ReleaseReservationRequest, opts ...grpc.CallOption) (*ReleaseReservationResponse, error) { + out := new(ReleaseReservationResponse) + err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/ReleaseReservation", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // DataCatalogServer is the server API for DataCatalog service. type DataCatalogServer interface { // Create a new Dataset. Datasets are unique based on the DatasetID. Datasets are logical groupings of artifacts. @@ -1994,6 +2468,31 @@ type DataCatalogServer interface { ListArtifacts(context.Context, *ListArtifactsRequest) (*ListArtifactsResponse, error) // Return a paginated list of datasets ListDatasets(context.Context, *ListDatasetsRequest) (*ListDatasetsResponse, error) + // Get an artifact and the corresponding data. If the artifact does not exist, + // try to reserve a spot for populating the artifact. + // + // Once you preserve a spot, you should call ExtendReservation API periodically + // to extend the reservation. Otherwise, the reservation can expire and other + // tasks may take the spot. + // + // If the same owner_id calls this API for the same dataset and it has an active reservation and the artifacts have not been written yet by a different owner, the API will respond with an Acquired Reservation Status (providing idempotency). + // + // 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. + GetOrReserveArtifact(context.Context, *GetOrReserveArtifactRequest) (*GetOrReserveArtifactResponse, error) + // Extend the reservation to keep it from expiring. If the reservation expires, + // other tasks can take over the reservation by calling GetOrReserveArtifact. + ExtendReservation(context.Context, *ExtendReservationRequest) (*ExtendReservationResponse, error) + // Release the reservation when the task holding the spot fails so that the other tasks + // can grab the spot. + ReleaseReservation(context.Context, *ReleaseReservationRequest) (*ReleaseReservationResponse, error) } // UnimplementedDataCatalogServer can be embedded to have forward compatible implementations. @@ -2021,6 +2520,15 @@ 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) GetOrReserveArtifact(ctx context.Context, req *GetOrReserveArtifactRequest) (*GetOrReserveArtifactResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetOrReserveArtifact not implemented") +} +func (*UnimplementedDataCatalogServer) ExtendReservation(ctx context.Context, req *ExtendReservationRequest) (*ExtendReservationResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ExtendReservation not implemented") +} +func (*UnimplementedDataCatalogServer) ReleaseReservation(ctx context.Context, req *ReleaseReservationRequest) (*ReleaseReservationResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReleaseReservation not implemented") +} func RegisterDataCatalogServer(s *grpc.Server, srv DataCatalogServer) { s.RegisterService(&_DataCatalog_serviceDesc, srv) @@ -2152,6 +2660,60 @@ func _DataCatalog_ListDatasets_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _DataCatalog_GetOrReserveArtifact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetOrReserveArtifactRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataCatalogServer).GetOrReserveArtifact(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/datacatalog.DataCatalog/GetOrReserveArtifact", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataCatalogServer).GetOrReserveArtifact(ctx, req.(*GetOrReserveArtifactRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DataCatalog_ExtendReservation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ExtendReservationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataCatalogServer).ExtendReservation(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/datacatalog.DataCatalog/ExtendReservation", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataCatalogServer).ExtendReservation(ctx, req.(*ExtendReservationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DataCatalog_ReleaseReservation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ReleaseReservationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataCatalogServer).ReleaseReservation(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/datacatalog.DataCatalog/ReleaseReservation", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataCatalogServer).ReleaseReservation(ctx, req.(*ReleaseReservationRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _DataCatalog_serviceDesc = grpc.ServiceDesc{ ServiceName: "datacatalog.DataCatalog", HandlerType: (*DataCatalogServer)(nil), @@ -2184,6 +2746,18 @@ var _DataCatalog_serviceDesc = grpc.ServiceDesc{ MethodName: "ListDatasets", Handler: _DataCatalog_ListDatasets_Handler, }, + { + MethodName: "GetOrReserveArtifact", + Handler: _DataCatalog_GetOrReserveArtifact_Handler, + }, + { + MethodName: "ExtendReservation", + Handler: _DataCatalog_ExtendReservation_Handler, + }, + { + MethodName: "ReleaseReservation", + Handler: _DataCatalog_ReleaseReservation_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "flyteidl/datacatalog/datacatalog.proto", diff --git a/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.validate.go index 431015a9192..763f2fb0f05 100644 --- a/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.validate.go +++ b/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.validate.go @@ -1134,6 +1134,561 @@ var _ interface { ErrorName() string } = ListDatasetsResponseValidationError{} +// Validate checks the field values on GetOrReserveArtifactRequest with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *GetOrReserveArtifactRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetDatasetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GetOrReserveArtifactRequestValidationError{ + field: "DatasetId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for TagName + + // no validation rules for OwnerId + + return nil +} + +// GetOrReserveArtifactRequestValidationError is the validation error returned +// by GetOrReserveArtifactRequest.Validate if the designated constraints +// aren't met. +type GetOrReserveArtifactRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GetOrReserveArtifactRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GetOrReserveArtifactRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GetOrReserveArtifactRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GetOrReserveArtifactRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GetOrReserveArtifactRequestValidationError) ErrorName() string { + return "GetOrReserveArtifactRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e GetOrReserveArtifactRequestValidationError) 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 %sGetOrReserveArtifactRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GetOrReserveArtifactRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GetOrReserveArtifactRequestValidationError{} + +// Validate checks the field values on ReservationStatus with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *ReservationStatus) Validate() error { + if m == nil { + return nil + } + + // no validation rules for State + + if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ReservationStatusValidationError{ + field: "Metadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for OwnerId + + return nil +} + +// ReservationStatusValidationError is the validation error returned by +// ReservationStatus.Validate if the designated constraints aren't met. +type ReservationStatusValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ReservationStatusValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ReservationStatusValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ReservationStatusValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ReservationStatusValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ReservationStatusValidationError) ErrorName() string { + return "ReservationStatusValidationError" +} + +// Error satisfies the builtin error interface +func (e ReservationStatusValidationError) 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 %sReservationStatus.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ReservationStatusValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ReservationStatusValidationError{} + +// Validate checks the field values on GetOrReserveArtifactResponse with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *GetOrReserveArtifactResponse) Validate() error { + if m == nil { + return nil + } + + switch m.Value.(type) { + + case *GetOrReserveArtifactResponse_Artifact: + + if v, ok := interface{}(m.GetArtifact()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GetOrReserveArtifactResponseValidationError{ + field: "Artifact", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *GetOrReserveArtifactResponse_ReservationStatus: + + if v, ok := interface{}(m.GetReservationStatus()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GetOrReserveArtifactResponseValidationError{ + field: "ReservationStatus", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// GetOrReserveArtifactResponseValidationError is the validation error returned +// by GetOrReserveArtifactResponse.Validate if the designated constraints +// aren't met. +type GetOrReserveArtifactResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GetOrReserveArtifactResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GetOrReserveArtifactResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GetOrReserveArtifactResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GetOrReserveArtifactResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GetOrReserveArtifactResponseValidationError) ErrorName() string { + return "GetOrReserveArtifactResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e GetOrReserveArtifactResponseValidationError) 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 %sGetOrReserveArtifactResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GetOrReserveArtifactResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GetOrReserveArtifactResponseValidationError{} + +// Validate checks the field values on ExtendReservationRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ExtendReservationRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetDatasetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExtendReservationRequestValidationError{ + field: "DatasetId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for TagName + + // no validation rules for OwnerId + + return nil +} + +// ExtendReservationRequestValidationError is the validation error returned by +// ExtendReservationRequest.Validate if the designated constraints aren't met. +type ExtendReservationRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExtendReservationRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExtendReservationRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExtendReservationRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExtendReservationRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExtendReservationRequestValidationError) ErrorName() string { + return "ExtendReservationRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ExtendReservationRequestValidationError) 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 %sExtendReservationRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExtendReservationRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExtendReservationRequestValidationError{} + +// Validate checks the field values on ExtendReservationResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ExtendReservationResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// ExtendReservationResponseValidationError is the validation error returned by +// ExtendReservationResponse.Validate if the designated constraints aren't met. +type ExtendReservationResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExtendReservationResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExtendReservationResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExtendReservationResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExtendReservationResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExtendReservationResponseValidationError) ErrorName() string { + return "ExtendReservationResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e ExtendReservationResponseValidationError) 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 %sExtendReservationResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExtendReservationResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExtendReservationResponseValidationError{} + +// Validate checks the field values on ReleaseReservationRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ReleaseReservationRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetDatasetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ReleaseReservationRequestValidationError{ + field: "DatasetId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for TagName + + // no validation rules for OwnerId + + return nil +} + +// ReleaseReservationRequestValidationError is the validation error returned by +// ReleaseReservationRequest.Validate if the designated constraints aren't met. +type ReleaseReservationRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ReleaseReservationRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ReleaseReservationRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ReleaseReservationRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ReleaseReservationRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ReleaseReservationRequestValidationError) ErrorName() string { + return "ReleaseReservationRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ReleaseReservationRequestValidationError) 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 %sReleaseReservationRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ReleaseReservationRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ReleaseReservationRequestValidationError{} + +// Validate checks the field values on ReleaseReservationResponse with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ReleaseReservationResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// ReleaseReservationResponseValidationError is the validation error returned +// by ReleaseReservationResponse.Validate if the designated constraints aren't met. +type ReleaseReservationResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ReleaseReservationResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ReleaseReservationResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ReleaseReservationResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ReleaseReservationResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ReleaseReservationResponseValidationError) ErrorName() string { + return "ReleaseReservationResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e ReleaseReservationResponseValidationError) 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 %sReleaseReservationResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ReleaseReservationResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ReleaseReservationResponseValidationError{} + // Validate checks the field values on Dataset with the rules defined in the // proto definition for this message. If any rules are violated, an error is returned. func (m *Dataset) Validate() error { diff --git a/flyteidl/gen/pb-java/datacatalog/Datacatalog.java b/flyteidl/gen/pb-java/datacatalog/Datacatalog.java index 7950642e952..0edbb419d77 100644 --- a/flyteidl/gen/pb-java/datacatalog/Datacatalog.java +++ b/flyteidl/gen/pb-java/datacatalog/Datacatalog.java @@ -10239,6 +10239,5389 @@ public datacatalog.Datacatalog.ListDatasetsResponse getDefaultInstanceForType() } + public interface GetOrReserveArtifactRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.GetOrReserveArtifactRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + boolean hasDatasetId(); + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + datacatalog.Datacatalog.DatasetID getDatasetId(); + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetIdOrBuilder(); + + /** + * string tag_name = 2; + */ + java.lang.String getTagName(); + /** + * string tag_name = 2; + */ + com.google.protobuf.ByteString + getTagNameBytes(); + + /** + * string owner_id = 3; + */ + java.lang.String getOwnerId(); + /** + * string owner_id = 3; + */ + com.google.protobuf.ByteString + getOwnerIdBytes(); + } + /** + *
+   * Get the Artifact or try to reserve a spot if the Artifact does not exist.
+   * 
+ * + * Protobuf type {@code datacatalog.GetOrReserveArtifactRequest} + */ + public static final class GetOrReserveArtifactRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.GetOrReserveArtifactRequest) + GetOrReserveArtifactRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetOrReserveArtifactRequest.newBuilder() to construct. + private GetOrReserveArtifactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetOrReserveArtifactRequest() { + tagName_ = ""; + ownerId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetOrReserveArtifactRequest( + 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 (datasetId_ != null) { + subBuilder = datasetId_.toBuilder(); + } + datasetId_ = input.readMessage(datacatalog.Datacatalog.DatasetID.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(datasetId_); + datasetId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + tagName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + ownerId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetOrReserveArtifactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetOrReserveArtifactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.GetOrReserveArtifactRequest.class, datacatalog.Datacatalog.GetOrReserveArtifactRequest.Builder.class); + } + + public static final int DATASET_ID_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.DatasetID datasetId_; + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public boolean hasDatasetId() { + return datasetId_ != null; + } + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public datacatalog.Datacatalog.DatasetID getDatasetId() { + return datasetId_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : datasetId_; + } + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetIdOrBuilder() { + return getDatasetId(); + } + + public static final int TAG_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object tagName_; + /** + * string tag_name = 2; + */ + public java.lang.String getTagName() { + java.lang.Object ref = tagName_; + 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(); + tagName_ = s; + return s; + } + } + /** + * string tag_name = 2; + */ + public com.google.protobuf.ByteString + getTagNameBytes() { + java.lang.Object ref = tagName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tagName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OWNER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object ownerId_; + /** + * string owner_id = 3; + */ + public java.lang.String getOwnerId() { + java.lang.Object ref = ownerId_; + 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(); + ownerId_ = s; + return s; + } + } + /** + * string owner_id = 3; + */ + public com.google.protobuf.ByteString + getOwnerIdBytes() { + java.lang.Object ref = ownerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ownerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (datasetId_ != null) { + output.writeMessage(1, getDatasetId()); + } + if (!getTagNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tagName_); + } + if (!getOwnerIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ownerId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (datasetId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDatasetId()); + } + if (!getTagNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tagName_); + } + if (!getOwnerIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ownerId_); + } + 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.GetOrReserveArtifactRequest)) { + return super.equals(obj); + } + datacatalog.Datacatalog.GetOrReserveArtifactRequest other = (datacatalog.Datacatalog.GetOrReserveArtifactRequest) obj; + + if (hasDatasetId() != other.hasDatasetId()) return false; + if (hasDatasetId()) { + if (!getDatasetId() + .equals(other.getDatasetId())) return false; + } + if (!getTagName() + .equals(other.getTagName())) return false; + if (!getOwnerId() + .equals(other.getOwnerId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDatasetId()) { + hash = (37 * hash) + DATASET_ID_FIELD_NUMBER; + hash = (53 * hash) + getDatasetId().hashCode(); + } + hash = (37 * hash) + TAG_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTagName().hashCode(); + hash = (37 * hash) + OWNER_ID_FIELD_NUMBER; + hash = (53 * hash) + getOwnerId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.GetOrReserveArtifactRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetOrReserveArtifactRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetOrReserveArtifactRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetOrReserveArtifactRequest 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.GetOrReserveArtifactRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetOrReserveArtifactRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetOrReserveArtifactRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetOrReserveArtifactRequest 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.GetOrReserveArtifactRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetOrReserveArtifactRequest 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.GetOrReserveArtifactRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetOrReserveArtifactRequest 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.GetOrReserveArtifactRequest 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; + } + /** + *
+     * Get the Artifact or try to reserve a spot if the Artifact does not exist.
+     * 
+ * + * Protobuf type {@code datacatalog.GetOrReserveArtifactRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.GetOrReserveArtifactRequest) + datacatalog.Datacatalog.GetOrReserveArtifactRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetOrReserveArtifactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetOrReserveArtifactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.GetOrReserveArtifactRequest.class, datacatalog.Datacatalog.GetOrReserveArtifactRequest.Builder.class); + } + + // Construct using datacatalog.Datacatalog.GetOrReserveArtifactRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (datasetIdBuilder_ == null) { + datasetId_ = null; + } else { + datasetId_ = null; + datasetIdBuilder_ = null; + } + tagName_ = ""; + + ownerId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetOrReserveArtifactRequest_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.GetOrReserveArtifactRequest getDefaultInstanceForType() { + return datacatalog.Datacatalog.GetOrReserveArtifactRequest.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.GetOrReserveArtifactRequest build() { + datacatalog.Datacatalog.GetOrReserveArtifactRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.GetOrReserveArtifactRequest buildPartial() { + datacatalog.Datacatalog.GetOrReserveArtifactRequest result = new datacatalog.Datacatalog.GetOrReserveArtifactRequest(this); + if (datasetIdBuilder_ == null) { + result.datasetId_ = datasetId_; + } else { + result.datasetId_ = datasetIdBuilder_.build(); + } + result.tagName_ = tagName_; + result.ownerId_ = ownerId_; + 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.GetOrReserveArtifactRequest) { + return mergeFrom((datacatalog.Datacatalog.GetOrReserveArtifactRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.GetOrReserveArtifactRequest other) { + if (other == datacatalog.Datacatalog.GetOrReserveArtifactRequest.getDefaultInstance()) return this; + if (other.hasDatasetId()) { + mergeDatasetId(other.getDatasetId()); + } + if (!other.getTagName().isEmpty()) { + tagName_ = other.tagName_; + onChanged(); + } + if (!other.getOwnerId().isEmpty()) { + ownerId_ = other.ownerId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.GetOrReserveArtifactRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.GetOrReserveArtifactRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private datacatalog.Datacatalog.DatasetID datasetId_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> datasetIdBuilder_; + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public boolean hasDatasetId() { + return datasetIdBuilder_ != null || datasetId_ != null; + } + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public datacatalog.Datacatalog.DatasetID getDatasetId() { + if (datasetIdBuilder_ == null) { + return datasetId_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : datasetId_; + } else { + return datasetIdBuilder_.getMessage(); + } + } + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public Builder setDatasetId(datacatalog.Datacatalog.DatasetID value) { + if (datasetIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + datasetId_ = value; + onChanged(); + } else { + datasetIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public Builder setDatasetId( + datacatalog.Datacatalog.DatasetID.Builder builderForValue) { + if (datasetIdBuilder_ == null) { + datasetId_ = builderForValue.build(); + onChanged(); + } else { + datasetIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public Builder mergeDatasetId(datacatalog.Datacatalog.DatasetID value) { + if (datasetIdBuilder_ == null) { + if (datasetId_ != null) { + datasetId_ = + datacatalog.Datacatalog.DatasetID.newBuilder(datasetId_).mergeFrom(value).buildPartial(); + } else { + datasetId_ = value; + } + onChanged(); + } else { + datasetIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public Builder clearDatasetId() { + if (datasetIdBuilder_ == null) { + datasetId_ = null; + onChanged(); + } else { + datasetId_ = null; + datasetIdBuilder_ = null; + } + + return this; + } + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public datacatalog.Datacatalog.DatasetID.Builder getDatasetIdBuilder() { + + onChanged(); + return getDatasetIdFieldBuilder().getBuilder(); + } + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetIdOrBuilder() { + if (datasetIdBuilder_ != null) { + return datasetIdBuilder_.getMessageOrBuilder(); + } else { + return datasetId_ == null ? + datacatalog.Datacatalog.DatasetID.getDefaultInstance() : datasetId_; + } + } + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> + getDatasetIdFieldBuilder() { + if (datasetIdBuilder_ == null) { + datasetIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder>( + getDatasetId(), + getParentForChildren(), + isClean()); + datasetId_ = null; + } + return datasetIdBuilder_; + } + + private java.lang.Object tagName_ = ""; + /** + * string tag_name = 2; + */ + public java.lang.String getTagName() { + java.lang.Object ref = tagName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tagName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string tag_name = 2; + */ + public com.google.protobuf.ByteString + getTagNameBytes() { + java.lang.Object ref = tagName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tagName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string tag_name = 2; + */ + public Builder setTagName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tagName_ = value; + onChanged(); + return this; + } + /** + * string tag_name = 2; + */ + public Builder clearTagName() { + + tagName_ = getDefaultInstance().getTagName(); + onChanged(); + return this; + } + /** + * string tag_name = 2; + */ + public Builder setTagNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tagName_ = value; + onChanged(); + return this; + } + + private java.lang.Object ownerId_ = ""; + /** + * string owner_id = 3; + */ + public java.lang.String getOwnerId() { + java.lang.Object ref = ownerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ownerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string owner_id = 3; + */ + public com.google.protobuf.ByteString + getOwnerIdBytes() { + java.lang.Object ref = ownerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ownerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string owner_id = 3; + */ + public Builder setOwnerId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ownerId_ = value; + onChanged(); + return this; + } + /** + * string owner_id = 3; + */ + public Builder clearOwnerId() { + + ownerId_ = getDefaultInstance().getOwnerId(); + onChanged(); + return this; + } + /** + * string owner_id = 3; + */ + public Builder setOwnerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ownerId_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.GetOrReserveArtifactRequest) + } + + // @@protoc_insertion_point(class_scope:datacatalog.GetOrReserveArtifactRequest) + private static final datacatalog.Datacatalog.GetOrReserveArtifactRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.GetOrReserveArtifactRequest(); + } + + public static datacatalog.Datacatalog.GetOrReserveArtifactRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOrReserveArtifactRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetOrReserveArtifactRequest(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.GetOrReserveArtifactRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReservationStatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.ReservationStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * .datacatalog.ReservationStatus.State state = 1; + */ + int getStateValue(); + /** + * .datacatalog.ReservationStatus.State state = 1; + */ + datacatalog.Datacatalog.ReservationStatus.State getState(); + + /** + * .datacatalog.Metadata metadata = 2; + */ + boolean hasMetadata(); + /** + * .datacatalog.Metadata metadata = 2; + */ + datacatalog.Datacatalog.Metadata getMetadata(); + /** + * .datacatalog.Metadata metadata = 2; + */ + datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder(); + + /** + * string owner_id = 3; + */ + java.lang.String getOwnerId(); + /** + * string owner_id = 3; + */ + com.google.protobuf.ByteString + getOwnerIdBytes(); + } + /** + *
+   * Whether we successfully reserve a spot.
+   * 
+ * + * Protobuf type {@code datacatalog.ReservationStatus} + */ + public static final class ReservationStatus extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.ReservationStatus) + ReservationStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReservationStatus.newBuilder() to construct. + private ReservationStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ReservationStatus() { + state_ = 0; + ownerId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ReservationStatus( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 18: { + datacatalog.Datacatalog.Metadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(datacatalog.Datacatalog.Metadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + ownerId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ReservationStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ReservationStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ReservationStatus.class, datacatalog.Datacatalog.ReservationStatus.Builder.class); + } + + /** + * Protobuf enum {@code datacatalog.ReservationStatus.State} + */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Acquired the reservation successfully.
+       * 
+ * + * ACQUIRED = 0; + */ + ACQUIRED(0), + /** + *
+       * Indicates an existing active reservation exist for a different owner_id.
+       * 
+ * + * ALREADY_IN_PROGRESS = 1; + */ + ALREADY_IN_PROGRESS(1), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Acquired the reservation successfully.
+       * 
+ * + * ACQUIRED = 0; + */ + public static final int ACQUIRED_VALUE = 0; + /** + *
+       * Indicates an existing active reservation exist for a different owner_id.
+       * 
+ * + * ALREADY_IN_PROGRESS = 1; + */ + public static final int ALREADY_IN_PROGRESS_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + public static State forNumber(int value) { + switch (value) { + case 0: return ACQUIRED; + case 1: return ALREADY_IN_PROGRESS; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return datacatalog.Datacatalog.ReservationStatus.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:datacatalog.ReservationStatus.State) + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_; + /** + * .datacatalog.ReservationStatus.State state = 1; + */ + public int getStateValue() { + return state_; + } + /** + * .datacatalog.ReservationStatus.State state = 1; + */ + public datacatalog.Datacatalog.ReservationStatus.State getState() { + @SuppressWarnings("deprecation") + datacatalog.Datacatalog.ReservationStatus.State result = datacatalog.Datacatalog.ReservationStatus.State.valueOf(state_); + return result == null ? datacatalog.Datacatalog.ReservationStatus.State.UNRECOGNIZED : result; + } + + public static final int METADATA_FIELD_NUMBER = 2; + private datacatalog.Datacatalog.Metadata metadata_; + /** + * .datacatalog.Metadata metadata = 2; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * .datacatalog.Metadata metadata = 2; + */ + public datacatalog.Datacatalog.Metadata getMetadata() { + return metadata_ == null ? datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; + } + /** + * .datacatalog.Metadata metadata = 2; + */ + public datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int OWNER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object ownerId_; + /** + * string owner_id = 3; + */ + public java.lang.String getOwnerId() { + java.lang.Object ref = ownerId_; + 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(); + ownerId_ = s; + return s; + } + } + /** + * string owner_id = 3; + */ + public com.google.protobuf.ByteString + getOwnerIdBytes() { + java.lang.Object ref = ownerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ownerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != datacatalog.Datacatalog.ReservationStatus.State.ACQUIRED.getNumber()) { + output.writeEnum(1, state_); + } + if (metadata_ != null) { + output.writeMessage(2, getMetadata()); + } + if (!getOwnerIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ownerId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ != datacatalog.Datacatalog.ReservationStatus.State.ACQUIRED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMetadata()); + } + if (!getOwnerIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ownerId_); + } + 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.ReservationStatus)) { + return super.equals(obj); + } + datacatalog.Datacatalog.ReservationStatus other = (datacatalog.Datacatalog.ReservationStatus) obj; + + if (state_ != other.state_) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (!getOwnerId() + .equals(other.getOwnerId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (37 * hash) + OWNER_ID_FIELD_NUMBER; + hash = (53 * hash) + getOwnerId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.ReservationStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ReservationStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ReservationStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ReservationStatus 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.ReservationStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ReservationStatus parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ReservationStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ReservationStatus 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.ReservationStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ReservationStatus 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.ReservationStatus parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ReservationStatus 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.ReservationStatus 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; + } + /** + *
+     * Whether we successfully reserve a spot.
+     * 
+ * + * Protobuf type {@code datacatalog.ReservationStatus} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.ReservationStatus) + datacatalog.Datacatalog.ReservationStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ReservationStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ReservationStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ReservationStatus.class, datacatalog.Datacatalog.ReservationStatus.Builder.class); + } + + // Construct using datacatalog.Datacatalog.ReservationStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + state_ = 0; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + ownerId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_ReservationStatus_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.ReservationStatus getDefaultInstanceForType() { + return datacatalog.Datacatalog.ReservationStatus.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.ReservationStatus build() { + datacatalog.Datacatalog.ReservationStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.ReservationStatus buildPartial() { + datacatalog.Datacatalog.ReservationStatus result = new datacatalog.Datacatalog.ReservationStatus(this); + result.state_ = state_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + result.ownerId_ = ownerId_; + 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.ReservationStatus) { + return mergeFrom((datacatalog.Datacatalog.ReservationStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.ReservationStatus other) { + if (other == datacatalog.Datacatalog.ReservationStatus.getDefaultInstance()) return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (!other.getOwnerId().isEmpty()) { + ownerId_ = other.ownerId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.ReservationStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.ReservationStatus) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int state_ = 0; + /** + * .datacatalog.ReservationStatus.State state = 1; + */ + public int getStateValue() { + return state_; + } + /** + * .datacatalog.ReservationStatus.State state = 1; + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + * .datacatalog.ReservationStatus.State state = 1; + */ + public datacatalog.Datacatalog.ReservationStatus.State getState() { + @SuppressWarnings("deprecation") + datacatalog.Datacatalog.ReservationStatus.State result = datacatalog.Datacatalog.ReservationStatus.State.valueOf(state_); + return result == null ? datacatalog.Datacatalog.ReservationStatus.State.UNRECOGNIZED : result; + } + /** + * .datacatalog.ReservationStatus.State state = 1; + */ + public Builder setState(datacatalog.Datacatalog.ReservationStatus.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .datacatalog.ReservationStatus.State state = 1; + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private datacatalog.Datacatalog.Metadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder> metadataBuilder_; + /** + * .datacatalog.Metadata metadata = 2; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * .datacatalog.Metadata metadata = 2; + */ + public datacatalog.Datacatalog.Metadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * .datacatalog.Metadata metadata = 2; + */ + public Builder setMetadata(datacatalog.Datacatalog.Metadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * .datacatalog.Metadata metadata = 2; + */ + public Builder setMetadata( + datacatalog.Datacatalog.Metadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .datacatalog.Metadata metadata = 2; + */ + public Builder mergeMetadata(datacatalog.Datacatalog.Metadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + datacatalog.Datacatalog.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .datacatalog.Metadata metadata = 2; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * .datacatalog.Metadata metadata = 2; + */ + public datacatalog.Datacatalog.Metadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * .datacatalog.Metadata metadata = 2; + */ + public datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; + } + } + /** + * .datacatalog.Metadata metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.lang.Object ownerId_ = ""; + /** + * string owner_id = 3; + */ + public java.lang.String getOwnerId() { + java.lang.Object ref = ownerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ownerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string owner_id = 3; + */ + public com.google.protobuf.ByteString + getOwnerIdBytes() { + java.lang.Object ref = ownerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ownerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string owner_id = 3; + */ + public Builder setOwnerId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ownerId_ = value; + onChanged(); + return this; + } + /** + * string owner_id = 3; + */ + public Builder clearOwnerId() { + + ownerId_ = getDefaultInstance().getOwnerId(); + onChanged(); + return this; + } + /** + * string owner_id = 3; + */ + public Builder setOwnerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ownerId_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.ReservationStatus) + } + + // @@protoc_insertion_point(class_scope:datacatalog.ReservationStatus) + private static final datacatalog.Datacatalog.ReservationStatus DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.ReservationStatus(); + } + + public static datacatalog.Datacatalog.ReservationStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReservationStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReservationStatus(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.ReservationStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetOrReserveArtifactResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.GetOrReserveArtifactResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .datacatalog.Artifact artifact = 1; + */ + boolean hasArtifact(); + /** + * .datacatalog.Artifact artifact = 1; + */ + datacatalog.Datacatalog.Artifact getArtifact(); + /** + * .datacatalog.Artifact artifact = 1; + */ + datacatalog.Datacatalog.ArtifactOrBuilder getArtifactOrBuilder(); + + /** + * .datacatalog.ReservationStatus reservation_status = 2; + */ + boolean hasReservationStatus(); + /** + * .datacatalog.ReservationStatus reservation_status = 2; + */ + datacatalog.Datacatalog.ReservationStatus getReservationStatus(); + /** + * .datacatalog.ReservationStatus reservation_status = 2; + */ + datacatalog.Datacatalog.ReservationStatusOrBuilder getReservationStatusOrBuilder(); + + public datacatalog.Datacatalog.GetOrReserveArtifactResponse.ValueCase getValueCase(); + } + /** + *
+   * Response to get artifact or reserve spot.
+   * 
+ * + * Protobuf type {@code datacatalog.GetOrReserveArtifactResponse} + */ + public static final class GetOrReserveArtifactResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.GetOrReserveArtifactResponse) + GetOrReserveArtifactResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetOrReserveArtifactResponse.newBuilder() to construct. + private GetOrReserveArtifactResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetOrReserveArtifactResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetOrReserveArtifactResponse( + 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.Artifact.Builder subBuilder = null; + if (valueCase_ == 1) { + subBuilder = ((datacatalog.Datacatalog.Artifact) value_).toBuilder(); + } + value_ = + input.readMessage(datacatalog.Datacatalog.Artifact.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((datacatalog.Datacatalog.Artifact) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 1; + break; + } + case 18: { + datacatalog.Datacatalog.ReservationStatus.Builder subBuilder = null; + if (valueCase_ == 2) { + subBuilder = ((datacatalog.Datacatalog.ReservationStatus) value_).toBuilder(); + } + value_ = + input.readMessage(datacatalog.Datacatalog.ReservationStatus.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((datacatalog.Datacatalog.ReservationStatus) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 2; + 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_GetOrReserveArtifactResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetOrReserveArtifactResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.GetOrReserveArtifactResponse.class, datacatalog.Datacatalog.GetOrReserveArtifactResponse.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + public enum ValueCase + implements com.google.protobuf.Internal.EnumLite { + ARTIFACT(1), + RESERVATION_STATUS(2), + VALUE_NOT_SET(0); + private final int value; + private ValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: return ARTIFACT; + case 2: return RESERVATION_STATUS; + case 0: return VALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public static final int ARTIFACT_FIELD_NUMBER = 1; + /** + * .datacatalog.Artifact artifact = 1; + */ + public boolean hasArtifact() { + return valueCase_ == 1; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public datacatalog.Datacatalog.Artifact getArtifact() { + if (valueCase_ == 1) { + return (datacatalog.Datacatalog.Artifact) value_; + } + return datacatalog.Datacatalog.Artifact.getDefaultInstance(); + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public datacatalog.Datacatalog.ArtifactOrBuilder getArtifactOrBuilder() { + if (valueCase_ == 1) { + return (datacatalog.Datacatalog.Artifact) value_; + } + return datacatalog.Datacatalog.Artifact.getDefaultInstance(); + } + + public static final int RESERVATION_STATUS_FIELD_NUMBER = 2; + /** + * .datacatalog.ReservationStatus reservation_status = 2; + */ + public boolean hasReservationStatus() { + return valueCase_ == 2; + } + /** + * .datacatalog.ReservationStatus reservation_status = 2; + */ + public datacatalog.Datacatalog.ReservationStatus getReservationStatus() { + if (valueCase_ == 2) { + return (datacatalog.Datacatalog.ReservationStatus) value_; + } + return datacatalog.Datacatalog.ReservationStatus.getDefaultInstance(); + } + /** + * .datacatalog.ReservationStatus reservation_status = 2; + */ + public datacatalog.Datacatalog.ReservationStatusOrBuilder getReservationStatusOrBuilder() { + if (valueCase_ == 2) { + return (datacatalog.Datacatalog.ReservationStatus) value_; + } + return datacatalog.Datacatalog.ReservationStatus.getDefaultInstance(); + } + + 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 (valueCase_ == 1) { + output.writeMessage(1, (datacatalog.Datacatalog.Artifact) value_); + } + if (valueCase_ == 2) { + output.writeMessage(2, (datacatalog.Datacatalog.ReservationStatus) value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (datacatalog.Datacatalog.Artifact) value_); + } + if (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (datacatalog.Datacatalog.ReservationStatus) value_); + } + 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.GetOrReserveArtifactResponse)) { + return super.equals(obj); + } + datacatalog.Datacatalog.GetOrReserveArtifactResponse other = (datacatalog.Datacatalog.GetOrReserveArtifactResponse) obj; + + if (!getValueCase().equals(other.getValueCase())) return false; + switch (valueCase_) { + case 1: + if (!getArtifact() + .equals(other.getArtifact())) return false; + break; + case 2: + if (!getReservationStatus() + .equals(other.getReservationStatus())) 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(); + switch (valueCase_) { + case 1: + hash = (37 * hash) + ARTIFACT_FIELD_NUMBER; + hash = (53 * hash) + getArtifact().hashCode(); + break; + case 2: + hash = (37 * hash) + RESERVATION_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getReservationStatus().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.GetOrReserveArtifactResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetOrReserveArtifactResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetOrReserveArtifactResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetOrReserveArtifactResponse 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.GetOrReserveArtifactResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetOrReserveArtifactResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetOrReserveArtifactResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetOrReserveArtifactResponse 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.GetOrReserveArtifactResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetOrReserveArtifactResponse 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.GetOrReserveArtifactResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetOrReserveArtifactResponse 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.GetOrReserveArtifactResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Response to get artifact or reserve spot.
+     * 
+ * + * Protobuf type {@code datacatalog.GetOrReserveArtifactResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.GetOrReserveArtifactResponse) + datacatalog.Datacatalog.GetOrReserveArtifactResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetOrReserveArtifactResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetOrReserveArtifactResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.GetOrReserveArtifactResponse.class, datacatalog.Datacatalog.GetOrReserveArtifactResponse.Builder.class); + } + + // Construct using datacatalog.Datacatalog.GetOrReserveArtifactResponse.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(); + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetOrReserveArtifactResponse_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.GetOrReserveArtifactResponse getDefaultInstanceForType() { + return datacatalog.Datacatalog.GetOrReserveArtifactResponse.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.GetOrReserveArtifactResponse build() { + datacatalog.Datacatalog.GetOrReserveArtifactResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.GetOrReserveArtifactResponse buildPartial() { + datacatalog.Datacatalog.GetOrReserveArtifactResponse result = new datacatalog.Datacatalog.GetOrReserveArtifactResponse(this); + if (valueCase_ == 1) { + if (artifactBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = artifactBuilder_.build(); + } + } + if (valueCase_ == 2) { + if (reservationStatusBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = reservationStatusBuilder_.build(); + } + } + result.valueCase_ = valueCase_; + 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.GetOrReserveArtifactResponse) { + return mergeFrom((datacatalog.Datacatalog.GetOrReserveArtifactResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.GetOrReserveArtifactResponse other) { + if (other == datacatalog.Datacatalog.GetOrReserveArtifactResponse.getDefaultInstance()) return this; + switch (other.getValueCase()) { + case ARTIFACT: { + mergeArtifact(other.getArtifact()); + break; + } + case RESERVATION_STATUS: { + mergeReservationStatus(other.getReservationStatus()); + break; + } + case VALUE_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.GetOrReserveArtifactResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.GetOrReserveArtifactResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int valueCase_ = 0; + private java.lang.Object value_; + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Artifact, datacatalog.Datacatalog.Artifact.Builder, datacatalog.Datacatalog.ArtifactOrBuilder> artifactBuilder_; + /** + * .datacatalog.Artifact artifact = 1; + */ + public boolean hasArtifact() { + return valueCase_ == 1; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public datacatalog.Datacatalog.Artifact getArtifact() { + if (artifactBuilder_ == null) { + if (valueCase_ == 1) { + return (datacatalog.Datacatalog.Artifact) value_; + } + return datacatalog.Datacatalog.Artifact.getDefaultInstance(); + } else { + if (valueCase_ == 1) { + return artifactBuilder_.getMessage(); + } + return datacatalog.Datacatalog.Artifact.getDefaultInstance(); + } + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public Builder setArtifact(datacatalog.Datacatalog.Artifact value) { + if (artifactBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + artifactBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public Builder setArtifact( + datacatalog.Datacatalog.Artifact.Builder builderForValue) { + if (artifactBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + artifactBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 1; + return this; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public Builder mergeArtifact(datacatalog.Datacatalog.Artifact value) { + if (artifactBuilder_ == null) { + if (valueCase_ == 1 && + value_ != datacatalog.Datacatalog.Artifact.getDefaultInstance()) { + value_ = datacatalog.Datacatalog.Artifact.newBuilder((datacatalog.Datacatalog.Artifact) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 1) { + artifactBuilder_.mergeFrom(value); + } + artifactBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public Builder clearArtifact() { + if (artifactBuilder_ == null) { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + } + artifactBuilder_.clear(); + } + return this; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public datacatalog.Datacatalog.Artifact.Builder getArtifactBuilder() { + return getArtifactFieldBuilder().getBuilder(); + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public datacatalog.Datacatalog.ArtifactOrBuilder getArtifactOrBuilder() { + if ((valueCase_ == 1) && (artifactBuilder_ != null)) { + return artifactBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 1) { + return (datacatalog.Datacatalog.Artifact) value_; + } + return datacatalog.Datacatalog.Artifact.getDefaultInstance(); + } + } + /** + * .datacatalog.Artifact artifact = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Artifact, datacatalog.Datacatalog.Artifact.Builder, datacatalog.Datacatalog.ArtifactOrBuilder> + getArtifactFieldBuilder() { + if (artifactBuilder_ == null) { + if (!(valueCase_ == 1)) { + value_ = datacatalog.Datacatalog.Artifact.getDefaultInstance(); + } + artifactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Artifact, datacatalog.Datacatalog.Artifact.Builder, datacatalog.Datacatalog.ArtifactOrBuilder>( + (datacatalog.Datacatalog.Artifact) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 1; + onChanged();; + return artifactBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.ReservationStatus, datacatalog.Datacatalog.ReservationStatus.Builder, datacatalog.Datacatalog.ReservationStatusOrBuilder> reservationStatusBuilder_; + /** + * .datacatalog.ReservationStatus reservation_status = 2; + */ + public boolean hasReservationStatus() { + return valueCase_ == 2; + } + /** + * .datacatalog.ReservationStatus reservation_status = 2; + */ + public datacatalog.Datacatalog.ReservationStatus getReservationStatus() { + if (reservationStatusBuilder_ == null) { + if (valueCase_ == 2) { + return (datacatalog.Datacatalog.ReservationStatus) value_; + } + return datacatalog.Datacatalog.ReservationStatus.getDefaultInstance(); + } else { + if (valueCase_ == 2) { + return reservationStatusBuilder_.getMessage(); + } + return datacatalog.Datacatalog.ReservationStatus.getDefaultInstance(); + } + } + /** + * .datacatalog.ReservationStatus reservation_status = 2; + */ + public Builder setReservationStatus(datacatalog.Datacatalog.ReservationStatus value) { + if (reservationStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + reservationStatusBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + /** + * .datacatalog.ReservationStatus reservation_status = 2; + */ + public Builder setReservationStatus( + datacatalog.Datacatalog.ReservationStatus.Builder builderForValue) { + if (reservationStatusBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + reservationStatusBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 2; + return this; + } + /** + * .datacatalog.ReservationStatus reservation_status = 2; + */ + public Builder mergeReservationStatus(datacatalog.Datacatalog.ReservationStatus value) { + if (reservationStatusBuilder_ == null) { + if (valueCase_ == 2 && + value_ != datacatalog.Datacatalog.ReservationStatus.getDefaultInstance()) { + value_ = datacatalog.Datacatalog.ReservationStatus.newBuilder((datacatalog.Datacatalog.ReservationStatus) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 2) { + reservationStatusBuilder_.mergeFrom(value); + } + reservationStatusBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + /** + * .datacatalog.ReservationStatus reservation_status = 2; + */ + public Builder clearReservationStatus() { + if (reservationStatusBuilder_ == null) { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + } + reservationStatusBuilder_.clear(); + } + return this; + } + /** + * .datacatalog.ReservationStatus reservation_status = 2; + */ + public datacatalog.Datacatalog.ReservationStatus.Builder getReservationStatusBuilder() { + return getReservationStatusFieldBuilder().getBuilder(); + } + /** + * .datacatalog.ReservationStatus reservation_status = 2; + */ + public datacatalog.Datacatalog.ReservationStatusOrBuilder getReservationStatusOrBuilder() { + if ((valueCase_ == 2) && (reservationStatusBuilder_ != null)) { + return reservationStatusBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 2) { + return (datacatalog.Datacatalog.ReservationStatus) value_; + } + return datacatalog.Datacatalog.ReservationStatus.getDefaultInstance(); + } + } + /** + * .datacatalog.ReservationStatus reservation_status = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.ReservationStatus, datacatalog.Datacatalog.ReservationStatus.Builder, datacatalog.Datacatalog.ReservationStatusOrBuilder> + getReservationStatusFieldBuilder() { + if (reservationStatusBuilder_ == null) { + if (!(valueCase_ == 2)) { + value_ = datacatalog.Datacatalog.ReservationStatus.getDefaultInstance(); + } + reservationStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.ReservationStatus, datacatalog.Datacatalog.ReservationStatus.Builder, datacatalog.Datacatalog.ReservationStatusOrBuilder>( + (datacatalog.Datacatalog.ReservationStatus) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 2; + onChanged();; + return reservationStatusBuilder_; + } + @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.GetOrReserveArtifactResponse) + } + + // @@protoc_insertion_point(class_scope:datacatalog.GetOrReserveArtifactResponse) + private static final datacatalog.Datacatalog.GetOrReserveArtifactResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.GetOrReserveArtifactResponse(); + } + + public static datacatalog.Datacatalog.GetOrReserveArtifactResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOrReserveArtifactResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetOrReserveArtifactResponse(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.GetOrReserveArtifactResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExtendReservationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.ExtendReservationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + boolean hasDatasetId(); + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + datacatalog.Datacatalog.DatasetID getDatasetId(); + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetIdOrBuilder(); + + /** + * string tag_name = 2; + */ + java.lang.String getTagName(); + /** + * string tag_name = 2; + */ + com.google.protobuf.ByteString + getTagNameBytes(); + + /** + * string owner_id = 3; + */ + java.lang.String getOwnerId(); + /** + * string owner_id = 3; + */ + com.google.protobuf.ByteString + getOwnerIdBytes(); + } + /** + *
+   * Request to extend reservation
+   * 
+ * + * Protobuf type {@code datacatalog.ExtendReservationRequest} + */ + public static final class ExtendReservationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.ExtendReservationRequest) + ExtendReservationRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExtendReservationRequest.newBuilder() to construct. + private ExtendReservationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExtendReservationRequest() { + tagName_ = ""; + ownerId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExtendReservationRequest( + 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 (datasetId_ != null) { + subBuilder = datasetId_.toBuilder(); + } + datasetId_ = input.readMessage(datacatalog.Datacatalog.DatasetID.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(datasetId_); + datasetId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + tagName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + ownerId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ExtendReservationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ExtendReservationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ExtendReservationRequest.class, datacatalog.Datacatalog.ExtendReservationRequest.Builder.class); + } + + public static final int DATASET_ID_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.DatasetID datasetId_; + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public boolean hasDatasetId() { + return datasetId_ != null; + } + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public datacatalog.Datacatalog.DatasetID getDatasetId() { + return datasetId_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : datasetId_; + } + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetIdOrBuilder() { + return getDatasetId(); + } + + public static final int TAG_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object tagName_; + /** + * string tag_name = 2; + */ + public java.lang.String getTagName() { + java.lang.Object ref = tagName_; + 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(); + tagName_ = s; + return s; + } + } + /** + * string tag_name = 2; + */ + public com.google.protobuf.ByteString + getTagNameBytes() { + java.lang.Object ref = tagName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tagName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OWNER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object ownerId_; + /** + * string owner_id = 3; + */ + public java.lang.String getOwnerId() { + java.lang.Object ref = ownerId_; + 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(); + ownerId_ = s; + return s; + } + } + /** + * string owner_id = 3; + */ + public com.google.protobuf.ByteString + getOwnerIdBytes() { + java.lang.Object ref = ownerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ownerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (datasetId_ != null) { + output.writeMessage(1, getDatasetId()); + } + if (!getTagNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tagName_); + } + if (!getOwnerIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ownerId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (datasetId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDatasetId()); + } + if (!getTagNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tagName_); + } + if (!getOwnerIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ownerId_); + } + 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.ExtendReservationRequest)) { + return super.equals(obj); + } + datacatalog.Datacatalog.ExtendReservationRequest other = (datacatalog.Datacatalog.ExtendReservationRequest) obj; + + if (hasDatasetId() != other.hasDatasetId()) return false; + if (hasDatasetId()) { + if (!getDatasetId() + .equals(other.getDatasetId())) return false; + } + if (!getTagName() + .equals(other.getTagName())) return false; + if (!getOwnerId() + .equals(other.getOwnerId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDatasetId()) { + hash = (37 * hash) + DATASET_ID_FIELD_NUMBER; + hash = (53 * hash) + getDatasetId().hashCode(); + } + hash = (37 * hash) + TAG_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTagName().hashCode(); + hash = (37 * hash) + OWNER_ID_FIELD_NUMBER; + hash = (53 * hash) + getOwnerId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.ExtendReservationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ExtendReservationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ExtendReservationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ExtendReservationRequest 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.ExtendReservationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ExtendReservationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ExtendReservationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ExtendReservationRequest 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.ExtendReservationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ExtendReservationRequest 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.ExtendReservationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ExtendReservationRequest 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.ExtendReservationRequest 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 to extend reservation
+     * 
+ * + * Protobuf type {@code datacatalog.ExtendReservationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.ExtendReservationRequest) + datacatalog.Datacatalog.ExtendReservationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ExtendReservationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ExtendReservationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ExtendReservationRequest.class, datacatalog.Datacatalog.ExtendReservationRequest.Builder.class); + } + + // Construct using datacatalog.Datacatalog.ExtendReservationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (datasetIdBuilder_ == null) { + datasetId_ = null; + } else { + datasetId_ = null; + datasetIdBuilder_ = null; + } + tagName_ = ""; + + ownerId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_ExtendReservationRequest_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.ExtendReservationRequest getDefaultInstanceForType() { + return datacatalog.Datacatalog.ExtendReservationRequest.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.ExtendReservationRequest build() { + datacatalog.Datacatalog.ExtendReservationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.ExtendReservationRequest buildPartial() { + datacatalog.Datacatalog.ExtendReservationRequest result = new datacatalog.Datacatalog.ExtendReservationRequest(this); + if (datasetIdBuilder_ == null) { + result.datasetId_ = datasetId_; + } else { + result.datasetId_ = datasetIdBuilder_.build(); + } + result.tagName_ = tagName_; + result.ownerId_ = ownerId_; + 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.ExtendReservationRequest) { + return mergeFrom((datacatalog.Datacatalog.ExtendReservationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.ExtendReservationRequest other) { + if (other == datacatalog.Datacatalog.ExtendReservationRequest.getDefaultInstance()) return this; + if (other.hasDatasetId()) { + mergeDatasetId(other.getDatasetId()); + } + if (!other.getTagName().isEmpty()) { + tagName_ = other.tagName_; + onChanged(); + } + if (!other.getOwnerId().isEmpty()) { + ownerId_ = other.ownerId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.ExtendReservationRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.ExtendReservationRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private datacatalog.Datacatalog.DatasetID datasetId_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> datasetIdBuilder_; + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public boolean hasDatasetId() { + return datasetIdBuilder_ != null || datasetId_ != null; + } + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public datacatalog.Datacatalog.DatasetID getDatasetId() { + if (datasetIdBuilder_ == null) { + return datasetId_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : datasetId_; + } else { + return datasetIdBuilder_.getMessage(); + } + } + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public Builder setDatasetId(datacatalog.Datacatalog.DatasetID value) { + if (datasetIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + datasetId_ = value; + onChanged(); + } else { + datasetIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public Builder setDatasetId( + datacatalog.Datacatalog.DatasetID.Builder builderForValue) { + if (datasetIdBuilder_ == null) { + datasetId_ = builderForValue.build(); + onChanged(); + } else { + datasetIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public Builder mergeDatasetId(datacatalog.Datacatalog.DatasetID value) { + if (datasetIdBuilder_ == null) { + if (datasetId_ != null) { + datasetId_ = + datacatalog.Datacatalog.DatasetID.newBuilder(datasetId_).mergeFrom(value).buildPartial(); + } else { + datasetId_ = value; + } + onChanged(); + } else { + datasetIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public Builder clearDatasetId() { + if (datasetIdBuilder_ == null) { + datasetId_ = null; + onChanged(); + } else { + datasetId_ = null; + datasetIdBuilder_ = null; + } + + return this; + } + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public datacatalog.Datacatalog.DatasetID.Builder getDatasetIdBuilder() { + + onChanged(); + return getDatasetIdFieldBuilder().getBuilder(); + } + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetIdOrBuilder() { + if (datasetIdBuilder_ != null) { + return datasetIdBuilder_.getMessageOrBuilder(); + } else { + return datasetId_ == null ? + datacatalog.Datacatalog.DatasetID.getDefaultInstance() : datasetId_; + } + } + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> + getDatasetIdFieldBuilder() { + if (datasetIdBuilder_ == null) { + datasetIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder>( + getDatasetId(), + getParentForChildren(), + isClean()); + datasetId_ = null; + } + return datasetIdBuilder_; + } + + private java.lang.Object tagName_ = ""; + /** + * string tag_name = 2; + */ + public java.lang.String getTagName() { + java.lang.Object ref = tagName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tagName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string tag_name = 2; + */ + public com.google.protobuf.ByteString + getTagNameBytes() { + java.lang.Object ref = tagName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tagName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string tag_name = 2; + */ + public Builder setTagName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tagName_ = value; + onChanged(); + return this; + } + /** + * string tag_name = 2; + */ + public Builder clearTagName() { + + tagName_ = getDefaultInstance().getTagName(); + onChanged(); + return this; + } + /** + * string tag_name = 2; + */ + public Builder setTagNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tagName_ = value; + onChanged(); + return this; + } + + private java.lang.Object ownerId_ = ""; + /** + * string owner_id = 3; + */ + public java.lang.String getOwnerId() { + java.lang.Object ref = ownerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ownerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string owner_id = 3; + */ + public com.google.protobuf.ByteString + getOwnerIdBytes() { + java.lang.Object ref = ownerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ownerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string owner_id = 3; + */ + public Builder setOwnerId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ownerId_ = value; + onChanged(); + return this; + } + /** + * string owner_id = 3; + */ + public Builder clearOwnerId() { + + ownerId_ = getDefaultInstance().getOwnerId(); + onChanged(); + return this; + } + /** + * string owner_id = 3; + */ + public Builder setOwnerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ownerId_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.ExtendReservationRequest) + } + + // @@protoc_insertion_point(class_scope:datacatalog.ExtendReservationRequest) + private static final datacatalog.Datacatalog.ExtendReservationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.ExtendReservationRequest(); + } + + public static datacatalog.Datacatalog.ExtendReservationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExtendReservationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExtendReservationRequest(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.ExtendReservationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExtendReservationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.ExtendReservationResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Response to extend reservation
+   * 
+ * + * Protobuf type {@code datacatalog.ExtendReservationResponse} + */ + public static final class ExtendReservationResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.ExtendReservationResponse) + ExtendReservationResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExtendReservationResponse.newBuilder() to construct. + private ExtendReservationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExtendReservationResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExtendReservationResponse( + 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_ExtendReservationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ExtendReservationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ExtendReservationResponse.class, datacatalog.Datacatalog.ExtendReservationResponse.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.ExtendReservationResponse)) { + return super.equals(obj); + } + datacatalog.Datacatalog.ExtendReservationResponse other = (datacatalog.Datacatalog.ExtendReservationResponse) 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.ExtendReservationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ExtendReservationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ExtendReservationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ExtendReservationResponse 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.ExtendReservationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ExtendReservationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ExtendReservationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ExtendReservationResponse 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.ExtendReservationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ExtendReservationResponse 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.ExtendReservationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ExtendReservationResponse 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.ExtendReservationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Response to extend reservation
+     * 
+ * + * Protobuf type {@code datacatalog.ExtendReservationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.ExtendReservationResponse) + datacatalog.Datacatalog.ExtendReservationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ExtendReservationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ExtendReservationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ExtendReservationResponse.class, datacatalog.Datacatalog.ExtendReservationResponse.Builder.class); + } + + // Construct using datacatalog.Datacatalog.ExtendReservationResponse.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_ExtendReservationResponse_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.ExtendReservationResponse getDefaultInstanceForType() { + return datacatalog.Datacatalog.ExtendReservationResponse.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.ExtendReservationResponse build() { + datacatalog.Datacatalog.ExtendReservationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.ExtendReservationResponse buildPartial() { + datacatalog.Datacatalog.ExtendReservationResponse result = new datacatalog.Datacatalog.ExtendReservationResponse(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.ExtendReservationResponse) { + return mergeFrom((datacatalog.Datacatalog.ExtendReservationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.ExtendReservationResponse other) { + if (other == datacatalog.Datacatalog.ExtendReservationResponse.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.ExtendReservationResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.ExtendReservationResponse) 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.ExtendReservationResponse) + } + + // @@protoc_insertion_point(class_scope:datacatalog.ExtendReservationResponse) + private static final datacatalog.Datacatalog.ExtendReservationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.ExtendReservationResponse(); + } + + public static datacatalog.Datacatalog.ExtendReservationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExtendReservationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExtendReservationResponse(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.ExtendReservationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReleaseReservationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.ReleaseReservationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + boolean hasDatasetId(); + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + datacatalog.Datacatalog.DatasetID getDatasetId(); + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetIdOrBuilder(); + + /** + * string tag_name = 2; + */ + java.lang.String getTagName(); + /** + * string tag_name = 2; + */ + com.google.protobuf.ByteString + getTagNameBytes(); + + /** + * string owner_id = 3; + */ + java.lang.String getOwnerId(); + /** + * string owner_id = 3; + */ + com.google.protobuf.ByteString + getOwnerIdBytes(); + } + /** + *
+   * Request to release reservation
+   * 
+ * + * Protobuf type {@code datacatalog.ReleaseReservationRequest} + */ + public static final class ReleaseReservationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.ReleaseReservationRequest) + ReleaseReservationRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReleaseReservationRequest.newBuilder() to construct. + private ReleaseReservationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ReleaseReservationRequest() { + tagName_ = ""; + ownerId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ReleaseReservationRequest( + 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 (datasetId_ != null) { + subBuilder = datasetId_.toBuilder(); + } + datasetId_ = input.readMessage(datacatalog.Datacatalog.DatasetID.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(datasetId_); + datasetId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + tagName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + ownerId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ReleaseReservationRequest.class, datacatalog.Datacatalog.ReleaseReservationRequest.Builder.class); + } + + public static final int DATASET_ID_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.DatasetID datasetId_; + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public boolean hasDatasetId() { + return datasetId_ != null; + } + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public datacatalog.Datacatalog.DatasetID getDatasetId() { + return datasetId_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : datasetId_; + } + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetIdOrBuilder() { + return getDatasetId(); + } + + public static final int TAG_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object tagName_; + /** + * string tag_name = 2; + */ + public java.lang.String getTagName() { + java.lang.Object ref = tagName_; + 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(); + tagName_ = s; + return s; + } + } + /** + * string tag_name = 2; + */ + public com.google.protobuf.ByteString + getTagNameBytes() { + java.lang.Object ref = tagName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tagName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OWNER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object ownerId_; + /** + * string owner_id = 3; + */ + public java.lang.String getOwnerId() { + java.lang.Object ref = ownerId_; + 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(); + ownerId_ = s; + return s; + } + } + /** + * string owner_id = 3; + */ + public com.google.protobuf.ByteString + getOwnerIdBytes() { + java.lang.Object ref = ownerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ownerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (datasetId_ != null) { + output.writeMessage(1, getDatasetId()); + } + if (!getTagNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tagName_); + } + if (!getOwnerIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ownerId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (datasetId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDatasetId()); + } + if (!getTagNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tagName_); + } + if (!getOwnerIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ownerId_); + } + 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.ReleaseReservationRequest)) { + return super.equals(obj); + } + datacatalog.Datacatalog.ReleaseReservationRequest other = (datacatalog.Datacatalog.ReleaseReservationRequest) obj; + + if (hasDatasetId() != other.hasDatasetId()) return false; + if (hasDatasetId()) { + if (!getDatasetId() + .equals(other.getDatasetId())) return false; + } + if (!getTagName() + .equals(other.getTagName())) return false; + if (!getOwnerId() + .equals(other.getOwnerId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDatasetId()) { + hash = (37 * hash) + DATASET_ID_FIELD_NUMBER; + hash = (53 * hash) + getDatasetId().hashCode(); + } + hash = (37 * hash) + TAG_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTagName().hashCode(); + hash = (37 * hash) + OWNER_ID_FIELD_NUMBER; + hash = (53 * hash) + getOwnerId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ReleaseReservationRequest 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.ReleaseReservationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ReleaseReservationRequest 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.ReleaseReservationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ReleaseReservationRequest 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.ReleaseReservationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ReleaseReservationRequest 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.ReleaseReservationRequest 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 to release reservation
+     * 
+ * + * Protobuf type {@code datacatalog.ReleaseReservationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.ReleaseReservationRequest) + datacatalog.Datacatalog.ReleaseReservationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ReleaseReservationRequest.class, datacatalog.Datacatalog.ReleaseReservationRequest.Builder.class); + } + + // Construct using datacatalog.Datacatalog.ReleaseReservationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (datasetIdBuilder_ == null) { + datasetId_ = null; + } else { + datasetId_ = null; + datasetIdBuilder_ = null; + } + tagName_ = ""; + + ownerId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationRequest_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.ReleaseReservationRequest getDefaultInstanceForType() { + return datacatalog.Datacatalog.ReleaseReservationRequest.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.ReleaseReservationRequest build() { + datacatalog.Datacatalog.ReleaseReservationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.ReleaseReservationRequest buildPartial() { + datacatalog.Datacatalog.ReleaseReservationRequest result = new datacatalog.Datacatalog.ReleaseReservationRequest(this); + if (datasetIdBuilder_ == null) { + result.datasetId_ = datasetId_; + } else { + result.datasetId_ = datasetIdBuilder_.build(); + } + result.tagName_ = tagName_; + result.ownerId_ = ownerId_; + 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.ReleaseReservationRequest) { + return mergeFrom((datacatalog.Datacatalog.ReleaseReservationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.ReleaseReservationRequest other) { + if (other == datacatalog.Datacatalog.ReleaseReservationRequest.getDefaultInstance()) return this; + if (other.hasDatasetId()) { + mergeDatasetId(other.getDatasetId()); + } + if (!other.getTagName().isEmpty()) { + tagName_ = other.tagName_; + onChanged(); + } + if (!other.getOwnerId().isEmpty()) { + ownerId_ = other.ownerId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.ReleaseReservationRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.ReleaseReservationRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private datacatalog.Datacatalog.DatasetID datasetId_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> datasetIdBuilder_; + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public boolean hasDatasetId() { + return datasetIdBuilder_ != null || datasetId_ != null; + } + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public datacatalog.Datacatalog.DatasetID getDatasetId() { + if (datasetIdBuilder_ == null) { + return datasetId_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : datasetId_; + } else { + return datasetIdBuilder_.getMessage(); + } + } + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public Builder setDatasetId(datacatalog.Datacatalog.DatasetID value) { + if (datasetIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + datasetId_ = value; + onChanged(); + } else { + datasetIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public Builder setDatasetId( + datacatalog.Datacatalog.DatasetID.Builder builderForValue) { + if (datasetIdBuilder_ == null) { + datasetId_ = builderForValue.build(); + onChanged(); + } else { + datasetIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public Builder mergeDatasetId(datacatalog.Datacatalog.DatasetID value) { + if (datasetIdBuilder_ == null) { + if (datasetId_ != null) { + datasetId_ = + datacatalog.Datacatalog.DatasetID.newBuilder(datasetId_).mergeFrom(value).buildPartial(); + } else { + datasetId_ = value; + } + onChanged(); + } else { + datasetIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public Builder clearDatasetId() { + if (datasetIdBuilder_ == null) { + datasetId_ = null; + onChanged(); + } else { + datasetId_ = null; + datasetIdBuilder_ = null; + } + + return this; + } + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public datacatalog.Datacatalog.DatasetID.Builder getDatasetIdBuilder() { + + onChanged(); + return getDatasetIdFieldBuilder().getBuilder(); + } + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetIdOrBuilder() { + if (datasetIdBuilder_ != null) { + return datasetIdBuilder_.getMessageOrBuilder(); + } else { + return datasetId_ == null ? + datacatalog.Datacatalog.DatasetID.getDefaultInstance() : datasetId_; + } + } + /** + * .datacatalog.DatasetID dataset_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> + getDatasetIdFieldBuilder() { + if (datasetIdBuilder_ == null) { + datasetIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder>( + getDatasetId(), + getParentForChildren(), + isClean()); + datasetId_ = null; + } + return datasetIdBuilder_; + } + + private java.lang.Object tagName_ = ""; + /** + * string tag_name = 2; + */ + public java.lang.String getTagName() { + java.lang.Object ref = tagName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tagName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string tag_name = 2; + */ + public com.google.protobuf.ByteString + getTagNameBytes() { + java.lang.Object ref = tagName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tagName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string tag_name = 2; + */ + public Builder setTagName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tagName_ = value; + onChanged(); + return this; + } + /** + * string tag_name = 2; + */ + public Builder clearTagName() { + + tagName_ = getDefaultInstance().getTagName(); + onChanged(); + return this; + } + /** + * string tag_name = 2; + */ + public Builder setTagNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tagName_ = value; + onChanged(); + return this; + } + + private java.lang.Object ownerId_ = ""; + /** + * string owner_id = 3; + */ + public java.lang.String getOwnerId() { + java.lang.Object ref = ownerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ownerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string owner_id = 3; + */ + public com.google.protobuf.ByteString + getOwnerIdBytes() { + java.lang.Object ref = ownerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ownerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string owner_id = 3; + */ + public Builder setOwnerId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ownerId_ = value; + onChanged(); + return this; + } + /** + * string owner_id = 3; + */ + public Builder clearOwnerId() { + + ownerId_ = getDefaultInstance().getOwnerId(); + onChanged(); + return this; + } + /** + * string owner_id = 3; + */ + public Builder setOwnerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ownerId_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.ReleaseReservationRequest) + } + + // @@protoc_insertion_point(class_scope:datacatalog.ReleaseReservationRequest) + private static final datacatalog.Datacatalog.ReleaseReservationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.ReleaseReservationRequest(); + } + + public static datacatalog.Datacatalog.ReleaseReservationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReleaseReservationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReleaseReservationRequest(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.ReleaseReservationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReleaseReservationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.ReleaseReservationResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Response to release reservation
+   * 
+ * + * Protobuf type {@code datacatalog.ReleaseReservationResponse} + */ + public static final class ReleaseReservationResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.ReleaseReservationResponse) + ReleaseReservationResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReleaseReservationResponse.newBuilder() to construct. + private ReleaseReservationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ReleaseReservationResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ReleaseReservationResponse( + 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_ReleaseReservationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ReleaseReservationResponse.class, datacatalog.Datacatalog.ReleaseReservationResponse.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.ReleaseReservationResponse)) { + return super.equals(obj); + } + datacatalog.Datacatalog.ReleaseReservationResponse other = (datacatalog.Datacatalog.ReleaseReservationResponse) 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.ReleaseReservationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ReleaseReservationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ReleaseReservationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ReleaseReservationResponse 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.ReleaseReservationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ReleaseReservationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ReleaseReservationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ReleaseReservationResponse 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.ReleaseReservationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ReleaseReservationResponse 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.ReleaseReservationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ReleaseReservationResponse 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.ReleaseReservationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Response to release reservation
+     * 
+ * + * Protobuf type {@code datacatalog.ReleaseReservationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.ReleaseReservationResponse) + datacatalog.Datacatalog.ReleaseReservationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ReleaseReservationResponse.class, datacatalog.Datacatalog.ReleaseReservationResponse.Builder.class); + } + + // Construct using datacatalog.Datacatalog.ReleaseReservationResponse.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_ReleaseReservationResponse_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.ReleaseReservationResponse getDefaultInstanceForType() { + return datacatalog.Datacatalog.ReleaseReservationResponse.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.ReleaseReservationResponse build() { + datacatalog.Datacatalog.ReleaseReservationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.ReleaseReservationResponse buildPartial() { + datacatalog.Datacatalog.ReleaseReservationResponse result = new datacatalog.Datacatalog.ReleaseReservationResponse(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.ReleaseReservationResponse) { + return mergeFrom((datacatalog.Datacatalog.ReleaseReservationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.ReleaseReservationResponse other) { + if (other == datacatalog.Datacatalog.ReleaseReservationResponse.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.ReleaseReservationResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.ReleaseReservationResponse) 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.ReleaseReservationResponse) + } + + // @@protoc_insertion_point(class_scope:datacatalog.ReleaseReservationResponse) + private static final datacatalog.Datacatalog.ReleaseReservationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.ReleaseReservationResponse(); + } + + public static datacatalog.Datacatalog.ReleaseReservationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReleaseReservationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReleaseReservationResponse(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.ReleaseReservationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + public interface DatasetOrBuilder extends // @@protoc_insertion_point(interface_extends:datacatalog.Dataset) com.google.protobuf.MessageOrBuilder { @@ -25758,6 +31141,41 @@ 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_GetOrReserveArtifactRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_GetOrReserveArtifactRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_ReservationStatus_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_ReservationStatus_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_GetOrReserveArtifactResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_GetOrReserveArtifactResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_ExtendReservationRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_ExtendReservationRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_ExtendReservationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_ExtendReservationResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_ReleaseReservationRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_ReleaseReservationRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_ReleaseReservationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_ReleaseReservationResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_datacatalog_Dataset_descriptor; private static final @@ -25849,94 +31267,120 @@ public datacatalog.Datacatalog.PaginationOptions getDefaultInstanceForType() { java.lang.String[] descriptorData = { "\n&flyteidl/datacatalog/datacatalog.proto" + "\022\013datacatalog\032\034flyteidl/core/literals.pr" + - "oto\032\037google/protobuf/timestamp.proto\"=\n\024" + - "CreateDatasetRequest\022%\n\007dataset\030\001 \001(\0132\024." + - "datacatalog.Dataset\"\027\n\025CreateDatasetResp" + - "onse\"<\n\021GetDatasetRequest\022\'\n\007dataset\030\001 \001" + - "(\0132\026.datacatalog.DatasetID\";\n\022GetDataset" + - "Response\022%\n\007dataset\030\001 \001(\0132\024.datacatalog." + - "Dataset\"x\n\022GetArtifactRequest\022\'\n\007dataset" + - "\030\001 \001(\0132\026.datacatalog.DatasetID\022\025\n\013artifa" + - "ct_id\030\002 \001(\tH\000\022\022\n\010tag_name\030\003 \001(\tH\000B\016\n\014que" + - "ry_handle\">\n\023GetArtifactResponse\022\'\n\010arti" + - "fact\030\001 \001(\0132\025.datacatalog.Artifact\"@\n\025Cre" + - "ateArtifactRequest\022\'\n\010artifact\030\001 \001(\0132\025.d" + - "atacatalog.Artifact\"\030\n\026CreateArtifactRes" + - "ponse\".\n\rAddTagRequest\022\035\n\003tag\030\001 \001(\0132\020.da" + - "tacatalog.Tag\"\020\n\016AddTagResponse\"\242\001\n\024List" + - "ArtifactsRequest\022\'\n\007dataset\030\001 \001(\0132\026.data" + - "catalog.DatasetID\022-\n\006filter\030\002 \001(\0132\035.data" + - "catalog.FilterExpression\0222\n\npagination\030\003" + - " \001(\0132\036.datacatalog.PaginationOptions\"U\n\025" + - "ListArtifactsResponse\022(\n\tartifacts\030\001 \003(\013" + - "2\025.datacatalog.Artifact\022\022\n\nnext_token\030\002 " + - "\001(\t\"x\n\023ListDatasetsRequest\022-\n\006filter\030\001 \001" + - "(\0132\035.datacatalog.FilterExpression\0222\n\npag" + - "ination\030\002 \001(\0132\036.datacatalog.PaginationOp" + - "tions\"R\n\024ListDatasetsResponse\022&\n\010dataset" + - "s\030\001 \003(\0132\024.datacatalog.Dataset\022\022\n\nnext_to" + - "ken\030\002 \001(\t\"m\n\007Dataset\022\"\n\002id\030\001 \001(\0132\026.datac" + - "atalog.DatasetID\022\'\n\010metadata\030\002 \001(\0132\025.dat" + - "acatalog.Metadata\022\025\n\rpartitionKeys\030\003 \003(\t" + - "\"\'\n\tPartition\022\013\n\003key\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\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\010metadata\030\004 \001(\0132\025.datacatalog.Metadata" + - "\022*\n\npartitions\030\005 \003(\0132\026.datacatalog.Parti" + - "tion\022\036\n\004tags\030\006 \003(\0132\020.datacatalog.Tag\022.\n\n" + - "created_at\030\007 \001(\0132\032.google.protobuf.Times" + - "tamp\"C\n\014ArtifactData\022\014\n\004name\030\001 \001(\t\022%\n\005va" + - "lue\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\007d" + - "ataset\030\003 \001(\0132\026.datacatalog.DatasetID\"m\n\010" + - "Metadata\0222\n\007key_map\030\001 \003(\0132!.datacatalog." + - "Metadata.KeyMapEntry\032-\n\013KeyMapEntry\022\013\n\003k" + - "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"F\n\020FilterExp" + - "ression\0222\n\007filters\030\001 \003(\0132!.datacatalog.S" + - "inglePropertyFilter\"\211\003\n\024SinglePropertyFi" + - "lter\0224\n\ntag_filter\030\001 \001(\0132\036.datacatalog.T" + - "agPropertyFilterH\000\022@\n\020partition_filter\030\002" + - " \001(\0132$.datacatalog.PartitionPropertyFilt" + - "erH\000\022>\n\017artifact_filter\030\003 \001(\0132#.datacata" + - "log.ArtifactPropertyFilterH\000\022<\n\016dataset_" + - "filter\030\004 \001(\0132\".datacatalog.DatasetProper" + - "tyFilterH\000\022F\n\010operator\030\n \001(\01624.datacatal" + - "og.SinglePropertyFilter.ComparisonOperat" + - "or\" \n\022ComparisonOperator\022\n\n\006EQUALS\020\000B\021\n\017" + - "property_filter\";\n\026ArtifactPropertyFilte" + - "r\022\025\n\013artifact_id\030\001 \001(\tH\000B\n\n\010property\"3\n\021" + - "TagPropertyFilter\022\022\n\010tag_name\030\001 \001(\tH\000B\n\n" + - "\010property\"S\n\027PartitionPropertyFilter\022,\n\007" + - "key_val\030\001 \001(\0132\031.datacatalog.KeyValuePair" + - "H\000B\n\n\010property\"*\n\014KeyValuePair\022\013\n\003key\030\001 " + - "\001(\t\022\r\n\005value\030\002 \001(\t\"k\n\025DatasetPropertyFil" + - "ter\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\010p" + - "roperty\"\361\001\n\021PaginationOptions\022\r\n\005limit\030\001" + - " \001(\r\022\r\n\005token\030\002 \001(\t\0227\n\007sortKey\030\003 \001(\0162&.d" + - "atacatalog.PaginationOptions.SortKey\022;\n\t" + - "sortOrder\030\004 \001(\0162(.datacatalog.Pagination" + - "Options.SortOrder\"*\n\tSortOrder\022\016\n\nDESCEN" + - "DING\020\000\022\r\n\tASCENDING\020\001\"\034\n\007SortKey\022\021\n\rCREA" + - "TION_TIME\020\0002\321\004\n\013DataCatalog\022V\n\rCreateDat" + - "aset\022!.datacatalog.CreateDatasetRequest\032" + - "\".datacatalog.CreateDatasetResponse\022M\n\nG" + - "etDataset\022\036.datacatalog.GetDatasetReques" + - "t\032\037.datacatalog.GetDatasetResponse\022Y\n\016Cr" + - "eateArtifact\022\".datacatalog.CreateArtifac" + - "tRequest\032#.datacatalog.CreateArtifactRes" + - "ponse\022P\n\013GetArtifact\022\037.datacatalog.GetAr" + - "tifactRequest\032 .datacatalog.GetArtifactR" + - "esponse\022A\n\006AddTag\022\032.datacatalog.AddTagRe" + - "quest\032\033.datacatalog.AddTagResponse\022V\n\rLi" + - "stArtifacts\022!.datacatalog.ListArtifactsR" + - "equest\032\".datacatalog.ListArtifactsRespon" + - "se\022S\n\014ListDatasets\022 .datacatalog.ListDat" + - "asetsRequest\032!.datacatalog.ListDatasetsR" + - "esponseb\006proto3" + "oto\032\036google/protobuf/duration.proto\032\037goo" + + "gle/protobuf/timestamp.proto\"=\n\024CreateDa" + + "tasetRequest\022%\n\007dataset\030\001 \001(\0132\024.datacata" + + "log.Dataset\"\027\n\025CreateDatasetResponse\"<\n\021" + + "GetDatasetRequest\022\'\n\007dataset\030\001 \001(\0132\026.dat" + + "acatalog.DatasetID\";\n\022GetDatasetResponse" + + "\022%\n\007dataset\030\001 \001(\0132\024.datacatalog.Dataset\"" + + "x\n\022GetArtifactRequest\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\000B\016\n\014query_handl" + + "e\">\n\023GetArtifactResponse\022\'\n\010artifact\030\001 \001" + + "(\0132\025.datacatalog.Artifact\"@\n\025CreateArtif" + + "actRequest\022\'\n\010artifact\030\001 \001(\0132\025.datacatal" + + "og.Artifact\"\030\n\026CreateArtifactResponse\".\n" + + "\rAddTagRequest\022\035\n\003tag\030\001 \001(\0132\020.datacatalo" + + "g.Tag\"\020\n\016AddTagResponse\"\242\001\n\024ListArtifact" + + "sRequest\022\'\n\007dataset\030\001 \001(\0132\026.datacatalog." + + "DatasetID\022-\n\006filter\030\002 \001(\0132\035.datacatalog." + + "FilterExpression\0222\n\npagination\030\003 \001(\0132\036.d" + + "atacatalog.PaginationOptions\"U\n\025ListArti" + + "factsResponse\022(\n\tartifacts\030\001 \003(\0132\025.datac" + + "atalog.Artifact\022\022\n\nnext_token\030\002 \001(\t\"x\n\023L" + + "istDatasetsRequest\022-\n\006filter\030\001 \001(\0132\035.dat" + + "acatalog.FilterExpression\0222\n\npagination\030" + + "\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\033GetOrReserveArtifactRequest\022*\n\ndata" + + "set_id\030\001 \001(\0132\026.datacatalog.DatasetID\022\020\n\010" + + "tag_name\030\002 \001(\t\022\020\n\010owner_id\030\003 \001(\t\"\263\001\n\021Res" + + "ervationStatus\0223\n\005state\030\001 \001(\0162$.datacata" + + "log.ReservationStatus.State\022\'\n\010metadata\030" + + "\002 \001(\0132\025.datacatalog.Metadata\022\020\n\010owner_id" + + "\030\003 \001(\t\".\n\005State\022\014\n\010ACQUIRED\020\000\022\027\n\023ALREADY" + + "_IN_PROGRESS\020\001\"\220\001\n\034GetOrReserveArtifactR" + + "esponse\022)\n\010artifact\030\001 \001(\0132\025.datacatalog." + + "ArtifactH\000\022<\n\022reservation_status\030\002 \001(\0132\036" + + ".datacatalog.ReservationStatusH\000B\007\n\005valu" + + "e\"j\n\030ExtendReservationRequest\022*\n\ndataset" + + "_id\030\001 \001(\0132\026.datacatalog.DatasetID\022\020\n\010tag" + + "_name\030\002 \001(\t\022\020\n\010owner_id\030\003 \001(\t\"\033\n\031ExtendR" + + "eservationResponse\"k\n\031ReleaseReservation" + + "Request\022*\n\ndataset_id\030\001 \001(\0132\026.datacatalo" + + "g.DatasetID\022\020\n\010tag_name\030\002 \001(\t\022\020\n\010owner_i" + + "d\030\003 \001(\t\"\034\n\032ReleaseReservationResponse\"m\n" + + "\007Dataset\022\"\n\002id\030\001 \001(\0132\026.datacatalog.Datas" + + "etID\022\'\n\010metadata\030\002 \001(\0132\025.datacatalog.Met" + + "adata\022\025\n\rpartitionKeys\030\003 \003(\t\"\'\n\tPartitio" + + "n\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"Y\n\tDataset" + + "ID\022\017\n\007project\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\016\n\006dom" + + "ain\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(\013" + + "2\031.datacatalog.ArtifactData\022\'\n\010metadata\030" + + "\004 \001(\0132\025.datacatalog.Metadata\022*\n\npartitio" + + "ns\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\014Arti" + + "factData\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(\013" + + "2\026.datacatalog.DatasetID\"m\n\010Metadata\0222\n\007" + + "key_map\030\001 \003(\0132!.datacatalog.Metadata.Key" + + "MapEntry\032-\n\013KeyMapEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\"F\n\020FilterExpression\0222\n\007f" + + "ilters\030\001 \003(\0132!.datacatalog.SinglePropert" + + "yFilter\"\211\003\n\024SinglePropertyFilter\0224\n\ntag_" + + "filter\030\001 \001(\0132\036.datacatalog.TagPropertyFi" + + "lterH\000\022@\n\020partition_filter\030\002 \001(\0132$.datac" + + "atalog.PartitionPropertyFilterH\000\022>\n\017arti" + + "fact_filter\030\003 \001(\0132#.datacatalog.Artifact" + + "PropertyFilterH\000\022<\n\016dataset_filter\030\004 \001(\013" + + "2\".datacatalog.DatasetPropertyFilterH\000\022F" + + "\n\010operator\030\n \001(\01624.datacatalog.SinglePro" + + "pertyFilter.ComparisonOperator\" \n\022Compar" + + "isonOperator\022\n\n\006EQUALS\020\000B\021\n\017property_fil" + + "ter\";\n\026ArtifactPropertyFilter\022\025\n\013artifac" + + "t_id\030\001 \001(\tH\000B\n\n\010property\"3\n\021TagPropertyF" + + "ilter\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\010proper" + + "ty\"*\n\014KeyValuePair\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\030\002 \001(\t\"k\n\025DatasetPropertyFilter\022\021\n\007proje" + + "ct\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\021" + + "PaginationOptions\022\r\n\005limit\030\001 \001(\r\022\r\n\005toke" + + "n\030\002 \001(\t\0227\n\007sortKey\030\003 \001(\0162&.datacatalog.P" + + "aginationOptions.SortKey\022;\n\tsortOrder\030\004 " + + "\001(\0162(.datacatalog.PaginationOptions.Sort" + + "Order\"*\n\tSortOrder\022\016\n\nDESCENDING\020\000\022\r\n\tAS" + + "CENDING\020\001\"\034\n\007SortKey\022\021\n\rCREATION_TIME\020\0002" + + "\211\007\n\013DataCatalog\022V\n\rCreateDataset\022!.datac" + + "atalog.CreateDatasetRequest\032\".datacatalo" + + "g.CreateDatasetResponse\022M\n\nGetDataset\022\036." + + "datacatalog.GetDatasetRequest\032\037.datacata" + + "log.GetDatasetResponse\022Y\n\016CreateArtifact" + + "\022\".datacatalog.CreateArtifactRequest\032#.d" + + "atacatalog.CreateArtifactResponse\022P\n\013Get" + + "Artifact\022\037.datacatalog.GetArtifactReques" + + "t\032 .datacatalog.GetArtifactResponse\022A\n\006A" + + "ddTag\022\032.datacatalog.AddTagRequest\032\033.data" + + "catalog.AddTagResponse\022V\n\rListArtifacts\022" + + "!.datacatalog.ListArtifactsRequest\032\".dat" + + "acatalog.ListArtifactsResponse\022S\n\014ListDa" + + "tasets\022 .datacatalog.ListDatasetsRequest" + + "\032!.datacatalog.ListDatasetsResponse\022k\n\024G" + + "etOrReserveArtifact\022(.datacatalog.GetOrR" + + "eserveArtifactRequest\032).datacatalog.GetO" + + "rReserveArtifactResponse\022b\n\021ExtendReserv" + + "ation\022%.datacatalog.ExtendReservationReq" + + "uest\032&.datacatalog.ExtendReservationResp" + + "onse\022e\n\022ReleaseReservation\022&.datacatalog" + + ".ReleaseReservationRequest\032\'.datacatalog" + + ".ReleaseReservationResponseb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -25950,6 +31394,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { flyteidl.core.Literals.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }, assigner); internal_static_datacatalog_CreateDatasetRequest_descriptor = @@ -26036,44 +31481,86 @@ 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_Dataset_descriptor = + internal_static_datacatalog_GetOrReserveArtifactRequest_descriptor = getDescriptor().getMessageTypes().get(14); + internal_static_datacatalog_GetOrReserveArtifactRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_GetOrReserveArtifactRequest_descriptor, + new java.lang.String[] { "DatasetId", "TagName", "OwnerId", }); + internal_static_datacatalog_ReservationStatus_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_datacatalog_ReservationStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_ReservationStatus_descriptor, + new java.lang.String[] { "State", "Metadata", "OwnerId", }); + internal_static_datacatalog_GetOrReserveArtifactResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_datacatalog_GetOrReserveArtifactResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_GetOrReserveArtifactResponse_descriptor, + new java.lang.String[] { "Artifact", "ReservationStatus", "Value", }); + internal_static_datacatalog_ExtendReservationRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_datacatalog_ExtendReservationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_ExtendReservationRequest_descriptor, + new java.lang.String[] { "DatasetId", "TagName", "OwnerId", }); + internal_static_datacatalog_ExtendReservationResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_datacatalog_ExtendReservationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_ExtendReservationResponse_descriptor, + new java.lang.String[] { }); + internal_static_datacatalog_ReleaseReservationRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_datacatalog_ReleaseReservationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_ReleaseReservationRequest_descriptor, + new java.lang.String[] { "DatasetId", "TagName", "OwnerId", }); + internal_static_datacatalog_ReleaseReservationResponse_descriptor = + getDescriptor().getMessageTypes().get(20); + 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(21); 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(15); + getDescriptor().getMessageTypes().get(22); 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(16); + getDescriptor().getMessageTypes().get(23); 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(17); + getDescriptor().getMessageTypes().get(24); 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(18); + getDescriptor().getMessageTypes().get(25); 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(19); + getDescriptor().getMessageTypes().get(26); 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(20); + getDescriptor().getMessageTypes().get(27); internal_static_datacatalog_Metadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_Metadata_descriptor, @@ -26085,54 +31572,55 @@ 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(21); + getDescriptor().getMessageTypes().get(28); 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(22); + getDescriptor().getMessageTypes().get(29); 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(23); + getDescriptor().getMessageTypes().get(30); 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(24); + getDescriptor().getMessageTypes().get(31); 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(25); + getDescriptor().getMessageTypes().get(32); 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(26); + getDescriptor().getMessageTypes().get(33); 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(27); + getDescriptor().getMessageTypes().get(34); 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(28); + getDescriptor().getMessageTypes().get(35); internal_static_datacatalog_PaginationOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_PaginationOptions_descriptor, new java.lang.String[] { "Limit", "Token", "SortKey", "SortOrder", }); flyteidl.core.Literals.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/flyteidl/gen/pb-protodoc/flyteidl/datacatalog/datacatalog.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/datacatalog/datacatalog.proto.rst index a7ade52dfad..f559f98c1c5 100644 --- a/flyteidl/gen/pb-protodoc/flyteidl/datacatalog/datacatalog.proto.rst +++ b/flyteidl/gen/pb-protodoc/flyteidl/datacatalog/datacatalog.proto.rst @@ -8,7 +8,7 @@ datacatalog.proto datacatalog.CreateDatasetRequest -------------------------------- -`[datacatalog.CreateDatasetRequest proto] `_ +`[datacatalog.CreateDatasetRequest proto] `_ Request message for creating a Dataset. @@ -31,7 +31,7 @@ dataset datacatalog.CreateDatasetResponse --------------------------------- -`[datacatalog.CreateDatasetResponse proto] `_ +`[datacatalog.CreateDatasetResponse proto] `_ Response message for creating a Dataset @@ -48,7 +48,7 @@ Response message for creating a Dataset datacatalog.GetDatasetRequest ----------------------------- -`[datacatalog.GetDatasetRequest proto] `_ +`[datacatalog.GetDatasetRequest proto] `_ Request message for retrieving a Dataset. The Dataset is retrieved by it's unique identifier @@ -72,7 +72,7 @@ dataset datacatalog.GetDatasetResponse ------------------------------ -`[datacatalog.GetDatasetResponse proto] `_ +`[datacatalog.GetDatasetResponse proto] `_ Response message for retrieving a Dataset. The response will include the metadata for the @@ -96,7 +96,7 @@ dataset datacatalog.GetArtifactRequest ------------------------------ -`[datacatalog.GetArtifactRequest proto] `_ +`[datacatalog.GetArtifactRequest proto] `_ Request message for retrieving an Artifact. Retrieve an artifact based on a query handle that @@ -139,7 +139,7 @@ tag_name datacatalog.GetArtifactResponse ------------------------------- -`[datacatalog.GetArtifactResponse proto] `_ +`[datacatalog.GetArtifactResponse proto] `_ Response message for retrieving an Artifact. The result returned will include the artifact data @@ -163,7 +163,7 @@ artifact datacatalog.CreateArtifactRequest --------------------------------- -`[datacatalog.CreateArtifactRequest proto] `_ +`[datacatalog.CreateArtifactRequest proto] `_ Request message for creating an Artifact and its associated artifact Data. @@ -186,7 +186,7 @@ artifact datacatalog.CreateArtifactResponse ---------------------------------- -`[datacatalog.CreateArtifactResponse proto] `_ +`[datacatalog.CreateArtifactResponse proto] `_ Response message for creating an Artifact. @@ -203,7 +203,7 @@ Response message for creating an Artifact. datacatalog.AddTagRequest ------------------------- -`[datacatalog.AddTagRequest proto] `_ +`[datacatalog.AddTagRequest proto] `_ Request message for tagging an Artifact. @@ -226,7 +226,7 @@ tag datacatalog.AddTagResponse -------------------------- -`[datacatalog.AddTagResponse proto] `_ +`[datacatalog.AddTagResponse proto] `_ Response message for tagging an Artifact. @@ -243,7 +243,7 @@ Response message for tagging an Artifact. datacatalog.ListArtifactsRequest -------------------------------- -`[datacatalog.ListArtifactsRequest proto] `_ +`[datacatalog.ListArtifactsRequest proto] `_ List the artifacts that belong to the Dataset, optionally filtered using filtered expression. @@ -280,7 +280,7 @@ pagination datacatalog.ListArtifactsResponse --------------------------------- -`[datacatalog.ListArtifactsResponse proto] `_ +`[datacatalog.ListArtifactsResponse proto] `_ Response to list artifacts @@ -310,7 +310,7 @@ next_token datacatalog.ListDatasetsRequest ------------------------------- -`[datacatalog.ListDatasetsRequest proto] `_ +`[datacatalog.ListDatasetsRequest proto] `_ List the datasets for the given query @@ -340,7 +340,7 @@ pagination datacatalog.ListDatasetsResponse -------------------------------- -`[datacatalog.ListDatasetsResponse proto] `_ +`[datacatalog.ListDatasetsResponse proto] `_ List the datasets response with token for next pagination @@ -365,12 +365,234 @@ next_token +.. _api_msg_datacatalog.GetOrReserveArtifactRequest: + +datacatalog.GetOrReserveArtifactRequest +--------------------------------------- + +`[datacatalog.GetOrReserveArtifactRequest proto] `_ + +Get the Artifact or try to reserve a spot if the Artifact does not exist. + +.. code-block:: json + + { + "dataset_id": "{...}", + "tag_name": "...", + "owner_id": "..." + } + +.. _api_field_datacatalog.GetOrReserveArtifactRequest.dataset_id: + +dataset_id + (:ref:`datacatalog.DatasetID `) + +.. _api_field_datacatalog.GetOrReserveArtifactRequest.tag_name: + +tag_name + (`string `_) + +.. _api_field_datacatalog.GetOrReserveArtifactRequest.owner_id: + +owner_id + (`string `_) + + + +.. _api_msg_datacatalog.ReservationStatus: + +datacatalog.ReservationStatus +----------------------------- + +`[datacatalog.ReservationStatus proto] `_ + +Whether we successfully reserve a spot. + +.. code-block:: json + + { + "state": "...", + "metadata": "{...}", + "owner_id": "..." + } + +.. _api_field_datacatalog.ReservationStatus.state: + +state + (:ref:`datacatalog.ReservationStatus.State `) + +.. _api_field_datacatalog.ReservationStatus.metadata: + +metadata + (:ref:`datacatalog.Metadata `) + +.. _api_field_datacatalog.ReservationStatus.owner_id: + +owner_id + (`string `_) + + +.. _api_enum_datacatalog.ReservationStatus.State: + +Enum datacatalog.ReservationStatus.State +---------------------------------------- + +`[datacatalog.ReservationStatus.State proto] `_ + + +.. _api_enum_value_datacatalog.ReservationStatus.State.ACQUIRED: + +ACQUIRED + *(DEFAULT)* ⁣Acquired the reservation successfully. + + +.. _api_enum_value_datacatalog.ReservationStatus.State.ALREADY_IN_PROGRESS: + +ALREADY_IN_PROGRESS + ⁣Indicates an existing active reservation exist for a different owner_id. + + + +.. _api_msg_datacatalog.GetOrReserveArtifactResponse: + +datacatalog.GetOrReserveArtifactResponse +---------------------------------------- + +`[datacatalog.GetOrReserveArtifactResponse proto] `_ + +Response to get artifact or reserve spot. + +.. code-block:: json + + { + "artifact": "{...}", + "reservation_status": "{...}" + } + +.. _api_field_datacatalog.GetOrReserveArtifactResponse.artifact: + +artifact + (:ref:`datacatalog.Artifact `) + + + Only one of :ref:`artifact `, :ref:`reservation_status ` may be set. + +.. _api_field_datacatalog.GetOrReserveArtifactResponse.reservation_status: + +reservation_status + (:ref:`datacatalog.ReservationStatus `) + + + Only one of :ref:`artifact `, :ref:`reservation_status ` may be set. + + + +.. _api_msg_datacatalog.ExtendReservationRequest: + +datacatalog.ExtendReservationRequest +------------------------------------ + +`[datacatalog.ExtendReservationRequest proto] `_ + +Request to extend reservation + +.. code-block:: json + + { + "dataset_id": "{...}", + "tag_name": "...", + "owner_id": "..." + } + +.. _api_field_datacatalog.ExtendReservationRequest.dataset_id: + +dataset_id + (:ref:`datacatalog.DatasetID `) + +.. _api_field_datacatalog.ExtendReservationRequest.tag_name: + +tag_name + (`string `_) + +.. _api_field_datacatalog.ExtendReservationRequest.owner_id: + +owner_id + (`string `_) + + + +.. _api_msg_datacatalog.ExtendReservationResponse: + +datacatalog.ExtendReservationResponse +------------------------------------- + +`[datacatalog.ExtendReservationResponse proto] `_ + +Response to extend reservation + +.. code-block:: json + + {} + + + + +.. _api_msg_datacatalog.ReleaseReservationRequest: + +datacatalog.ReleaseReservationRequest +------------------------------------- + +`[datacatalog.ReleaseReservationRequest proto] `_ + +Request to release reservation + +.. code-block:: json + + { + "dataset_id": "{...}", + "tag_name": "...", + "owner_id": "..." + } + +.. _api_field_datacatalog.ReleaseReservationRequest.dataset_id: + +dataset_id + (:ref:`datacatalog.DatasetID `) + +.. _api_field_datacatalog.ReleaseReservationRequest.tag_name: + +tag_name + (`string `_) + +.. _api_field_datacatalog.ReleaseReservationRequest.owner_id: + +owner_id + (`string `_) + + + +.. _api_msg_datacatalog.ReleaseReservationResponse: + +datacatalog.ReleaseReservationResponse +-------------------------------------- + +`[datacatalog.ReleaseReservationResponse proto] `_ + +Response to release reservation + +.. code-block:: json + + {} + + + + .. _api_msg_datacatalog.Dataset: datacatalog.Dataset ------------------- -`[datacatalog.Dataset proto] `_ +`[datacatalog.Dataset proto] `_ Dataset message. It is uniquely identified by DatasetID. @@ -405,7 +627,7 @@ partitionKeys datacatalog.Partition --------------------- -`[datacatalog.Partition proto] `_ +`[datacatalog.Partition proto] `_ An artifact could have multiple partitions and each partition can have an arbitrary string key/value pair @@ -434,7 +656,7 @@ value datacatalog.DatasetID --------------------- -`[datacatalog.DatasetID proto] `_ +`[datacatalog.DatasetID proto] `_ DatasetID message that is composed of several string fields. @@ -481,7 +703,7 @@ UUID datacatalog.Artifact -------------------- -`[datacatalog.Artifact proto] `_ +`[datacatalog.Artifact proto] `_ Artifact message. It is composed of several string fields. @@ -540,7 +762,7 @@ created_at datacatalog.ArtifactData ------------------------ -`[datacatalog.ArtifactData proto] `_ +`[datacatalog.ArtifactData proto] `_ ArtifactData that belongs to an artifact @@ -569,7 +791,7 @@ value datacatalog.Tag --------------- -`[datacatalog.Tag proto] `_ +`[datacatalog.Tag proto] `_ Tag message that is unique to a Dataset. It is associated to a single artifact and @@ -605,7 +827,7 @@ dataset datacatalog.Metadata -------------------- -`[datacatalog.Metadata proto] `_ +`[datacatalog.Metadata proto] `_ Metadata representation for artifacts and datasets @@ -628,7 +850,7 @@ key_map datacatalog.FilterExpression ---------------------------- -`[datacatalog.FilterExpression proto] `_ +`[datacatalog.FilterExpression proto] `_ Filter expression that is composed of a combination of single filters @@ -650,7 +872,7 @@ filters datacatalog.SinglePropertyFilter -------------------------------- -`[datacatalog.SinglePropertyFilter proto] `_ +`[datacatalog.SinglePropertyFilter proto] `_ A single property to filter on. @@ -707,7 +929,7 @@ operator Enum datacatalog.SinglePropertyFilter.ComparisonOperator -------------------------------------------------------- -`[datacatalog.SinglePropertyFilter.ComparisonOperator proto] `_ +`[datacatalog.SinglePropertyFilter.ComparisonOperator proto] `_ as use-cases come up we can add more operators, ex: gte, like, not eq etc. @@ -722,7 +944,7 @@ EQUALS datacatalog.ArtifactPropertyFilter ---------------------------------- -`[datacatalog.ArtifactPropertyFilter proto] `_ +`[datacatalog.ArtifactPropertyFilter proto] `_ Artifact properties we can filter by @@ -746,7 +968,7 @@ artifact_id datacatalog.TagPropertyFilter ----------------------------- -`[datacatalog.TagPropertyFilter proto] `_ +`[datacatalog.TagPropertyFilter proto] `_ Tag properties we can filter by @@ -769,7 +991,7 @@ tag_name datacatalog.PartitionPropertyFilter ----------------------------------- -`[datacatalog.PartitionPropertyFilter proto] `_ +`[datacatalog.PartitionPropertyFilter proto] `_ Partition properties we can filter by @@ -792,7 +1014,7 @@ key_val datacatalog.KeyValuePair ------------------------ -`[datacatalog.KeyValuePair proto] `_ +`[datacatalog.KeyValuePair proto] `_ .. code-block:: json @@ -819,7 +1041,7 @@ value datacatalog.DatasetPropertyFilter --------------------------------- -`[datacatalog.DatasetPropertyFilter proto] `_ +`[datacatalog.DatasetPropertyFilter proto] `_ Dataset properties we can filter by @@ -871,7 +1093,7 @@ version datacatalog.PaginationOptions ----------------------------- -`[datacatalog.PaginationOptions proto] `_ +`[datacatalog.PaginationOptions proto] `_ Pagination options for making list requests @@ -914,7 +1136,7 @@ sortOrder Enum datacatalog.PaginationOptions.SortOrder -------------------------------------------- -`[datacatalog.PaginationOptions.SortOrder proto] `_ +`[datacatalog.PaginationOptions.SortOrder proto] `_ .. _api_enum_value_datacatalog.PaginationOptions.SortOrder.DESCENDING: @@ -933,7 +1155,7 @@ ASCENDING Enum datacatalog.PaginationOptions.SortKey ------------------------------------------ -`[datacatalog.PaginationOptions.SortKey proto] `_ +`[datacatalog.PaginationOptions.SortKey proto] `_ .. _api_enum_value_datacatalog.PaginationOptions.SortKey.CREATION_TIME: diff --git a/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py index 6d50252f259..261e49d0837 100644 --- a/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py +++ b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py @@ -14,6 +14,7 @@ from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 @@ -22,12 +23,34 @@ package='datacatalog', syntax='proto3', serialized_options=None, - serialized_pb=_b('\n&flyteidl/datacatalog/datacatalog.proto\x12\x0b\x64\x61tacatalog\x1a\x1c\x66lyteidl/core/literals.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\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\xd1\x04\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.ListDatasetsResponseb\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\"m\n\x1bGetOrReserveArtifactRequest\x12*\n\ndataset_id\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetID\x12\x10\n\x08tag_name\x18\x02 \x01(\t\x12\x10\n\x08owner_id\x18\x03 \x01(\t\"\xb3\x01\n\x11ReservationStatus\x12\x33\n\x05state\x18\x01 \x01(\x0e\x32$.datacatalog.ReservationStatus.State\x12\'\n\x08metadata\x18\x02 \x01(\x0b\x32\x15.datacatalog.Metadata\x12\x10\n\x08owner_id\x18\x03 \x01(\t\".\n\x05State\x12\x0c\n\x08\x41\x43QUIRED\x10\x00\x12\x17\n\x13\x41LREADY_IN_PROGRESS\x10\x01\"\x90\x01\n\x1cGetOrReserveArtifactResponse\x12)\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x15.datacatalog.ArtifactH\x00\x12<\n\x12reservation_status\x18\x02 \x01(\x0b\x32\x1e.datacatalog.ReservationStatusH\x00\x42\x07\n\x05value\"j\n\x18\x45xtendReservationRequest\x12*\n\ndataset_id\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetID\x12\x10\n\x08tag_name\x18\x02 \x01(\t\x12\x10\n\x08owner_id\x18\x03 \x01(\t\"\x1b\n\x19\x45xtendReservationResponse\"k\n\x19ReleaseReservationRequest\x12*\n\ndataset_id\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetID\x12\x10\n\x08tag_name\x18\x02 \x01(\t\x12\x10\n\x08owner_id\x18\x03 \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\x89\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\x12k\n\x14GetOrReserveArtifact\x12(.datacatalog.GetOrReserveArtifactRequest\x1a).datacatalog.GetOrReserveArtifactResponse\x12\x62\n\x11\x45xtendReservation\x12%.datacatalog.ExtendReservationRequest\x1a&.datacatalog.ExtendReservationResponse\x12\x65\n\x12ReleaseReservation\x12&.datacatalog.ReleaseReservationRequest\x1a\'.datacatalog.ReleaseReservationResponseb\x06proto3') , - dependencies=[flyteidl_dot_core_dot_literals__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) + dependencies=[flyteidl_dot_core_dot_literals__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) +_RESERVATIONSTATUS_STATE = _descriptor.EnumDescriptor( + name='State', + full_name='datacatalog.ReservationStatus.State', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='ACQUIRED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ALREADY_IN_PROGRESS', index=1, number=1, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=1408, + serialized_end=1454, +) +_sym_db.RegisterEnumDescriptor(_RESERVATIONSTATUS_STATE) + _SINGLEPROPERTYFILTER_COMPARISONOPERATOR = _descriptor.EnumDescriptor( name='ComparisonOperator', full_name='datacatalog.SinglePropertyFilter.ComparisonOperator', @@ -41,8 +64,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=2324, - serialized_end=2356, + serialized_start=3072, + serialized_end=3104, ) _sym_db.RegisterEnumDescriptor(_SINGLEPROPERTYFILTER_COMPARISONOPERATOR) @@ -63,8 +86,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=2899, - serialized_end=2941, + serialized_start=3647, + serialized_end=3689, ) _sym_db.RegisterEnumDescriptor(_PAGINATIONOPTIONS_SORTORDER) @@ -81,8 +104,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=2943, - serialized_end=2971, + serialized_start=3691, + serialized_end=3719, ) _sym_db.RegisterEnumDescriptor(_PAGINATIONOPTIONS_SORTKEY) @@ -113,8 +136,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=118, - serialized_end=179, + serialized_start=150, + serialized_end=211, ) @@ -137,8 +160,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=181, - serialized_end=204, + serialized_start=213, + serialized_end=236, ) @@ -168,8 +191,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=206, - serialized_end=266, + serialized_start=238, + serialized_end=298, ) @@ -199,8 +222,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=268, - serialized_end=327, + serialized_start=300, + serialized_end=359, ) @@ -247,8 +270,8 @@ name='query_handle', full_name='datacatalog.GetArtifactRequest.query_handle', index=0, containing_type=None, fields=[]), ], - serialized_start=329, - serialized_end=449, + serialized_start=361, + serialized_end=481, ) @@ -278,8 +301,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=451, - serialized_end=513, + serialized_start=483, + serialized_end=545, ) @@ -309,8 +332,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=515, - serialized_end=579, + serialized_start=547, + serialized_end=611, ) @@ -333,8 +356,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=581, - serialized_end=605, + serialized_start=613, + serialized_end=637, ) @@ -364,8 +387,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=607, - serialized_end=653, + serialized_start=639, + serialized_end=685, ) @@ -388,8 +411,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=655, - serialized_end=671, + serialized_start=687, + serialized_end=703, ) @@ -433,8 +456,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=674, - serialized_end=836, + serialized_start=706, + serialized_end=868, ) @@ -471,8 +494,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=838, - serialized_end=923, + serialized_start=870, + serialized_end=955, ) @@ -509,8 +532,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=925, - serialized_end=1045, + serialized_start=957, + serialized_end=1077, ) @@ -547,8 +570,278 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1047, - serialized_end=1129, + serialized_start=1079, + serialized_end=1161, +) + + +_GETORRESERVEARTIFACTREQUEST = _descriptor.Descriptor( + name='GetOrReserveArtifactRequest', + full_name='datacatalog.GetOrReserveArtifactRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='dataset_id', full_name='datacatalog.GetOrReserveArtifactRequest.dataset_id', 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='tag_name', full_name='datacatalog.GetOrReserveArtifactRequest.tag_name', 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='owner_id', full_name='datacatalog.GetOrReserveArtifactRequest.owner_id', 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1163, + serialized_end=1272, +) + + +_RESERVATIONSTATUS = _descriptor.Descriptor( + name='ReservationStatus', + full_name='datacatalog.ReservationStatus', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='state', full_name='datacatalog.ReservationStatus.state', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='metadata', full_name='datacatalog.ReservationStatus.metadata', index=1, + number=2, 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='owner_id', full_name='datacatalog.ReservationStatus.owner_id', 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _RESERVATIONSTATUS_STATE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1275, + serialized_end=1454, +) + + +_GETORRESERVEARTIFACTRESPONSE = _descriptor.Descriptor( + name='GetOrReserveArtifactResponse', + full_name='datacatalog.GetOrReserveArtifactResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='artifact', full_name='datacatalog.GetOrReserveArtifactResponse.artifact', 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='reservation_status', full_name='datacatalog.GetOrReserveArtifactResponse.reservation_status', index=1, + number=2, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='value', full_name='datacatalog.GetOrReserveArtifactResponse.value', + index=0, containing_type=None, fields=[]), + ], + serialized_start=1457, + serialized_end=1601, +) + + +_EXTENDRESERVATIONREQUEST = _descriptor.Descriptor( + name='ExtendReservationRequest', + full_name='datacatalog.ExtendReservationRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='dataset_id', full_name='datacatalog.ExtendReservationRequest.dataset_id', 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='tag_name', full_name='datacatalog.ExtendReservationRequest.tag_name', 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='owner_id', full_name='datacatalog.ExtendReservationRequest.owner_id', 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1603, + serialized_end=1709, +) + + +_EXTENDRESERVATIONRESPONSE = _descriptor.Descriptor( + name='ExtendReservationResponse', + full_name='datacatalog.ExtendReservationResponse', + 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=1711, + serialized_end=1738, +) + + +_RELEASERESERVATIONREQUEST = _descriptor.Descriptor( + name='ReleaseReservationRequest', + full_name='datacatalog.ReleaseReservationRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='dataset_id', full_name='datacatalog.ReleaseReservationRequest.dataset_id', 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='tag_name', full_name='datacatalog.ReleaseReservationRequest.tag_name', 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='owner_id', full_name='datacatalog.ReleaseReservationRequest.owner_id', 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1740, + serialized_end=1847, +) + + +_RELEASERESERVATIONRESPONSE = _descriptor.Descriptor( + name='ReleaseReservationResponse', + full_name='datacatalog.ReleaseReservationResponse', + 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=1849, + serialized_end=1877, ) @@ -592,8 +885,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1131, - serialized_end=1240, + serialized_start=1879, + serialized_end=1988, ) @@ -630,8 +923,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1242, - serialized_end=1281, + serialized_start=1990, + serialized_end=2029, ) @@ -689,8 +982,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1283, - serialized_end=1372, + serialized_start=2031, + serialized_end=2120, ) @@ -762,8 +1055,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1375, - serialized_end=1644, + serialized_start=2123, + serialized_end=2392, ) @@ -800,8 +1093,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1646, - serialized_end=1713, + serialized_start=2394, + serialized_end=2461, ) @@ -845,8 +1138,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1715, - serialized_end=1796, + serialized_start=2463, + serialized_end=2544, ) @@ -883,8 +1176,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1862, - serialized_end=1907, + serialized_start=2610, + serialized_end=2655, ) _METADATA = _descriptor.Descriptor( @@ -913,8 +1206,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1798, - serialized_end=1907, + serialized_start=2546, + serialized_end=2655, ) @@ -944,8 +1237,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1909, - serialized_end=1979, + serialized_start=2657, + serialized_end=2727, ) @@ -1007,8 +1300,8 @@ name='property_filter', full_name='datacatalog.SinglePropertyFilter.property_filter', index=0, containing_type=None, fields=[]), ], - serialized_start=1982, - serialized_end=2375, + serialized_start=2730, + serialized_end=3123, ) @@ -1041,8 +1334,8 @@ name='property', full_name='datacatalog.ArtifactPropertyFilter.property', index=0, containing_type=None, fields=[]), ], - serialized_start=2377, - serialized_end=2436, + serialized_start=3125, + serialized_end=3184, ) @@ -1075,8 +1368,8 @@ name='property', full_name='datacatalog.TagPropertyFilter.property', index=0, containing_type=None, fields=[]), ], - serialized_start=2438, - serialized_end=2489, + serialized_start=3186, + serialized_end=3237, ) @@ -1109,8 +1402,8 @@ name='property', full_name='datacatalog.PartitionPropertyFilter.property', index=0, containing_type=None, fields=[]), ], - serialized_start=2491, - serialized_end=2574, + serialized_start=3239, + serialized_end=3322, ) @@ -1147,8 +1440,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2576, - serialized_end=2618, + serialized_start=3324, + serialized_end=3366, ) @@ -1202,8 +1495,8 @@ name='property', full_name='datacatalog.DatasetPropertyFilter.property', index=0, containing_type=None, fields=[]), ], - serialized_start=2620, - serialized_end=2727, + serialized_start=3368, + serialized_end=3475, ) @@ -1256,8 +1549,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2730, - serialized_end=2971, + serialized_start=3478, + serialized_end=3719, ) _CREATEDATASETREQUEST.fields_by_name['dataset'].message_type = _DATASET @@ -1280,6 +1573,20 @@ _LISTDATASETSREQUEST.fields_by_name['filter'].message_type = _FILTEREXPRESSION _LISTDATASETSREQUEST.fields_by_name['pagination'].message_type = _PAGINATIONOPTIONS _LISTDATASETSRESPONSE.fields_by_name['datasets'].message_type = _DATASET +_GETORRESERVEARTIFACTREQUEST.fields_by_name['dataset_id'].message_type = _DATASETID +_RESERVATIONSTATUS.fields_by_name['state'].enum_type = _RESERVATIONSTATUS_STATE +_RESERVATIONSTATUS.fields_by_name['metadata'].message_type = _METADATA +_RESERVATIONSTATUS_STATE.containing_type = _RESERVATIONSTATUS +_GETORRESERVEARTIFACTRESPONSE.fields_by_name['artifact'].message_type = _ARTIFACT +_GETORRESERVEARTIFACTRESPONSE.fields_by_name['reservation_status'].message_type = _RESERVATIONSTATUS +_GETORRESERVEARTIFACTRESPONSE.oneofs_by_name['value'].fields.append( + _GETORRESERVEARTIFACTRESPONSE.fields_by_name['artifact']) +_GETORRESERVEARTIFACTRESPONSE.fields_by_name['artifact'].containing_oneof = _GETORRESERVEARTIFACTRESPONSE.oneofs_by_name['value'] +_GETORRESERVEARTIFACTRESPONSE.oneofs_by_name['value'].fields.append( + _GETORRESERVEARTIFACTRESPONSE.fields_by_name['reservation_status']) +_GETORRESERVEARTIFACTRESPONSE.fields_by_name['reservation_status'].containing_oneof = _GETORRESERVEARTIFACTRESPONSE.oneofs_by_name['value'] +_EXTENDRESERVATIONREQUEST.fields_by_name['dataset_id'].message_type = _DATASETID +_RELEASERESERVATIONREQUEST.fields_by_name['dataset_id'].message_type = _DATASETID _DATASET.fields_by_name['id'].message_type = _DATASETID _DATASET.fields_by_name['metadata'].message_type = _METADATA _ARTIFACT.fields_by_name['dataset'].message_type = _DATASETID @@ -1351,6 +1658,13 @@ 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['GetOrReserveArtifactRequest'] = _GETORRESERVEARTIFACTREQUEST +DESCRIPTOR.message_types_by_name['ReservationStatus'] = _RESERVATIONSTATUS +DESCRIPTOR.message_types_by_name['GetOrReserveArtifactResponse'] = _GETORRESERVEARTIFACTRESPONSE +DESCRIPTOR.message_types_by_name['ExtendReservationRequest'] = _EXTENDRESERVATIONREQUEST +DESCRIPTOR.message_types_by_name['ExtendReservationResponse'] = _EXTENDRESERVATIONRESPONSE +DESCRIPTOR.message_types_by_name['ReleaseReservationRequest'] = _RELEASERESERVATIONREQUEST +DESCRIPTOR.message_types_by_name['ReleaseReservationResponse'] = _RELEASERESERVATIONRESPONSE DESCRIPTOR.message_types_by_name['Dataset'] = _DATASET DESCRIPTOR.message_types_by_name['Partition'] = _PARTITION DESCRIPTOR.message_types_by_name['DatasetID'] = _DATASETID @@ -1466,6 +1780,55 @@ )) _sym_db.RegisterMessage(ListDatasetsResponse) +GetOrReserveArtifactRequest = _reflection.GeneratedProtocolMessageType('GetOrReserveArtifactRequest', (_message.Message,), dict( + DESCRIPTOR = _GETORRESERVEARTIFACTREQUEST, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:datacatalog.GetOrReserveArtifactRequest) + )) +_sym_db.RegisterMessage(GetOrReserveArtifactRequest) + +ReservationStatus = _reflection.GeneratedProtocolMessageType('ReservationStatus', (_message.Message,), dict( + DESCRIPTOR = _RESERVATIONSTATUS, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:datacatalog.ReservationStatus) + )) +_sym_db.RegisterMessage(ReservationStatus) + +GetOrReserveArtifactResponse = _reflection.GeneratedProtocolMessageType('GetOrReserveArtifactResponse', (_message.Message,), dict( + DESCRIPTOR = _GETORRESERVEARTIFACTRESPONSE, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:datacatalog.GetOrReserveArtifactResponse) + )) +_sym_db.RegisterMessage(GetOrReserveArtifactResponse) + +ExtendReservationRequest = _reflection.GeneratedProtocolMessageType('ExtendReservationRequest', (_message.Message,), dict( + DESCRIPTOR = _EXTENDRESERVATIONREQUEST, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:datacatalog.ExtendReservationRequest) + )) +_sym_db.RegisterMessage(ExtendReservationRequest) + +ExtendReservationResponse = _reflection.GeneratedProtocolMessageType('ExtendReservationResponse', (_message.Message,), dict( + DESCRIPTOR = _EXTENDRESERVATIONRESPONSE, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:datacatalog.ExtendReservationResponse) + )) +_sym_db.RegisterMessage(ExtendReservationResponse) + +ReleaseReservationRequest = _reflection.GeneratedProtocolMessageType('ReleaseReservationRequest', (_message.Message,), dict( + DESCRIPTOR = _RELEASERESERVATIONREQUEST, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:datacatalog.ReleaseReservationRequest) + )) +_sym_db.RegisterMessage(ReleaseReservationRequest) + +ReleaseReservationResponse = _reflection.GeneratedProtocolMessageType('ReleaseReservationResponse', (_message.Message,), dict( + DESCRIPTOR = _RELEASERESERVATIONRESPONSE, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:datacatalog.ReleaseReservationResponse) + )) +_sym_db.RegisterMessage(ReleaseReservationResponse) + Dataset = _reflection.GeneratedProtocolMessageType('Dataset', (_message.Message,), dict( DESCRIPTOR = _DATASET, __module__ = 'flyteidl.datacatalog.datacatalog_pb2' @@ -1588,8 +1951,8 @@ file=DESCRIPTOR, index=0, serialized_options=None, - serialized_start=2974, - serialized_end=3567, + serialized_start=3722, + serialized_end=4627, methods=[ _descriptor.MethodDescriptor( name='CreateDataset', @@ -1654,6 +2017,33 @@ output_type=_LISTDATASETSRESPONSE, serialized_options=None, ), + _descriptor.MethodDescriptor( + name='GetOrReserveArtifact', + full_name='datacatalog.DataCatalog.GetOrReserveArtifact', + index=7, + containing_service=None, + input_type=_GETORRESERVEARTIFACTREQUEST, + output_type=_GETORRESERVEARTIFACTRESPONSE, + serialized_options=None, + ), + _descriptor.MethodDescriptor( + name='ExtendReservation', + full_name='datacatalog.DataCatalog.ExtendReservation', + index=8, + containing_service=None, + input_type=_EXTENDRESERVATIONREQUEST, + output_type=_EXTENDRESERVATIONRESPONSE, + serialized_options=None, + ), + _descriptor.MethodDescriptor( + name='ReleaseReservation', + full_name='datacatalog.DataCatalog.ReleaseReservation', + index=9, + containing_service=None, + input_type=_RELEASERESERVATIONREQUEST, + output_type=_RELEASERESERVATIONRESPONSE, + serialized_options=None, + ), ]) _sym_db.RegisterServiceDescriptor(_DATACATALOG) diff --git a/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py index d6a2ea50959..2de1cf30b61 100644 --- a/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py +++ b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py @@ -52,6 +52,21 @@ 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.GetOrReserveArtifact = channel.unary_unary( + '/datacatalog.DataCatalog/GetOrReserveArtifact', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrReserveArtifactRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrReserveArtifactResponse.FromString, + ) + self.ExtendReservation = channel.unary_unary( + '/datacatalog.DataCatalog/ExtendReservation', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ExtendReservationRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ExtendReservationResponse.FromString, + ) + self.ReleaseReservation = channel.unary_unary( + '/datacatalog.DataCatalog/ReleaseReservation', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationResponse.FromString, + ) class DataCatalogServicer(object): @@ -112,6 +127,46 @@ def ListDatasets(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def GetOrReserveArtifact(self, request, context): + """Get an artifact and the corresponding data. If the artifact does not exist, + try to reserve a spot for populating the artifact. + + Once you preserve a spot, you should call ExtendReservation API periodically + to extend the reservation. Otherwise, the reservation can expire and other + tasks may take the spot. + + If the same owner_id calls this API for the same dataset and it has an active reservation and the artifacts have not been written yet by a different owner, the API will respond with an Acquired Reservation Status (providing idempotency). + + 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. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExtendReservation(self, request, context): + """Extend the reservation to keep it from expiring. If the reservation expires, + other tasks can take over the reservation by calling GetOrReserveArtifact. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ReleaseReservation(self, request, context): + """Release the reservation when the task holding the spot fails so that the other tasks + can grab the spot. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def add_DataCatalogServicer_to_server(servicer, server): rpc_method_handlers = { @@ -150,6 +205,21 @@ 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, ), + 'GetOrReserveArtifact': grpc.unary_unary_rpc_method_handler( + servicer.GetOrReserveArtifact, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrReserveArtifactRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrReserveArtifactResponse.SerializeToString, + ), + 'ExtendReservation': grpc.unary_unary_rpc_method_handler( + servicer.ExtendReservation, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ExtendReservationRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ExtendReservationResponse.SerializeToString, + ), + 'ReleaseReservation': grpc.unary_unary_rpc_method_handler( + servicer.ReleaseReservation, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationResponse.SerializeToString, + ), } generic_handler = grpc.method_handlers_generic_handler( 'datacatalog.DataCatalog', rpc_method_handlers) diff --git a/flyteidl/protos/flyteidl/datacatalog/datacatalog.proto b/flyteidl/protos/flyteidl/datacatalog/datacatalog.proto index b5344ac17a6..e83674b265d 100644 --- a/flyteidl/protos/flyteidl/datacatalog/datacatalog.proto +++ b/flyteidl/protos/flyteidl/datacatalog/datacatalog.proto @@ -3,6 +3,7 @@ syntax = "proto3"; package datacatalog; import "flyteidl/core/literals.proto"; +import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; /* @@ -33,6 +34,34 @@ service DataCatalog { // Return a paginated list of datasets rpc ListDatasets (ListDatasetsRequest) returns (ListDatasetsResponse); + + // Get an artifact and the corresponding data. If the artifact does not exist, + // try to reserve a spot for populating the artifact. + // + // Once you preserve a spot, you should call ExtendReservation API periodically + // to extend the reservation. Otherwise, the reservation can expire and other + // tasks may take the spot. + // + // If the same owner_id calls this API for the same dataset and it has an active reservation and the artifacts have not been written yet by a different owner, the API will respond with an Acquired Reservation Status (providing idempotency). + // + // 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. + rpc GetOrReserveArtifact (GetOrReserveArtifactRequest) returns (GetOrReserveArtifactResponse); + + // Extend the reservation to keep it from expiring. If the reservation expires, + // other tasks can take over the reservation by calling GetOrReserveArtifact. + rpc ExtendReservation (ExtendReservationRequest) returns (ExtendReservationResponse); + + // Release the reservation when the task holding the spot fails so that the other tasks + // can grab the spot. + rpc ReleaseReservation (ReleaseReservationRequest) returns (ReleaseReservationResponse); } /* @@ -150,6 +179,60 @@ message ListDatasetsResponse { string next_token = 2; } +// Get the Artifact or try to reserve a spot if the Artifact does not exist. +message GetOrReserveArtifactRequest { + DatasetID dataset_id = 1; + string tag_name = 2; + string owner_id = 3; +} + +// Whether we successfully reserve a spot. +message ReservationStatus { + enum State { + // Acquired the reservation successfully. + ACQUIRED = 0; + + // Indicates an existing active reservation exist for a different owner_id. + ALREADY_IN_PROGRESS = 1; + }; + + State state = 1; + Metadata metadata = 2; + string owner_id = 3; +} + +// Response to get artifact or reserve spot. +message GetOrReserveArtifactResponse { + oneof value { + Artifact artifact = 1; + ReservationStatus reservation_status = 2; + } +} + +// Request to extend reservation +message ExtendReservationRequest { + DatasetID dataset_id = 1; + string tag_name = 2; + string owner_id = 3; +} + +// Response to extend reservation +message ExtendReservationResponse { + +} + +// Request to release reservation +message ReleaseReservationRequest { + DatasetID dataset_id = 1; + string tag_name = 2; + string owner_id = 3; +} + +// Response to release reservation +message ReleaseReservationResponse { + +} + /* * Dataset message. It is uniquely identified by DatasetID. */