diff --git a/storage/v1alpha1/autogen.md b/storage/v1alpha1/autogen.md index f99a9972..a84a7c01 100644 --- a/storage/v1alpha1/autogen.md +++ b/storage/v1alpha1/autogen.md @@ -139,9 +139,23 @@ - [FrontendVirtioScsiService](#opi_api-storage-v1-FrontendVirtioScsiService) - [middleend.proto](#middleend-proto) + - [CreateCryptoRequest](#opi_api-storage-v1-CreateCryptoRequest) + - [Crypto](#opi_api-storage-v1-Crypto) + - [CryptoStatsRequest](#opi_api-storage-v1-CryptoStatsRequest) + - [CryptoStatsResponse](#opi_api-storage-v1-CryptoStatsResponse) + - [DeleteCryptoRequest](#opi_api-storage-v1-DeleteCryptoRequest) + - [GetCryptoRequest](#opi_api-storage-v1-GetCryptoRequest) + - [ListCryptoRequest](#opi_api-storage-v1-ListCryptoRequest) + - [ListCryptoResponse](#opi_api-storage-v1-ListCryptoResponse) + - [UpdateCryptoRequest](#opi_api-storage-v1-UpdateCryptoRequest) + + - [MiddleendService](#opi_api-storage-v1-MiddleendService) + - [opicommon.proto](#opicommon-proto) - [PciEndpoint](#opi_api-storage-v1-PciEndpoint) + - [CryptoType](#opi_api-storage-v1-CryptoType) + - [object_key.proto](#object_key-proto) - [ObjectKey](#opi_api-common-v1-ObjectKey) @@ -2061,12 +2075,168 @@ Front End (host-facing) APIs. Mostly used for Virtio-scsi emulation and host pre ## middleend.proto + + + +### CreateCryptoRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| volume | [Crypto](#opi_api-storage-v1-Crypto) | | | + + + + + + + + +### Crypto + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| crypto_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | | +| volume_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | The back/middle-end volume to back this volume | +| key | [bytes](#bytes) | | Key to be used for encryption | +| cipher | [CryptoType](#opi_api-storage-v1-CryptoType) | | Cipher to use | + + + + + + + + +### CryptoStatsRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| crypto_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | | + + + + + + + + +### CryptoStatsResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| crypto_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | | +| stats | [string](#string) | | | + + + + + + + + +### DeleteCryptoRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| crypto_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | | + + + + + + + + +### GetCryptoRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| crypto_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | | + + + + + + + + +### ListCryptoRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| page_size | [int32](#int32) | | | +| page_token | [string](#string) | | | + + + + + + + + +### ListCryptoResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| volumes | [Crypto](#opi_api-storage-v1-Crypto) | repeated | | +| next_page_token | [string](#string) | | | + + + + + + + + +### UpdateCryptoRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| volume | [Crypto](#opi_api-storage-v1-Crypto) | | | + + + + + + + + +### MiddleendService +Middle End (Storage Services) APIs. For example, encryption, compression, raid, QoS, multipath, ... + +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| CreateCrypto | [CreateCryptoRequest](#opi_api-storage-v1-CreateCryptoRequest) | [Crypto](#opi_api-storage-v1-Crypto) | | +| DeleteCrypto | [DeleteCryptoRequest](#opi_api-storage-v1-DeleteCryptoRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | | +| UpdateCrypto | [UpdateCryptoRequest](#opi_api-storage-v1-UpdateCryptoRequest) | [Crypto](#opi_api-storage-v1-Crypto) | | +| ListCrypto | [ListCryptoRequest](#opi_api-storage-v1-ListCryptoRequest) | [ListCryptoResponse](#opi_api-storage-v1-ListCryptoResponse) | | +| GetCrypto | [GetCryptoRequest](#opi_api-storage-v1-GetCryptoRequest) | [Crypto](#opi_api-storage-v1-Crypto) | | +| CryptoStats | [CryptoStatsRequest](#opi_api-storage-v1-CryptoStatsRequest) | [CryptoStatsResponse](#opi_api-storage-v1-CryptoStatsResponse) | | + @@ -2103,6 +2273,23 @@ confusion with storage "devices". + + + +### CryptoType +AES encryption type to be used + +| Name | Number | Description | +| ---- | ------ | ----------- | +| CRYPTO_TYPE_UNSPECIFIED | 0 | | +| CRYPTO_TYPE_AES_CBC_128 | 1 | | +| CRYPTO_TYPE_AES_CBC_192 | 2 | | +| CRYPTO_TYPE_AES_CBC_256 | 3 | | +| CRYPTO_TYPE_AES_XTS_128 | 4 | | +| CRYPTO_TYPE_AES_XTS_192 | 5 | | +| CRYPTO_TYPE_AES_XTS_256 | 6 | | + + diff --git a/storage/v1alpha1/gen/cpp/middleend.grpc.pb.cc b/storage/v1alpha1/gen/cpp/middleend.grpc.pb.cc index fb5f0f9e..d120ce4a 100644 --- a/storage/v1alpha1/gen/cpp/middleend.grpc.pb.cc +++ b/storage/v1alpha1/gen/cpp/middleend.grpc.pb.cc @@ -23,6 +23,277 @@ namespace opi_api { namespace storage { namespace v1 { +static const char* MiddleendService_method_names[] = { + "/opi_api.storage.v1.MiddleendService/CreateCrypto", + "/opi_api.storage.v1.MiddleendService/DeleteCrypto", + "/opi_api.storage.v1.MiddleendService/UpdateCrypto", + "/opi_api.storage.v1.MiddleendService/ListCrypto", + "/opi_api.storage.v1.MiddleendService/GetCrypto", + "/opi_api.storage.v1.MiddleendService/CryptoStats", +}; + +std::unique_ptr< MiddleendService::Stub> MiddleendService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< MiddleendService::Stub> stub(new MiddleendService::Stub(channel, options)); + return stub; +} + +MiddleendService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_CreateCrypto_(MiddleendService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteCrypto_(MiddleendService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UpdateCrypto_(MiddleendService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListCrypto_(MiddleendService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetCrypto_(MiddleendService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CryptoStats_(MiddleendService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status MiddleendService::Stub::CreateCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::CreateCryptoRequest& request, ::opi_api::storage::v1::Crypto* response) { + return ::grpc::internal::BlockingUnaryCall< ::opi_api::storage::v1::CreateCryptoRequest, ::opi_api::storage::v1::Crypto, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_CreateCrypto_, context, request, response); +} + +void MiddleendService::Stub::async::CreateCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::CreateCryptoRequest* request, ::opi_api::storage::v1::Crypto* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::opi_api::storage::v1::CreateCryptoRequest, ::opi_api::storage::v1::Crypto, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateCrypto_, context, request, response, std::move(f)); +} + +void MiddleendService::Stub::async::CreateCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::CreateCryptoRequest* request, ::opi_api::storage::v1::Crypto* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateCrypto_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::Crypto>* MiddleendService::Stub::PrepareAsyncCreateCryptoRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::CreateCryptoRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::opi_api::storage::v1::Crypto, ::opi_api::storage::v1::CreateCryptoRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_CreateCrypto_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::Crypto>* MiddleendService::Stub::AsyncCreateCryptoRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::CreateCryptoRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncCreateCryptoRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status MiddleendService::Stub::DeleteCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::DeleteCryptoRequest& request, ::google::protobuf::Empty* response) { + return ::grpc::internal::BlockingUnaryCall< ::opi_api::storage::v1::DeleteCryptoRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DeleteCrypto_, context, request, response); +} + +void MiddleendService::Stub::async::DeleteCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::DeleteCryptoRequest* request, ::google::protobuf::Empty* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::opi_api::storage::v1::DeleteCryptoRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteCrypto_, context, request, response, std::move(f)); +} + +void MiddleendService::Stub::async::DeleteCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::DeleteCryptoRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteCrypto_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* MiddleendService::Stub::PrepareAsyncDeleteCryptoRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::DeleteCryptoRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::google::protobuf::Empty, ::opi_api::storage::v1::DeleteCryptoRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DeleteCrypto_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* MiddleendService::Stub::AsyncDeleteCryptoRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::DeleteCryptoRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncDeleteCryptoRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status MiddleendService::Stub::UpdateCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::UpdateCryptoRequest& request, ::opi_api::storage::v1::Crypto* response) { + return ::grpc::internal::BlockingUnaryCall< ::opi_api::storage::v1::UpdateCryptoRequest, ::opi_api::storage::v1::Crypto, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_UpdateCrypto_, context, request, response); +} + +void MiddleendService::Stub::async::UpdateCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::UpdateCryptoRequest* request, ::opi_api::storage::v1::Crypto* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::opi_api::storage::v1::UpdateCryptoRequest, ::opi_api::storage::v1::Crypto, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateCrypto_, context, request, response, std::move(f)); +} + +void MiddleendService::Stub::async::UpdateCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::UpdateCryptoRequest* request, ::opi_api::storage::v1::Crypto* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateCrypto_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::Crypto>* MiddleendService::Stub::PrepareAsyncUpdateCryptoRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::UpdateCryptoRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::opi_api::storage::v1::Crypto, ::opi_api::storage::v1::UpdateCryptoRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_UpdateCrypto_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::Crypto>* MiddleendService::Stub::AsyncUpdateCryptoRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::UpdateCryptoRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncUpdateCryptoRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status MiddleendService::Stub::ListCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::ListCryptoRequest& request, ::opi_api::storage::v1::ListCryptoResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::opi_api::storage::v1::ListCryptoRequest, ::opi_api::storage::v1::ListCryptoResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListCrypto_, context, request, response); +} + +void MiddleendService::Stub::async::ListCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::ListCryptoRequest* request, ::opi_api::storage::v1::ListCryptoResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::opi_api::storage::v1::ListCryptoRequest, ::opi_api::storage::v1::ListCryptoResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListCrypto_, context, request, response, std::move(f)); +} + +void MiddleendService::Stub::async::ListCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::ListCryptoRequest* request, ::opi_api::storage::v1::ListCryptoResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListCrypto_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::ListCryptoResponse>* MiddleendService::Stub::PrepareAsyncListCryptoRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::ListCryptoRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::opi_api::storage::v1::ListCryptoResponse, ::opi_api::storage::v1::ListCryptoRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListCrypto_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::ListCryptoResponse>* MiddleendService::Stub::AsyncListCryptoRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::ListCryptoRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncListCryptoRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status MiddleendService::Stub::GetCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::GetCryptoRequest& request, ::opi_api::storage::v1::Crypto* response) { + return ::grpc::internal::BlockingUnaryCall< ::opi_api::storage::v1::GetCryptoRequest, ::opi_api::storage::v1::Crypto, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetCrypto_, context, request, response); +} + +void MiddleendService::Stub::async::GetCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::GetCryptoRequest* request, ::opi_api::storage::v1::Crypto* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::opi_api::storage::v1::GetCryptoRequest, ::opi_api::storage::v1::Crypto, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetCrypto_, context, request, response, std::move(f)); +} + +void MiddleendService::Stub::async::GetCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::GetCryptoRequest* request, ::opi_api::storage::v1::Crypto* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetCrypto_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::Crypto>* MiddleendService::Stub::PrepareAsyncGetCryptoRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::GetCryptoRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::opi_api::storage::v1::Crypto, ::opi_api::storage::v1::GetCryptoRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetCrypto_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::Crypto>* MiddleendService::Stub::AsyncGetCryptoRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::GetCryptoRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetCryptoRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status MiddleendService::Stub::CryptoStats(::grpc::ClientContext* context, const ::opi_api::storage::v1::CryptoStatsRequest& request, ::opi_api::storage::v1::CryptoStatsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::opi_api::storage::v1::CryptoStatsRequest, ::opi_api::storage::v1::CryptoStatsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_CryptoStats_, context, request, response); +} + +void MiddleendService::Stub::async::CryptoStats(::grpc::ClientContext* context, const ::opi_api::storage::v1::CryptoStatsRequest* request, ::opi_api::storage::v1::CryptoStatsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::opi_api::storage::v1::CryptoStatsRequest, ::opi_api::storage::v1::CryptoStatsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CryptoStats_, context, request, response, std::move(f)); +} + +void MiddleendService::Stub::async::CryptoStats(::grpc::ClientContext* context, const ::opi_api::storage::v1::CryptoStatsRequest* request, ::opi_api::storage::v1::CryptoStatsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CryptoStats_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::CryptoStatsResponse>* MiddleendService::Stub::PrepareAsyncCryptoStatsRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::CryptoStatsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::opi_api::storage::v1::CryptoStatsResponse, ::opi_api::storage::v1::CryptoStatsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_CryptoStats_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::CryptoStatsResponse>* MiddleendService::Stub::AsyncCryptoStatsRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::CryptoStatsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncCryptoStatsRaw(context, request, cq); + result->StartCall(); + return result; +} + +MiddleendService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + MiddleendService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MiddleendService::Service, ::opi_api::storage::v1::CreateCryptoRequest, ::opi_api::storage::v1::Crypto, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](MiddleendService::Service* service, + ::grpc::ServerContext* ctx, + const ::opi_api::storage::v1::CreateCryptoRequest* req, + ::opi_api::storage::v1::Crypto* resp) { + return service->CreateCrypto(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + MiddleendService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MiddleendService::Service, ::opi_api::storage::v1::DeleteCryptoRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](MiddleendService::Service* service, + ::grpc::ServerContext* ctx, + const ::opi_api::storage::v1::DeleteCryptoRequest* req, + ::google::protobuf::Empty* resp) { + return service->DeleteCrypto(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + MiddleendService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MiddleendService::Service, ::opi_api::storage::v1::UpdateCryptoRequest, ::opi_api::storage::v1::Crypto, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](MiddleendService::Service* service, + ::grpc::ServerContext* ctx, + const ::opi_api::storage::v1::UpdateCryptoRequest* req, + ::opi_api::storage::v1::Crypto* resp) { + return service->UpdateCrypto(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + MiddleendService_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MiddleendService::Service, ::opi_api::storage::v1::ListCryptoRequest, ::opi_api::storage::v1::ListCryptoResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](MiddleendService::Service* service, + ::grpc::ServerContext* ctx, + const ::opi_api::storage::v1::ListCryptoRequest* req, + ::opi_api::storage::v1::ListCryptoResponse* resp) { + return service->ListCrypto(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + MiddleendService_method_names[4], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MiddleendService::Service, ::opi_api::storage::v1::GetCryptoRequest, ::opi_api::storage::v1::Crypto, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](MiddleendService::Service* service, + ::grpc::ServerContext* ctx, + const ::opi_api::storage::v1::GetCryptoRequest* req, + ::opi_api::storage::v1::Crypto* resp) { + return service->GetCrypto(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + MiddleendService_method_names[5], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MiddleendService::Service, ::opi_api::storage::v1::CryptoStatsRequest, ::opi_api::storage::v1::CryptoStatsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](MiddleendService::Service* service, + ::grpc::ServerContext* ctx, + const ::opi_api::storage::v1::CryptoStatsRequest* req, + ::opi_api::storage::v1::CryptoStatsResponse* resp) { + return service->CryptoStats(ctx, req, resp); + }, this))); +} + +MiddleendService::Service::~Service() { +} + +::grpc::Status MiddleendService::Service::CreateCrypto(::grpc::ServerContext* context, const ::opi_api::storage::v1::CreateCryptoRequest* request, ::opi_api::storage::v1::Crypto* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status MiddleendService::Service::DeleteCrypto(::grpc::ServerContext* context, const ::opi_api::storage::v1::DeleteCryptoRequest* request, ::google::protobuf::Empty* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status MiddleendService::Service::UpdateCrypto(::grpc::ServerContext* context, const ::opi_api::storage::v1::UpdateCryptoRequest* request, ::opi_api::storage::v1::Crypto* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status MiddleendService::Service::ListCrypto(::grpc::ServerContext* context, const ::opi_api::storage::v1::ListCryptoRequest* request, ::opi_api::storage::v1::ListCryptoResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status MiddleendService::Service::GetCrypto(::grpc::ServerContext* context, const ::opi_api::storage::v1::GetCryptoRequest* request, ::opi_api::storage::v1::Crypto* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status MiddleendService::Service::CryptoStats(::grpc::ServerContext* context, const ::opi_api::storage::v1::CryptoStatsRequest* request, ::opi_api::storage::v1::CryptoStatsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + } // namespace opi_api } // namespace storage } // namespace v1 diff --git a/storage/v1alpha1/gen/cpp/middleend.grpc.pb.h b/storage/v1alpha1/gen/cpp/middleend.grpc.pb.h index c677bdaf..d09fc120 100644 --- a/storage/v1alpha1/gen/cpp/middleend.grpc.pb.h +++ b/storage/v1alpha1/gen/cpp/middleend.grpc.pb.h @@ -33,6 +33,999 @@ namespace opi_api { namespace storage { namespace v1 { +// Middle End (Storage Services) APIs. For example, encryption, compression, raid, QoS, multipath, ... +class MiddleendService final { + public: + static constexpr char const* service_full_name() { + return "opi_api.storage.v1.MiddleendService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + virtual ::grpc::Status CreateCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::CreateCryptoRequest& request, ::opi_api::storage::v1::Crypto* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::storage::v1::Crypto>> AsyncCreateCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::CreateCryptoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::storage::v1::Crypto>>(AsyncCreateCryptoRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::storage::v1::Crypto>> PrepareAsyncCreateCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::CreateCryptoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::storage::v1::Crypto>>(PrepareAsyncCreateCryptoRaw(context, request, cq)); + } + virtual ::grpc::Status DeleteCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::DeleteCryptoRequest& request, ::google::protobuf::Empty* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> AsyncDeleteCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::DeleteCryptoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(AsyncDeleteCryptoRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsyncDeleteCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::DeleteCryptoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(PrepareAsyncDeleteCryptoRaw(context, request, cq)); + } + virtual ::grpc::Status UpdateCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::UpdateCryptoRequest& request, ::opi_api::storage::v1::Crypto* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::storage::v1::Crypto>> AsyncUpdateCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::UpdateCryptoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::storage::v1::Crypto>>(AsyncUpdateCryptoRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::storage::v1::Crypto>> PrepareAsyncUpdateCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::UpdateCryptoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::storage::v1::Crypto>>(PrepareAsyncUpdateCryptoRaw(context, request, cq)); + } + virtual ::grpc::Status ListCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::ListCryptoRequest& request, ::opi_api::storage::v1::ListCryptoResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::storage::v1::ListCryptoResponse>> AsyncListCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::ListCryptoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::storage::v1::ListCryptoResponse>>(AsyncListCryptoRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::storage::v1::ListCryptoResponse>> PrepareAsyncListCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::ListCryptoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::storage::v1::ListCryptoResponse>>(PrepareAsyncListCryptoRaw(context, request, cq)); + } + virtual ::grpc::Status GetCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::GetCryptoRequest& request, ::opi_api::storage::v1::Crypto* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::storage::v1::Crypto>> AsyncGetCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::GetCryptoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::storage::v1::Crypto>>(AsyncGetCryptoRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::storage::v1::Crypto>> PrepareAsyncGetCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::GetCryptoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::storage::v1::Crypto>>(PrepareAsyncGetCryptoRaw(context, request, cq)); + } + virtual ::grpc::Status CryptoStats(::grpc::ClientContext* context, const ::opi_api::storage::v1::CryptoStatsRequest& request, ::opi_api::storage::v1::CryptoStatsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::storage::v1::CryptoStatsResponse>> AsyncCryptoStats(::grpc::ClientContext* context, const ::opi_api::storage::v1::CryptoStatsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::storage::v1::CryptoStatsResponse>>(AsyncCryptoStatsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::storage::v1::CryptoStatsResponse>> PrepareAsyncCryptoStats(::grpc::ClientContext* context, const ::opi_api::storage::v1::CryptoStatsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::storage::v1::CryptoStatsResponse>>(PrepareAsyncCryptoStatsRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + virtual void CreateCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::CreateCryptoRequest* request, ::opi_api::storage::v1::Crypto* response, std::function) = 0; + virtual void CreateCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::CreateCryptoRequest* request, ::opi_api::storage::v1::Crypto* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void DeleteCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::DeleteCryptoRequest* request, ::google::protobuf::Empty* response, std::function) = 0; + virtual void DeleteCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::DeleteCryptoRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void UpdateCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::UpdateCryptoRequest* request, ::opi_api::storage::v1::Crypto* response, std::function) = 0; + virtual void UpdateCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::UpdateCryptoRequest* request, ::opi_api::storage::v1::Crypto* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void ListCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::ListCryptoRequest* request, ::opi_api::storage::v1::ListCryptoResponse* response, std::function) = 0; + virtual void ListCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::ListCryptoRequest* request, ::opi_api::storage::v1::ListCryptoResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void GetCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::GetCryptoRequest* request, ::opi_api::storage::v1::Crypto* response, std::function) = 0; + virtual void GetCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::GetCryptoRequest* request, ::opi_api::storage::v1::Crypto* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void CryptoStats(::grpc::ClientContext* context, const ::opi_api::storage::v1::CryptoStatsRequest* request, ::opi_api::storage::v1::CryptoStatsResponse* response, std::function) = 0; + virtual void CryptoStats(::grpc::ClientContext* context, const ::opi_api::storage::v1::CryptoStatsRequest* request, ::opi_api::storage::v1::CryptoStatsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + }; + typedef class async_interface experimental_async_interface; + virtual class async_interface* async() { return nullptr; } + class async_interface* experimental_async() { return async(); } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::storage::v1::Crypto>* AsyncCreateCryptoRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::CreateCryptoRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::storage::v1::Crypto>* PrepareAsyncCreateCryptoRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::CreateCryptoRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsyncDeleteCryptoRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::DeleteCryptoRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncDeleteCryptoRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::DeleteCryptoRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::storage::v1::Crypto>* AsyncUpdateCryptoRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::UpdateCryptoRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::storage::v1::Crypto>* PrepareAsyncUpdateCryptoRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::UpdateCryptoRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::storage::v1::ListCryptoResponse>* AsyncListCryptoRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::ListCryptoRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::storage::v1::ListCryptoResponse>* PrepareAsyncListCryptoRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::ListCryptoRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::storage::v1::Crypto>* AsyncGetCryptoRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::GetCryptoRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::storage::v1::Crypto>* PrepareAsyncGetCryptoRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::GetCryptoRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::storage::v1::CryptoStatsResponse>* AsyncCryptoStatsRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::CryptoStatsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::storage::v1::CryptoStatsResponse>* PrepareAsyncCryptoStatsRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::CryptoStatsRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + ::grpc::Status CreateCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::CreateCryptoRequest& request, ::opi_api::storage::v1::Crypto* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::Crypto>> AsyncCreateCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::CreateCryptoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::Crypto>>(AsyncCreateCryptoRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::Crypto>> PrepareAsyncCreateCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::CreateCryptoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::Crypto>>(PrepareAsyncCreateCryptoRaw(context, request, cq)); + } + ::grpc::Status DeleteCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::DeleteCryptoRequest& request, ::google::protobuf::Empty* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> AsyncDeleteCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::DeleteCryptoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(AsyncDeleteCryptoRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsyncDeleteCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::DeleteCryptoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(PrepareAsyncDeleteCryptoRaw(context, request, cq)); + } + ::grpc::Status UpdateCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::UpdateCryptoRequest& request, ::opi_api::storage::v1::Crypto* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::Crypto>> AsyncUpdateCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::UpdateCryptoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::Crypto>>(AsyncUpdateCryptoRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::Crypto>> PrepareAsyncUpdateCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::UpdateCryptoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::Crypto>>(PrepareAsyncUpdateCryptoRaw(context, request, cq)); + } + ::grpc::Status ListCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::ListCryptoRequest& request, ::opi_api::storage::v1::ListCryptoResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::ListCryptoResponse>> AsyncListCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::ListCryptoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::ListCryptoResponse>>(AsyncListCryptoRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::ListCryptoResponse>> PrepareAsyncListCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::ListCryptoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::ListCryptoResponse>>(PrepareAsyncListCryptoRaw(context, request, cq)); + } + ::grpc::Status GetCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::GetCryptoRequest& request, ::opi_api::storage::v1::Crypto* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::Crypto>> AsyncGetCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::GetCryptoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::Crypto>>(AsyncGetCryptoRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::Crypto>> PrepareAsyncGetCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::GetCryptoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::Crypto>>(PrepareAsyncGetCryptoRaw(context, request, cq)); + } + ::grpc::Status CryptoStats(::grpc::ClientContext* context, const ::opi_api::storage::v1::CryptoStatsRequest& request, ::opi_api::storage::v1::CryptoStatsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::CryptoStatsResponse>> AsyncCryptoStats(::grpc::ClientContext* context, const ::opi_api::storage::v1::CryptoStatsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::CryptoStatsResponse>>(AsyncCryptoStatsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::CryptoStatsResponse>> PrepareAsyncCryptoStats(::grpc::ClientContext* context, const ::opi_api::storage::v1::CryptoStatsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::CryptoStatsResponse>>(PrepareAsyncCryptoStatsRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void CreateCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::CreateCryptoRequest* request, ::opi_api::storage::v1::Crypto* response, std::function) override; + void CreateCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::CreateCryptoRequest* request, ::opi_api::storage::v1::Crypto* response, ::grpc::ClientUnaryReactor* reactor) override; + void DeleteCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::DeleteCryptoRequest* request, ::google::protobuf::Empty* response, std::function) override; + void DeleteCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::DeleteCryptoRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) override; + void UpdateCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::UpdateCryptoRequest* request, ::opi_api::storage::v1::Crypto* response, std::function) override; + void UpdateCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::UpdateCryptoRequest* request, ::opi_api::storage::v1::Crypto* response, ::grpc::ClientUnaryReactor* reactor) override; + void ListCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::ListCryptoRequest* request, ::opi_api::storage::v1::ListCryptoResponse* response, std::function) override; + void ListCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::ListCryptoRequest* request, ::opi_api::storage::v1::ListCryptoResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::GetCryptoRequest* request, ::opi_api::storage::v1::Crypto* response, std::function) override; + void GetCrypto(::grpc::ClientContext* context, const ::opi_api::storage::v1::GetCryptoRequest* request, ::opi_api::storage::v1::Crypto* response, ::grpc::ClientUnaryReactor* reactor) override; + void CryptoStats(::grpc::ClientContext* context, const ::opi_api::storage::v1::CryptoStatsRequest* request, ::opi_api::storage::v1::CryptoStatsResponse* response, std::function) override; + void CryptoStats(::grpc::ClientContext* context, const ::opi_api::storage::v1::CryptoStatsRequest* request, ::opi_api::storage::v1::CryptoStatsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + private: + friend class Stub; + explicit async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class async* async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::Crypto>* AsyncCreateCryptoRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::CreateCryptoRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::Crypto>* PrepareAsyncCreateCryptoRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::CreateCryptoRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsyncDeleteCryptoRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::DeleteCryptoRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncDeleteCryptoRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::DeleteCryptoRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::Crypto>* AsyncUpdateCryptoRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::UpdateCryptoRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::Crypto>* PrepareAsyncUpdateCryptoRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::UpdateCryptoRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::ListCryptoResponse>* AsyncListCryptoRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::ListCryptoRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::ListCryptoResponse>* PrepareAsyncListCryptoRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::ListCryptoRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::Crypto>* AsyncGetCryptoRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::GetCryptoRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::Crypto>* PrepareAsyncGetCryptoRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::GetCryptoRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::CryptoStatsResponse>* AsyncCryptoStatsRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::CryptoStatsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::opi_api::storage::v1::CryptoStatsResponse>* PrepareAsyncCryptoStatsRaw(::grpc::ClientContext* context, const ::opi_api::storage::v1::CryptoStatsRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_CreateCrypto_; + const ::grpc::internal::RpcMethod rpcmethod_DeleteCrypto_; + const ::grpc::internal::RpcMethod rpcmethod_UpdateCrypto_; + const ::grpc::internal::RpcMethod rpcmethod_ListCrypto_; + const ::grpc::internal::RpcMethod rpcmethod_GetCrypto_; + const ::grpc::internal::RpcMethod rpcmethod_CryptoStats_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + virtual ::grpc::Status CreateCrypto(::grpc::ServerContext* context, const ::opi_api::storage::v1::CreateCryptoRequest* request, ::opi_api::storage::v1::Crypto* response); + virtual ::grpc::Status DeleteCrypto(::grpc::ServerContext* context, const ::opi_api::storage::v1::DeleteCryptoRequest* request, ::google::protobuf::Empty* response); + virtual ::grpc::Status UpdateCrypto(::grpc::ServerContext* context, const ::opi_api::storage::v1::UpdateCryptoRequest* request, ::opi_api::storage::v1::Crypto* response); + virtual ::grpc::Status ListCrypto(::grpc::ServerContext* context, const ::opi_api::storage::v1::ListCryptoRequest* request, ::opi_api::storage::v1::ListCryptoResponse* response); + virtual ::grpc::Status GetCrypto(::grpc::ServerContext* context, const ::opi_api::storage::v1::GetCryptoRequest* request, ::opi_api::storage::v1::Crypto* response); + virtual ::grpc::Status CryptoStats(::grpc::ServerContext* context, const ::opi_api::storage::v1::CryptoStatsRequest* request, ::opi_api::storage::v1::CryptoStatsResponse* response); + }; + template + class WithAsyncMethod_CreateCrypto : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_CreateCrypto() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_CreateCrypto() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateCrypto(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::CreateCryptoRequest* /*request*/, ::opi_api::storage::v1::Crypto* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateCrypto(::grpc::ServerContext* context, ::opi_api::storage::v1::CreateCryptoRequest* request, ::grpc::ServerAsyncResponseWriter< ::opi_api::storage::v1::Crypto>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_DeleteCrypto : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_DeleteCrypto() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_DeleteCrypto() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteCrypto(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::DeleteCryptoRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteCrypto(::grpc::ServerContext* context, ::opi_api::storage::v1::DeleteCryptoRequest* request, ::grpc::ServerAsyncResponseWriter< ::google::protobuf::Empty>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_UpdateCrypto : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_UpdateCrypto() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_UpdateCrypto() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateCrypto(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::UpdateCryptoRequest* /*request*/, ::opi_api::storage::v1::Crypto* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateCrypto(::grpc::ServerContext* context, ::opi_api::storage::v1::UpdateCryptoRequest* request, ::grpc::ServerAsyncResponseWriter< ::opi_api::storage::v1::Crypto>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListCrypto : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_ListCrypto() { + ::grpc::Service::MarkMethodAsync(3); + } + ~WithAsyncMethod_ListCrypto() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListCrypto(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::ListCryptoRequest* /*request*/, ::opi_api::storage::v1::ListCryptoResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListCrypto(::grpc::ServerContext* context, ::opi_api::storage::v1::ListCryptoRequest* request, ::grpc::ServerAsyncResponseWriter< ::opi_api::storage::v1::ListCryptoResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetCrypto : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetCrypto() { + ::grpc::Service::MarkMethodAsync(4); + } + ~WithAsyncMethod_GetCrypto() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetCrypto(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::GetCryptoRequest* /*request*/, ::opi_api::storage::v1::Crypto* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetCrypto(::grpc::ServerContext* context, ::opi_api::storage::v1::GetCryptoRequest* request, ::grpc::ServerAsyncResponseWriter< ::opi_api::storage::v1::Crypto>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_CryptoStats : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_CryptoStats() { + ::grpc::Service::MarkMethodAsync(5); + } + ~WithAsyncMethod_CryptoStats() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CryptoStats(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::CryptoStatsRequest* /*request*/, ::opi_api::storage::v1::CryptoStatsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCryptoStats(::grpc::ServerContext* context, ::opi_api::storage::v1::CryptoStatsRequest* request, ::grpc::ServerAsyncResponseWriter< ::opi_api::storage::v1::CryptoStatsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_CreateCrypto > > > > > AsyncService; + template + class WithCallbackMethod_CreateCrypto : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_CreateCrypto() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::opi_api::storage::v1::CreateCryptoRequest, ::opi_api::storage::v1::Crypto>( + [this]( + ::grpc::CallbackServerContext* context, const ::opi_api::storage::v1::CreateCryptoRequest* request, ::opi_api::storage::v1::Crypto* response) { return this->CreateCrypto(context, request, response); }));} + void SetMessageAllocatorFor_CreateCrypto( + ::grpc::MessageAllocator< ::opi_api::storage::v1::CreateCryptoRequest, ::opi_api::storage::v1::Crypto>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::opi_api::storage::v1::CreateCryptoRequest, ::opi_api::storage::v1::Crypto>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_CreateCrypto() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateCrypto(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::CreateCryptoRequest* /*request*/, ::opi_api::storage::v1::Crypto* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* CreateCrypto( + ::grpc::CallbackServerContext* /*context*/, const ::opi_api::storage::v1::CreateCryptoRequest* /*request*/, ::opi_api::storage::v1::Crypto* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_DeleteCrypto : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_DeleteCrypto() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::opi_api::storage::v1::DeleteCryptoRequest, ::google::protobuf::Empty>( + [this]( + ::grpc::CallbackServerContext* context, const ::opi_api::storage::v1::DeleteCryptoRequest* request, ::google::protobuf::Empty* response) { return this->DeleteCrypto(context, request, response); }));} + void SetMessageAllocatorFor_DeleteCrypto( + ::grpc::MessageAllocator< ::opi_api::storage::v1::DeleteCryptoRequest, ::google::protobuf::Empty>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::opi_api::storage::v1::DeleteCryptoRequest, ::google::protobuf::Empty>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_DeleteCrypto() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteCrypto(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::DeleteCryptoRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DeleteCrypto( + ::grpc::CallbackServerContext* /*context*/, const ::opi_api::storage::v1::DeleteCryptoRequest* /*request*/, ::google::protobuf::Empty* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_UpdateCrypto : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_UpdateCrypto() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::opi_api::storage::v1::UpdateCryptoRequest, ::opi_api::storage::v1::Crypto>( + [this]( + ::grpc::CallbackServerContext* context, const ::opi_api::storage::v1::UpdateCryptoRequest* request, ::opi_api::storage::v1::Crypto* response) { return this->UpdateCrypto(context, request, response); }));} + void SetMessageAllocatorFor_UpdateCrypto( + ::grpc::MessageAllocator< ::opi_api::storage::v1::UpdateCryptoRequest, ::opi_api::storage::v1::Crypto>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::opi_api::storage::v1::UpdateCryptoRequest, ::opi_api::storage::v1::Crypto>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_UpdateCrypto() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateCrypto(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::UpdateCryptoRequest* /*request*/, ::opi_api::storage::v1::Crypto* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* UpdateCrypto( + ::grpc::CallbackServerContext* /*context*/, const ::opi_api::storage::v1::UpdateCryptoRequest* /*request*/, ::opi_api::storage::v1::Crypto* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_ListCrypto : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_ListCrypto() { + ::grpc::Service::MarkMethodCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::opi_api::storage::v1::ListCryptoRequest, ::opi_api::storage::v1::ListCryptoResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::opi_api::storage::v1::ListCryptoRequest* request, ::opi_api::storage::v1::ListCryptoResponse* response) { return this->ListCrypto(context, request, response); }));} + void SetMessageAllocatorFor_ListCrypto( + ::grpc::MessageAllocator< ::opi_api::storage::v1::ListCryptoRequest, ::opi_api::storage::v1::ListCryptoResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); + static_cast<::grpc::internal::CallbackUnaryHandler< ::opi_api::storage::v1::ListCryptoRequest, ::opi_api::storage::v1::ListCryptoResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_ListCrypto() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListCrypto(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::ListCryptoRequest* /*request*/, ::opi_api::storage::v1::ListCryptoResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ListCrypto( + ::grpc::CallbackServerContext* /*context*/, const ::opi_api::storage::v1::ListCryptoRequest* /*request*/, ::opi_api::storage::v1::ListCryptoResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetCrypto : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetCrypto() { + ::grpc::Service::MarkMethodCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::opi_api::storage::v1::GetCryptoRequest, ::opi_api::storage::v1::Crypto>( + [this]( + ::grpc::CallbackServerContext* context, const ::opi_api::storage::v1::GetCryptoRequest* request, ::opi_api::storage::v1::Crypto* response) { return this->GetCrypto(context, request, response); }));} + void SetMessageAllocatorFor_GetCrypto( + ::grpc::MessageAllocator< ::opi_api::storage::v1::GetCryptoRequest, ::opi_api::storage::v1::Crypto>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); + static_cast<::grpc::internal::CallbackUnaryHandler< ::opi_api::storage::v1::GetCryptoRequest, ::opi_api::storage::v1::Crypto>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetCrypto() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetCrypto(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::GetCryptoRequest* /*request*/, ::opi_api::storage::v1::Crypto* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetCrypto( + ::grpc::CallbackServerContext* /*context*/, const ::opi_api::storage::v1::GetCryptoRequest* /*request*/, ::opi_api::storage::v1::Crypto* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_CryptoStats : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_CryptoStats() { + ::grpc::Service::MarkMethodCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::opi_api::storage::v1::CryptoStatsRequest, ::opi_api::storage::v1::CryptoStatsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::opi_api::storage::v1::CryptoStatsRequest* request, ::opi_api::storage::v1::CryptoStatsResponse* response) { return this->CryptoStats(context, request, response); }));} + void SetMessageAllocatorFor_CryptoStats( + ::grpc::MessageAllocator< ::opi_api::storage::v1::CryptoStatsRequest, ::opi_api::storage::v1::CryptoStatsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); + static_cast<::grpc::internal::CallbackUnaryHandler< ::opi_api::storage::v1::CryptoStatsRequest, ::opi_api::storage::v1::CryptoStatsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_CryptoStats() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CryptoStats(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::CryptoStatsRequest* /*request*/, ::opi_api::storage::v1::CryptoStatsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* CryptoStats( + ::grpc::CallbackServerContext* /*context*/, const ::opi_api::storage::v1::CryptoStatsRequest* /*request*/, ::opi_api::storage::v1::CryptoStatsResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_CreateCrypto > > > > > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_CreateCrypto : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_CreateCrypto() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_CreateCrypto() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateCrypto(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::CreateCryptoRequest* /*request*/, ::opi_api::storage::v1::Crypto* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_DeleteCrypto : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_DeleteCrypto() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_DeleteCrypto() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteCrypto(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::DeleteCryptoRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_UpdateCrypto : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_UpdateCrypto() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_UpdateCrypto() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateCrypto(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::UpdateCryptoRequest* /*request*/, ::opi_api::storage::v1::Crypto* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListCrypto : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_ListCrypto() { + ::grpc::Service::MarkMethodGeneric(3); + } + ~WithGenericMethod_ListCrypto() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListCrypto(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::ListCryptoRequest* /*request*/, ::opi_api::storage::v1::ListCryptoResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetCrypto : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetCrypto() { + ::grpc::Service::MarkMethodGeneric(4); + } + ~WithGenericMethod_GetCrypto() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetCrypto(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::GetCryptoRequest* /*request*/, ::opi_api::storage::v1::Crypto* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_CryptoStats : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_CryptoStats() { + ::grpc::Service::MarkMethodGeneric(5); + } + ~WithGenericMethod_CryptoStats() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CryptoStats(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::CryptoStatsRequest* /*request*/, ::opi_api::storage::v1::CryptoStatsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_CreateCrypto : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_CreateCrypto() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_CreateCrypto() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateCrypto(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::CreateCryptoRequest* /*request*/, ::opi_api::storage::v1::Crypto* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateCrypto(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_DeleteCrypto : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_DeleteCrypto() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_DeleteCrypto() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteCrypto(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::DeleteCryptoRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteCrypto(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_UpdateCrypto : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_UpdateCrypto() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_UpdateCrypto() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateCrypto(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::UpdateCryptoRequest* /*request*/, ::opi_api::storage::v1::Crypto* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateCrypto(::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(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListCrypto : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ListCrypto() { + ::grpc::Service::MarkMethodRaw(3); + } + ~WithRawMethod_ListCrypto() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListCrypto(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::ListCryptoRequest* /*request*/, ::opi_api::storage::v1::ListCryptoResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListCrypto(::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(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetCrypto : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetCrypto() { + ::grpc::Service::MarkMethodRaw(4); + } + ~WithRawMethod_GetCrypto() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetCrypto(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::GetCryptoRequest* /*request*/, ::opi_api::storage::v1::Crypto* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetCrypto(::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(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_CryptoStats : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_CryptoStats() { + ::grpc::Service::MarkMethodRaw(5); + } + ~WithRawMethod_CryptoStats() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CryptoStats(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::CryptoStatsRequest* /*request*/, ::opi_api::storage::v1::CryptoStatsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCryptoStats(::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(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_CreateCrypto : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_CreateCrypto() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CreateCrypto(context, request, response); })); + } + ~WithRawCallbackMethod_CreateCrypto() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateCrypto(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::CreateCryptoRequest* /*request*/, ::opi_api::storage::v1::Crypto* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* CreateCrypto( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_DeleteCrypto : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_DeleteCrypto() { + ::grpc::Service::MarkMethodRawCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteCrypto(context, request, response); })); + } + ~WithRawCallbackMethod_DeleteCrypto() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteCrypto(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::DeleteCryptoRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DeleteCrypto( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_UpdateCrypto : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_UpdateCrypto() { + ::grpc::Service::MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UpdateCrypto(context, request, response); })); + } + ~WithRawCallbackMethod_UpdateCrypto() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateCrypto(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::UpdateCryptoRequest* /*request*/, ::opi_api::storage::v1::Crypto* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* UpdateCrypto( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_ListCrypto : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_ListCrypto() { + ::grpc::Service::MarkMethodRawCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListCrypto(context, request, response); })); + } + ~WithRawCallbackMethod_ListCrypto() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListCrypto(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::ListCryptoRequest* /*request*/, ::opi_api::storage::v1::ListCryptoResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ListCrypto( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetCrypto : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetCrypto() { + ::grpc::Service::MarkMethodRawCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetCrypto(context, request, response); })); + } + ~WithRawCallbackMethod_GetCrypto() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetCrypto(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::GetCryptoRequest* /*request*/, ::opi_api::storage::v1::Crypto* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetCrypto( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_CryptoStats : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_CryptoStats() { + ::grpc::Service::MarkMethodRawCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CryptoStats(context, request, response); })); + } + ~WithRawCallbackMethod_CryptoStats() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CryptoStats(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::CryptoStatsRequest* /*request*/, ::opi_api::storage::v1::CryptoStatsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* CryptoStats( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_CreateCrypto : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_CreateCrypto() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::opi_api::storage::v1::CreateCryptoRequest, ::opi_api::storage::v1::Crypto>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::opi_api::storage::v1::CreateCryptoRequest, ::opi_api::storage::v1::Crypto>* streamer) { + return this->StreamedCreateCrypto(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_CreateCrypto() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CreateCrypto(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::CreateCryptoRequest* /*request*/, ::opi_api::storage::v1::Crypto* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCreateCrypto(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::opi_api::storage::v1::CreateCryptoRequest,::opi_api::storage::v1::Crypto>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_DeleteCrypto : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_DeleteCrypto() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::opi_api::storage::v1::DeleteCryptoRequest, ::google::protobuf::Empty>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::opi_api::storage::v1::DeleteCryptoRequest, ::google::protobuf::Empty>* streamer) { + return this->StreamedDeleteCrypto(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_DeleteCrypto() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DeleteCrypto(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::DeleteCryptoRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedDeleteCrypto(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::opi_api::storage::v1::DeleteCryptoRequest,::google::protobuf::Empty>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_UpdateCrypto : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_UpdateCrypto() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::opi_api::storage::v1::UpdateCryptoRequest, ::opi_api::storage::v1::Crypto>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::opi_api::storage::v1::UpdateCryptoRequest, ::opi_api::storage::v1::Crypto>* streamer) { + return this->StreamedUpdateCrypto(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_UpdateCrypto() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status UpdateCrypto(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::UpdateCryptoRequest* /*request*/, ::opi_api::storage::v1::Crypto* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedUpdateCrypto(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::opi_api::storage::v1::UpdateCryptoRequest,::opi_api::storage::v1::Crypto>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListCrypto : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ListCrypto() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< + ::opi_api::storage::v1::ListCryptoRequest, ::opi_api::storage::v1::ListCryptoResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::opi_api::storage::v1::ListCryptoRequest, ::opi_api::storage::v1::ListCryptoResponse>* streamer) { + return this->StreamedListCrypto(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ListCrypto() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListCrypto(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::ListCryptoRequest* /*request*/, ::opi_api::storage::v1::ListCryptoResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListCrypto(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::opi_api::storage::v1::ListCryptoRequest,::opi_api::storage::v1::ListCryptoResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetCrypto : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetCrypto() { + ::grpc::Service::MarkMethodStreamed(4, + new ::grpc::internal::StreamedUnaryHandler< + ::opi_api::storage::v1::GetCryptoRequest, ::opi_api::storage::v1::Crypto>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::opi_api::storage::v1::GetCryptoRequest, ::opi_api::storage::v1::Crypto>* streamer) { + return this->StreamedGetCrypto(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetCrypto() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetCrypto(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::GetCryptoRequest* /*request*/, ::opi_api::storage::v1::Crypto* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetCrypto(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::opi_api::storage::v1::GetCryptoRequest,::opi_api::storage::v1::Crypto>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_CryptoStats : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_CryptoStats() { + ::grpc::Service::MarkMethodStreamed(5, + new ::grpc::internal::StreamedUnaryHandler< + ::opi_api::storage::v1::CryptoStatsRequest, ::opi_api::storage::v1::CryptoStatsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::opi_api::storage::v1::CryptoStatsRequest, ::opi_api::storage::v1::CryptoStatsResponse>* streamer) { + return this->StreamedCryptoStats(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_CryptoStats() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CryptoStats(::grpc::ServerContext* /*context*/, const ::opi_api::storage::v1::CryptoStatsRequest* /*request*/, ::opi_api::storage::v1::CryptoStatsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCryptoStats(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::opi_api::storage::v1::CryptoStatsRequest,::opi_api::storage::v1::CryptoStatsResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_CreateCrypto > > > > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_CreateCrypto > > > > > StreamedService; +}; + } // namespace v1 } // namespace storage } // namespace opi_api diff --git a/storage/v1alpha1/gen/cpp/middleend.pb.cc b/storage/v1alpha1/gen/cpp/middleend.pb.cc index 170bcf2d..6914c280 100644 --- a/storage/v1alpha1/gen/cpp/middleend.pb.cc +++ b/storage/v1alpha1/gen/cpp/middleend.pb.cc @@ -19,27 +19,279 @@ PROTOBUF_PRAGMA_INIT_SEG namespace opi_api { namespace storage { namespace v1 { +constexpr Crypto::Crypto( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : key_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , crypto_id_(nullptr) + , volume_id_(nullptr) + , cipher_(0) +{} +struct CryptoDefaultTypeInternal { + constexpr CryptoDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~CryptoDefaultTypeInternal() {} + union { + Crypto _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CryptoDefaultTypeInternal _Crypto_default_instance_; +constexpr CreateCryptoRequest::CreateCryptoRequest( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : volume_(nullptr){} +struct CreateCryptoRequestDefaultTypeInternal { + constexpr CreateCryptoRequestDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~CreateCryptoRequestDefaultTypeInternal() {} + union { + CreateCryptoRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CreateCryptoRequestDefaultTypeInternal _CreateCryptoRequest_default_instance_; +constexpr DeleteCryptoRequest::DeleteCryptoRequest( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : crypto_id_(nullptr){} +struct DeleteCryptoRequestDefaultTypeInternal { + constexpr DeleteCryptoRequestDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~DeleteCryptoRequestDefaultTypeInternal() {} + union { + DeleteCryptoRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DeleteCryptoRequestDefaultTypeInternal _DeleteCryptoRequest_default_instance_; +constexpr UpdateCryptoRequest::UpdateCryptoRequest( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : volume_(nullptr){} +struct UpdateCryptoRequestDefaultTypeInternal { + constexpr UpdateCryptoRequestDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~UpdateCryptoRequestDefaultTypeInternal() {} + union { + UpdateCryptoRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT UpdateCryptoRequestDefaultTypeInternal _UpdateCryptoRequest_default_instance_; +constexpr ListCryptoRequest::ListCryptoRequest( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : page_token_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , page_size_(0){} +struct ListCryptoRequestDefaultTypeInternal { + constexpr ListCryptoRequestDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ListCryptoRequestDefaultTypeInternal() {} + union { + ListCryptoRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ListCryptoRequestDefaultTypeInternal _ListCryptoRequest_default_instance_; +constexpr ListCryptoResponse::ListCryptoResponse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : volumes_() + , next_page_token_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +struct ListCryptoResponseDefaultTypeInternal { + constexpr ListCryptoResponseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ListCryptoResponseDefaultTypeInternal() {} + union { + ListCryptoResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ListCryptoResponseDefaultTypeInternal _ListCryptoResponse_default_instance_; +constexpr GetCryptoRequest::GetCryptoRequest( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : crypto_id_(nullptr){} +struct GetCryptoRequestDefaultTypeInternal { + constexpr GetCryptoRequestDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~GetCryptoRequestDefaultTypeInternal() {} + union { + GetCryptoRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GetCryptoRequestDefaultTypeInternal _GetCryptoRequest_default_instance_; +constexpr CryptoStatsRequest::CryptoStatsRequest( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : crypto_id_(nullptr){} +struct CryptoStatsRequestDefaultTypeInternal { + constexpr CryptoStatsRequestDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~CryptoStatsRequestDefaultTypeInternal() {} + union { + CryptoStatsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CryptoStatsRequestDefaultTypeInternal _CryptoStatsRequest_default_instance_; +constexpr CryptoStatsResponse::CryptoStatsResponse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : stats_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , crypto_id_(nullptr){} +struct CryptoStatsResponseDefaultTypeInternal { + constexpr CryptoStatsResponseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~CryptoStatsResponseDefaultTypeInternal() {} + union { + CryptoStatsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CryptoStatsResponseDefaultTypeInternal _CryptoStatsResponse_default_instance_; } // namespace v1 } // namespace storage } // namespace opi_api +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_middleend_2eproto[9]; static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_middleend_2eproto = nullptr; static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_middleend_2eproto = nullptr; -const uint32_t TableStruct_middleend_2eproto::offsets[1] = {}; -static constexpr ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema* schemas = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::Message* const* file_default_instances = nullptr; + +const uint32_t TableStruct_middleend_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::Crypto, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::Crypto, crypto_id_), + PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::Crypto, volume_id_), + PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::Crypto, key_), + PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::Crypto, cipher_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::CreateCryptoRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::CreateCryptoRequest, volume_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::DeleteCryptoRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::DeleteCryptoRequest, crypto_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::UpdateCryptoRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::UpdateCryptoRequest, volume_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::ListCryptoRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::ListCryptoRequest, page_size_), + PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::ListCryptoRequest, page_token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::ListCryptoResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::ListCryptoResponse, volumes_), + PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::ListCryptoResponse, next_page_token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::GetCryptoRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::GetCryptoRequest, crypto_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::CryptoStatsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::CryptoStatsRequest, crypto_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::CryptoStatsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::CryptoStatsResponse, crypto_id_), + PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::CryptoStatsResponse, stats_), +}; +static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::opi_api::storage::v1::Crypto)}, + { 10, -1, -1, sizeof(::opi_api::storage::v1::CreateCryptoRequest)}, + { 17, -1, -1, sizeof(::opi_api::storage::v1::DeleteCryptoRequest)}, + { 24, -1, -1, sizeof(::opi_api::storage::v1::UpdateCryptoRequest)}, + { 31, -1, -1, sizeof(::opi_api::storage::v1::ListCryptoRequest)}, + { 39, -1, -1, sizeof(::opi_api::storage::v1::ListCryptoResponse)}, + { 47, -1, -1, sizeof(::opi_api::storage::v1::GetCryptoRequest)}, + { 54, -1, -1, sizeof(::opi_api::storage::v1::CryptoStatsRequest)}, + { 61, -1, -1, sizeof(::opi_api::storage::v1::CryptoStatsResponse)}, +}; + +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast(&::opi_api::storage::v1::_Crypto_default_instance_), + reinterpret_cast(&::opi_api::storage::v1::_CreateCryptoRequest_default_instance_), + reinterpret_cast(&::opi_api::storage::v1::_DeleteCryptoRequest_default_instance_), + reinterpret_cast(&::opi_api::storage::v1::_UpdateCryptoRequest_default_instance_), + reinterpret_cast(&::opi_api::storage::v1::_ListCryptoRequest_default_instance_), + reinterpret_cast(&::opi_api::storage::v1::_ListCryptoResponse_default_instance_), + reinterpret_cast(&::opi_api::storage::v1::_GetCryptoRequest_default_instance_), + reinterpret_cast(&::opi_api::storage::v1::_CryptoStatsRequest_default_instance_), + reinterpret_cast(&::opi_api::storage::v1::_CryptoStatsResponse_default_instance_), +}; const char descriptor_table_protodef_middleend_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\017middleend.proto\022\022opi_api.storage.v1B]\n" - "\022opi_api.storage.v1B\016MiddleendProtoP\001Z5g" - "ithub.com/opiproject/opi-api/storage/v1a" - "lpha1/gen/gob\006proto3" + "\n\017middleend.proto\022\022opi_api.storage.v1\032\017o" + "picommon.proto\032\020object_key.proto\032\033google" + "/protobuf/empty.proto\032\034google/api/annota" + "tions.proto\"\247\001\n\006Crypto\022/\n\tcrypto_id\030\001 \001(" + "\0132\034.opi_api.common.v1.ObjectKey\022/\n\tvolum" + "e_id\030\002 \001(\0132\034.opi_api.common.v1.ObjectKey" + "\022\013\n\003key\030\003 \001(\014\022.\n\006cipher\030\004 \001(\0162\036.opi_api." + "storage.v1.CryptoType\"A\n\023CreateCryptoReq" + "uest\022*\n\006volume\030\001 \001(\0132\032.opi_api.storage.v" + "1.Crypto\"F\n\023DeleteCryptoRequest\022/\n\tcrypt" + "o_id\030\001 \001(\0132\034.opi_api.common.v1.ObjectKey" + "\"A\n\023UpdateCryptoRequest\022*\n\006volume\030\001 \001(\0132" + "\032.opi_api.storage.v1.Crypto\":\n\021ListCrypt" + "oRequest\022\021\n\tpage_size\030\001 \001(\005\022\022\n\npage_toke" + "n\030\002 \001(\t\"Z\n\022ListCryptoResponse\022+\n\007volumes" + "\030\001 \003(\0132\032.opi_api.storage.v1.Crypto\022\027\n\017ne" + "xt_page_token\030\002 \001(\t\"C\n\020GetCryptoRequest\022" + "/\n\tcrypto_id\030\001 \001(\0132\034.opi_api.common.v1.O" + "bjectKey\"E\n\022CryptoStatsRequest\022/\n\tcrypto" + "_id\030\001 \001(\0132\034.opi_api.common.v1.ObjectKey\"" + "U\n\023CryptoStatsResponse\022/\n\tcrypto_id\030\001 \001(" + "\0132\034.opi_api.common.v1.ObjectKey\022\r\n\005stats" + "\030\002 \001(\t2\246\005\n\020MiddleendService\022p\n\014CreateCry" + "pto\022\'.opi_api.storage.v1.CreateCryptoReq" + "uest\032\032.opi_api.storage.v1.Crypto\"\033\202\323\344\223\002\025" + "\"\013/v1/volumes:\006volume\022m\n\014DeleteCrypto\022\'." + "opi_api.storage.v1.DeleteCryptoRequest\032\026" + ".google.protobuf.Empty\"\034\202\323\344\223\002\026*\024/v1/volu" + "mes/{volume}\022p\n\014UpdateCrypto\022\'.opi_api.s" + "torage.v1.UpdateCryptoRequest\032\032.opi_api." + "storage.v1.Crypto\"\033\202\323\344\223\002\0252\013/v1/volumes:\006" + "volume\022p\n\nListCrypto\022%.opi_api.storage.v" + "1.ListCryptoRequest\032&.opi_api.storage.v1" + ".ListCryptoResponse\"\023\202\323\344\223\002\r\022\013/v1/volumes" + "\022k\n\tGetCrypto\022$.opi_api.storage.v1.GetCr" + "yptoRequest\032\032.opi_api.storage.v1.Crypto\"" + "\034\202\323\344\223\002\026\022\024/v1/volumes/{volume}\022`\n\013CryptoS" + "tats\022&.opi_api.storage.v1.CryptoStatsReq" + "uest\032\'.opi_api.storage.v1.CryptoStatsRes" + "ponse\"\000B]\n\022opi_api.storage.v1B\016Middleend" + "ProtoP\001Z5github.com/opiproject/opi-api/s" + "torage/v1alpha1/gen/gob\006proto3" ; +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_middleend_2eproto_deps[4] = { + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fempty_2eproto, + &::descriptor_table_object_5fkey_2eproto, + &::descriptor_table_opicommon_2eproto, +}; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_middleend_2eproto_once; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_middleend_2eproto = { - false, false, 140, descriptor_table_protodef_middleend_2eproto, "middleend.proto", - &descriptor_table_middleend_2eproto_once, nullptr, 0, 0, + false, false, 1670, descriptor_table_protodef_middleend_2eproto, "middleend.proto", + &descriptor_table_middleend_2eproto_once, descriptor_table_middleend_2eproto_deps, 4, 9, schemas, file_default_instances, TableStruct_middleend_2eproto::offsets, - nullptr, file_level_enum_descriptors_middleend_2eproto, file_level_service_descriptors_middleend_2eproto, + file_level_metadata_middleend_2eproto, file_level_enum_descriptors_middleend_2eproto, file_level_service_descriptors_middleend_2eproto, }; PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_middleend_2eproto_getter() { return &descriptor_table_middleend_2eproto; @@ -51,11 +303,2077 @@ namespace opi_api { namespace storage { namespace v1 { +// =================================================================== + +class Crypto::_Internal { + public: + static const ::opi_api::common::v1::ObjectKey& crypto_id(const Crypto* msg); + static const ::opi_api::common::v1::ObjectKey& volume_id(const Crypto* msg); +}; + +const ::opi_api::common::v1::ObjectKey& +Crypto::_Internal::crypto_id(const Crypto* msg) { + return *msg->crypto_id_; +} +const ::opi_api::common::v1::ObjectKey& +Crypto::_Internal::volume_id(const Crypto* msg) { + return *msg->volume_id_; +} +void Crypto::clear_crypto_id() { + if (GetArenaForAllocation() == nullptr && crypto_id_ != nullptr) { + delete crypto_id_; + } + crypto_id_ = nullptr; +} +void Crypto::clear_volume_id() { + if (GetArenaForAllocation() == nullptr && volume_id_ != nullptr) { + delete volume_id_; + } + volume_id_ = nullptr; +} +Crypto::Crypto(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:opi_api.storage.v1.Crypto) +} +Crypto::Crypto(const Crypto& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_key().empty()) { + key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_key(), + GetArenaForAllocation()); + } + if (from._internal_has_crypto_id()) { + crypto_id_ = new ::opi_api::common::v1::ObjectKey(*from.crypto_id_); + } else { + crypto_id_ = nullptr; + } + if (from._internal_has_volume_id()) { + volume_id_ = new ::opi_api::common::v1::ObjectKey(*from.volume_id_); + } else { + volume_id_ = nullptr; + } + cipher_ = from.cipher_; + // @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.Crypto) +} + +inline void Crypto::SharedCtor() { +key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&crypto_id_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&cipher_) - + reinterpret_cast(&crypto_id_)) + sizeof(cipher_)); +} + +Crypto::~Crypto() { + // @@protoc_insertion_point(destructor:opi_api.storage.v1.Crypto) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void Crypto::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete crypto_id_; + if (this != internal_default_instance()) delete volume_id_; +} + +void Crypto::ArenaDtor(void* object) { + Crypto* _this = reinterpret_cast< Crypto* >(object); + (void)_this; +} +void Crypto::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void Crypto::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Crypto::Clear() { +// @@protoc_insertion_point(message_clear_start:opi_api.storage.v1.Crypto) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + key_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && crypto_id_ != nullptr) { + delete crypto_id_; + } + crypto_id_ = nullptr; + if (GetArenaForAllocation() == nullptr && volume_id_ != nullptr) { + delete volume_id_; + } + volume_id_ = nullptr; + cipher_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Crypto::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .opi_api.common.v1.ObjectKey crypto_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_crypto_id(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .opi_api.common.v1.ObjectKey volume_id = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_volume_id(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bytes key = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_key(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .opi_api.storage.v1.CryptoType cipher = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_cipher(static_cast<::opi_api::storage::v1::CryptoType>(val)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* Crypto::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:opi_api.storage.v1.Crypto) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .opi_api.common.v1.ObjectKey crypto_id = 1; + if (this->_internal_has_crypto_id()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::crypto_id(this), target, stream); + } + + // .opi_api.common.v1.ObjectKey volume_id = 2; + if (this->_internal_has_volume_id()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 2, _Internal::volume_id(this), target, stream); + } + + // bytes key = 3; + if (!this->_internal_key().empty()) { + target = stream->WriteBytesMaybeAliased( + 3, this->_internal_key(), target); + } + + // .opi_api.storage.v1.CryptoType cipher = 4; + if (this->_internal_cipher() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 4, this->_internal_cipher(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:opi_api.storage.v1.Crypto) + return target; +} + +size_t Crypto::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opi_api.storage.v1.Crypto) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // bytes key = 3; + if (!this->_internal_key().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_key()); + } + + // .opi_api.common.v1.ObjectKey crypto_id = 1; + if (this->_internal_has_crypto_id()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *crypto_id_); + } + + // .opi_api.common.v1.ObjectKey volume_id = 2; + if (this->_internal_has_volume_id()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *volume_id_); + } + + // .opi_api.storage.v1.CryptoType cipher = 4; + if (this->_internal_cipher() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_cipher()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Crypto::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Crypto::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Crypto::GetClassData() const { return &_class_data_; } + +void Crypto::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void Crypto::MergeFrom(const Crypto& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.storage.v1.Crypto) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_key().empty()) { + _internal_set_key(from._internal_key()); + } + if (from._internal_has_crypto_id()) { + _internal_mutable_crypto_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_crypto_id()); + } + if (from._internal_has_volume_id()) { + _internal_mutable_volume_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_volume_id()); + } + if (from._internal_cipher() != 0) { + _internal_set_cipher(from._internal_cipher()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Crypto::CopyFrom(const Crypto& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.storage.v1.Crypto) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Crypto::IsInitialized() const { + return true; +} + +void Crypto::InternalSwap(Crypto* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &key_, lhs_arena, + &other->key_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Crypto, cipher_) + + sizeof(Crypto::cipher_) + - PROTOBUF_FIELD_OFFSET(Crypto, crypto_id_)>( + reinterpret_cast(&crypto_id_), + reinterpret_cast(&other->crypto_id_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Crypto::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_middleend_2eproto_getter, &descriptor_table_middleend_2eproto_once, + file_level_metadata_middleend_2eproto[0]); +} + +// =================================================================== + +class CreateCryptoRequest::_Internal { + public: + static const ::opi_api::storage::v1::Crypto& volume(const CreateCryptoRequest* msg); +}; + +const ::opi_api::storage::v1::Crypto& +CreateCryptoRequest::_Internal::volume(const CreateCryptoRequest* msg) { + return *msg->volume_; +} +CreateCryptoRequest::CreateCryptoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:opi_api.storage.v1.CreateCryptoRequest) +} +CreateCryptoRequest::CreateCryptoRequest(const CreateCryptoRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_volume()) { + volume_ = new ::opi_api::storage::v1::Crypto(*from.volume_); + } else { + volume_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.CreateCryptoRequest) +} + +inline void CreateCryptoRequest::SharedCtor() { +volume_ = nullptr; +} + +CreateCryptoRequest::~CreateCryptoRequest() { + // @@protoc_insertion_point(destructor:opi_api.storage.v1.CreateCryptoRequest) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void CreateCryptoRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete volume_; +} + +void CreateCryptoRequest::ArenaDtor(void* object) { + CreateCryptoRequest* _this = reinterpret_cast< CreateCryptoRequest* >(object); + (void)_this; +} +void CreateCryptoRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void CreateCryptoRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void CreateCryptoRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:opi_api.storage.v1.CreateCryptoRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && volume_ != nullptr) { + delete volume_; + } + volume_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreateCryptoRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .opi_api.storage.v1.Crypto volume = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_volume(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* CreateCryptoRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:opi_api.storage.v1.CreateCryptoRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .opi_api.storage.v1.Crypto volume = 1; + if (this->_internal_has_volume()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::volume(this), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:opi_api.storage.v1.CreateCryptoRequest) + return target; +} + +size_t CreateCryptoRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opi_api.storage.v1.CreateCryptoRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .opi_api.storage.v1.Crypto volume = 1; + if (this->_internal_has_volume()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *volume_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateCryptoRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CreateCryptoRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateCryptoRequest::GetClassData() const { return &_class_data_; } + +void CreateCryptoRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void CreateCryptoRequest::MergeFrom(const CreateCryptoRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.storage.v1.CreateCryptoRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_volume()) { + _internal_mutable_volume()->::opi_api::storage::v1::Crypto::MergeFrom(from._internal_volume()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CreateCryptoRequest::CopyFrom(const CreateCryptoRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.storage.v1.CreateCryptoRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateCryptoRequest::IsInitialized() const { + return true; +} + +void CreateCryptoRequest::InternalSwap(CreateCryptoRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(volume_, other->volume_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CreateCryptoRequest::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_middleend_2eproto_getter, &descriptor_table_middleend_2eproto_once, + file_level_metadata_middleend_2eproto[1]); +} + +// =================================================================== + +class DeleteCryptoRequest::_Internal { + public: + static const ::opi_api::common::v1::ObjectKey& crypto_id(const DeleteCryptoRequest* msg); +}; + +const ::opi_api::common::v1::ObjectKey& +DeleteCryptoRequest::_Internal::crypto_id(const DeleteCryptoRequest* msg) { + return *msg->crypto_id_; +} +void DeleteCryptoRequest::clear_crypto_id() { + if (GetArenaForAllocation() == nullptr && crypto_id_ != nullptr) { + delete crypto_id_; + } + crypto_id_ = nullptr; +} +DeleteCryptoRequest::DeleteCryptoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:opi_api.storage.v1.DeleteCryptoRequest) +} +DeleteCryptoRequest::DeleteCryptoRequest(const DeleteCryptoRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_crypto_id()) { + crypto_id_ = new ::opi_api::common::v1::ObjectKey(*from.crypto_id_); + } else { + crypto_id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.DeleteCryptoRequest) +} + +inline void DeleteCryptoRequest::SharedCtor() { +crypto_id_ = nullptr; +} + +DeleteCryptoRequest::~DeleteCryptoRequest() { + // @@protoc_insertion_point(destructor:opi_api.storage.v1.DeleteCryptoRequest) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void DeleteCryptoRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete crypto_id_; +} + +void DeleteCryptoRequest::ArenaDtor(void* object) { + DeleteCryptoRequest* _this = reinterpret_cast< DeleteCryptoRequest* >(object); + (void)_this; +} +void DeleteCryptoRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void DeleteCryptoRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void DeleteCryptoRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:opi_api.storage.v1.DeleteCryptoRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && crypto_id_ != nullptr) { + delete crypto_id_; + } + crypto_id_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DeleteCryptoRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .opi_api.common.v1.ObjectKey crypto_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_crypto_id(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* DeleteCryptoRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:opi_api.storage.v1.DeleteCryptoRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .opi_api.common.v1.ObjectKey crypto_id = 1; + if (this->_internal_has_crypto_id()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::crypto_id(this), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:opi_api.storage.v1.DeleteCryptoRequest) + return target; +} + +size_t DeleteCryptoRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opi_api.storage.v1.DeleteCryptoRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .opi_api.common.v1.ObjectKey crypto_id = 1; + if (this->_internal_has_crypto_id()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *crypto_id_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteCryptoRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DeleteCryptoRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteCryptoRequest::GetClassData() const { return &_class_data_; } + +void DeleteCryptoRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void DeleteCryptoRequest::MergeFrom(const DeleteCryptoRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.storage.v1.DeleteCryptoRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_crypto_id()) { + _internal_mutable_crypto_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_crypto_id()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DeleteCryptoRequest::CopyFrom(const DeleteCryptoRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.storage.v1.DeleteCryptoRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeleteCryptoRequest::IsInitialized() const { + return true; +} + +void DeleteCryptoRequest::InternalSwap(DeleteCryptoRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(crypto_id_, other->crypto_id_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DeleteCryptoRequest::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_middleend_2eproto_getter, &descriptor_table_middleend_2eproto_once, + file_level_metadata_middleend_2eproto[2]); +} + +// =================================================================== + +class UpdateCryptoRequest::_Internal { + public: + static const ::opi_api::storage::v1::Crypto& volume(const UpdateCryptoRequest* msg); +}; + +const ::opi_api::storage::v1::Crypto& +UpdateCryptoRequest::_Internal::volume(const UpdateCryptoRequest* msg) { + return *msg->volume_; +} +UpdateCryptoRequest::UpdateCryptoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:opi_api.storage.v1.UpdateCryptoRequest) +} +UpdateCryptoRequest::UpdateCryptoRequest(const UpdateCryptoRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_volume()) { + volume_ = new ::opi_api::storage::v1::Crypto(*from.volume_); + } else { + volume_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.UpdateCryptoRequest) +} + +inline void UpdateCryptoRequest::SharedCtor() { +volume_ = nullptr; +} + +UpdateCryptoRequest::~UpdateCryptoRequest() { + // @@protoc_insertion_point(destructor:opi_api.storage.v1.UpdateCryptoRequest) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void UpdateCryptoRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete volume_; +} + +void UpdateCryptoRequest::ArenaDtor(void* object) { + UpdateCryptoRequest* _this = reinterpret_cast< UpdateCryptoRequest* >(object); + (void)_this; +} +void UpdateCryptoRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void UpdateCryptoRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void UpdateCryptoRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:opi_api.storage.v1.UpdateCryptoRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && volume_ != nullptr) { + delete volume_; + } + volume_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UpdateCryptoRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .opi_api.storage.v1.Crypto volume = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_volume(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* UpdateCryptoRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:opi_api.storage.v1.UpdateCryptoRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .opi_api.storage.v1.Crypto volume = 1; + if (this->_internal_has_volume()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::volume(this), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:opi_api.storage.v1.UpdateCryptoRequest) + return target; +} + +size_t UpdateCryptoRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opi_api.storage.v1.UpdateCryptoRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .opi_api.storage.v1.Crypto volume = 1; + if (this->_internal_has_volume()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *volume_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateCryptoRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UpdateCryptoRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateCryptoRequest::GetClassData() const { return &_class_data_; } + +void UpdateCryptoRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void UpdateCryptoRequest::MergeFrom(const UpdateCryptoRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.storage.v1.UpdateCryptoRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_volume()) { + _internal_mutable_volume()->::opi_api::storage::v1::Crypto::MergeFrom(from._internal_volume()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void UpdateCryptoRequest::CopyFrom(const UpdateCryptoRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.storage.v1.UpdateCryptoRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UpdateCryptoRequest::IsInitialized() const { + return true; +} + +void UpdateCryptoRequest::InternalSwap(UpdateCryptoRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(volume_, other->volume_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata UpdateCryptoRequest::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_middleend_2eproto_getter, &descriptor_table_middleend_2eproto_once, + file_level_metadata_middleend_2eproto[3]); +} + +// =================================================================== + +class ListCryptoRequest::_Internal { + public: +}; + +ListCryptoRequest::ListCryptoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:opi_api.storage.v1.ListCryptoRequest) +} +ListCryptoRequest::ListCryptoRequest(const ListCryptoRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + page_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + page_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_page_token().empty()) { + page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_page_token(), + GetArenaForAllocation()); + } + page_size_ = from.page_size_; + // @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.ListCryptoRequest) +} + +inline void ListCryptoRequest::SharedCtor() { +page_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + page_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +page_size_ = 0; +} + +ListCryptoRequest::~ListCryptoRequest() { + // @@protoc_insertion_point(destructor:opi_api.storage.v1.ListCryptoRequest) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void ListCryptoRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + page_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void ListCryptoRequest::ArenaDtor(void* object) { + ListCryptoRequest* _this = reinterpret_cast< ListCryptoRequest* >(object); + (void)_this; +} +void ListCryptoRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ListCryptoRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ListCryptoRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:opi_api.storage.v1.ListCryptoRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + page_token_.ClearToEmpty(); + page_size_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListCryptoRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // int32 page_size = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + page_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string page_token = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_page_token(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opi_api.storage.v1.ListCryptoRequest.page_token")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* ListCryptoRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:opi_api.storage.v1.ListCryptoRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int32 page_size = 1; + if (this->_internal_page_size() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_page_size(), target); + } + + // string page_token = 2; + if (!this->_internal_page_token().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_page_token().data(), static_cast(this->_internal_page_token().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "opi_api.storage.v1.ListCryptoRequest.page_token"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_page_token(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:opi_api.storage.v1.ListCryptoRequest) + return target; +} + +size_t ListCryptoRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opi_api.storage.v1.ListCryptoRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string page_token = 2; + if (!this->_internal_page_token().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_page_token()); + } + + // int32 page_size = 1; + if (this->_internal_page_size() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_page_size()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListCryptoRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListCryptoRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListCryptoRequest::GetClassData() const { return &_class_data_; } + +void ListCryptoRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ListCryptoRequest::MergeFrom(const ListCryptoRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.storage.v1.ListCryptoRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_page_token().empty()) { + _internal_set_page_token(from._internal_page_token()); + } + if (from._internal_page_size() != 0) { + _internal_set_page_size(from._internal_page_size()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ListCryptoRequest::CopyFrom(const ListCryptoRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.storage.v1.ListCryptoRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListCryptoRequest::IsInitialized() const { + return true; +} + +void ListCryptoRequest::InternalSwap(ListCryptoRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &page_token_, lhs_arena, + &other->page_token_, rhs_arena + ); + swap(page_size_, other->page_size_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListCryptoRequest::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_middleend_2eproto_getter, &descriptor_table_middleend_2eproto_once, + file_level_metadata_middleend_2eproto[4]); +} + +// =================================================================== + +class ListCryptoResponse::_Internal { + public: +}; + +ListCryptoResponse::ListCryptoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + volumes_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:opi_api.storage.v1.ListCryptoResponse) +} +ListCryptoResponse::ListCryptoResponse(const ListCryptoResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + volumes_(from.volumes_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + next_page_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + next_page_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_next_page_token().empty()) { + next_page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_next_page_token(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.ListCryptoResponse) +} + +inline void ListCryptoResponse::SharedCtor() { +next_page_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + next_page_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ListCryptoResponse::~ListCryptoResponse() { + // @@protoc_insertion_point(destructor:opi_api.storage.v1.ListCryptoResponse) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void ListCryptoResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + next_page_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void ListCryptoResponse::ArenaDtor(void* object) { + ListCryptoResponse* _this = reinterpret_cast< ListCryptoResponse* >(object); + (void)_this; +} +void ListCryptoResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ListCryptoResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ListCryptoResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:opi_api.storage.v1.ListCryptoResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + volumes_.Clear(); + next_page_token_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListCryptoResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // repeated .opi_api.storage.v1.Crypto volumes = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_volumes(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // string next_page_token = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_next_page_token(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opi_api.storage.v1.ListCryptoResponse.next_page_token")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* ListCryptoResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:opi_api.storage.v1.ListCryptoResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .opi_api.storage.v1.Crypto volumes = 1; + for (unsigned int i = 0, + n = static_cast(this->_internal_volumes_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, this->_internal_volumes(i), target, stream); + } + + // string next_page_token = 2; + if (!this->_internal_next_page_token().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_next_page_token().data(), static_cast(this->_internal_next_page_token().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "opi_api.storage.v1.ListCryptoResponse.next_page_token"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_next_page_token(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:opi_api.storage.v1.ListCryptoResponse) + return target; +} + +size_t ListCryptoResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opi_api.storage.v1.ListCryptoResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .opi_api.storage.v1.Crypto volumes = 1; + total_size += 1UL * this->_internal_volumes_size(); + for (const auto& msg : this->volumes_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // string next_page_token = 2; + if (!this->_internal_next_page_token().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_next_page_token()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListCryptoResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListCryptoResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListCryptoResponse::GetClassData() const { return &_class_data_; } + +void ListCryptoResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ListCryptoResponse::MergeFrom(const ListCryptoResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.storage.v1.ListCryptoResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + volumes_.MergeFrom(from.volumes_); + if (!from._internal_next_page_token().empty()) { + _internal_set_next_page_token(from._internal_next_page_token()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ListCryptoResponse::CopyFrom(const ListCryptoResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.storage.v1.ListCryptoResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListCryptoResponse::IsInitialized() const { + return true; +} + +void ListCryptoResponse::InternalSwap(ListCryptoResponse* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + volumes_.InternalSwap(&other->volumes_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &next_page_token_, lhs_arena, + &other->next_page_token_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListCryptoResponse::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_middleend_2eproto_getter, &descriptor_table_middleend_2eproto_once, + file_level_metadata_middleend_2eproto[5]); +} + +// =================================================================== + +class GetCryptoRequest::_Internal { + public: + static const ::opi_api::common::v1::ObjectKey& crypto_id(const GetCryptoRequest* msg); +}; + +const ::opi_api::common::v1::ObjectKey& +GetCryptoRequest::_Internal::crypto_id(const GetCryptoRequest* msg) { + return *msg->crypto_id_; +} +void GetCryptoRequest::clear_crypto_id() { + if (GetArenaForAllocation() == nullptr && crypto_id_ != nullptr) { + delete crypto_id_; + } + crypto_id_ = nullptr; +} +GetCryptoRequest::GetCryptoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:opi_api.storage.v1.GetCryptoRequest) +} +GetCryptoRequest::GetCryptoRequest(const GetCryptoRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_crypto_id()) { + crypto_id_ = new ::opi_api::common::v1::ObjectKey(*from.crypto_id_); + } else { + crypto_id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.GetCryptoRequest) +} + +inline void GetCryptoRequest::SharedCtor() { +crypto_id_ = nullptr; +} + +GetCryptoRequest::~GetCryptoRequest() { + // @@protoc_insertion_point(destructor:opi_api.storage.v1.GetCryptoRequest) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void GetCryptoRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete crypto_id_; +} + +void GetCryptoRequest::ArenaDtor(void* object) { + GetCryptoRequest* _this = reinterpret_cast< GetCryptoRequest* >(object); + (void)_this; +} +void GetCryptoRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void GetCryptoRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetCryptoRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:opi_api.storage.v1.GetCryptoRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && crypto_id_ != nullptr) { + delete crypto_id_; + } + crypto_id_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetCryptoRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .opi_api.common.v1.ObjectKey crypto_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_crypto_id(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetCryptoRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:opi_api.storage.v1.GetCryptoRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .opi_api.common.v1.ObjectKey crypto_id = 1; + if (this->_internal_has_crypto_id()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::crypto_id(this), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:opi_api.storage.v1.GetCryptoRequest) + return target; +} + +size_t GetCryptoRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opi_api.storage.v1.GetCryptoRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .opi_api.common.v1.ObjectKey crypto_id = 1; + if (this->_internal_has_crypto_id()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *crypto_id_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetCryptoRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetCryptoRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetCryptoRequest::GetClassData() const { return &_class_data_; } + +void GetCryptoRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void GetCryptoRequest::MergeFrom(const GetCryptoRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.storage.v1.GetCryptoRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_crypto_id()) { + _internal_mutable_crypto_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_crypto_id()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetCryptoRequest::CopyFrom(const GetCryptoRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.storage.v1.GetCryptoRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetCryptoRequest::IsInitialized() const { + return true; +} + +void GetCryptoRequest::InternalSwap(GetCryptoRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(crypto_id_, other->crypto_id_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetCryptoRequest::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_middleend_2eproto_getter, &descriptor_table_middleend_2eproto_once, + file_level_metadata_middleend_2eproto[6]); +} + +// =================================================================== + +class CryptoStatsRequest::_Internal { + public: + static const ::opi_api::common::v1::ObjectKey& crypto_id(const CryptoStatsRequest* msg); +}; + +const ::opi_api::common::v1::ObjectKey& +CryptoStatsRequest::_Internal::crypto_id(const CryptoStatsRequest* msg) { + return *msg->crypto_id_; +} +void CryptoStatsRequest::clear_crypto_id() { + if (GetArenaForAllocation() == nullptr && crypto_id_ != nullptr) { + delete crypto_id_; + } + crypto_id_ = nullptr; +} +CryptoStatsRequest::CryptoStatsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:opi_api.storage.v1.CryptoStatsRequest) +} +CryptoStatsRequest::CryptoStatsRequest(const CryptoStatsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_crypto_id()) { + crypto_id_ = new ::opi_api::common::v1::ObjectKey(*from.crypto_id_); + } else { + crypto_id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.CryptoStatsRequest) +} + +inline void CryptoStatsRequest::SharedCtor() { +crypto_id_ = nullptr; +} + +CryptoStatsRequest::~CryptoStatsRequest() { + // @@protoc_insertion_point(destructor:opi_api.storage.v1.CryptoStatsRequest) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void CryptoStatsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete crypto_id_; +} + +void CryptoStatsRequest::ArenaDtor(void* object) { + CryptoStatsRequest* _this = reinterpret_cast< CryptoStatsRequest* >(object); + (void)_this; +} +void CryptoStatsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void CryptoStatsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void CryptoStatsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:opi_api.storage.v1.CryptoStatsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && crypto_id_ != nullptr) { + delete crypto_id_; + } + crypto_id_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CryptoStatsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .opi_api.common.v1.ObjectKey crypto_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_crypto_id(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* CryptoStatsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:opi_api.storage.v1.CryptoStatsRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .opi_api.common.v1.ObjectKey crypto_id = 1; + if (this->_internal_has_crypto_id()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::crypto_id(this), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:opi_api.storage.v1.CryptoStatsRequest) + return target; +} + +size_t CryptoStatsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opi_api.storage.v1.CryptoStatsRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .opi_api.common.v1.ObjectKey crypto_id = 1; + if (this->_internal_has_crypto_id()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *crypto_id_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CryptoStatsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CryptoStatsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CryptoStatsRequest::GetClassData() const { return &_class_data_; } + +void CryptoStatsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void CryptoStatsRequest::MergeFrom(const CryptoStatsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.storage.v1.CryptoStatsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_crypto_id()) { + _internal_mutable_crypto_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_crypto_id()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CryptoStatsRequest::CopyFrom(const CryptoStatsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.storage.v1.CryptoStatsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CryptoStatsRequest::IsInitialized() const { + return true; +} + +void CryptoStatsRequest::InternalSwap(CryptoStatsRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(crypto_id_, other->crypto_id_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CryptoStatsRequest::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_middleend_2eproto_getter, &descriptor_table_middleend_2eproto_once, + file_level_metadata_middleend_2eproto[7]); +} + +// =================================================================== + +class CryptoStatsResponse::_Internal { + public: + static const ::opi_api::common::v1::ObjectKey& crypto_id(const CryptoStatsResponse* msg); +}; + +const ::opi_api::common::v1::ObjectKey& +CryptoStatsResponse::_Internal::crypto_id(const CryptoStatsResponse* msg) { + return *msg->crypto_id_; +} +void CryptoStatsResponse::clear_crypto_id() { + if (GetArenaForAllocation() == nullptr && crypto_id_ != nullptr) { + delete crypto_id_; + } + crypto_id_ = nullptr; +} +CryptoStatsResponse::CryptoStatsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:opi_api.storage.v1.CryptoStatsResponse) +} +CryptoStatsResponse::CryptoStatsResponse(const CryptoStatsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + stats_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + stats_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_stats().empty()) { + stats_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_stats(), + GetArenaForAllocation()); + } + if (from._internal_has_crypto_id()) { + crypto_id_ = new ::opi_api::common::v1::ObjectKey(*from.crypto_id_); + } else { + crypto_id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.CryptoStatsResponse) +} + +inline void CryptoStatsResponse::SharedCtor() { +stats_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + stats_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +crypto_id_ = nullptr; +} + +CryptoStatsResponse::~CryptoStatsResponse() { + // @@protoc_insertion_point(destructor:opi_api.storage.v1.CryptoStatsResponse) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void CryptoStatsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + stats_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete crypto_id_; +} + +void CryptoStatsResponse::ArenaDtor(void* object) { + CryptoStatsResponse* _this = reinterpret_cast< CryptoStatsResponse* >(object); + (void)_this; +} +void CryptoStatsResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void CryptoStatsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void CryptoStatsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:opi_api.storage.v1.CryptoStatsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + stats_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && crypto_id_ != nullptr) { + delete crypto_id_; + } + crypto_id_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CryptoStatsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .opi_api.common.v1.ObjectKey crypto_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_crypto_id(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string stats = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_stats(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opi_api.storage.v1.CryptoStatsResponse.stats")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* CryptoStatsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:opi_api.storage.v1.CryptoStatsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .opi_api.common.v1.ObjectKey crypto_id = 1; + if (this->_internal_has_crypto_id()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::crypto_id(this), target, stream); + } + + // string stats = 2; + if (!this->_internal_stats().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_stats().data(), static_cast(this->_internal_stats().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "opi_api.storage.v1.CryptoStatsResponse.stats"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_stats(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:opi_api.storage.v1.CryptoStatsResponse) + return target; +} + +size_t CryptoStatsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opi_api.storage.v1.CryptoStatsResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string stats = 2; + if (!this->_internal_stats().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_stats()); + } + + // .opi_api.common.v1.ObjectKey crypto_id = 1; + if (this->_internal_has_crypto_id()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *crypto_id_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CryptoStatsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CryptoStatsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CryptoStatsResponse::GetClassData() const { return &_class_data_; } + +void CryptoStatsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void CryptoStatsResponse::MergeFrom(const CryptoStatsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.storage.v1.CryptoStatsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_stats().empty()) { + _internal_set_stats(from._internal_stats()); + } + if (from._internal_has_crypto_id()) { + _internal_mutable_crypto_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_crypto_id()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CryptoStatsResponse::CopyFrom(const CryptoStatsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.storage.v1.CryptoStatsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CryptoStatsResponse::IsInitialized() const { + return true; +} + +void CryptoStatsResponse::InternalSwap(CryptoStatsResponse* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &stats_, lhs_arena, + &other->stats_, rhs_arena + ); + swap(crypto_id_, other->crypto_id_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CryptoStatsResponse::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_middleend_2eproto_getter, &descriptor_table_middleend_2eproto_once, + file_level_metadata_middleend_2eproto[8]); +} + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace storage } // namespace opi_api PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::opi_api::storage::v1::Crypto* Arena::CreateMaybeMessage< ::opi_api::storage::v1::Crypto >(Arena* arena) { + return Arena::CreateMessageInternal< ::opi_api::storage::v1::Crypto >(arena); +} +template<> PROTOBUF_NOINLINE ::opi_api::storage::v1::CreateCryptoRequest* Arena::CreateMaybeMessage< ::opi_api::storage::v1::CreateCryptoRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::opi_api::storage::v1::CreateCryptoRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::opi_api::storage::v1::DeleteCryptoRequest* Arena::CreateMaybeMessage< ::opi_api::storage::v1::DeleteCryptoRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::opi_api::storage::v1::DeleteCryptoRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::opi_api::storage::v1::UpdateCryptoRequest* Arena::CreateMaybeMessage< ::opi_api::storage::v1::UpdateCryptoRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::opi_api::storage::v1::UpdateCryptoRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::opi_api::storage::v1::ListCryptoRequest* Arena::CreateMaybeMessage< ::opi_api::storage::v1::ListCryptoRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::opi_api::storage::v1::ListCryptoRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::opi_api::storage::v1::ListCryptoResponse* Arena::CreateMaybeMessage< ::opi_api::storage::v1::ListCryptoResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::opi_api::storage::v1::ListCryptoResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::opi_api::storage::v1::GetCryptoRequest* Arena::CreateMaybeMessage< ::opi_api::storage::v1::GetCryptoRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::opi_api::storage::v1::GetCryptoRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::opi_api::storage::v1::CryptoStatsRequest* Arena::CreateMaybeMessage< ::opi_api::storage::v1::CryptoStatsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::opi_api::storage::v1::CryptoStatsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::opi_api::storage::v1::CryptoStatsResponse* Arena::CreateMaybeMessage< ::opi_api::storage::v1::CryptoStatsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::opi_api::storage::v1::CryptoStatsResponse >(arena); +} PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) diff --git a/storage/v1alpha1/gen/cpp/middleend.pb.h b/storage/v1alpha1/gen/cpp/middleend.pb.h index 89cfcbd4..23994bc9 100644 --- a/storage/v1alpha1/gen/cpp/middleend.pb.h +++ b/storage/v1alpha1/gen/cpp/middleend.pb.h @@ -27,8 +27,14 @@ #include #include #include +#include #include // IWYU pragma: export #include // IWYU pragma: export +#include +#include "opicommon.pb.h" +#include "object_key.pb.h" +#include +#include "google/api/annotations.pb.h" // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_middleend_2eproto @@ -44,14 +50,56 @@ struct TableStruct_middleend_2eproto { PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[9] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; static const uint32_t offsets[]; }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_middleend_2eproto; +namespace opi_api { +namespace storage { +namespace v1 { +class CreateCryptoRequest; +struct CreateCryptoRequestDefaultTypeInternal; +extern CreateCryptoRequestDefaultTypeInternal _CreateCryptoRequest_default_instance_; +class Crypto; +struct CryptoDefaultTypeInternal; +extern CryptoDefaultTypeInternal _Crypto_default_instance_; +class CryptoStatsRequest; +struct CryptoStatsRequestDefaultTypeInternal; +extern CryptoStatsRequestDefaultTypeInternal _CryptoStatsRequest_default_instance_; +class CryptoStatsResponse; +struct CryptoStatsResponseDefaultTypeInternal; +extern CryptoStatsResponseDefaultTypeInternal _CryptoStatsResponse_default_instance_; +class DeleteCryptoRequest; +struct DeleteCryptoRequestDefaultTypeInternal; +extern DeleteCryptoRequestDefaultTypeInternal _DeleteCryptoRequest_default_instance_; +class GetCryptoRequest; +struct GetCryptoRequestDefaultTypeInternal; +extern GetCryptoRequestDefaultTypeInternal _GetCryptoRequest_default_instance_; +class ListCryptoRequest; +struct ListCryptoRequestDefaultTypeInternal; +extern ListCryptoRequestDefaultTypeInternal _ListCryptoRequest_default_instance_; +class ListCryptoResponse; +struct ListCryptoResponseDefaultTypeInternal; +extern ListCryptoResponseDefaultTypeInternal _ListCryptoResponse_default_instance_; +class UpdateCryptoRequest; +struct UpdateCryptoRequestDefaultTypeInternal; +extern UpdateCryptoRequestDefaultTypeInternal _UpdateCryptoRequest_default_instance_; +} // namespace v1 +} // namespace storage +} // namespace opi_api PROTOBUF_NAMESPACE_OPEN +template<> ::opi_api::storage::v1::CreateCryptoRequest* Arena::CreateMaybeMessage<::opi_api::storage::v1::CreateCryptoRequest>(Arena*); +template<> ::opi_api::storage::v1::Crypto* Arena::CreateMaybeMessage<::opi_api::storage::v1::Crypto>(Arena*); +template<> ::opi_api::storage::v1::CryptoStatsRequest* Arena::CreateMaybeMessage<::opi_api::storage::v1::CryptoStatsRequest>(Arena*); +template<> ::opi_api::storage::v1::CryptoStatsResponse* Arena::CreateMaybeMessage<::opi_api::storage::v1::CryptoStatsResponse>(Arena*); +template<> ::opi_api::storage::v1::DeleteCryptoRequest* Arena::CreateMaybeMessage<::opi_api::storage::v1::DeleteCryptoRequest>(Arena*); +template<> ::opi_api::storage::v1::GetCryptoRequest* Arena::CreateMaybeMessage<::opi_api::storage::v1::GetCryptoRequest>(Arena*); +template<> ::opi_api::storage::v1::ListCryptoRequest* Arena::CreateMaybeMessage<::opi_api::storage::v1::ListCryptoRequest>(Arena*); +template<> ::opi_api::storage::v1::ListCryptoResponse* Arena::CreateMaybeMessage<::opi_api::storage::v1::ListCryptoResponse>(Arena*); +template<> ::opi_api::storage::v1::UpdateCryptoRequest* Arena::CreateMaybeMessage<::opi_api::storage::v1::UpdateCryptoRequest>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace opi_api { namespace storage { @@ -59,7 +107,1485 @@ namespace v1 { // =================================================================== +class Crypto final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.storage.v1.Crypto) */ { + public: + inline Crypto() : Crypto(nullptr) {} + ~Crypto() override; + explicit constexpr Crypto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Crypto(const Crypto& from); + Crypto(Crypto&& from) noexcept + : Crypto() { + *this = ::std::move(from); + } + + inline Crypto& operator=(const Crypto& from) { + CopyFrom(from); + return *this; + } + inline Crypto& operator=(Crypto&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Crypto& default_instance() { + return *internal_default_instance(); + } + static inline const Crypto* internal_default_instance() { + return reinterpret_cast( + &_Crypto_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(Crypto& a, Crypto& b) { + a.Swap(&b); + } + inline void Swap(Crypto* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Crypto* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Crypto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Crypto& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Crypto& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Crypto* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.storage.v1.Crypto"; + } + protected: + explicit Crypto(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kKeyFieldNumber = 3, + kCryptoIdFieldNumber = 1, + kVolumeIdFieldNumber = 2, + kCipherFieldNumber = 4, + }; + // bytes key = 3; + void clear_key(); + const std::string& key() const; + template + void set_key(ArgT0&& arg0, ArgT... args); + std::string* mutable_key(); + PROTOBUF_NODISCARD std::string* release_key(); + void set_allocated_key(std::string* key); + private: + const std::string& _internal_key() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_key(const std::string& value); + std::string* _internal_mutable_key(); + public: + + // .opi_api.common.v1.ObjectKey crypto_id = 1; + bool has_crypto_id() const; + private: + bool _internal_has_crypto_id() const; + public: + void clear_crypto_id(); + const ::opi_api::common::v1::ObjectKey& crypto_id() const; + PROTOBUF_NODISCARD ::opi_api::common::v1::ObjectKey* release_crypto_id(); + ::opi_api::common::v1::ObjectKey* mutable_crypto_id(); + void set_allocated_crypto_id(::opi_api::common::v1::ObjectKey* crypto_id); + private: + const ::opi_api::common::v1::ObjectKey& _internal_crypto_id() const; + ::opi_api::common::v1::ObjectKey* _internal_mutable_crypto_id(); + public: + void unsafe_arena_set_allocated_crypto_id( + ::opi_api::common::v1::ObjectKey* crypto_id); + ::opi_api::common::v1::ObjectKey* unsafe_arena_release_crypto_id(); + + // .opi_api.common.v1.ObjectKey volume_id = 2; + bool has_volume_id() const; + private: + bool _internal_has_volume_id() const; + public: + void clear_volume_id(); + const ::opi_api::common::v1::ObjectKey& volume_id() const; + PROTOBUF_NODISCARD ::opi_api::common::v1::ObjectKey* release_volume_id(); + ::opi_api::common::v1::ObjectKey* mutable_volume_id(); + void set_allocated_volume_id(::opi_api::common::v1::ObjectKey* volume_id); + private: + const ::opi_api::common::v1::ObjectKey& _internal_volume_id() const; + ::opi_api::common::v1::ObjectKey* _internal_mutable_volume_id(); + public: + void unsafe_arena_set_allocated_volume_id( + ::opi_api::common::v1::ObjectKey* volume_id); + ::opi_api::common::v1::ObjectKey* unsafe_arena_release_volume_id(); + + // .opi_api.storage.v1.CryptoType cipher = 4; + void clear_cipher(); + ::opi_api::storage::v1::CryptoType cipher() const; + void set_cipher(::opi_api::storage::v1::CryptoType value); + private: + ::opi_api::storage::v1::CryptoType _internal_cipher() const; + void _internal_set_cipher(::opi_api::storage::v1::CryptoType value); + public: + + // @@protoc_insertion_point(class_scope:opi_api.storage.v1.Crypto) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_; + ::opi_api::common::v1::ObjectKey* crypto_id_; + ::opi_api::common::v1::ObjectKey* volume_id_; + int cipher_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_middleend_2eproto; +}; +// ------------------------------------------------------------------- + +class CreateCryptoRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.storage.v1.CreateCryptoRequest) */ { + public: + inline CreateCryptoRequest() : CreateCryptoRequest(nullptr) {} + ~CreateCryptoRequest() override; + explicit constexpr CreateCryptoRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CreateCryptoRequest(const CreateCryptoRequest& from); + CreateCryptoRequest(CreateCryptoRequest&& from) noexcept + : CreateCryptoRequest() { + *this = ::std::move(from); + } + + inline CreateCryptoRequest& operator=(const CreateCryptoRequest& from) { + CopyFrom(from); + return *this; + } + inline CreateCryptoRequest& operator=(CreateCryptoRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const CreateCryptoRequest& default_instance() { + return *internal_default_instance(); + } + static inline const CreateCryptoRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateCryptoRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(CreateCryptoRequest& a, CreateCryptoRequest& b) { + a.Swap(&b); + } + inline void Swap(CreateCryptoRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CreateCryptoRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CreateCryptoRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateCryptoRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CreateCryptoRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreateCryptoRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.storage.v1.CreateCryptoRequest"; + } + protected: + explicit CreateCryptoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kVolumeFieldNumber = 1, + }; + // .opi_api.storage.v1.Crypto volume = 1; + bool has_volume() const; + private: + bool _internal_has_volume() const; + public: + void clear_volume(); + const ::opi_api::storage::v1::Crypto& volume() const; + PROTOBUF_NODISCARD ::opi_api::storage::v1::Crypto* release_volume(); + ::opi_api::storage::v1::Crypto* mutable_volume(); + void set_allocated_volume(::opi_api::storage::v1::Crypto* volume); + private: + const ::opi_api::storage::v1::Crypto& _internal_volume() const; + ::opi_api::storage::v1::Crypto* _internal_mutable_volume(); + public: + void unsafe_arena_set_allocated_volume( + ::opi_api::storage::v1::Crypto* volume); + ::opi_api::storage::v1::Crypto* unsafe_arena_release_volume(); + + // @@protoc_insertion_point(class_scope:opi_api.storage.v1.CreateCryptoRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::opi_api::storage::v1::Crypto* volume_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_middleend_2eproto; +}; +// ------------------------------------------------------------------- + +class DeleteCryptoRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.storage.v1.DeleteCryptoRequest) */ { + public: + inline DeleteCryptoRequest() : DeleteCryptoRequest(nullptr) {} + ~DeleteCryptoRequest() override; + explicit constexpr DeleteCryptoRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DeleteCryptoRequest(const DeleteCryptoRequest& from); + DeleteCryptoRequest(DeleteCryptoRequest&& from) noexcept + : DeleteCryptoRequest() { + *this = ::std::move(from); + } + + inline DeleteCryptoRequest& operator=(const DeleteCryptoRequest& from) { + CopyFrom(from); + return *this; + } + inline DeleteCryptoRequest& operator=(DeleteCryptoRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const DeleteCryptoRequest& default_instance() { + return *internal_default_instance(); + } + static inline const DeleteCryptoRequest* internal_default_instance() { + return reinterpret_cast( + &_DeleteCryptoRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(DeleteCryptoRequest& a, DeleteCryptoRequest& b) { + a.Swap(&b); + } + inline void Swap(DeleteCryptoRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DeleteCryptoRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DeleteCryptoRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DeleteCryptoRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DeleteCryptoRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DeleteCryptoRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.storage.v1.DeleteCryptoRequest"; + } + protected: + explicit DeleteCryptoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kCryptoIdFieldNumber = 1, + }; + // .opi_api.common.v1.ObjectKey crypto_id = 1; + bool has_crypto_id() const; + private: + bool _internal_has_crypto_id() const; + public: + void clear_crypto_id(); + const ::opi_api::common::v1::ObjectKey& crypto_id() const; + PROTOBUF_NODISCARD ::opi_api::common::v1::ObjectKey* release_crypto_id(); + ::opi_api::common::v1::ObjectKey* mutable_crypto_id(); + void set_allocated_crypto_id(::opi_api::common::v1::ObjectKey* crypto_id); + private: + const ::opi_api::common::v1::ObjectKey& _internal_crypto_id() const; + ::opi_api::common::v1::ObjectKey* _internal_mutable_crypto_id(); + public: + void unsafe_arena_set_allocated_crypto_id( + ::opi_api::common::v1::ObjectKey* crypto_id); + ::opi_api::common::v1::ObjectKey* unsafe_arena_release_crypto_id(); + + // @@protoc_insertion_point(class_scope:opi_api.storage.v1.DeleteCryptoRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::opi_api::common::v1::ObjectKey* crypto_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_middleend_2eproto; +}; +// ------------------------------------------------------------------- + +class UpdateCryptoRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.storage.v1.UpdateCryptoRequest) */ { + public: + inline UpdateCryptoRequest() : UpdateCryptoRequest(nullptr) {} + ~UpdateCryptoRequest() override; + explicit constexpr UpdateCryptoRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + UpdateCryptoRequest(const UpdateCryptoRequest& from); + UpdateCryptoRequest(UpdateCryptoRequest&& from) noexcept + : UpdateCryptoRequest() { + *this = ::std::move(from); + } + + inline UpdateCryptoRequest& operator=(const UpdateCryptoRequest& from) { + CopyFrom(from); + return *this; + } + inline UpdateCryptoRequest& operator=(UpdateCryptoRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const UpdateCryptoRequest& default_instance() { + return *internal_default_instance(); + } + static inline const UpdateCryptoRequest* internal_default_instance() { + return reinterpret_cast( + &_UpdateCryptoRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(UpdateCryptoRequest& a, UpdateCryptoRequest& b) { + a.Swap(&b); + } + inline void Swap(UpdateCryptoRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(UpdateCryptoRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + UpdateCryptoRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UpdateCryptoRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UpdateCryptoRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(UpdateCryptoRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.storage.v1.UpdateCryptoRequest"; + } + protected: + explicit UpdateCryptoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kVolumeFieldNumber = 1, + }; + // .opi_api.storage.v1.Crypto volume = 1; + bool has_volume() const; + private: + bool _internal_has_volume() const; + public: + void clear_volume(); + const ::opi_api::storage::v1::Crypto& volume() const; + PROTOBUF_NODISCARD ::opi_api::storage::v1::Crypto* release_volume(); + ::opi_api::storage::v1::Crypto* mutable_volume(); + void set_allocated_volume(::opi_api::storage::v1::Crypto* volume); + private: + const ::opi_api::storage::v1::Crypto& _internal_volume() const; + ::opi_api::storage::v1::Crypto* _internal_mutable_volume(); + public: + void unsafe_arena_set_allocated_volume( + ::opi_api::storage::v1::Crypto* volume); + ::opi_api::storage::v1::Crypto* unsafe_arena_release_volume(); + + // @@protoc_insertion_point(class_scope:opi_api.storage.v1.UpdateCryptoRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::opi_api::storage::v1::Crypto* volume_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_middleend_2eproto; +}; +// ------------------------------------------------------------------- + +class ListCryptoRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.storage.v1.ListCryptoRequest) */ { + public: + inline ListCryptoRequest() : ListCryptoRequest(nullptr) {} + ~ListCryptoRequest() override; + explicit constexpr ListCryptoRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ListCryptoRequest(const ListCryptoRequest& from); + ListCryptoRequest(ListCryptoRequest&& from) noexcept + : ListCryptoRequest() { + *this = ::std::move(from); + } + + inline ListCryptoRequest& operator=(const ListCryptoRequest& from) { + CopyFrom(from); + return *this; + } + inline ListCryptoRequest& operator=(ListCryptoRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ListCryptoRequest& default_instance() { + return *internal_default_instance(); + } + static inline const ListCryptoRequest* internal_default_instance() { + return reinterpret_cast( + &_ListCryptoRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(ListCryptoRequest& a, ListCryptoRequest& b) { + a.Swap(&b); + } + inline void Swap(ListCryptoRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListCryptoRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ListCryptoRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListCryptoRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListCryptoRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListCryptoRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.storage.v1.ListCryptoRequest"; + } + protected: + explicit ListCryptoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kPageTokenFieldNumber = 2, + kPageSizeFieldNumber = 1, + }; + // string page_token = 2; + void clear_page_token(); + const std::string& page_token() const; + template + void set_page_token(ArgT0&& arg0, ArgT... args); + std::string* mutable_page_token(); + PROTOBUF_NODISCARD std::string* release_page_token(); + void set_allocated_page_token(std::string* page_token); + private: + const std::string& _internal_page_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_page_token(const std::string& value); + std::string* _internal_mutable_page_token(); + public: + + // int32 page_size = 1; + void clear_page_size(); + int32_t page_size() const; + void set_page_size(int32_t value); + private: + int32_t _internal_page_size() const; + void _internal_set_page_size(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:opi_api.storage.v1.ListCryptoRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_token_; + int32_t page_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_middleend_2eproto; +}; +// ------------------------------------------------------------------- + +class ListCryptoResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.storage.v1.ListCryptoResponse) */ { + public: + inline ListCryptoResponse() : ListCryptoResponse(nullptr) {} + ~ListCryptoResponse() override; + explicit constexpr ListCryptoResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ListCryptoResponse(const ListCryptoResponse& from); + ListCryptoResponse(ListCryptoResponse&& from) noexcept + : ListCryptoResponse() { + *this = ::std::move(from); + } + + inline ListCryptoResponse& operator=(const ListCryptoResponse& from) { + CopyFrom(from); + return *this; + } + inline ListCryptoResponse& operator=(ListCryptoResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ListCryptoResponse& default_instance() { + return *internal_default_instance(); + } + static inline const ListCryptoResponse* internal_default_instance() { + return reinterpret_cast( + &_ListCryptoResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(ListCryptoResponse& a, ListCryptoResponse& b) { + a.Swap(&b); + } + inline void Swap(ListCryptoResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListCryptoResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ListCryptoResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListCryptoResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListCryptoResponse& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListCryptoResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.storage.v1.ListCryptoResponse"; + } + protected: + explicit ListCryptoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kVolumesFieldNumber = 1, + kNextPageTokenFieldNumber = 2, + }; + // repeated .opi_api.storage.v1.Crypto volumes = 1; + int volumes_size() const; + private: + int _internal_volumes_size() const; + public: + void clear_volumes(); + ::opi_api::storage::v1::Crypto* mutable_volumes(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opi_api::storage::v1::Crypto >* + mutable_volumes(); + private: + const ::opi_api::storage::v1::Crypto& _internal_volumes(int index) const; + ::opi_api::storage::v1::Crypto* _internal_add_volumes(); + public: + const ::opi_api::storage::v1::Crypto& volumes(int index) const; + ::opi_api::storage::v1::Crypto* add_volumes(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opi_api::storage::v1::Crypto >& + volumes() const; + + // string next_page_token = 2; + void clear_next_page_token(); + const std::string& next_page_token() const; + template + void set_next_page_token(ArgT0&& arg0, ArgT... args); + std::string* mutable_next_page_token(); + PROTOBUF_NODISCARD std::string* release_next_page_token(); + void set_allocated_next_page_token(std::string* next_page_token); + private: + const std::string& _internal_next_page_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_next_page_token(const std::string& value); + std::string* _internal_mutable_next_page_token(); + public: + + // @@protoc_insertion_point(class_scope:opi_api.storage.v1.ListCryptoResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opi_api::storage::v1::Crypto > volumes_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr next_page_token_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_middleend_2eproto; +}; +// ------------------------------------------------------------------- + +class GetCryptoRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.storage.v1.GetCryptoRequest) */ { + public: + inline GetCryptoRequest() : GetCryptoRequest(nullptr) {} + ~GetCryptoRequest() override; + explicit constexpr GetCryptoRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetCryptoRequest(const GetCryptoRequest& from); + GetCryptoRequest(GetCryptoRequest&& from) noexcept + : GetCryptoRequest() { + *this = ::std::move(from); + } + + inline GetCryptoRequest& operator=(const GetCryptoRequest& from) { + CopyFrom(from); + return *this; + } + inline GetCryptoRequest& operator=(GetCryptoRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GetCryptoRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetCryptoRequest* internal_default_instance() { + return reinterpret_cast( + &_GetCryptoRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(GetCryptoRequest& a, GetCryptoRequest& b) { + a.Swap(&b); + } + inline void Swap(GetCryptoRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetCryptoRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetCryptoRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetCryptoRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetCryptoRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetCryptoRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.storage.v1.GetCryptoRequest"; + } + protected: + explicit GetCryptoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kCryptoIdFieldNumber = 1, + }; + // .opi_api.common.v1.ObjectKey crypto_id = 1; + bool has_crypto_id() const; + private: + bool _internal_has_crypto_id() const; + public: + void clear_crypto_id(); + const ::opi_api::common::v1::ObjectKey& crypto_id() const; + PROTOBUF_NODISCARD ::opi_api::common::v1::ObjectKey* release_crypto_id(); + ::opi_api::common::v1::ObjectKey* mutable_crypto_id(); + void set_allocated_crypto_id(::opi_api::common::v1::ObjectKey* crypto_id); + private: + const ::opi_api::common::v1::ObjectKey& _internal_crypto_id() const; + ::opi_api::common::v1::ObjectKey* _internal_mutable_crypto_id(); + public: + void unsafe_arena_set_allocated_crypto_id( + ::opi_api::common::v1::ObjectKey* crypto_id); + ::opi_api::common::v1::ObjectKey* unsafe_arena_release_crypto_id(); + + // @@protoc_insertion_point(class_scope:opi_api.storage.v1.GetCryptoRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::opi_api::common::v1::ObjectKey* crypto_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_middleend_2eproto; +}; +// ------------------------------------------------------------------- + +class CryptoStatsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.storage.v1.CryptoStatsRequest) */ { + public: + inline CryptoStatsRequest() : CryptoStatsRequest(nullptr) {} + ~CryptoStatsRequest() override; + explicit constexpr CryptoStatsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CryptoStatsRequest(const CryptoStatsRequest& from); + CryptoStatsRequest(CryptoStatsRequest&& from) noexcept + : CryptoStatsRequest() { + *this = ::std::move(from); + } + + inline CryptoStatsRequest& operator=(const CryptoStatsRequest& from) { + CopyFrom(from); + return *this; + } + inline CryptoStatsRequest& operator=(CryptoStatsRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const CryptoStatsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const CryptoStatsRequest* internal_default_instance() { + return reinterpret_cast( + &_CryptoStatsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(CryptoStatsRequest& a, CryptoStatsRequest& b) { + a.Swap(&b); + } + inline void Swap(CryptoStatsRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CryptoStatsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CryptoStatsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CryptoStatsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CryptoStatsRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CryptoStatsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.storage.v1.CryptoStatsRequest"; + } + protected: + explicit CryptoStatsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kCryptoIdFieldNumber = 1, + }; + // .opi_api.common.v1.ObjectKey crypto_id = 1; + bool has_crypto_id() const; + private: + bool _internal_has_crypto_id() const; + public: + void clear_crypto_id(); + const ::opi_api::common::v1::ObjectKey& crypto_id() const; + PROTOBUF_NODISCARD ::opi_api::common::v1::ObjectKey* release_crypto_id(); + ::opi_api::common::v1::ObjectKey* mutable_crypto_id(); + void set_allocated_crypto_id(::opi_api::common::v1::ObjectKey* crypto_id); + private: + const ::opi_api::common::v1::ObjectKey& _internal_crypto_id() const; + ::opi_api::common::v1::ObjectKey* _internal_mutable_crypto_id(); + public: + void unsafe_arena_set_allocated_crypto_id( + ::opi_api::common::v1::ObjectKey* crypto_id); + ::opi_api::common::v1::ObjectKey* unsafe_arena_release_crypto_id(); + + // @@protoc_insertion_point(class_scope:opi_api.storage.v1.CryptoStatsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::opi_api::common::v1::ObjectKey* crypto_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_middleend_2eproto; +}; +// ------------------------------------------------------------------- + +class CryptoStatsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.storage.v1.CryptoStatsResponse) */ { + public: + inline CryptoStatsResponse() : CryptoStatsResponse(nullptr) {} + ~CryptoStatsResponse() override; + explicit constexpr CryptoStatsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CryptoStatsResponse(const CryptoStatsResponse& from); + CryptoStatsResponse(CryptoStatsResponse&& from) noexcept + : CryptoStatsResponse() { + *this = ::std::move(from); + } + + inline CryptoStatsResponse& operator=(const CryptoStatsResponse& from) { + CopyFrom(from); + return *this; + } + inline CryptoStatsResponse& operator=(CryptoStatsResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const CryptoStatsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const CryptoStatsResponse* internal_default_instance() { + return reinterpret_cast( + &_CryptoStatsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(CryptoStatsResponse& a, CryptoStatsResponse& b) { + a.Swap(&b); + } + inline void Swap(CryptoStatsResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CryptoStatsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CryptoStatsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CryptoStatsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CryptoStatsResponse& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CryptoStatsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.storage.v1.CryptoStatsResponse"; + } + protected: + explicit CryptoStatsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kStatsFieldNumber = 2, + kCryptoIdFieldNumber = 1, + }; + // string stats = 2; + void clear_stats(); + const std::string& stats() const; + template + void set_stats(ArgT0&& arg0, ArgT... args); + std::string* mutable_stats(); + PROTOBUF_NODISCARD std::string* release_stats(); + void set_allocated_stats(std::string* stats); + private: + const std::string& _internal_stats() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_stats(const std::string& value); + std::string* _internal_mutable_stats(); + public: + + // .opi_api.common.v1.ObjectKey crypto_id = 1; + bool has_crypto_id() const; + private: + bool _internal_has_crypto_id() const; + public: + void clear_crypto_id(); + const ::opi_api::common::v1::ObjectKey& crypto_id() const; + PROTOBUF_NODISCARD ::opi_api::common::v1::ObjectKey* release_crypto_id(); + ::opi_api::common::v1::ObjectKey* mutable_crypto_id(); + void set_allocated_crypto_id(::opi_api::common::v1::ObjectKey* crypto_id); + private: + const ::opi_api::common::v1::ObjectKey& _internal_crypto_id() const; + ::opi_api::common::v1::ObjectKey* _internal_mutable_crypto_id(); + public: + void unsafe_arena_set_allocated_crypto_id( + ::opi_api::common::v1::ObjectKey* crypto_id); + ::opi_api::common::v1::ObjectKey* unsafe_arena_release_crypto_id(); + + // @@protoc_insertion_point(class_scope:opi_api.storage.v1.CryptoStatsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stats_; + ::opi_api::common::v1::ObjectKey* crypto_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_middleend_2eproto; +}; // =================================================================== @@ -69,9 +1595,1039 @@ namespace v1 { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// Crypto + +// .opi_api.common.v1.ObjectKey crypto_id = 1; +inline bool Crypto::_internal_has_crypto_id() const { + return this != internal_default_instance() && crypto_id_ != nullptr; +} +inline bool Crypto::has_crypto_id() const { + return _internal_has_crypto_id(); +} +inline const ::opi_api::common::v1::ObjectKey& Crypto::_internal_crypto_id() const { + const ::opi_api::common::v1::ObjectKey* p = crypto_id_; + return p != nullptr ? *p : reinterpret_cast( + ::opi_api::common::v1::_ObjectKey_default_instance_); +} +inline const ::opi_api::common::v1::ObjectKey& Crypto::crypto_id() const { + // @@protoc_insertion_point(field_get:opi_api.storage.v1.Crypto.crypto_id) + return _internal_crypto_id(); +} +inline void Crypto::unsafe_arena_set_allocated_crypto_id( + ::opi_api::common::v1::ObjectKey* crypto_id) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(crypto_id_); + } + crypto_id_ = crypto_id; + if (crypto_id) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.storage.v1.Crypto.crypto_id) +} +inline ::opi_api::common::v1::ObjectKey* Crypto::release_crypto_id() { + + ::opi_api::common::v1::ObjectKey* temp = crypto_id_; + crypto_id_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::opi_api::common::v1::ObjectKey* Crypto::unsafe_arena_release_crypto_id() { + // @@protoc_insertion_point(field_release:opi_api.storage.v1.Crypto.crypto_id) + + ::opi_api::common::v1::ObjectKey* temp = crypto_id_; + crypto_id_ = nullptr; + return temp; +} +inline ::opi_api::common::v1::ObjectKey* Crypto::_internal_mutable_crypto_id() { + + if (crypto_id_ == nullptr) { + auto* p = CreateMaybeMessage<::opi_api::common::v1::ObjectKey>(GetArenaForAllocation()); + crypto_id_ = p; + } + return crypto_id_; +} +inline ::opi_api::common::v1::ObjectKey* Crypto::mutable_crypto_id() { + ::opi_api::common::v1::ObjectKey* _msg = _internal_mutable_crypto_id(); + // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.Crypto.crypto_id) + return _msg; +} +inline void Crypto::set_allocated_crypto_id(::opi_api::common::v1::ObjectKey* crypto_id) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(crypto_id_); + } + if (crypto_id) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< + ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(crypto_id)); + if (message_arena != submessage_arena) { + crypto_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, crypto_id, submessage_arena); + } + + } else { + + } + crypto_id_ = crypto_id; + // @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.Crypto.crypto_id) +} + +// .opi_api.common.v1.ObjectKey volume_id = 2; +inline bool Crypto::_internal_has_volume_id() const { + return this != internal_default_instance() && volume_id_ != nullptr; +} +inline bool Crypto::has_volume_id() const { + return _internal_has_volume_id(); +} +inline const ::opi_api::common::v1::ObjectKey& Crypto::_internal_volume_id() const { + const ::opi_api::common::v1::ObjectKey* p = volume_id_; + return p != nullptr ? *p : reinterpret_cast( + ::opi_api::common::v1::_ObjectKey_default_instance_); +} +inline const ::opi_api::common::v1::ObjectKey& Crypto::volume_id() const { + // @@protoc_insertion_point(field_get:opi_api.storage.v1.Crypto.volume_id) + return _internal_volume_id(); +} +inline void Crypto::unsafe_arena_set_allocated_volume_id( + ::opi_api::common::v1::ObjectKey* volume_id) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(volume_id_); + } + volume_id_ = volume_id; + if (volume_id) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.storage.v1.Crypto.volume_id) +} +inline ::opi_api::common::v1::ObjectKey* Crypto::release_volume_id() { + + ::opi_api::common::v1::ObjectKey* temp = volume_id_; + volume_id_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::opi_api::common::v1::ObjectKey* Crypto::unsafe_arena_release_volume_id() { + // @@protoc_insertion_point(field_release:opi_api.storage.v1.Crypto.volume_id) + + ::opi_api::common::v1::ObjectKey* temp = volume_id_; + volume_id_ = nullptr; + return temp; +} +inline ::opi_api::common::v1::ObjectKey* Crypto::_internal_mutable_volume_id() { + + if (volume_id_ == nullptr) { + auto* p = CreateMaybeMessage<::opi_api::common::v1::ObjectKey>(GetArenaForAllocation()); + volume_id_ = p; + } + return volume_id_; +} +inline ::opi_api::common::v1::ObjectKey* Crypto::mutable_volume_id() { + ::opi_api::common::v1::ObjectKey* _msg = _internal_mutable_volume_id(); + // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.Crypto.volume_id) + return _msg; +} +inline void Crypto::set_allocated_volume_id(::opi_api::common::v1::ObjectKey* volume_id) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(volume_id_); + } + if (volume_id) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< + ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(volume_id)); + if (message_arena != submessage_arena) { + volume_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, volume_id, submessage_arena); + } + + } else { + + } + volume_id_ = volume_id; + // @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.Crypto.volume_id) +} + +// bytes key = 3; +inline void Crypto::clear_key() { + key_.ClearToEmpty(); +} +inline const std::string& Crypto::key() const { + // @@protoc_insertion_point(field_get:opi_api.storage.v1.Crypto.key) + return _internal_key(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Crypto::set_key(ArgT0&& arg0, ArgT... args) { + + key_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.storage.v1.Crypto.key) +} +inline std::string* Crypto::mutable_key() { + std::string* _s = _internal_mutable_key(); + // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.Crypto.key) + return _s; +} +inline const std::string& Crypto::_internal_key() const { + return key_.Get(); +} +inline void Crypto::_internal_set_key(const std::string& value) { + + key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Crypto::_internal_mutable_key() { + + return key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Crypto::release_key() { + // @@protoc_insertion_point(field_release:opi_api.storage.v1.Crypto.key) + return key_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void Crypto::set_allocated_key(std::string* key) { + if (key != nullptr) { + + } else { + + } + key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), key, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.Crypto.key) +} + +// .opi_api.storage.v1.CryptoType cipher = 4; +inline void Crypto::clear_cipher() { + cipher_ = 0; +} +inline ::opi_api::storage::v1::CryptoType Crypto::_internal_cipher() const { + return static_cast< ::opi_api::storage::v1::CryptoType >(cipher_); +} +inline ::opi_api::storage::v1::CryptoType Crypto::cipher() const { + // @@protoc_insertion_point(field_get:opi_api.storage.v1.Crypto.cipher) + return _internal_cipher(); +} +inline void Crypto::_internal_set_cipher(::opi_api::storage::v1::CryptoType value) { + + cipher_ = value; +} +inline void Crypto::set_cipher(::opi_api::storage::v1::CryptoType value) { + _internal_set_cipher(value); + // @@protoc_insertion_point(field_set:opi_api.storage.v1.Crypto.cipher) +} + +// ------------------------------------------------------------------- + +// CreateCryptoRequest + +// .opi_api.storage.v1.Crypto volume = 1; +inline bool CreateCryptoRequest::_internal_has_volume() const { + return this != internal_default_instance() && volume_ != nullptr; +} +inline bool CreateCryptoRequest::has_volume() const { + return _internal_has_volume(); +} +inline void CreateCryptoRequest::clear_volume() { + if (GetArenaForAllocation() == nullptr && volume_ != nullptr) { + delete volume_; + } + volume_ = nullptr; +} +inline const ::opi_api::storage::v1::Crypto& CreateCryptoRequest::_internal_volume() const { + const ::opi_api::storage::v1::Crypto* p = volume_; + return p != nullptr ? *p : reinterpret_cast( + ::opi_api::storage::v1::_Crypto_default_instance_); +} +inline const ::opi_api::storage::v1::Crypto& CreateCryptoRequest::volume() const { + // @@protoc_insertion_point(field_get:opi_api.storage.v1.CreateCryptoRequest.volume) + return _internal_volume(); +} +inline void CreateCryptoRequest::unsafe_arena_set_allocated_volume( + ::opi_api::storage::v1::Crypto* volume) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(volume_); + } + volume_ = volume; + if (volume) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.storage.v1.CreateCryptoRequest.volume) +} +inline ::opi_api::storage::v1::Crypto* CreateCryptoRequest::release_volume() { + + ::opi_api::storage::v1::Crypto* temp = volume_; + volume_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::opi_api::storage::v1::Crypto* CreateCryptoRequest::unsafe_arena_release_volume() { + // @@protoc_insertion_point(field_release:opi_api.storage.v1.CreateCryptoRequest.volume) + + ::opi_api::storage::v1::Crypto* temp = volume_; + volume_ = nullptr; + return temp; +} +inline ::opi_api::storage::v1::Crypto* CreateCryptoRequest::_internal_mutable_volume() { + + if (volume_ == nullptr) { + auto* p = CreateMaybeMessage<::opi_api::storage::v1::Crypto>(GetArenaForAllocation()); + volume_ = p; + } + return volume_; +} +inline ::opi_api::storage::v1::Crypto* CreateCryptoRequest::mutable_volume() { + ::opi_api::storage::v1::Crypto* _msg = _internal_mutable_volume(); + // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.CreateCryptoRequest.volume) + return _msg; +} +inline void CreateCryptoRequest::set_allocated_volume(::opi_api::storage::v1::Crypto* volume) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete volume_; + } + if (volume) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::opi_api::storage::v1::Crypto>::GetOwningArena(volume); + if (message_arena != submessage_arena) { + volume = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, volume, submessage_arena); + } + + } else { + + } + volume_ = volume; + // @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.CreateCryptoRequest.volume) +} + +// ------------------------------------------------------------------- + +// DeleteCryptoRequest + +// .opi_api.common.v1.ObjectKey crypto_id = 1; +inline bool DeleteCryptoRequest::_internal_has_crypto_id() const { + return this != internal_default_instance() && crypto_id_ != nullptr; +} +inline bool DeleteCryptoRequest::has_crypto_id() const { + return _internal_has_crypto_id(); +} +inline const ::opi_api::common::v1::ObjectKey& DeleteCryptoRequest::_internal_crypto_id() const { + const ::opi_api::common::v1::ObjectKey* p = crypto_id_; + return p != nullptr ? *p : reinterpret_cast( + ::opi_api::common::v1::_ObjectKey_default_instance_); +} +inline const ::opi_api::common::v1::ObjectKey& DeleteCryptoRequest::crypto_id() const { + // @@protoc_insertion_point(field_get:opi_api.storage.v1.DeleteCryptoRequest.crypto_id) + return _internal_crypto_id(); +} +inline void DeleteCryptoRequest::unsafe_arena_set_allocated_crypto_id( + ::opi_api::common::v1::ObjectKey* crypto_id) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(crypto_id_); + } + crypto_id_ = crypto_id; + if (crypto_id) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.storage.v1.DeleteCryptoRequest.crypto_id) +} +inline ::opi_api::common::v1::ObjectKey* DeleteCryptoRequest::release_crypto_id() { + + ::opi_api::common::v1::ObjectKey* temp = crypto_id_; + crypto_id_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::opi_api::common::v1::ObjectKey* DeleteCryptoRequest::unsafe_arena_release_crypto_id() { + // @@protoc_insertion_point(field_release:opi_api.storage.v1.DeleteCryptoRequest.crypto_id) + + ::opi_api::common::v1::ObjectKey* temp = crypto_id_; + crypto_id_ = nullptr; + return temp; +} +inline ::opi_api::common::v1::ObjectKey* DeleteCryptoRequest::_internal_mutable_crypto_id() { + + if (crypto_id_ == nullptr) { + auto* p = CreateMaybeMessage<::opi_api::common::v1::ObjectKey>(GetArenaForAllocation()); + crypto_id_ = p; + } + return crypto_id_; +} +inline ::opi_api::common::v1::ObjectKey* DeleteCryptoRequest::mutable_crypto_id() { + ::opi_api::common::v1::ObjectKey* _msg = _internal_mutable_crypto_id(); + // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.DeleteCryptoRequest.crypto_id) + return _msg; +} +inline void DeleteCryptoRequest::set_allocated_crypto_id(::opi_api::common::v1::ObjectKey* crypto_id) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(crypto_id_); + } + if (crypto_id) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< + ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(crypto_id)); + if (message_arena != submessage_arena) { + crypto_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, crypto_id, submessage_arena); + } + + } else { + + } + crypto_id_ = crypto_id; + // @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.DeleteCryptoRequest.crypto_id) +} + +// ------------------------------------------------------------------- + +// UpdateCryptoRequest + +// .opi_api.storage.v1.Crypto volume = 1; +inline bool UpdateCryptoRequest::_internal_has_volume() const { + return this != internal_default_instance() && volume_ != nullptr; +} +inline bool UpdateCryptoRequest::has_volume() const { + return _internal_has_volume(); +} +inline void UpdateCryptoRequest::clear_volume() { + if (GetArenaForAllocation() == nullptr && volume_ != nullptr) { + delete volume_; + } + volume_ = nullptr; +} +inline const ::opi_api::storage::v1::Crypto& UpdateCryptoRequest::_internal_volume() const { + const ::opi_api::storage::v1::Crypto* p = volume_; + return p != nullptr ? *p : reinterpret_cast( + ::opi_api::storage::v1::_Crypto_default_instance_); +} +inline const ::opi_api::storage::v1::Crypto& UpdateCryptoRequest::volume() const { + // @@protoc_insertion_point(field_get:opi_api.storage.v1.UpdateCryptoRequest.volume) + return _internal_volume(); +} +inline void UpdateCryptoRequest::unsafe_arena_set_allocated_volume( + ::opi_api::storage::v1::Crypto* volume) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(volume_); + } + volume_ = volume; + if (volume) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.storage.v1.UpdateCryptoRequest.volume) +} +inline ::opi_api::storage::v1::Crypto* UpdateCryptoRequest::release_volume() { + + ::opi_api::storage::v1::Crypto* temp = volume_; + volume_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::opi_api::storage::v1::Crypto* UpdateCryptoRequest::unsafe_arena_release_volume() { + // @@protoc_insertion_point(field_release:opi_api.storage.v1.UpdateCryptoRequest.volume) + + ::opi_api::storage::v1::Crypto* temp = volume_; + volume_ = nullptr; + return temp; +} +inline ::opi_api::storage::v1::Crypto* UpdateCryptoRequest::_internal_mutable_volume() { + + if (volume_ == nullptr) { + auto* p = CreateMaybeMessage<::opi_api::storage::v1::Crypto>(GetArenaForAllocation()); + volume_ = p; + } + return volume_; +} +inline ::opi_api::storage::v1::Crypto* UpdateCryptoRequest::mutable_volume() { + ::opi_api::storage::v1::Crypto* _msg = _internal_mutable_volume(); + // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.UpdateCryptoRequest.volume) + return _msg; +} +inline void UpdateCryptoRequest::set_allocated_volume(::opi_api::storage::v1::Crypto* volume) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete volume_; + } + if (volume) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::opi_api::storage::v1::Crypto>::GetOwningArena(volume); + if (message_arena != submessage_arena) { + volume = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, volume, submessage_arena); + } + + } else { + + } + volume_ = volume; + // @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.UpdateCryptoRequest.volume) +} + +// ------------------------------------------------------------------- + +// ListCryptoRequest + +// int32 page_size = 1; +inline void ListCryptoRequest::clear_page_size() { + page_size_ = 0; +} +inline int32_t ListCryptoRequest::_internal_page_size() const { + return page_size_; +} +inline int32_t ListCryptoRequest::page_size() const { + // @@protoc_insertion_point(field_get:opi_api.storage.v1.ListCryptoRequest.page_size) + return _internal_page_size(); +} +inline void ListCryptoRequest::_internal_set_page_size(int32_t value) { + + page_size_ = value; +} +inline void ListCryptoRequest::set_page_size(int32_t value) { + _internal_set_page_size(value); + // @@protoc_insertion_point(field_set:opi_api.storage.v1.ListCryptoRequest.page_size) +} + +// string page_token = 2; +inline void ListCryptoRequest::clear_page_token() { + page_token_.ClearToEmpty(); +} +inline const std::string& ListCryptoRequest::page_token() const { + // @@protoc_insertion_point(field_get:opi_api.storage.v1.ListCryptoRequest.page_token) + return _internal_page_token(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ListCryptoRequest::set_page_token(ArgT0&& arg0, ArgT... args) { + + page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.storage.v1.ListCryptoRequest.page_token) +} +inline std::string* ListCryptoRequest::mutable_page_token() { + std::string* _s = _internal_mutable_page_token(); + // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.ListCryptoRequest.page_token) + return _s; +} +inline const std::string& ListCryptoRequest::_internal_page_token() const { + return page_token_.Get(); +} +inline void ListCryptoRequest::_internal_set_page_token(const std::string& value) { + + page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* ListCryptoRequest::_internal_mutable_page_token() { + + return page_token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* ListCryptoRequest::release_page_token() { + // @@protoc_insertion_point(field_release:opi_api.storage.v1.ListCryptoRequest.page_token) + return page_token_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void ListCryptoRequest::set_allocated_page_token(std::string* page_token) { + if (page_token != nullptr) { + + } else { + + } + page_token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), page_token, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (page_token_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + page_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.ListCryptoRequest.page_token) +} + +// ------------------------------------------------------------------- + +// ListCryptoResponse + +// repeated .opi_api.storage.v1.Crypto volumes = 1; +inline int ListCryptoResponse::_internal_volumes_size() const { + return volumes_.size(); +} +inline int ListCryptoResponse::volumes_size() const { + return _internal_volumes_size(); +} +inline void ListCryptoResponse::clear_volumes() { + volumes_.Clear(); +} +inline ::opi_api::storage::v1::Crypto* ListCryptoResponse::mutable_volumes(int index) { + // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.ListCryptoResponse.volumes) + return volumes_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opi_api::storage::v1::Crypto >* +ListCryptoResponse::mutable_volumes() { + // @@protoc_insertion_point(field_mutable_list:opi_api.storage.v1.ListCryptoResponse.volumes) + return &volumes_; +} +inline const ::opi_api::storage::v1::Crypto& ListCryptoResponse::_internal_volumes(int index) const { + return volumes_.Get(index); +} +inline const ::opi_api::storage::v1::Crypto& ListCryptoResponse::volumes(int index) const { + // @@protoc_insertion_point(field_get:opi_api.storage.v1.ListCryptoResponse.volumes) + return _internal_volumes(index); +} +inline ::opi_api::storage::v1::Crypto* ListCryptoResponse::_internal_add_volumes() { + return volumes_.Add(); +} +inline ::opi_api::storage::v1::Crypto* ListCryptoResponse::add_volumes() { + ::opi_api::storage::v1::Crypto* _add = _internal_add_volumes(); + // @@protoc_insertion_point(field_add:opi_api.storage.v1.ListCryptoResponse.volumes) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opi_api::storage::v1::Crypto >& +ListCryptoResponse::volumes() const { + // @@protoc_insertion_point(field_list:opi_api.storage.v1.ListCryptoResponse.volumes) + return volumes_; +} + +// string next_page_token = 2; +inline void ListCryptoResponse::clear_next_page_token() { + next_page_token_.ClearToEmpty(); +} +inline const std::string& ListCryptoResponse::next_page_token() const { + // @@protoc_insertion_point(field_get:opi_api.storage.v1.ListCryptoResponse.next_page_token) + return _internal_next_page_token(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ListCryptoResponse::set_next_page_token(ArgT0&& arg0, ArgT... args) { + + next_page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.storage.v1.ListCryptoResponse.next_page_token) +} +inline std::string* ListCryptoResponse::mutable_next_page_token() { + std::string* _s = _internal_mutable_next_page_token(); + // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.ListCryptoResponse.next_page_token) + return _s; +} +inline const std::string& ListCryptoResponse::_internal_next_page_token() const { + return next_page_token_.Get(); +} +inline void ListCryptoResponse::_internal_set_next_page_token(const std::string& value) { + + next_page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* ListCryptoResponse::_internal_mutable_next_page_token() { + + return next_page_token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* ListCryptoResponse::release_next_page_token() { + // @@protoc_insertion_point(field_release:opi_api.storage.v1.ListCryptoResponse.next_page_token) + return next_page_token_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void ListCryptoResponse::set_allocated_next_page_token(std::string* next_page_token) { + if (next_page_token != nullptr) { + + } else { + + } + next_page_token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), next_page_token, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (next_page_token_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + next_page_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.ListCryptoResponse.next_page_token) +} + +// ------------------------------------------------------------------- + +// GetCryptoRequest + +// .opi_api.common.v1.ObjectKey crypto_id = 1; +inline bool GetCryptoRequest::_internal_has_crypto_id() const { + return this != internal_default_instance() && crypto_id_ != nullptr; +} +inline bool GetCryptoRequest::has_crypto_id() const { + return _internal_has_crypto_id(); +} +inline const ::opi_api::common::v1::ObjectKey& GetCryptoRequest::_internal_crypto_id() const { + const ::opi_api::common::v1::ObjectKey* p = crypto_id_; + return p != nullptr ? *p : reinterpret_cast( + ::opi_api::common::v1::_ObjectKey_default_instance_); +} +inline const ::opi_api::common::v1::ObjectKey& GetCryptoRequest::crypto_id() const { + // @@protoc_insertion_point(field_get:opi_api.storage.v1.GetCryptoRequest.crypto_id) + return _internal_crypto_id(); +} +inline void GetCryptoRequest::unsafe_arena_set_allocated_crypto_id( + ::opi_api::common::v1::ObjectKey* crypto_id) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(crypto_id_); + } + crypto_id_ = crypto_id; + if (crypto_id) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.storage.v1.GetCryptoRequest.crypto_id) +} +inline ::opi_api::common::v1::ObjectKey* GetCryptoRequest::release_crypto_id() { + + ::opi_api::common::v1::ObjectKey* temp = crypto_id_; + crypto_id_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::opi_api::common::v1::ObjectKey* GetCryptoRequest::unsafe_arena_release_crypto_id() { + // @@protoc_insertion_point(field_release:opi_api.storage.v1.GetCryptoRequest.crypto_id) + + ::opi_api::common::v1::ObjectKey* temp = crypto_id_; + crypto_id_ = nullptr; + return temp; +} +inline ::opi_api::common::v1::ObjectKey* GetCryptoRequest::_internal_mutable_crypto_id() { + + if (crypto_id_ == nullptr) { + auto* p = CreateMaybeMessage<::opi_api::common::v1::ObjectKey>(GetArenaForAllocation()); + crypto_id_ = p; + } + return crypto_id_; +} +inline ::opi_api::common::v1::ObjectKey* GetCryptoRequest::mutable_crypto_id() { + ::opi_api::common::v1::ObjectKey* _msg = _internal_mutable_crypto_id(); + // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.GetCryptoRequest.crypto_id) + return _msg; +} +inline void GetCryptoRequest::set_allocated_crypto_id(::opi_api::common::v1::ObjectKey* crypto_id) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(crypto_id_); + } + if (crypto_id) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< + ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(crypto_id)); + if (message_arena != submessage_arena) { + crypto_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, crypto_id, submessage_arena); + } + + } else { + + } + crypto_id_ = crypto_id; + // @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.GetCryptoRequest.crypto_id) +} + +// ------------------------------------------------------------------- + +// CryptoStatsRequest + +// .opi_api.common.v1.ObjectKey crypto_id = 1; +inline bool CryptoStatsRequest::_internal_has_crypto_id() const { + return this != internal_default_instance() && crypto_id_ != nullptr; +} +inline bool CryptoStatsRequest::has_crypto_id() const { + return _internal_has_crypto_id(); +} +inline const ::opi_api::common::v1::ObjectKey& CryptoStatsRequest::_internal_crypto_id() const { + const ::opi_api::common::v1::ObjectKey* p = crypto_id_; + return p != nullptr ? *p : reinterpret_cast( + ::opi_api::common::v1::_ObjectKey_default_instance_); +} +inline const ::opi_api::common::v1::ObjectKey& CryptoStatsRequest::crypto_id() const { + // @@protoc_insertion_point(field_get:opi_api.storage.v1.CryptoStatsRequest.crypto_id) + return _internal_crypto_id(); +} +inline void CryptoStatsRequest::unsafe_arena_set_allocated_crypto_id( + ::opi_api::common::v1::ObjectKey* crypto_id) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(crypto_id_); + } + crypto_id_ = crypto_id; + if (crypto_id) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.storage.v1.CryptoStatsRequest.crypto_id) +} +inline ::opi_api::common::v1::ObjectKey* CryptoStatsRequest::release_crypto_id() { + + ::opi_api::common::v1::ObjectKey* temp = crypto_id_; + crypto_id_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::opi_api::common::v1::ObjectKey* CryptoStatsRequest::unsafe_arena_release_crypto_id() { + // @@protoc_insertion_point(field_release:opi_api.storage.v1.CryptoStatsRequest.crypto_id) + + ::opi_api::common::v1::ObjectKey* temp = crypto_id_; + crypto_id_ = nullptr; + return temp; +} +inline ::opi_api::common::v1::ObjectKey* CryptoStatsRequest::_internal_mutable_crypto_id() { + + if (crypto_id_ == nullptr) { + auto* p = CreateMaybeMessage<::opi_api::common::v1::ObjectKey>(GetArenaForAllocation()); + crypto_id_ = p; + } + return crypto_id_; +} +inline ::opi_api::common::v1::ObjectKey* CryptoStatsRequest::mutable_crypto_id() { + ::opi_api::common::v1::ObjectKey* _msg = _internal_mutable_crypto_id(); + // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.CryptoStatsRequest.crypto_id) + return _msg; +} +inline void CryptoStatsRequest::set_allocated_crypto_id(::opi_api::common::v1::ObjectKey* crypto_id) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(crypto_id_); + } + if (crypto_id) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< + ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(crypto_id)); + if (message_arena != submessage_arena) { + crypto_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, crypto_id, submessage_arena); + } + + } else { + + } + crypto_id_ = crypto_id; + // @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.CryptoStatsRequest.crypto_id) +} + +// ------------------------------------------------------------------- + +// CryptoStatsResponse + +// .opi_api.common.v1.ObjectKey crypto_id = 1; +inline bool CryptoStatsResponse::_internal_has_crypto_id() const { + return this != internal_default_instance() && crypto_id_ != nullptr; +} +inline bool CryptoStatsResponse::has_crypto_id() const { + return _internal_has_crypto_id(); +} +inline const ::opi_api::common::v1::ObjectKey& CryptoStatsResponse::_internal_crypto_id() const { + const ::opi_api::common::v1::ObjectKey* p = crypto_id_; + return p != nullptr ? *p : reinterpret_cast( + ::opi_api::common::v1::_ObjectKey_default_instance_); +} +inline const ::opi_api::common::v1::ObjectKey& CryptoStatsResponse::crypto_id() const { + // @@protoc_insertion_point(field_get:opi_api.storage.v1.CryptoStatsResponse.crypto_id) + return _internal_crypto_id(); +} +inline void CryptoStatsResponse::unsafe_arena_set_allocated_crypto_id( + ::opi_api::common::v1::ObjectKey* crypto_id) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(crypto_id_); + } + crypto_id_ = crypto_id; + if (crypto_id) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.storage.v1.CryptoStatsResponse.crypto_id) +} +inline ::opi_api::common::v1::ObjectKey* CryptoStatsResponse::release_crypto_id() { + + ::opi_api::common::v1::ObjectKey* temp = crypto_id_; + crypto_id_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::opi_api::common::v1::ObjectKey* CryptoStatsResponse::unsafe_arena_release_crypto_id() { + // @@protoc_insertion_point(field_release:opi_api.storage.v1.CryptoStatsResponse.crypto_id) + + ::opi_api::common::v1::ObjectKey* temp = crypto_id_; + crypto_id_ = nullptr; + return temp; +} +inline ::opi_api::common::v1::ObjectKey* CryptoStatsResponse::_internal_mutable_crypto_id() { + + if (crypto_id_ == nullptr) { + auto* p = CreateMaybeMessage<::opi_api::common::v1::ObjectKey>(GetArenaForAllocation()); + crypto_id_ = p; + } + return crypto_id_; +} +inline ::opi_api::common::v1::ObjectKey* CryptoStatsResponse::mutable_crypto_id() { + ::opi_api::common::v1::ObjectKey* _msg = _internal_mutable_crypto_id(); + // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.CryptoStatsResponse.crypto_id) + return _msg; +} +inline void CryptoStatsResponse::set_allocated_crypto_id(::opi_api::common::v1::ObjectKey* crypto_id) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(crypto_id_); + } + if (crypto_id) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< + ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(crypto_id)); + if (message_arena != submessage_arena) { + crypto_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, crypto_id, submessage_arena); + } + + } else { + + } + crypto_id_ = crypto_id; + // @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.CryptoStatsResponse.crypto_id) +} + +// string stats = 2; +inline void CryptoStatsResponse::clear_stats() { + stats_.ClearToEmpty(); +} +inline const std::string& CryptoStatsResponse::stats() const { + // @@protoc_insertion_point(field_get:opi_api.storage.v1.CryptoStatsResponse.stats) + return _internal_stats(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CryptoStatsResponse::set_stats(ArgT0&& arg0, ArgT... args) { + + stats_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.storage.v1.CryptoStatsResponse.stats) +} +inline std::string* CryptoStatsResponse::mutable_stats() { + std::string* _s = _internal_mutable_stats(); + // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.CryptoStatsResponse.stats) + return _s; +} +inline const std::string& CryptoStatsResponse::_internal_stats() const { + return stats_.Get(); +} +inline void CryptoStatsResponse::_internal_set_stats(const std::string& value) { + + stats_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* CryptoStatsResponse::_internal_mutable_stats() { + + return stats_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* CryptoStatsResponse::release_stats() { + // @@protoc_insertion_point(field_release:opi_api.storage.v1.CryptoStatsResponse.stats) + return stats_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void CryptoStatsResponse::set_allocated_stats(std::string* stats) { + if (stats != nullptr) { + + } else { + + } + stats_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), stats, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (stats_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + stats_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.CryptoStatsResponse.stats) +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/storage/v1alpha1/gen/cpp/opicommon.pb.cc b/storage/v1alpha1/gen/cpp/opicommon.pb.cc index 9c588a27..734e78d5 100644 --- a/storage/v1alpha1/gen/cpp/opicommon.pb.cc +++ b/storage/v1alpha1/gen/cpp/opicommon.pb.cc @@ -37,7 +37,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PciEndpointDefaultTypeInternal } // namespace storage } // namespace opi_api static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_opicommon_2eproto[1]; -static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_opicommon_2eproto = nullptr; +static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_opicommon_2eproto[1]; static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_opicommon_2eproto = nullptr; const uint32_t TableStruct_opicommon_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { @@ -63,13 +63,19 @@ const char descriptor_table_protodef_opicommon_2eproto[] PROTOBUF_SECTION_VARIAB "\n\017opicommon.proto\022\022opi_api.storage.v1\"S\n" "\013PciEndpoint\022\017\n\007port_id\030\001 \001(\005\022\031\n\021physica" "l_function\030\002 \001(\005\022\030\n\020virtual_function\030\003 \001" - "(\005B]\n\022opi_api.storage.v1B\016OpiCommonProto" - "P\001Z5github.com/opiproject/opi-api/storag" - "e/v1alpha1/gen/gob\006proto3" + "(\005*\327\001\n\nCryptoType\022\033\n\027CRYPTO_TYPE_UNSPECI" + "FIED\020\000\022\033\n\027CRYPTO_TYPE_AES_CBC_128\020\001\022\033\n\027C" + "RYPTO_TYPE_AES_CBC_192\020\002\022\033\n\027CRYPTO_TYPE_" + "AES_CBC_256\020\003\022\033\n\027CRYPTO_TYPE_AES_XTS_128" + "\020\004\022\033\n\027CRYPTO_TYPE_AES_XTS_192\020\005\022\033\n\027CRYPT" + "O_TYPE_AES_XTS_256\020\006B]\n\022opi_api.storage." + "v1B\016OpiCommonProtoP\001Z5github.com/opiproj" + "ect/opi-api/storage/v1alpha1/gen/gob\006pro" + "to3" ; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_opicommon_2eproto_once; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_opicommon_2eproto = { - false, false, 225, descriptor_table_protodef_opicommon_2eproto, "opicommon.proto", + false, false, 443, descriptor_table_protodef_opicommon_2eproto, "opicommon.proto", &descriptor_table_opicommon_2eproto_once, nullptr, 0, 1, schemas, file_default_instances, TableStruct_opicommon_2eproto::offsets, file_level_metadata_opicommon_2eproto, file_level_enum_descriptors_opicommon_2eproto, file_level_service_descriptors_opicommon_2eproto, @@ -83,6 +89,25 @@ PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDe namespace opi_api { namespace storage { namespace v1 { +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CryptoType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_opicommon_2eproto); + return file_level_enum_descriptors_opicommon_2eproto[0]; +} +bool CryptoType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + return true; + default: + return false; + } +} + // =================================================================== diff --git a/storage/v1alpha1/gen/cpp/opicommon.pb.h b/storage/v1alpha1/gen/cpp/opicommon.pb.h index 65267884..b8a8d023 100644 --- a/storage/v1alpha1/gen/cpp/opicommon.pb.h +++ b/storage/v1alpha1/gen/cpp/opicommon.pb.h @@ -30,6 +30,7 @@ #include #include // IWYU pragma: export #include // IWYU pragma: export +#include #include // @@protoc_insertion_point(includes) #include @@ -69,6 +70,36 @@ namespace opi_api { namespace storage { namespace v1 { +enum CryptoType : int { + CRYPTO_TYPE_UNSPECIFIED = 0, + CRYPTO_TYPE_AES_CBC_128 = 1, + CRYPTO_TYPE_AES_CBC_192 = 2, + CRYPTO_TYPE_AES_CBC_256 = 3, + CRYPTO_TYPE_AES_XTS_128 = 4, + CRYPTO_TYPE_AES_XTS_192 = 5, + CRYPTO_TYPE_AES_XTS_256 = 6, + CryptoType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + CryptoType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool CryptoType_IsValid(int value); +constexpr CryptoType CryptoType_MIN = CRYPTO_TYPE_UNSPECIFIED; +constexpr CryptoType CryptoType_MAX = CRYPTO_TYPE_AES_XTS_256; +constexpr int CryptoType_ARRAYSIZE = CryptoType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CryptoType_descriptor(); +template +inline const std::string& CryptoType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function CryptoType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + CryptoType_descriptor(), enum_t_value); +} +inline bool CryptoType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CryptoType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + CryptoType_descriptor(), name, value); +} // =================================================================== class PciEndpoint final : @@ -318,6 +349,16 @@ inline void PciEndpoint::set_virtual_function(int32_t value) { } // namespace storage } // namespace opi_api +PROTOBUF_NAMESPACE_OPEN + +template <> struct is_proto_enum< ::opi_api::storage::v1::CryptoType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::opi_api::storage::v1::CryptoType>() { + return ::opi_api::storage::v1::CryptoType_descriptor(); +} + +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) #include diff --git a/storage/v1alpha1/gen/go/middleend.pb.go b/storage/v1alpha1/gen/go/middleend.pb.go index 57ef880a..e78525ec 100644 --- a/storage/v1alpha1/gen/go/middleend.pb.go +++ b/storage/v1alpha1/gen/go/middleend.pb.go @@ -10,9 +10,17 @@ package _go import ( + context "context" + _go "github.com/opiproject/opi-api/common/v1/gen/go" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + emptypb "google.golang.org/protobuf/types/known/emptypb" reflect "reflect" + sync "sync" ) const ( @@ -22,27 +30,654 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +type Crypto struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CryptoId *_go.ObjectKey `protobuf:"bytes,1,opt,name=crypto_id,json=cryptoId,proto3" json:"crypto_id,omitempty"` + // The back/middle-end volume to back this volume + VolumeId *_go.ObjectKey `protobuf:"bytes,2,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` + // Key to be used for encryption + Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` + // Cipher to use + Cipher CryptoType `protobuf:"varint,4,opt,name=cipher,proto3,enum=opi_api.storage.v1.CryptoType" json:"cipher,omitempty"` +} + +func (x *Crypto) Reset() { + *x = Crypto{} + if protoimpl.UnsafeEnabled { + mi := &file_middleend_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Crypto) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Crypto) ProtoMessage() {} + +func (x *Crypto) ProtoReflect() protoreflect.Message { + mi := &file_middleend_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Crypto.ProtoReflect.Descriptor instead. +func (*Crypto) Descriptor() ([]byte, []int) { + return file_middleend_proto_rawDescGZIP(), []int{0} +} + +func (x *Crypto) GetCryptoId() *_go.ObjectKey { + if x != nil { + return x.CryptoId + } + return nil +} + +func (x *Crypto) GetVolumeId() *_go.ObjectKey { + if x != nil { + return x.VolumeId + } + return nil +} + +func (x *Crypto) GetKey() []byte { + if x != nil { + return x.Key + } + return nil +} + +func (x *Crypto) GetCipher() CryptoType { + if x != nil { + return x.Cipher + } + return CryptoType_CRYPTO_TYPE_UNSPECIFIED +} + +type CreateCryptoRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Volume *Crypto `protobuf:"bytes,1,opt,name=volume,proto3" json:"volume,omitempty"` +} + +func (x *CreateCryptoRequest) Reset() { + *x = CreateCryptoRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_middleend_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateCryptoRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateCryptoRequest) ProtoMessage() {} + +func (x *CreateCryptoRequest) ProtoReflect() protoreflect.Message { + mi := &file_middleend_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateCryptoRequest.ProtoReflect.Descriptor instead. +func (*CreateCryptoRequest) Descriptor() ([]byte, []int) { + return file_middleend_proto_rawDescGZIP(), []int{1} +} + +func (x *CreateCryptoRequest) GetVolume() *Crypto { + if x != nil { + return x.Volume + } + return nil +} + +type DeleteCryptoRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CryptoId *_go.ObjectKey `protobuf:"bytes,1,opt,name=crypto_id,json=cryptoId,proto3" json:"crypto_id,omitempty"` +} + +func (x *DeleteCryptoRequest) Reset() { + *x = DeleteCryptoRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_middleend_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteCryptoRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteCryptoRequest) ProtoMessage() {} + +func (x *DeleteCryptoRequest) ProtoReflect() protoreflect.Message { + mi := &file_middleend_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteCryptoRequest.ProtoReflect.Descriptor instead. +func (*DeleteCryptoRequest) Descriptor() ([]byte, []int) { + return file_middleend_proto_rawDescGZIP(), []int{2} +} + +func (x *DeleteCryptoRequest) GetCryptoId() *_go.ObjectKey { + if x != nil { + return x.CryptoId + } + return nil +} + +type UpdateCryptoRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Volume *Crypto `protobuf:"bytes,1,opt,name=volume,proto3" json:"volume,omitempty"` +} + +func (x *UpdateCryptoRequest) Reset() { + *x = UpdateCryptoRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_middleend_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateCryptoRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateCryptoRequest) ProtoMessage() {} + +func (x *UpdateCryptoRequest) ProtoReflect() protoreflect.Message { + mi := &file_middleend_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateCryptoRequest.ProtoReflect.Descriptor instead. +func (*UpdateCryptoRequest) Descriptor() ([]byte, []int) { + return file_middleend_proto_rawDescGZIP(), []int{3} +} + +func (x *UpdateCryptoRequest) GetVolume() *Crypto { + if x != nil { + return x.Volume + } + return nil +} + +type ListCryptoRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` +} + +func (x *ListCryptoRequest) Reset() { + *x = ListCryptoRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_middleend_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListCryptoRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListCryptoRequest) ProtoMessage() {} + +func (x *ListCryptoRequest) ProtoReflect() protoreflect.Message { + mi := &file_middleend_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListCryptoRequest.ProtoReflect.Descriptor instead. +func (*ListCryptoRequest) Descriptor() ([]byte, []int) { + return file_middleend_proto_rawDescGZIP(), []int{4} +} + +func (x *ListCryptoRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListCryptoRequest) GetPageToken() string { + if x != nil { + return x.PageToken + } + return "" +} + +type ListCryptoResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Volumes []*Crypto `protobuf:"bytes,1,rep,name=volumes,proto3" json:"volumes,omitempty"` + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` +} + +func (x *ListCryptoResponse) Reset() { + *x = ListCryptoResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_middleend_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListCryptoResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListCryptoResponse) ProtoMessage() {} + +func (x *ListCryptoResponse) ProtoReflect() protoreflect.Message { + mi := &file_middleend_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListCryptoResponse.ProtoReflect.Descriptor instead. +func (*ListCryptoResponse) Descriptor() ([]byte, []int) { + return file_middleend_proto_rawDescGZIP(), []int{5} +} + +func (x *ListCryptoResponse) GetVolumes() []*Crypto { + if x != nil { + return x.Volumes + } + return nil +} + +func (x *ListCryptoResponse) GetNextPageToken() string { + if x != nil { + return x.NextPageToken + } + return "" +} + +type GetCryptoRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CryptoId *_go.ObjectKey `protobuf:"bytes,1,opt,name=crypto_id,json=cryptoId,proto3" json:"crypto_id,omitempty"` +} + +func (x *GetCryptoRequest) Reset() { + *x = GetCryptoRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_middleend_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetCryptoRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetCryptoRequest) ProtoMessage() {} + +func (x *GetCryptoRequest) ProtoReflect() protoreflect.Message { + mi := &file_middleend_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetCryptoRequest.ProtoReflect.Descriptor instead. +func (*GetCryptoRequest) Descriptor() ([]byte, []int) { + return file_middleend_proto_rawDescGZIP(), []int{6} +} + +func (x *GetCryptoRequest) GetCryptoId() *_go.ObjectKey { + if x != nil { + return x.CryptoId + } + return nil +} + +type CryptoStatsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CryptoId *_go.ObjectKey `protobuf:"bytes,1,opt,name=crypto_id,json=cryptoId,proto3" json:"crypto_id,omitempty"` +} + +func (x *CryptoStatsRequest) Reset() { + *x = CryptoStatsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_middleend_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CryptoStatsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CryptoStatsRequest) ProtoMessage() {} + +func (x *CryptoStatsRequest) ProtoReflect() protoreflect.Message { + mi := &file_middleend_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CryptoStatsRequest.ProtoReflect.Descriptor instead. +func (*CryptoStatsRequest) Descriptor() ([]byte, []int) { + return file_middleend_proto_rawDescGZIP(), []int{7} +} + +func (x *CryptoStatsRequest) GetCryptoId() *_go.ObjectKey { + if x != nil { + return x.CryptoId + } + return nil +} + +type CryptoStatsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CryptoId *_go.ObjectKey `protobuf:"bytes,1,opt,name=crypto_id,json=cryptoId,proto3" json:"crypto_id,omitempty"` + Stats string `protobuf:"bytes,2,opt,name=stats,proto3" json:"stats,omitempty"` +} + +func (x *CryptoStatsResponse) Reset() { + *x = CryptoStatsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_middleend_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CryptoStatsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CryptoStatsResponse) ProtoMessage() {} + +func (x *CryptoStatsResponse) ProtoReflect() protoreflect.Message { + mi := &file_middleend_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CryptoStatsResponse.ProtoReflect.Descriptor instead. +func (*CryptoStatsResponse) Descriptor() ([]byte, []int) { + return file_middleend_proto_rawDescGZIP(), []int{8} +} + +func (x *CryptoStatsResponse) GetCryptoId() *_go.ObjectKey { + if x != nil { + return x.CryptoId + } + return nil +} + +func (x *CryptoStatsResponse) GetStats() string { + if x != nil { + return x.Stats + } + return "" +} + var File_middleend_proto protoreflect.FileDescriptor var file_middleend_proto_rawDesc = []byte{ 0x0a, 0x0f, 0x6d, 0x69, 0x64, 0x64, 0x6c, 0x65, 0x65, 0x6e, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x5d, 0x0a, 0x12, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, - 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0e, 0x4d, 0x69, 0x64, - 0x64, 0x6c, 0x65, 0x65, 0x6e, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x69, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x6f, 0x70, 0x69, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x67, 0x65, - 0x6e, 0x2f, 0x67, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x67, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x0f, 0x6f, 0x70, 0x69, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x10, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x6b, + 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0xc8, 0x01, 0x0a, 0x06, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x12, 0x39, + 0x0a, 0x09, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1c, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4b, 0x65, 0x79, 0x52, + 0x08, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x09, 0x76, 0x6f, 0x6c, + 0x75, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6f, + 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x08, 0x76, 0x6f, 0x6c, 0x75, + 0x6d, 0x65, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x36, 0x0a, 0x06, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, + 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x79, 0x70, + 0x74, 0x6f, 0x54, 0x79, 0x70, 0x65, 0x52, 0x06, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72, 0x22, 0x49, + 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x06, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, + 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x79, 0x70, 0x74, + 0x6f, 0x52, 0x06, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x22, 0x50, 0x0a, 0x13, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x39, 0x0a, 0x09, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, + 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4b, 0x65, + 0x79, 0x52, 0x08, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x49, 0x64, 0x22, 0x49, 0x0a, 0x13, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x32, 0x0a, 0x06, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x52, 0x06, + 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x22, 0x4f, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x72, + 0x79, 0x70, 0x74, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, + 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, + 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, + 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, + 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x72, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x43, + 0x72, 0x79, 0x70, 0x74, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, + 0x07, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x52, 0x07, 0x76, 0x6f, 0x6c, 0x75, + 0x6d, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, + 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, + 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x4d, 0x0a, 0x10, 0x47, + 0x65, 0x74, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x39, 0x0a, 0x09, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, + 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4b, 0x65, 0x79, + 0x52, 0x08, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x49, 0x64, 0x22, 0x4f, 0x0a, 0x12, 0x43, 0x72, + 0x79, 0x70, 0x74, 0x6f, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x39, 0x0a, 0x09, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, + 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4b, 0x65, + 0x79, 0x52, 0x08, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x49, 0x64, 0x22, 0x66, 0x0a, 0x13, 0x43, + 0x72, 0x79, 0x70, 0x74, 0x6f, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x39, 0x0a, 0x09, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, + 0x4b, 0x65, 0x79, 0x52, 0x08, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x49, 0x64, 0x12, 0x14, 0x0a, + 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, + 0x61, 0x74, 0x73, 0x32, 0xa6, 0x05, 0x0a, 0x10, 0x4d, 0x69, 0x64, 0x64, 0x6c, 0x65, 0x65, 0x6e, + 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x70, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x12, 0x27, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, + 0x70, 0x69, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1a, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x22, 0x1b, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x22, 0x0b, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, + 0x65, 0x73, 0x3a, 0x06, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x6d, 0x0a, 0x0c, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x12, 0x27, 0x2e, 0x6f, 0x70, 0x69, + 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1c, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x16, 0x2a, 0x14, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, + 0x2f, 0x7b, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x7d, 0x12, 0x70, 0x0a, 0x0c, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x12, 0x27, 0x2e, 0x6f, 0x70, 0x69, 0x5f, + 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x22, 0x1b, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x32, 0x0b, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x6f, 0x6c, 0x75, + 0x6d, 0x65, 0x73, 0x3a, 0x06, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x70, 0x0a, 0x0a, 0x4c, + 0x69, 0x73, 0x74, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x12, 0x25, 0x2e, 0x6f, 0x70, 0x69, 0x5f, + 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x26, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x13, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0d, + 0x12, 0x0b, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x12, 0x6b, 0x0a, + 0x09, 0x47, 0x65, 0x74, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x12, 0x24, 0x2e, 0x6f, 0x70, 0x69, + 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x47, 0x65, 0x74, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1a, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x22, 0x1c, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, + 0x73, 0x2f, 0x7b, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x7d, 0x12, 0x60, 0x0a, 0x0b, 0x43, 0x72, + 0x79, 0x70, 0x74, 0x6f, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x26, 0x2e, 0x6f, 0x70, 0x69, 0x5f, + 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x72, 0x79, 0x70, 0x74, 0x6f, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x27, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x53, 0x74, 0x61, + 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x5d, 0x0a, 0x12, + 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, + 0x76, 0x31, 0x42, 0x0e, 0x4d, 0x69, 0x64, 0x64, 0x6c, 0x65, 0x65, 0x6e, 0x64, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x6f, 0x70, 0x69, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x6f, 0x70, 0x69, 0x2d, + 0x61, 0x70, 0x69, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } -var file_middleend_proto_goTypes = []interface{}{} +var ( + file_middleend_proto_rawDescOnce sync.Once + file_middleend_proto_rawDescData = file_middleend_proto_rawDesc +) + +func file_middleend_proto_rawDescGZIP() []byte { + file_middleend_proto_rawDescOnce.Do(func() { + file_middleend_proto_rawDescData = protoimpl.X.CompressGZIP(file_middleend_proto_rawDescData) + }) + return file_middleend_proto_rawDescData +} + +var file_middleend_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_middleend_proto_goTypes = []interface{}{ + (*Crypto)(nil), // 0: opi_api.storage.v1.Crypto + (*CreateCryptoRequest)(nil), // 1: opi_api.storage.v1.CreateCryptoRequest + (*DeleteCryptoRequest)(nil), // 2: opi_api.storage.v1.DeleteCryptoRequest + (*UpdateCryptoRequest)(nil), // 3: opi_api.storage.v1.UpdateCryptoRequest + (*ListCryptoRequest)(nil), // 4: opi_api.storage.v1.ListCryptoRequest + (*ListCryptoResponse)(nil), // 5: opi_api.storage.v1.ListCryptoResponse + (*GetCryptoRequest)(nil), // 6: opi_api.storage.v1.GetCryptoRequest + (*CryptoStatsRequest)(nil), // 7: opi_api.storage.v1.CryptoStatsRequest + (*CryptoStatsResponse)(nil), // 8: opi_api.storage.v1.CryptoStatsResponse + (*_go.ObjectKey)(nil), // 9: opi_api.common.v1.ObjectKey + (CryptoType)(0), // 10: opi_api.storage.v1.CryptoType + (*emptypb.Empty)(nil), // 11: google.protobuf.Empty +} var file_middleend_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name + 9, // 0: opi_api.storage.v1.Crypto.crypto_id:type_name -> opi_api.common.v1.ObjectKey + 9, // 1: opi_api.storage.v1.Crypto.volume_id:type_name -> opi_api.common.v1.ObjectKey + 10, // 2: opi_api.storage.v1.Crypto.cipher:type_name -> opi_api.storage.v1.CryptoType + 0, // 3: opi_api.storage.v1.CreateCryptoRequest.volume:type_name -> opi_api.storage.v1.Crypto + 9, // 4: opi_api.storage.v1.DeleteCryptoRequest.crypto_id:type_name -> opi_api.common.v1.ObjectKey + 0, // 5: opi_api.storage.v1.UpdateCryptoRequest.volume:type_name -> opi_api.storage.v1.Crypto + 0, // 6: opi_api.storage.v1.ListCryptoResponse.volumes:type_name -> opi_api.storage.v1.Crypto + 9, // 7: opi_api.storage.v1.GetCryptoRequest.crypto_id:type_name -> opi_api.common.v1.ObjectKey + 9, // 8: opi_api.storage.v1.CryptoStatsRequest.crypto_id:type_name -> opi_api.common.v1.ObjectKey + 9, // 9: opi_api.storage.v1.CryptoStatsResponse.crypto_id:type_name -> opi_api.common.v1.ObjectKey + 1, // 10: opi_api.storage.v1.MiddleendService.CreateCrypto:input_type -> opi_api.storage.v1.CreateCryptoRequest + 2, // 11: opi_api.storage.v1.MiddleendService.DeleteCrypto:input_type -> opi_api.storage.v1.DeleteCryptoRequest + 3, // 12: opi_api.storage.v1.MiddleendService.UpdateCrypto:input_type -> opi_api.storage.v1.UpdateCryptoRequest + 4, // 13: opi_api.storage.v1.MiddleendService.ListCrypto:input_type -> opi_api.storage.v1.ListCryptoRequest + 6, // 14: opi_api.storage.v1.MiddleendService.GetCrypto:input_type -> opi_api.storage.v1.GetCryptoRequest + 7, // 15: opi_api.storage.v1.MiddleendService.CryptoStats:input_type -> opi_api.storage.v1.CryptoStatsRequest + 0, // 16: opi_api.storage.v1.MiddleendService.CreateCrypto:output_type -> opi_api.storage.v1.Crypto + 11, // 17: opi_api.storage.v1.MiddleendService.DeleteCrypto:output_type -> google.protobuf.Empty + 0, // 18: opi_api.storage.v1.MiddleendService.UpdateCrypto:output_type -> opi_api.storage.v1.Crypto + 5, // 19: opi_api.storage.v1.MiddleendService.ListCrypto:output_type -> opi_api.storage.v1.ListCryptoResponse + 0, // 20: opi_api.storage.v1.MiddleendService.GetCrypto:output_type -> opi_api.storage.v1.Crypto + 8, // 21: opi_api.storage.v1.MiddleendService.CryptoStats:output_type -> opi_api.storage.v1.CryptoStatsResponse + 16, // [16:22] is the sub-list for method output_type + 10, // [10:16] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name } func init() { file_middleend_proto_init() } @@ -50,21 +685,393 @@ func file_middleend_proto_init() { if File_middleend_proto != nil { return } + file_opicommon_proto_init() + if !protoimpl.UnsafeEnabled { + file_middleend_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Crypto); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_middleend_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateCryptoRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_middleend_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteCryptoRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_middleend_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateCryptoRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_middleend_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListCryptoRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_middleend_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListCryptoResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_middleend_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetCryptoRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_middleend_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CryptoStatsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_middleend_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CryptoStatsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_middleend_proto_rawDesc, NumEnums: 0, - NumMessages: 0, + NumMessages: 9, NumExtensions: 0, - NumServices: 0, + NumServices: 1, }, GoTypes: file_middleend_proto_goTypes, DependencyIndexes: file_middleend_proto_depIdxs, + MessageInfos: file_middleend_proto_msgTypes, }.Build() File_middleend_proto = out.File file_middleend_proto_rawDesc = nil file_middleend_proto_goTypes = nil file_middleend_proto_depIdxs = nil } + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// MiddleendServiceClient is the client API for MiddleendService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type MiddleendServiceClient interface { + CreateCrypto(ctx context.Context, in *CreateCryptoRequest, opts ...grpc.CallOption) (*Crypto, error) + DeleteCrypto(ctx context.Context, in *DeleteCryptoRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + UpdateCrypto(ctx context.Context, in *UpdateCryptoRequest, opts ...grpc.CallOption) (*Crypto, error) + ListCrypto(ctx context.Context, in *ListCryptoRequest, opts ...grpc.CallOption) (*ListCryptoResponse, error) + GetCrypto(ctx context.Context, in *GetCryptoRequest, opts ...grpc.CallOption) (*Crypto, error) + CryptoStats(ctx context.Context, in *CryptoStatsRequest, opts ...grpc.CallOption) (*CryptoStatsResponse, error) +} + +type middleendServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewMiddleendServiceClient(cc grpc.ClientConnInterface) MiddleendServiceClient { + return &middleendServiceClient{cc} +} + +func (c *middleendServiceClient) CreateCrypto(ctx context.Context, in *CreateCryptoRequest, opts ...grpc.CallOption) (*Crypto, error) { + out := new(Crypto) + err := c.cc.Invoke(ctx, "/opi_api.storage.v1.MiddleendService/CreateCrypto", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *middleendServiceClient) DeleteCrypto(ctx context.Context, in *DeleteCryptoRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, "/opi_api.storage.v1.MiddleendService/DeleteCrypto", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *middleendServiceClient) UpdateCrypto(ctx context.Context, in *UpdateCryptoRequest, opts ...grpc.CallOption) (*Crypto, error) { + out := new(Crypto) + err := c.cc.Invoke(ctx, "/opi_api.storage.v1.MiddleendService/UpdateCrypto", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *middleendServiceClient) ListCrypto(ctx context.Context, in *ListCryptoRequest, opts ...grpc.CallOption) (*ListCryptoResponse, error) { + out := new(ListCryptoResponse) + err := c.cc.Invoke(ctx, "/opi_api.storage.v1.MiddleendService/ListCrypto", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *middleendServiceClient) GetCrypto(ctx context.Context, in *GetCryptoRequest, opts ...grpc.CallOption) (*Crypto, error) { + out := new(Crypto) + err := c.cc.Invoke(ctx, "/opi_api.storage.v1.MiddleendService/GetCrypto", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *middleendServiceClient) CryptoStats(ctx context.Context, in *CryptoStatsRequest, opts ...grpc.CallOption) (*CryptoStatsResponse, error) { + out := new(CryptoStatsResponse) + err := c.cc.Invoke(ctx, "/opi_api.storage.v1.MiddleendService/CryptoStats", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MiddleendServiceServer is the server API for MiddleendService service. +type MiddleendServiceServer interface { + CreateCrypto(context.Context, *CreateCryptoRequest) (*Crypto, error) + DeleteCrypto(context.Context, *DeleteCryptoRequest) (*emptypb.Empty, error) + UpdateCrypto(context.Context, *UpdateCryptoRequest) (*Crypto, error) + ListCrypto(context.Context, *ListCryptoRequest) (*ListCryptoResponse, error) + GetCrypto(context.Context, *GetCryptoRequest) (*Crypto, error) + CryptoStats(context.Context, *CryptoStatsRequest) (*CryptoStatsResponse, error) +} + +// UnimplementedMiddleendServiceServer can be embedded to have forward compatible implementations. +type UnimplementedMiddleendServiceServer struct { +} + +func (*UnimplementedMiddleendServiceServer) CreateCrypto(context.Context, *CreateCryptoRequest) (*Crypto, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateCrypto not implemented") +} +func (*UnimplementedMiddleendServiceServer) DeleteCrypto(context.Context, *DeleteCryptoRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteCrypto not implemented") +} +func (*UnimplementedMiddleendServiceServer) UpdateCrypto(context.Context, *UpdateCryptoRequest) (*Crypto, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateCrypto not implemented") +} +func (*UnimplementedMiddleendServiceServer) ListCrypto(context.Context, *ListCryptoRequest) (*ListCryptoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListCrypto not implemented") +} +func (*UnimplementedMiddleendServiceServer) GetCrypto(context.Context, *GetCryptoRequest) (*Crypto, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetCrypto not implemented") +} +func (*UnimplementedMiddleendServiceServer) CryptoStats(context.Context, *CryptoStatsRequest) (*CryptoStatsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CryptoStats not implemented") +} + +func RegisterMiddleendServiceServer(s *grpc.Server, srv MiddleendServiceServer) { + s.RegisterService(&_MiddleendService_serviceDesc, srv) +} + +func _MiddleendService_CreateCrypto_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateCryptoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MiddleendServiceServer).CreateCrypto(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/opi_api.storage.v1.MiddleendService/CreateCrypto", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MiddleendServiceServer).CreateCrypto(ctx, req.(*CreateCryptoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MiddleendService_DeleteCrypto_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteCryptoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MiddleendServiceServer).DeleteCrypto(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/opi_api.storage.v1.MiddleendService/DeleteCrypto", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MiddleendServiceServer).DeleteCrypto(ctx, req.(*DeleteCryptoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MiddleendService_UpdateCrypto_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateCryptoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MiddleendServiceServer).UpdateCrypto(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/opi_api.storage.v1.MiddleendService/UpdateCrypto", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MiddleendServiceServer).UpdateCrypto(ctx, req.(*UpdateCryptoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MiddleendService_ListCrypto_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListCryptoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MiddleendServiceServer).ListCrypto(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/opi_api.storage.v1.MiddleendService/ListCrypto", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MiddleendServiceServer).ListCrypto(ctx, req.(*ListCryptoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MiddleendService_GetCrypto_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetCryptoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MiddleendServiceServer).GetCrypto(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/opi_api.storage.v1.MiddleendService/GetCrypto", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MiddleendServiceServer).GetCrypto(ctx, req.(*GetCryptoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MiddleendService_CryptoStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CryptoStatsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MiddleendServiceServer).CryptoStats(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/opi_api.storage.v1.MiddleendService/CryptoStats", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MiddleendServiceServer).CryptoStats(ctx, req.(*CryptoStatsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _MiddleendService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "opi_api.storage.v1.MiddleendService", + HandlerType: (*MiddleendServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateCrypto", + Handler: _MiddleendService_CreateCrypto_Handler, + }, + { + MethodName: "DeleteCrypto", + Handler: _MiddleendService_DeleteCrypto_Handler, + }, + { + MethodName: "UpdateCrypto", + Handler: _MiddleendService_UpdateCrypto_Handler, + }, + { + MethodName: "ListCrypto", + Handler: _MiddleendService_ListCrypto_Handler, + }, + { + MethodName: "GetCrypto", + Handler: _MiddleendService_GetCrypto_Handler, + }, + { + MethodName: "CryptoStats", + Handler: _MiddleendService_CryptoStats_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "middleend.proto", +} diff --git a/storage/v1alpha1/gen/go/opicommon.pb.go b/storage/v1alpha1/gen/go/opicommon.pb.go index f067c6ee..90cc3949 100644 --- a/storage/v1alpha1/gen/go/opicommon.pb.go +++ b/storage/v1alpha1/gen/go/opicommon.pb.go @@ -24,6 +24,68 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// AES encryption type to be used +type CryptoType int32 + +const ( + CryptoType_CRYPTO_TYPE_UNSPECIFIED CryptoType = 0 + CryptoType_CRYPTO_TYPE_AES_CBC_128 CryptoType = 1 + CryptoType_CRYPTO_TYPE_AES_CBC_192 CryptoType = 2 + CryptoType_CRYPTO_TYPE_AES_CBC_256 CryptoType = 3 + CryptoType_CRYPTO_TYPE_AES_XTS_128 CryptoType = 4 + CryptoType_CRYPTO_TYPE_AES_XTS_192 CryptoType = 5 + CryptoType_CRYPTO_TYPE_AES_XTS_256 CryptoType = 6 +) + +// Enum value maps for CryptoType. +var ( + CryptoType_name = map[int32]string{ + 0: "CRYPTO_TYPE_UNSPECIFIED", + 1: "CRYPTO_TYPE_AES_CBC_128", + 2: "CRYPTO_TYPE_AES_CBC_192", + 3: "CRYPTO_TYPE_AES_CBC_256", + 4: "CRYPTO_TYPE_AES_XTS_128", + 5: "CRYPTO_TYPE_AES_XTS_192", + 6: "CRYPTO_TYPE_AES_XTS_256", + } + CryptoType_value = map[string]int32{ + "CRYPTO_TYPE_UNSPECIFIED": 0, + "CRYPTO_TYPE_AES_CBC_128": 1, + "CRYPTO_TYPE_AES_CBC_192": 2, + "CRYPTO_TYPE_AES_CBC_256": 3, + "CRYPTO_TYPE_AES_XTS_128": 4, + "CRYPTO_TYPE_AES_XTS_192": 5, + "CRYPTO_TYPE_AES_XTS_256": 6, + } +) + +func (x CryptoType) Enum() *CryptoType { + p := new(CryptoType) + *p = x + return p +} + +func (x CryptoType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (CryptoType) Descriptor() protoreflect.EnumDescriptor { + return file_opicommon_proto_enumTypes[0].Descriptor() +} + +func (CryptoType) Type() protoreflect.EnumType { + return &file_opicommon_proto_enumTypes[0] +} + +func (x CryptoType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use CryptoType.Descriptor instead. +func (CryptoType) EnumDescriptor() ([]byte, []int) { + return file_opicommon_proto_rawDescGZIP(), []int{0} +} + // Many front-ends expose PCI devices to the host. This represents that endpoint. // This device will ultimately be surfaced by the operating system at some // Bus:Device:Function, but note that the values set here are not necessarily @@ -118,13 +180,27 @@ var file_opicommon_proto_rawDesc = []byte{ 0x61, 0x6c, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x76, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x5f, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x76, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x46, 0x75, 0x6e, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x5d, 0x0a, 0x12, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, - 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0e, 0x4f, 0x70, 0x69, - 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x69, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x6f, 0x70, 0x69, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x67, 0x65, - 0x6e, 0x2f, 0x67, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0xd7, 0x01, 0x0a, 0x0a, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x43, 0x52, 0x59, 0x50, 0x54, 0x4f, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, + 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x43, 0x52, 0x59, 0x50, 0x54, 0x4f, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x41, 0x45, 0x53, 0x5f, 0x43, 0x42, 0x43, 0x5f, 0x31, 0x32, 0x38, 0x10, 0x01, 0x12, 0x1b, + 0x0a, 0x17, 0x43, 0x52, 0x59, 0x50, 0x54, 0x4f, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x45, + 0x53, 0x5f, 0x43, 0x42, 0x43, 0x5f, 0x31, 0x39, 0x32, 0x10, 0x02, 0x12, 0x1b, 0x0a, 0x17, 0x43, + 0x52, 0x59, 0x50, 0x54, 0x4f, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x45, 0x53, 0x5f, 0x43, + 0x42, 0x43, 0x5f, 0x32, 0x35, 0x36, 0x10, 0x03, 0x12, 0x1b, 0x0a, 0x17, 0x43, 0x52, 0x59, 0x50, + 0x54, 0x4f, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x45, 0x53, 0x5f, 0x58, 0x54, 0x53, 0x5f, + 0x31, 0x32, 0x38, 0x10, 0x04, 0x12, 0x1b, 0x0a, 0x17, 0x43, 0x52, 0x59, 0x50, 0x54, 0x4f, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x45, 0x53, 0x5f, 0x58, 0x54, 0x53, 0x5f, 0x31, 0x39, 0x32, + 0x10, 0x05, 0x12, 0x1b, 0x0a, 0x17, 0x43, 0x52, 0x59, 0x50, 0x54, 0x4f, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x41, 0x45, 0x53, 0x5f, 0x58, 0x54, 0x53, 0x5f, 0x32, 0x35, 0x36, 0x10, 0x06, 0x42, + 0x5d, 0x0a, 0x12, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0e, 0x4f, 0x70, 0x69, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x69, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x6f, + 0x70, 0x69, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -139,9 +215,11 @@ func file_opicommon_proto_rawDescGZIP() []byte { return file_opicommon_proto_rawDescData } +var file_opicommon_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_opicommon_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_opicommon_proto_goTypes = []interface{}{ - (*PciEndpoint)(nil), // 0: opi_api.storage.v1.PciEndpoint + (CryptoType)(0), // 0: opi_api.storage.v1.CryptoType + (*PciEndpoint)(nil), // 1: opi_api.storage.v1.PciEndpoint } var file_opicommon_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type @@ -175,13 +253,14 @@ func file_opicommon_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_opicommon_proto_rawDesc, - NumEnums: 0, + NumEnums: 1, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, GoTypes: file_opicommon_proto_goTypes, DependencyIndexes: file_opicommon_proto_depIdxs, + EnumInfos: file_opicommon_proto_enumTypes, MessageInfos: file_opicommon_proto_msgTypes, }.Build() File_opicommon_proto = out.File diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/CreateCryptoRequest.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/CreateCryptoRequest.java new file mode 100644 index 00000000..2562f88c --- /dev/null +++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/CreateCryptoRequest.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: middleend.proto + +package opi_api.storage.v1; + +/** + * Protobuf type {@code opi_api.storage.v1.CreateCryptoRequest} + */ +public final class CreateCryptoRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.storage.v1.CreateCryptoRequest) + CreateCryptoRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateCryptoRequest.newBuilder() to construct. + private CreateCryptoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateCryptoRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateCryptoRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateCryptoRequest( + 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; + case 10: { + opi_api.storage.v1.Crypto.Builder subBuilder = null; + if (volume_ != null) { + subBuilder = volume_.toBuilder(); + } + volume_ = input.readMessage(opi_api.storage.v1.Crypto.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(volume_); + volume_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_CreateCryptoRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_CreateCryptoRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.storage.v1.CreateCryptoRequest.class, opi_api.storage.v1.CreateCryptoRequest.Builder.class); + } + + public static final int VOLUME_FIELD_NUMBER = 1; + private opi_api.storage.v1.Crypto volume_; + /** + * .opi_api.storage.v1.Crypto volume = 1; + * @return Whether the volume field is set. + */ + @java.lang.Override + public boolean hasVolume() { + return volume_ != null; + } + /** + * .opi_api.storage.v1.Crypto volume = 1; + * @return The volume. + */ + @java.lang.Override + public opi_api.storage.v1.Crypto getVolume() { + return volume_ == null ? opi_api.storage.v1.Crypto.getDefaultInstance() : volume_; + } + /** + * .opi_api.storage.v1.Crypto volume = 1; + */ + @java.lang.Override + public opi_api.storage.v1.CryptoOrBuilder getVolumeOrBuilder() { + return getVolume(); + } + + 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 (volume_ != null) { + output.writeMessage(1, getVolume()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (volume_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getVolume()); + } + 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 opi_api.storage.v1.CreateCryptoRequest)) { + return super.equals(obj); + } + opi_api.storage.v1.CreateCryptoRequest other = (opi_api.storage.v1.CreateCryptoRequest) obj; + + if (hasVolume() != other.hasVolume()) return false; + if (hasVolume()) { + if (!getVolume() + .equals(other.getVolume())) 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 (hasVolume()) { + hash = (37 * hash) + VOLUME_FIELD_NUMBER; + hash = (53 * hash) + getVolume().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.storage.v1.CreateCryptoRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.storage.v1.CreateCryptoRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.storage.v1.CreateCryptoRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.storage.v1.CreateCryptoRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.storage.v1.CreateCryptoRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.storage.v1.CreateCryptoRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.storage.v1.CreateCryptoRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.storage.v1.CreateCryptoRequest 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 opi_api.storage.v1.CreateCryptoRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.storage.v1.CreateCryptoRequest 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 opi_api.storage.v1.CreateCryptoRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.storage.v1.CreateCryptoRequest 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(opi_api.storage.v1.CreateCryptoRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code opi_api.storage.v1.CreateCryptoRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.storage.v1.CreateCryptoRequest) + opi_api.storage.v1.CreateCryptoRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_CreateCryptoRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_CreateCryptoRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.storage.v1.CreateCryptoRequest.class, opi_api.storage.v1.CreateCryptoRequest.Builder.class); + } + + // Construct using opi_api.storage.v1.CreateCryptoRequest.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 (volumeBuilder_ == null) { + volume_ = null; + } else { + volume_ = null; + volumeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_CreateCryptoRequest_descriptor; + } + + @java.lang.Override + public opi_api.storage.v1.CreateCryptoRequest getDefaultInstanceForType() { + return opi_api.storage.v1.CreateCryptoRequest.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.storage.v1.CreateCryptoRequest build() { + opi_api.storage.v1.CreateCryptoRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.storage.v1.CreateCryptoRequest buildPartial() { + opi_api.storage.v1.CreateCryptoRequest result = new opi_api.storage.v1.CreateCryptoRequest(this); + if (volumeBuilder_ == null) { + result.volume_ = volume_; + } else { + result.volume_ = volumeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.storage.v1.CreateCryptoRequest) { + return mergeFrom((opi_api.storage.v1.CreateCryptoRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.storage.v1.CreateCryptoRequest other) { + if (other == opi_api.storage.v1.CreateCryptoRequest.getDefaultInstance()) return this; + if (other.hasVolume()) { + mergeVolume(other.getVolume()); + } + 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 { + opi_api.storage.v1.CreateCryptoRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.storage.v1.CreateCryptoRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private opi_api.storage.v1.Crypto volume_; + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.storage.v1.Crypto, opi_api.storage.v1.Crypto.Builder, opi_api.storage.v1.CryptoOrBuilder> volumeBuilder_; + /** + * .opi_api.storage.v1.Crypto volume = 1; + * @return Whether the volume field is set. + */ + public boolean hasVolume() { + return volumeBuilder_ != null || volume_ != null; + } + /** + * .opi_api.storage.v1.Crypto volume = 1; + * @return The volume. + */ + public opi_api.storage.v1.Crypto getVolume() { + if (volumeBuilder_ == null) { + return volume_ == null ? opi_api.storage.v1.Crypto.getDefaultInstance() : volume_; + } else { + return volumeBuilder_.getMessage(); + } + } + /** + * .opi_api.storage.v1.Crypto volume = 1; + */ + public Builder setVolume(opi_api.storage.v1.Crypto value) { + if (volumeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + volume_ = value; + onChanged(); + } else { + volumeBuilder_.setMessage(value); + } + + return this; + } + /** + * .opi_api.storage.v1.Crypto volume = 1; + */ + public Builder setVolume( + opi_api.storage.v1.Crypto.Builder builderForValue) { + if (volumeBuilder_ == null) { + volume_ = builderForValue.build(); + onChanged(); + } else { + volumeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .opi_api.storage.v1.Crypto volume = 1; + */ + public Builder mergeVolume(opi_api.storage.v1.Crypto value) { + if (volumeBuilder_ == null) { + if (volume_ != null) { + volume_ = + opi_api.storage.v1.Crypto.newBuilder(volume_).mergeFrom(value).buildPartial(); + } else { + volume_ = value; + } + onChanged(); + } else { + volumeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .opi_api.storage.v1.Crypto volume = 1; + */ + public Builder clearVolume() { + if (volumeBuilder_ == null) { + volume_ = null; + onChanged(); + } else { + volume_ = null; + volumeBuilder_ = null; + } + + return this; + } + /** + * .opi_api.storage.v1.Crypto volume = 1; + */ + public opi_api.storage.v1.Crypto.Builder getVolumeBuilder() { + + onChanged(); + return getVolumeFieldBuilder().getBuilder(); + } + /** + * .opi_api.storage.v1.Crypto volume = 1; + */ + public opi_api.storage.v1.CryptoOrBuilder getVolumeOrBuilder() { + if (volumeBuilder_ != null) { + return volumeBuilder_.getMessageOrBuilder(); + } else { + return volume_ == null ? + opi_api.storage.v1.Crypto.getDefaultInstance() : volume_; + } + } + /** + * .opi_api.storage.v1.Crypto volume = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.storage.v1.Crypto, opi_api.storage.v1.Crypto.Builder, opi_api.storage.v1.CryptoOrBuilder> + getVolumeFieldBuilder() { + if (volumeBuilder_ == null) { + volumeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + opi_api.storage.v1.Crypto, opi_api.storage.v1.Crypto.Builder, opi_api.storage.v1.CryptoOrBuilder>( + getVolume(), + getParentForChildren(), + isClean()); + volume_ = null; + } + return volumeBuilder_; + } + @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:opi_api.storage.v1.CreateCryptoRequest) + } + + // @@protoc_insertion_point(class_scope:opi_api.storage.v1.CreateCryptoRequest) + private static final opi_api.storage.v1.CreateCryptoRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.storage.v1.CreateCryptoRequest(); + } + + public static opi_api.storage.v1.CreateCryptoRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCryptoRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateCryptoRequest(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 opi_api.storage.v1.CreateCryptoRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/CreateCryptoRequestOrBuilder.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/CreateCryptoRequestOrBuilder.java new file mode 100644 index 00000000..f5838d99 --- /dev/null +++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/CreateCryptoRequestOrBuilder.java @@ -0,0 +1,24 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: middleend.proto + +package opi_api.storage.v1; + +public interface CreateCryptoRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.storage.v1.CreateCryptoRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .opi_api.storage.v1.Crypto volume = 1; + * @return Whether the volume field is set. + */ + boolean hasVolume(); + /** + * .opi_api.storage.v1.Crypto volume = 1; + * @return The volume. + */ + opi_api.storage.v1.Crypto getVolume(); + /** + * .opi_api.storage.v1.Crypto volume = 1; + */ + opi_api.storage.v1.CryptoOrBuilder getVolumeOrBuilder(); +} diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/Crypto.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/Crypto.java new file mode 100644 index 00000000..5f12c163 --- /dev/null +++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/Crypto.java @@ -0,0 +1,1051 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: middleend.proto + +package opi_api.storage.v1; + +/** + * Protobuf type {@code opi_api.storage.v1.Crypto} + */ +public final class Crypto extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.storage.v1.Crypto) + CryptoOrBuilder { +private static final long serialVersionUID = 0L; + // Use Crypto.newBuilder() to construct. + private Crypto(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Crypto() { + key_ = com.google.protobuf.ByteString.EMPTY; + cipher_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Crypto(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Crypto( + 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; + case 10: { + opi_api.common.v1.ObjectKey.Builder subBuilder = null; + if (cryptoId_ != null) { + subBuilder = cryptoId_.toBuilder(); + } + cryptoId_ = input.readMessage(opi_api.common.v1.ObjectKey.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cryptoId_); + cryptoId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + opi_api.common.v1.ObjectKey.Builder subBuilder = null; + if (volumeId_ != null) { + subBuilder = volumeId_.toBuilder(); + } + volumeId_ = input.readMessage(opi_api.common.v1.ObjectKey.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(volumeId_); + volumeId_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + + key_ = input.readBytes(); + break; + } + case 32: { + int rawValue = input.readEnum(); + + cipher_ = rawValue; + 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 opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_Crypto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_Crypto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.storage.v1.Crypto.class, opi_api.storage.v1.Crypto.Builder.class); + } + + public static final int CRYPTO_ID_FIELD_NUMBER = 1; + private opi_api.common.v1.ObjectKey cryptoId_; + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + * @return Whether the cryptoId field is set. + */ + @java.lang.Override + public boolean hasCryptoId() { + return cryptoId_ != null; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + * @return The cryptoId. + */ + @java.lang.Override + public opi_api.common.v1.ObjectKey getCryptoId() { + return cryptoId_ == null ? opi_api.common.v1.ObjectKey.getDefaultInstance() : cryptoId_; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + @java.lang.Override + public opi_api.common.v1.ObjectKeyOrBuilder getCryptoIdOrBuilder() { + return getCryptoId(); + } + + public static final int VOLUME_ID_FIELD_NUMBER = 2; + private opi_api.common.v1.ObjectKey volumeId_; + /** + *
+   * The back/middle-end volume to back this volume
+   * 
+ * + * .opi_api.common.v1.ObjectKey volume_id = 2; + * @return Whether the volumeId field is set. + */ + @java.lang.Override + public boolean hasVolumeId() { + return volumeId_ != null; + } + /** + *
+   * The back/middle-end volume to back this volume
+   * 
+ * + * .opi_api.common.v1.ObjectKey volume_id = 2; + * @return The volumeId. + */ + @java.lang.Override + public opi_api.common.v1.ObjectKey getVolumeId() { + return volumeId_ == null ? opi_api.common.v1.ObjectKey.getDefaultInstance() : volumeId_; + } + /** + *
+   * The back/middle-end volume to back this volume
+   * 
+ * + * .opi_api.common.v1.ObjectKey volume_id = 2; + */ + @java.lang.Override + public opi_api.common.v1.ObjectKeyOrBuilder getVolumeIdOrBuilder() { + return getVolumeId(); + } + + public static final int KEY_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString key_; + /** + *
+   * Key to be used for encryption
+   * 
+ * + * bytes key = 3; + * @return The key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKey() { + return key_; + } + + public static final int CIPHER_FIELD_NUMBER = 4; + private int cipher_; + /** + *
+   * Cipher to use
+   * 
+ * + * .opi_api.storage.v1.CryptoType cipher = 4; + * @return The enum numeric value on the wire for cipher. + */ + @java.lang.Override public int getCipherValue() { + return cipher_; + } + /** + *
+   * Cipher to use
+   * 
+ * + * .opi_api.storage.v1.CryptoType cipher = 4; + * @return The cipher. + */ + @java.lang.Override public opi_api.storage.v1.CryptoType getCipher() { + @SuppressWarnings("deprecation") + opi_api.storage.v1.CryptoType result = opi_api.storage.v1.CryptoType.valueOf(cipher_); + return result == null ? opi_api.storage.v1.CryptoType.UNRECOGNIZED : result; + } + + 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 (cryptoId_ != null) { + output.writeMessage(1, getCryptoId()); + } + if (volumeId_ != null) { + output.writeMessage(2, getVolumeId()); + } + if (!key_.isEmpty()) { + output.writeBytes(3, key_); + } + if (cipher_ != opi_api.storage.v1.CryptoType.CRYPTO_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, cipher_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (cryptoId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCryptoId()); + } + if (volumeId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getVolumeId()); + } + if (!key_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, key_); + } + if (cipher_ != opi_api.storage.v1.CryptoType.CRYPTO_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, cipher_); + } + 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 opi_api.storage.v1.Crypto)) { + return super.equals(obj); + } + opi_api.storage.v1.Crypto other = (opi_api.storage.v1.Crypto) obj; + + if (hasCryptoId() != other.hasCryptoId()) return false; + if (hasCryptoId()) { + if (!getCryptoId() + .equals(other.getCryptoId())) return false; + } + if (hasVolumeId() != other.hasVolumeId()) return false; + if (hasVolumeId()) { + if (!getVolumeId() + .equals(other.getVolumeId())) return false; + } + if (!getKey() + .equals(other.getKey())) return false; + if (cipher_ != other.cipher_) 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 (hasCryptoId()) { + hash = (37 * hash) + CRYPTO_ID_FIELD_NUMBER; + hash = (53 * hash) + getCryptoId().hashCode(); + } + if (hasVolumeId()) { + hash = (37 * hash) + VOLUME_ID_FIELD_NUMBER; + hash = (53 * hash) + getVolumeId().hashCode(); + } + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + CIPHER_FIELD_NUMBER; + hash = (53 * hash) + cipher_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.storage.v1.Crypto parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.storage.v1.Crypto parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.storage.v1.Crypto parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.storage.v1.Crypto parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.storage.v1.Crypto parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.storage.v1.Crypto parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.storage.v1.Crypto parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.storage.v1.Crypto 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 opi_api.storage.v1.Crypto parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.storage.v1.Crypto 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 opi_api.storage.v1.Crypto parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.storage.v1.Crypto 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(opi_api.storage.v1.Crypto prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code opi_api.storage.v1.Crypto} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.storage.v1.Crypto) + opi_api.storage.v1.CryptoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_Crypto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_Crypto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.storage.v1.Crypto.class, opi_api.storage.v1.Crypto.Builder.class); + } + + // Construct using opi_api.storage.v1.Crypto.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 (cryptoIdBuilder_ == null) { + cryptoId_ = null; + } else { + cryptoId_ = null; + cryptoIdBuilder_ = null; + } + if (volumeIdBuilder_ == null) { + volumeId_ = null; + } else { + volumeId_ = null; + volumeIdBuilder_ = null; + } + key_ = com.google.protobuf.ByteString.EMPTY; + + cipher_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_Crypto_descriptor; + } + + @java.lang.Override + public opi_api.storage.v1.Crypto getDefaultInstanceForType() { + return opi_api.storage.v1.Crypto.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.storage.v1.Crypto build() { + opi_api.storage.v1.Crypto result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.storage.v1.Crypto buildPartial() { + opi_api.storage.v1.Crypto result = new opi_api.storage.v1.Crypto(this); + if (cryptoIdBuilder_ == null) { + result.cryptoId_ = cryptoId_; + } else { + result.cryptoId_ = cryptoIdBuilder_.build(); + } + if (volumeIdBuilder_ == null) { + result.volumeId_ = volumeId_; + } else { + result.volumeId_ = volumeIdBuilder_.build(); + } + result.key_ = key_; + result.cipher_ = cipher_; + 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 opi_api.storage.v1.Crypto) { + return mergeFrom((opi_api.storage.v1.Crypto)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.storage.v1.Crypto other) { + if (other == opi_api.storage.v1.Crypto.getDefaultInstance()) return this; + if (other.hasCryptoId()) { + mergeCryptoId(other.getCryptoId()); + } + if (other.hasVolumeId()) { + mergeVolumeId(other.getVolumeId()); + } + if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { + setKey(other.getKey()); + } + if (other.cipher_ != 0) { + setCipherValue(other.getCipherValue()); + } + 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 { + opi_api.storage.v1.Crypto parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.storage.v1.Crypto) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private opi_api.common.v1.ObjectKey cryptoId_; + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder> cryptoIdBuilder_; + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + * @return Whether the cryptoId field is set. + */ + public boolean hasCryptoId() { + return cryptoIdBuilder_ != null || cryptoId_ != null; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + * @return The cryptoId. + */ + public opi_api.common.v1.ObjectKey getCryptoId() { + if (cryptoIdBuilder_ == null) { + return cryptoId_ == null ? opi_api.common.v1.ObjectKey.getDefaultInstance() : cryptoId_; + } else { + return cryptoIdBuilder_.getMessage(); + } + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + public Builder setCryptoId(opi_api.common.v1.ObjectKey value) { + if (cryptoIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cryptoId_ = value; + onChanged(); + } else { + cryptoIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + public Builder setCryptoId( + opi_api.common.v1.ObjectKey.Builder builderForValue) { + if (cryptoIdBuilder_ == null) { + cryptoId_ = builderForValue.build(); + onChanged(); + } else { + cryptoIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + public Builder mergeCryptoId(opi_api.common.v1.ObjectKey value) { + if (cryptoIdBuilder_ == null) { + if (cryptoId_ != null) { + cryptoId_ = + opi_api.common.v1.ObjectKey.newBuilder(cryptoId_).mergeFrom(value).buildPartial(); + } else { + cryptoId_ = value; + } + onChanged(); + } else { + cryptoIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + public Builder clearCryptoId() { + if (cryptoIdBuilder_ == null) { + cryptoId_ = null; + onChanged(); + } else { + cryptoId_ = null; + cryptoIdBuilder_ = null; + } + + return this; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + public opi_api.common.v1.ObjectKey.Builder getCryptoIdBuilder() { + + onChanged(); + return getCryptoIdFieldBuilder().getBuilder(); + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + public opi_api.common.v1.ObjectKeyOrBuilder getCryptoIdOrBuilder() { + if (cryptoIdBuilder_ != null) { + return cryptoIdBuilder_.getMessageOrBuilder(); + } else { + return cryptoId_ == null ? + opi_api.common.v1.ObjectKey.getDefaultInstance() : cryptoId_; + } + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder> + getCryptoIdFieldBuilder() { + if (cryptoIdBuilder_ == null) { + cryptoIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder>( + getCryptoId(), + getParentForChildren(), + isClean()); + cryptoId_ = null; + } + return cryptoIdBuilder_; + } + + private opi_api.common.v1.ObjectKey volumeId_; + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder> volumeIdBuilder_; + /** + *
+     * The back/middle-end volume to back this volume
+     * 
+ * + * .opi_api.common.v1.ObjectKey volume_id = 2; + * @return Whether the volumeId field is set. + */ + public boolean hasVolumeId() { + return volumeIdBuilder_ != null || volumeId_ != null; + } + /** + *
+     * The back/middle-end volume to back this volume
+     * 
+ * + * .opi_api.common.v1.ObjectKey volume_id = 2; + * @return The volumeId. + */ + public opi_api.common.v1.ObjectKey getVolumeId() { + if (volumeIdBuilder_ == null) { + return volumeId_ == null ? opi_api.common.v1.ObjectKey.getDefaultInstance() : volumeId_; + } else { + return volumeIdBuilder_.getMessage(); + } + } + /** + *
+     * The back/middle-end volume to back this volume
+     * 
+ * + * .opi_api.common.v1.ObjectKey volume_id = 2; + */ + public Builder setVolumeId(opi_api.common.v1.ObjectKey value) { + if (volumeIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + volumeId_ = value; + onChanged(); + } else { + volumeIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The back/middle-end volume to back this volume
+     * 
+ * + * .opi_api.common.v1.ObjectKey volume_id = 2; + */ + public Builder setVolumeId( + opi_api.common.v1.ObjectKey.Builder builderForValue) { + if (volumeIdBuilder_ == null) { + volumeId_ = builderForValue.build(); + onChanged(); + } else { + volumeIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The back/middle-end volume to back this volume
+     * 
+ * + * .opi_api.common.v1.ObjectKey volume_id = 2; + */ + public Builder mergeVolumeId(opi_api.common.v1.ObjectKey value) { + if (volumeIdBuilder_ == null) { + if (volumeId_ != null) { + volumeId_ = + opi_api.common.v1.ObjectKey.newBuilder(volumeId_).mergeFrom(value).buildPartial(); + } else { + volumeId_ = value; + } + onChanged(); + } else { + volumeIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The back/middle-end volume to back this volume
+     * 
+ * + * .opi_api.common.v1.ObjectKey volume_id = 2; + */ + public Builder clearVolumeId() { + if (volumeIdBuilder_ == null) { + volumeId_ = null; + onChanged(); + } else { + volumeId_ = null; + volumeIdBuilder_ = null; + } + + return this; + } + /** + *
+     * The back/middle-end volume to back this volume
+     * 
+ * + * .opi_api.common.v1.ObjectKey volume_id = 2; + */ + public opi_api.common.v1.ObjectKey.Builder getVolumeIdBuilder() { + + onChanged(); + return getVolumeIdFieldBuilder().getBuilder(); + } + /** + *
+     * The back/middle-end volume to back this volume
+     * 
+ * + * .opi_api.common.v1.ObjectKey volume_id = 2; + */ + public opi_api.common.v1.ObjectKeyOrBuilder getVolumeIdOrBuilder() { + if (volumeIdBuilder_ != null) { + return volumeIdBuilder_.getMessageOrBuilder(); + } else { + return volumeId_ == null ? + opi_api.common.v1.ObjectKey.getDefaultInstance() : volumeId_; + } + } + /** + *
+     * The back/middle-end volume to back this volume
+     * 
+ * + * .opi_api.common.v1.ObjectKey volume_id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder> + getVolumeIdFieldBuilder() { + if (volumeIdBuilder_ == null) { + volumeIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder>( + getVolumeId(), + getParentForChildren(), + isClean()); + volumeId_ = null; + } + return volumeIdBuilder_; + } + + private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * Key to be used for encryption
+     * 
+ * + * bytes key = 3; + * @return The key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKey() { + return key_; + } + /** + *
+     * Key to be used for encryption
+     * 
+ * + * bytes key = 3; + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + *
+     * Key to be used for encryption
+     * 
+ * + * bytes key = 3; + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + + private int cipher_ = 0; + /** + *
+     * Cipher to use
+     * 
+ * + * .opi_api.storage.v1.CryptoType cipher = 4; + * @return The enum numeric value on the wire for cipher. + */ + @java.lang.Override public int getCipherValue() { + return cipher_; + } + /** + *
+     * Cipher to use
+     * 
+ * + * .opi_api.storage.v1.CryptoType cipher = 4; + * @param value The enum numeric value on the wire for cipher to set. + * @return This builder for chaining. + */ + public Builder setCipherValue(int value) { + + cipher_ = value; + onChanged(); + return this; + } + /** + *
+     * Cipher to use
+     * 
+ * + * .opi_api.storage.v1.CryptoType cipher = 4; + * @return The cipher. + */ + @java.lang.Override + public opi_api.storage.v1.CryptoType getCipher() { + @SuppressWarnings("deprecation") + opi_api.storage.v1.CryptoType result = opi_api.storage.v1.CryptoType.valueOf(cipher_); + return result == null ? opi_api.storage.v1.CryptoType.UNRECOGNIZED : result; + } + /** + *
+     * Cipher to use
+     * 
+ * + * .opi_api.storage.v1.CryptoType cipher = 4; + * @param value The cipher to set. + * @return This builder for chaining. + */ + public Builder setCipher(opi_api.storage.v1.CryptoType value) { + if (value == null) { + throw new NullPointerException(); + } + + cipher_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Cipher to use
+     * 
+ * + * .opi_api.storage.v1.CryptoType cipher = 4; + * @return This builder for chaining. + */ + public Builder clearCipher() { + + cipher_ = 0; + 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:opi_api.storage.v1.Crypto) + } + + // @@protoc_insertion_point(class_scope:opi_api.storage.v1.Crypto) + private static final opi_api.storage.v1.Crypto DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.storage.v1.Crypto(); + } + + public static opi_api.storage.v1.Crypto getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Crypto parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Crypto(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 opi_api.storage.v1.Crypto getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoOrBuilder.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoOrBuilder.java new file mode 100644 index 00000000..71201d4d --- /dev/null +++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoOrBuilder.java @@ -0,0 +1,80 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: middleend.proto + +package opi_api.storage.v1; + +public interface CryptoOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.storage.v1.Crypto) + com.google.protobuf.MessageOrBuilder { + + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + * @return Whether the cryptoId field is set. + */ + boolean hasCryptoId(); + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + * @return The cryptoId. + */ + opi_api.common.v1.ObjectKey getCryptoId(); + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + opi_api.common.v1.ObjectKeyOrBuilder getCryptoIdOrBuilder(); + + /** + *
+   * The back/middle-end volume to back this volume
+   * 
+ * + * .opi_api.common.v1.ObjectKey volume_id = 2; + * @return Whether the volumeId field is set. + */ + boolean hasVolumeId(); + /** + *
+   * The back/middle-end volume to back this volume
+   * 
+ * + * .opi_api.common.v1.ObjectKey volume_id = 2; + * @return The volumeId. + */ + opi_api.common.v1.ObjectKey getVolumeId(); + /** + *
+   * The back/middle-end volume to back this volume
+   * 
+ * + * .opi_api.common.v1.ObjectKey volume_id = 2; + */ + opi_api.common.v1.ObjectKeyOrBuilder getVolumeIdOrBuilder(); + + /** + *
+   * Key to be used for encryption
+   * 
+ * + * bytes key = 3; + * @return The key. + */ + com.google.protobuf.ByteString getKey(); + + /** + *
+   * Cipher to use
+   * 
+ * + * .opi_api.storage.v1.CryptoType cipher = 4; + * @return The enum numeric value on the wire for cipher. + */ + int getCipherValue(); + /** + *
+   * Cipher to use
+   * 
+ * + * .opi_api.storage.v1.CryptoType cipher = 4; + * @return The cipher. + */ + opi_api.storage.v1.CryptoType getCipher(); +} diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoStatsRequest.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoStatsRequest.java new file mode 100644 index 00000000..a160af23 --- /dev/null +++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoStatsRequest.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: middleend.proto + +package opi_api.storage.v1; + +/** + * Protobuf type {@code opi_api.storage.v1.CryptoStatsRequest} + */ +public final class CryptoStatsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.storage.v1.CryptoStatsRequest) + CryptoStatsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CryptoStatsRequest.newBuilder() to construct. + private CryptoStatsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CryptoStatsRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CryptoStatsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CryptoStatsRequest( + 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; + case 10: { + opi_api.common.v1.ObjectKey.Builder subBuilder = null; + if (cryptoId_ != null) { + subBuilder = cryptoId_.toBuilder(); + } + cryptoId_ = input.readMessage(opi_api.common.v1.ObjectKey.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cryptoId_); + cryptoId_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_CryptoStatsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_CryptoStatsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.storage.v1.CryptoStatsRequest.class, opi_api.storage.v1.CryptoStatsRequest.Builder.class); + } + + public static final int CRYPTO_ID_FIELD_NUMBER = 1; + private opi_api.common.v1.ObjectKey cryptoId_; + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + * @return Whether the cryptoId field is set. + */ + @java.lang.Override + public boolean hasCryptoId() { + return cryptoId_ != null; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + * @return The cryptoId. + */ + @java.lang.Override + public opi_api.common.v1.ObjectKey getCryptoId() { + return cryptoId_ == null ? opi_api.common.v1.ObjectKey.getDefaultInstance() : cryptoId_; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + @java.lang.Override + public opi_api.common.v1.ObjectKeyOrBuilder getCryptoIdOrBuilder() { + return getCryptoId(); + } + + 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 (cryptoId_ != null) { + output.writeMessage(1, getCryptoId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (cryptoId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCryptoId()); + } + 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 opi_api.storage.v1.CryptoStatsRequest)) { + return super.equals(obj); + } + opi_api.storage.v1.CryptoStatsRequest other = (opi_api.storage.v1.CryptoStatsRequest) obj; + + if (hasCryptoId() != other.hasCryptoId()) return false; + if (hasCryptoId()) { + if (!getCryptoId() + .equals(other.getCryptoId())) 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 (hasCryptoId()) { + hash = (37 * hash) + CRYPTO_ID_FIELD_NUMBER; + hash = (53 * hash) + getCryptoId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.storage.v1.CryptoStatsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.storage.v1.CryptoStatsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.storage.v1.CryptoStatsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.storage.v1.CryptoStatsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.storage.v1.CryptoStatsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.storage.v1.CryptoStatsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.storage.v1.CryptoStatsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.storage.v1.CryptoStatsRequest 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 opi_api.storage.v1.CryptoStatsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.storage.v1.CryptoStatsRequest 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 opi_api.storage.v1.CryptoStatsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.storage.v1.CryptoStatsRequest 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(opi_api.storage.v1.CryptoStatsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code opi_api.storage.v1.CryptoStatsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.storage.v1.CryptoStatsRequest) + opi_api.storage.v1.CryptoStatsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_CryptoStatsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_CryptoStatsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.storage.v1.CryptoStatsRequest.class, opi_api.storage.v1.CryptoStatsRequest.Builder.class); + } + + // Construct using opi_api.storage.v1.CryptoStatsRequest.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 (cryptoIdBuilder_ == null) { + cryptoId_ = null; + } else { + cryptoId_ = null; + cryptoIdBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_CryptoStatsRequest_descriptor; + } + + @java.lang.Override + public opi_api.storage.v1.CryptoStatsRequest getDefaultInstanceForType() { + return opi_api.storage.v1.CryptoStatsRequest.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.storage.v1.CryptoStatsRequest build() { + opi_api.storage.v1.CryptoStatsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.storage.v1.CryptoStatsRequest buildPartial() { + opi_api.storage.v1.CryptoStatsRequest result = new opi_api.storage.v1.CryptoStatsRequest(this); + if (cryptoIdBuilder_ == null) { + result.cryptoId_ = cryptoId_; + } else { + result.cryptoId_ = cryptoIdBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.storage.v1.CryptoStatsRequest) { + return mergeFrom((opi_api.storage.v1.CryptoStatsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.storage.v1.CryptoStatsRequest other) { + if (other == opi_api.storage.v1.CryptoStatsRequest.getDefaultInstance()) return this; + if (other.hasCryptoId()) { + mergeCryptoId(other.getCryptoId()); + } + 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 { + opi_api.storage.v1.CryptoStatsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.storage.v1.CryptoStatsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private opi_api.common.v1.ObjectKey cryptoId_; + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder> cryptoIdBuilder_; + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + * @return Whether the cryptoId field is set. + */ + public boolean hasCryptoId() { + return cryptoIdBuilder_ != null || cryptoId_ != null; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + * @return The cryptoId. + */ + public opi_api.common.v1.ObjectKey getCryptoId() { + if (cryptoIdBuilder_ == null) { + return cryptoId_ == null ? opi_api.common.v1.ObjectKey.getDefaultInstance() : cryptoId_; + } else { + return cryptoIdBuilder_.getMessage(); + } + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + public Builder setCryptoId(opi_api.common.v1.ObjectKey value) { + if (cryptoIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cryptoId_ = value; + onChanged(); + } else { + cryptoIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + public Builder setCryptoId( + opi_api.common.v1.ObjectKey.Builder builderForValue) { + if (cryptoIdBuilder_ == null) { + cryptoId_ = builderForValue.build(); + onChanged(); + } else { + cryptoIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + public Builder mergeCryptoId(opi_api.common.v1.ObjectKey value) { + if (cryptoIdBuilder_ == null) { + if (cryptoId_ != null) { + cryptoId_ = + opi_api.common.v1.ObjectKey.newBuilder(cryptoId_).mergeFrom(value).buildPartial(); + } else { + cryptoId_ = value; + } + onChanged(); + } else { + cryptoIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + public Builder clearCryptoId() { + if (cryptoIdBuilder_ == null) { + cryptoId_ = null; + onChanged(); + } else { + cryptoId_ = null; + cryptoIdBuilder_ = null; + } + + return this; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + public opi_api.common.v1.ObjectKey.Builder getCryptoIdBuilder() { + + onChanged(); + return getCryptoIdFieldBuilder().getBuilder(); + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + public opi_api.common.v1.ObjectKeyOrBuilder getCryptoIdOrBuilder() { + if (cryptoIdBuilder_ != null) { + return cryptoIdBuilder_.getMessageOrBuilder(); + } else { + return cryptoId_ == null ? + opi_api.common.v1.ObjectKey.getDefaultInstance() : cryptoId_; + } + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder> + getCryptoIdFieldBuilder() { + if (cryptoIdBuilder_ == null) { + cryptoIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder>( + getCryptoId(), + getParentForChildren(), + isClean()); + cryptoId_ = null; + } + return cryptoIdBuilder_; + } + @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:opi_api.storage.v1.CryptoStatsRequest) + } + + // @@protoc_insertion_point(class_scope:opi_api.storage.v1.CryptoStatsRequest) + private static final opi_api.storage.v1.CryptoStatsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.storage.v1.CryptoStatsRequest(); + } + + public static opi_api.storage.v1.CryptoStatsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CryptoStatsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CryptoStatsRequest(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 opi_api.storage.v1.CryptoStatsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoStatsRequestOrBuilder.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoStatsRequestOrBuilder.java new file mode 100644 index 00000000..f52f110b --- /dev/null +++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoStatsRequestOrBuilder.java @@ -0,0 +1,24 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: middleend.proto + +package opi_api.storage.v1; + +public interface CryptoStatsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.storage.v1.CryptoStatsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + * @return Whether the cryptoId field is set. + */ + boolean hasCryptoId(); + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + * @return The cryptoId. + */ + opi_api.common.v1.ObjectKey getCryptoId(); + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + opi_api.common.v1.ObjectKeyOrBuilder getCryptoIdOrBuilder(); +} diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoStatsResponse.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoStatsResponse.java new file mode 100644 index 00000000..a72d595c --- /dev/null +++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoStatsResponse.java @@ -0,0 +1,745 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: middleend.proto + +package opi_api.storage.v1; + +/** + * Protobuf type {@code opi_api.storage.v1.CryptoStatsResponse} + */ +public final class CryptoStatsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.storage.v1.CryptoStatsResponse) + CryptoStatsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use CryptoStatsResponse.newBuilder() to construct. + private CryptoStatsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CryptoStatsResponse() { + stats_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CryptoStatsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CryptoStatsResponse( + 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; + case 10: { + opi_api.common.v1.ObjectKey.Builder subBuilder = null; + if (cryptoId_ != null) { + subBuilder = cryptoId_.toBuilder(); + } + cryptoId_ = input.readMessage(opi_api.common.v1.ObjectKey.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cryptoId_); + cryptoId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + stats_ = 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 opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_CryptoStatsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_CryptoStatsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.storage.v1.CryptoStatsResponse.class, opi_api.storage.v1.CryptoStatsResponse.Builder.class); + } + + public static final int CRYPTO_ID_FIELD_NUMBER = 1; + private opi_api.common.v1.ObjectKey cryptoId_; + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + * @return Whether the cryptoId field is set. + */ + @java.lang.Override + public boolean hasCryptoId() { + return cryptoId_ != null; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + * @return The cryptoId. + */ + @java.lang.Override + public opi_api.common.v1.ObjectKey getCryptoId() { + return cryptoId_ == null ? opi_api.common.v1.ObjectKey.getDefaultInstance() : cryptoId_; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + @java.lang.Override + public opi_api.common.v1.ObjectKeyOrBuilder getCryptoIdOrBuilder() { + return getCryptoId(); + } + + public static final int STATS_FIELD_NUMBER = 2; + private volatile java.lang.Object stats_; + /** + * string stats = 2; + * @return The stats. + */ + @java.lang.Override + public java.lang.String getStats() { + java.lang.Object ref = stats_; + 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(); + stats_ = s; + return s; + } + } + /** + * string stats = 2; + * @return The bytes for stats. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getStatsBytes() { + java.lang.Object ref = stats_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + stats_ = 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 (cryptoId_ != null) { + output.writeMessage(1, getCryptoId()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stats_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, stats_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (cryptoId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCryptoId()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stats_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, stats_); + } + 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 opi_api.storage.v1.CryptoStatsResponse)) { + return super.equals(obj); + } + opi_api.storage.v1.CryptoStatsResponse other = (opi_api.storage.v1.CryptoStatsResponse) obj; + + if (hasCryptoId() != other.hasCryptoId()) return false; + if (hasCryptoId()) { + if (!getCryptoId() + .equals(other.getCryptoId())) return false; + } + if (!getStats() + .equals(other.getStats())) 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 (hasCryptoId()) { + hash = (37 * hash) + CRYPTO_ID_FIELD_NUMBER; + hash = (53 * hash) + getCryptoId().hashCode(); + } + hash = (37 * hash) + STATS_FIELD_NUMBER; + hash = (53 * hash) + getStats().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.storage.v1.CryptoStatsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.storage.v1.CryptoStatsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.storage.v1.CryptoStatsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.storage.v1.CryptoStatsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.storage.v1.CryptoStatsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.storage.v1.CryptoStatsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.storage.v1.CryptoStatsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.storage.v1.CryptoStatsResponse 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 opi_api.storage.v1.CryptoStatsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.storage.v1.CryptoStatsResponse 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 opi_api.storage.v1.CryptoStatsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.storage.v1.CryptoStatsResponse 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(opi_api.storage.v1.CryptoStatsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code opi_api.storage.v1.CryptoStatsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.storage.v1.CryptoStatsResponse) + opi_api.storage.v1.CryptoStatsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_CryptoStatsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_CryptoStatsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.storage.v1.CryptoStatsResponse.class, opi_api.storage.v1.CryptoStatsResponse.Builder.class); + } + + // Construct using opi_api.storage.v1.CryptoStatsResponse.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 (cryptoIdBuilder_ == null) { + cryptoId_ = null; + } else { + cryptoId_ = null; + cryptoIdBuilder_ = null; + } + stats_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_CryptoStatsResponse_descriptor; + } + + @java.lang.Override + public opi_api.storage.v1.CryptoStatsResponse getDefaultInstanceForType() { + return opi_api.storage.v1.CryptoStatsResponse.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.storage.v1.CryptoStatsResponse build() { + opi_api.storage.v1.CryptoStatsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.storage.v1.CryptoStatsResponse buildPartial() { + opi_api.storage.v1.CryptoStatsResponse result = new opi_api.storage.v1.CryptoStatsResponse(this); + if (cryptoIdBuilder_ == null) { + result.cryptoId_ = cryptoId_; + } else { + result.cryptoId_ = cryptoIdBuilder_.build(); + } + result.stats_ = stats_; + 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 opi_api.storage.v1.CryptoStatsResponse) { + return mergeFrom((opi_api.storage.v1.CryptoStatsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.storage.v1.CryptoStatsResponse other) { + if (other == opi_api.storage.v1.CryptoStatsResponse.getDefaultInstance()) return this; + if (other.hasCryptoId()) { + mergeCryptoId(other.getCryptoId()); + } + if (!other.getStats().isEmpty()) { + stats_ = other.stats_; + 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 { + opi_api.storage.v1.CryptoStatsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.storage.v1.CryptoStatsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private opi_api.common.v1.ObjectKey cryptoId_; + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder> cryptoIdBuilder_; + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + * @return Whether the cryptoId field is set. + */ + public boolean hasCryptoId() { + return cryptoIdBuilder_ != null || cryptoId_ != null; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + * @return The cryptoId. + */ + public opi_api.common.v1.ObjectKey getCryptoId() { + if (cryptoIdBuilder_ == null) { + return cryptoId_ == null ? opi_api.common.v1.ObjectKey.getDefaultInstance() : cryptoId_; + } else { + return cryptoIdBuilder_.getMessage(); + } + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + public Builder setCryptoId(opi_api.common.v1.ObjectKey value) { + if (cryptoIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cryptoId_ = value; + onChanged(); + } else { + cryptoIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + public Builder setCryptoId( + opi_api.common.v1.ObjectKey.Builder builderForValue) { + if (cryptoIdBuilder_ == null) { + cryptoId_ = builderForValue.build(); + onChanged(); + } else { + cryptoIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + public Builder mergeCryptoId(opi_api.common.v1.ObjectKey value) { + if (cryptoIdBuilder_ == null) { + if (cryptoId_ != null) { + cryptoId_ = + opi_api.common.v1.ObjectKey.newBuilder(cryptoId_).mergeFrom(value).buildPartial(); + } else { + cryptoId_ = value; + } + onChanged(); + } else { + cryptoIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + public Builder clearCryptoId() { + if (cryptoIdBuilder_ == null) { + cryptoId_ = null; + onChanged(); + } else { + cryptoId_ = null; + cryptoIdBuilder_ = null; + } + + return this; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + public opi_api.common.v1.ObjectKey.Builder getCryptoIdBuilder() { + + onChanged(); + return getCryptoIdFieldBuilder().getBuilder(); + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + public opi_api.common.v1.ObjectKeyOrBuilder getCryptoIdOrBuilder() { + if (cryptoIdBuilder_ != null) { + return cryptoIdBuilder_.getMessageOrBuilder(); + } else { + return cryptoId_ == null ? + opi_api.common.v1.ObjectKey.getDefaultInstance() : cryptoId_; + } + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder> + getCryptoIdFieldBuilder() { + if (cryptoIdBuilder_ == null) { + cryptoIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder>( + getCryptoId(), + getParentForChildren(), + isClean()); + cryptoId_ = null; + } + return cryptoIdBuilder_; + } + + private java.lang.Object stats_ = ""; + /** + * string stats = 2; + * @return The stats. + */ + public java.lang.String getStats() { + java.lang.Object ref = stats_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + stats_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string stats = 2; + * @return The bytes for stats. + */ + public com.google.protobuf.ByteString + getStatsBytes() { + java.lang.Object ref = stats_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + stats_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string stats = 2; + * @param value The stats to set. + * @return This builder for chaining. + */ + public Builder setStats( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + stats_ = value; + onChanged(); + return this; + } + /** + * string stats = 2; + * @return This builder for chaining. + */ + public Builder clearStats() { + + stats_ = getDefaultInstance().getStats(); + onChanged(); + return this; + } + /** + * string stats = 2; + * @param value The bytes for stats to set. + * @return This builder for chaining. + */ + public Builder setStatsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + stats_ = 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:opi_api.storage.v1.CryptoStatsResponse) + } + + // @@protoc_insertion_point(class_scope:opi_api.storage.v1.CryptoStatsResponse) + private static final opi_api.storage.v1.CryptoStatsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.storage.v1.CryptoStatsResponse(); + } + + public static opi_api.storage.v1.CryptoStatsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CryptoStatsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CryptoStatsResponse(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 opi_api.storage.v1.CryptoStatsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoStatsResponseOrBuilder.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoStatsResponseOrBuilder.java new file mode 100644 index 00000000..73397289 --- /dev/null +++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoStatsResponseOrBuilder.java @@ -0,0 +1,36 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: middleend.proto + +package opi_api.storage.v1; + +public interface CryptoStatsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.storage.v1.CryptoStatsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + * @return Whether the cryptoId field is set. + */ + boolean hasCryptoId(); + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + * @return The cryptoId. + */ + opi_api.common.v1.ObjectKey getCryptoId(); + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + opi_api.common.v1.ObjectKeyOrBuilder getCryptoIdOrBuilder(); + + /** + * string stats = 2; + * @return The stats. + */ + java.lang.String getStats(); + /** + * string stats = 2; + * @return The bytes for stats. + */ + com.google.protobuf.ByteString + getStatsBytes(); +} diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoType.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoType.java new file mode 100644 index 00000000..2c15d0aa --- /dev/null +++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoType.java @@ -0,0 +1,162 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: opicommon.proto + +package opi_api.storage.v1; + +/** + *
+ * AES encryption type to be used
+ * 
+ * + * Protobuf enum {@code opi_api.storage.v1.CryptoType} + */ +public enum CryptoType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * CRYPTO_TYPE_UNSPECIFIED = 0; + */ + CRYPTO_TYPE_UNSPECIFIED(0), + /** + * CRYPTO_TYPE_AES_CBC_128 = 1; + */ + CRYPTO_TYPE_AES_CBC_128(1), + /** + * CRYPTO_TYPE_AES_CBC_192 = 2; + */ + CRYPTO_TYPE_AES_CBC_192(2), + /** + * CRYPTO_TYPE_AES_CBC_256 = 3; + */ + CRYPTO_TYPE_AES_CBC_256(3), + /** + * CRYPTO_TYPE_AES_XTS_128 = 4; + */ + CRYPTO_TYPE_AES_XTS_128(4), + /** + * CRYPTO_TYPE_AES_XTS_192 = 5; + */ + CRYPTO_TYPE_AES_XTS_192(5), + /** + * CRYPTO_TYPE_AES_XTS_256 = 6; + */ + CRYPTO_TYPE_AES_XTS_256(6), + UNRECOGNIZED(-1), + ; + + /** + * CRYPTO_TYPE_UNSPECIFIED = 0; + */ + public static final int CRYPTO_TYPE_UNSPECIFIED_VALUE = 0; + /** + * CRYPTO_TYPE_AES_CBC_128 = 1; + */ + public static final int CRYPTO_TYPE_AES_CBC_128_VALUE = 1; + /** + * CRYPTO_TYPE_AES_CBC_192 = 2; + */ + public static final int CRYPTO_TYPE_AES_CBC_192_VALUE = 2; + /** + * CRYPTO_TYPE_AES_CBC_256 = 3; + */ + public static final int CRYPTO_TYPE_AES_CBC_256_VALUE = 3; + /** + * CRYPTO_TYPE_AES_XTS_128 = 4; + */ + public static final int CRYPTO_TYPE_AES_XTS_128_VALUE = 4; + /** + * CRYPTO_TYPE_AES_XTS_192 = 5; + */ + public static final int CRYPTO_TYPE_AES_XTS_192_VALUE = 5; + /** + * CRYPTO_TYPE_AES_XTS_256 = 6; + */ + public static final int CRYPTO_TYPE_AES_XTS_256_VALUE = 6; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CryptoType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static CryptoType forNumber(int value) { + switch (value) { + case 0: return CRYPTO_TYPE_UNSPECIFIED; + case 1: return CRYPTO_TYPE_AES_CBC_128; + case 2: return CRYPTO_TYPE_AES_CBC_192; + case 3: return CRYPTO_TYPE_AES_CBC_256; + case 4: return CRYPTO_TYPE_AES_XTS_128; + case 5: return CRYPTO_TYPE_AES_XTS_192; + case 6: return CRYPTO_TYPE_AES_XTS_256; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + CryptoType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CryptoType findValueByNumber(int number) { + return CryptoType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + 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 opi_api.storage.v1.OpiCommonProto.getDescriptor().getEnumTypes().get(0); + } + + private static final CryptoType[] VALUES = values(); + + public static CryptoType 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 CryptoType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:opi_api.storage.v1.CryptoType) +} + diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/DeleteCryptoRequest.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/DeleteCryptoRequest.java new file mode 100644 index 00000000..d2d07c0a --- /dev/null +++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/DeleteCryptoRequest.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: middleend.proto + +package opi_api.storage.v1; + +/** + * Protobuf type {@code opi_api.storage.v1.DeleteCryptoRequest} + */ +public final class DeleteCryptoRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.storage.v1.DeleteCryptoRequest) + DeleteCryptoRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteCryptoRequest.newBuilder() to construct. + private DeleteCryptoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteCryptoRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteCryptoRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteCryptoRequest( + 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; + case 10: { + opi_api.common.v1.ObjectKey.Builder subBuilder = null; + if (cryptoId_ != null) { + subBuilder = cryptoId_.toBuilder(); + } + cryptoId_ = input.readMessage(opi_api.common.v1.ObjectKey.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cryptoId_); + cryptoId_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_DeleteCryptoRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_DeleteCryptoRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.storage.v1.DeleteCryptoRequest.class, opi_api.storage.v1.DeleteCryptoRequest.Builder.class); + } + + public static final int CRYPTO_ID_FIELD_NUMBER = 1; + private opi_api.common.v1.ObjectKey cryptoId_; + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + * @return Whether the cryptoId field is set. + */ + @java.lang.Override + public boolean hasCryptoId() { + return cryptoId_ != null; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + * @return The cryptoId. + */ + @java.lang.Override + public opi_api.common.v1.ObjectKey getCryptoId() { + return cryptoId_ == null ? opi_api.common.v1.ObjectKey.getDefaultInstance() : cryptoId_; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + @java.lang.Override + public opi_api.common.v1.ObjectKeyOrBuilder getCryptoIdOrBuilder() { + return getCryptoId(); + } + + 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 (cryptoId_ != null) { + output.writeMessage(1, getCryptoId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (cryptoId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCryptoId()); + } + 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 opi_api.storage.v1.DeleteCryptoRequest)) { + return super.equals(obj); + } + opi_api.storage.v1.DeleteCryptoRequest other = (opi_api.storage.v1.DeleteCryptoRequest) obj; + + if (hasCryptoId() != other.hasCryptoId()) return false; + if (hasCryptoId()) { + if (!getCryptoId() + .equals(other.getCryptoId())) 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 (hasCryptoId()) { + hash = (37 * hash) + CRYPTO_ID_FIELD_NUMBER; + hash = (53 * hash) + getCryptoId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.storage.v1.DeleteCryptoRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.storage.v1.DeleteCryptoRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.storage.v1.DeleteCryptoRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.storage.v1.DeleteCryptoRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.storage.v1.DeleteCryptoRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.storage.v1.DeleteCryptoRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.storage.v1.DeleteCryptoRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.storage.v1.DeleteCryptoRequest 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 opi_api.storage.v1.DeleteCryptoRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.storage.v1.DeleteCryptoRequest 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 opi_api.storage.v1.DeleteCryptoRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.storage.v1.DeleteCryptoRequest 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(opi_api.storage.v1.DeleteCryptoRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code opi_api.storage.v1.DeleteCryptoRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.storage.v1.DeleteCryptoRequest) + opi_api.storage.v1.DeleteCryptoRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_DeleteCryptoRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_DeleteCryptoRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.storage.v1.DeleteCryptoRequest.class, opi_api.storage.v1.DeleteCryptoRequest.Builder.class); + } + + // Construct using opi_api.storage.v1.DeleteCryptoRequest.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 (cryptoIdBuilder_ == null) { + cryptoId_ = null; + } else { + cryptoId_ = null; + cryptoIdBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_DeleteCryptoRequest_descriptor; + } + + @java.lang.Override + public opi_api.storage.v1.DeleteCryptoRequest getDefaultInstanceForType() { + return opi_api.storage.v1.DeleteCryptoRequest.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.storage.v1.DeleteCryptoRequest build() { + opi_api.storage.v1.DeleteCryptoRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.storage.v1.DeleteCryptoRequest buildPartial() { + opi_api.storage.v1.DeleteCryptoRequest result = new opi_api.storage.v1.DeleteCryptoRequest(this); + if (cryptoIdBuilder_ == null) { + result.cryptoId_ = cryptoId_; + } else { + result.cryptoId_ = cryptoIdBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.storage.v1.DeleteCryptoRequest) { + return mergeFrom((opi_api.storage.v1.DeleteCryptoRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.storage.v1.DeleteCryptoRequest other) { + if (other == opi_api.storage.v1.DeleteCryptoRequest.getDefaultInstance()) return this; + if (other.hasCryptoId()) { + mergeCryptoId(other.getCryptoId()); + } + 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 { + opi_api.storage.v1.DeleteCryptoRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.storage.v1.DeleteCryptoRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private opi_api.common.v1.ObjectKey cryptoId_; + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder> cryptoIdBuilder_; + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + * @return Whether the cryptoId field is set. + */ + public boolean hasCryptoId() { + return cryptoIdBuilder_ != null || cryptoId_ != null; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + * @return The cryptoId. + */ + public opi_api.common.v1.ObjectKey getCryptoId() { + if (cryptoIdBuilder_ == null) { + return cryptoId_ == null ? opi_api.common.v1.ObjectKey.getDefaultInstance() : cryptoId_; + } else { + return cryptoIdBuilder_.getMessage(); + } + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + public Builder setCryptoId(opi_api.common.v1.ObjectKey value) { + if (cryptoIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cryptoId_ = value; + onChanged(); + } else { + cryptoIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + public Builder setCryptoId( + opi_api.common.v1.ObjectKey.Builder builderForValue) { + if (cryptoIdBuilder_ == null) { + cryptoId_ = builderForValue.build(); + onChanged(); + } else { + cryptoIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + public Builder mergeCryptoId(opi_api.common.v1.ObjectKey value) { + if (cryptoIdBuilder_ == null) { + if (cryptoId_ != null) { + cryptoId_ = + opi_api.common.v1.ObjectKey.newBuilder(cryptoId_).mergeFrom(value).buildPartial(); + } else { + cryptoId_ = value; + } + onChanged(); + } else { + cryptoIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + public Builder clearCryptoId() { + if (cryptoIdBuilder_ == null) { + cryptoId_ = null; + onChanged(); + } else { + cryptoId_ = null; + cryptoIdBuilder_ = null; + } + + return this; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + public opi_api.common.v1.ObjectKey.Builder getCryptoIdBuilder() { + + onChanged(); + return getCryptoIdFieldBuilder().getBuilder(); + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + public opi_api.common.v1.ObjectKeyOrBuilder getCryptoIdOrBuilder() { + if (cryptoIdBuilder_ != null) { + return cryptoIdBuilder_.getMessageOrBuilder(); + } else { + return cryptoId_ == null ? + opi_api.common.v1.ObjectKey.getDefaultInstance() : cryptoId_; + } + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder> + getCryptoIdFieldBuilder() { + if (cryptoIdBuilder_ == null) { + cryptoIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder>( + getCryptoId(), + getParentForChildren(), + isClean()); + cryptoId_ = null; + } + return cryptoIdBuilder_; + } + @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:opi_api.storage.v1.DeleteCryptoRequest) + } + + // @@protoc_insertion_point(class_scope:opi_api.storage.v1.DeleteCryptoRequest) + private static final opi_api.storage.v1.DeleteCryptoRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.storage.v1.DeleteCryptoRequest(); + } + + public static opi_api.storage.v1.DeleteCryptoRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCryptoRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteCryptoRequest(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 opi_api.storage.v1.DeleteCryptoRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/DeleteCryptoRequestOrBuilder.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/DeleteCryptoRequestOrBuilder.java new file mode 100644 index 00000000..0e28786e --- /dev/null +++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/DeleteCryptoRequestOrBuilder.java @@ -0,0 +1,24 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: middleend.proto + +package opi_api.storage.v1; + +public interface DeleteCryptoRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.storage.v1.DeleteCryptoRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + * @return Whether the cryptoId field is set. + */ + boolean hasCryptoId(); + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + * @return The cryptoId. + */ + opi_api.common.v1.ObjectKey getCryptoId(); + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + opi_api.common.v1.ObjectKeyOrBuilder getCryptoIdOrBuilder(); +} diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/GetCryptoRequest.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/GetCryptoRequest.java new file mode 100644 index 00000000..938db547 --- /dev/null +++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/GetCryptoRequest.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: middleend.proto + +package opi_api.storage.v1; + +/** + * Protobuf type {@code opi_api.storage.v1.GetCryptoRequest} + */ +public final class GetCryptoRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.storage.v1.GetCryptoRequest) + GetCryptoRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetCryptoRequest.newBuilder() to construct. + private GetCryptoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetCryptoRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetCryptoRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetCryptoRequest( + 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; + case 10: { + opi_api.common.v1.ObjectKey.Builder subBuilder = null; + if (cryptoId_ != null) { + subBuilder = cryptoId_.toBuilder(); + } + cryptoId_ = input.readMessage(opi_api.common.v1.ObjectKey.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cryptoId_); + cryptoId_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_GetCryptoRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_GetCryptoRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.storage.v1.GetCryptoRequest.class, opi_api.storage.v1.GetCryptoRequest.Builder.class); + } + + public static final int CRYPTO_ID_FIELD_NUMBER = 1; + private opi_api.common.v1.ObjectKey cryptoId_; + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + * @return Whether the cryptoId field is set. + */ + @java.lang.Override + public boolean hasCryptoId() { + return cryptoId_ != null; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + * @return The cryptoId. + */ + @java.lang.Override + public opi_api.common.v1.ObjectKey getCryptoId() { + return cryptoId_ == null ? opi_api.common.v1.ObjectKey.getDefaultInstance() : cryptoId_; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + @java.lang.Override + public opi_api.common.v1.ObjectKeyOrBuilder getCryptoIdOrBuilder() { + return getCryptoId(); + } + + 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 (cryptoId_ != null) { + output.writeMessage(1, getCryptoId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (cryptoId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCryptoId()); + } + 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 opi_api.storage.v1.GetCryptoRequest)) { + return super.equals(obj); + } + opi_api.storage.v1.GetCryptoRequest other = (opi_api.storage.v1.GetCryptoRequest) obj; + + if (hasCryptoId() != other.hasCryptoId()) return false; + if (hasCryptoId()) { + if (!getCryptoId() + .equals(other.getCryptoId())) 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 (hasCryptoId()) { + hash = (37 * hash) + CRYPTO_ID_FIELD_NUMBER; + hash = (53 * hash) + getCryptoId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.storage.v1.GetCryptoRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.storage.v1.GetCryptoRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.storage.v1.GetCryptoRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.storage.v1.GetCryptoRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.storage.v1.GetCryptoRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.storage.v1.GetCryptoRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.storage.v1.GetCryptoRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.storage.v1.GetCryptoRequest 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 opi_api.storage.v1.GetCryptoRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.storage.v1.GetCryptoRequest 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 opi_api.storage.v1.GetCryptoRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.storage.v1.GetCryptoRequest 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(opi_api.storage.v1.GetCryptoRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code opi_api.storage.v1.GetCryptoRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.storage.v1.GetCryptoRequest) + opi_api.storage.v1.GetCryptoRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_GetCryptoRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_GetCryptoRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.storage.v1.GetCryptoRequest.class, opi_api.storage.v1.GetCryptoRequest.Builder.class); + } + + // Construct using opi_api.storage.v1.GetCryptoRequest.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 (cryptoIdBuilder_ == null) { + cryptoId_ = null; + } else { + cryptoId_ = null; + cryptoIdBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_GetCryptoRequest_descriptor; + } + + @java.lang.Override + public opi_api.storage.v1.GetCryptoRequest getDefaultInstanceForType() { + return opi_api.storage.v1.GetCryptoRequest.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.storage.v1.GetCryptoRequest build() { + opi_api.storage.v1.GetCryptoRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.storage.v1.GetCryptoRequest buildPartial() { + opi_api.storage.v1.GetCryptoRequest result = new opi_api.storage.v1.GetCryptoRequest(this); + if (cryptoIdBuilder_ == null) { + result.cryptoId_ = cryptoId_; + } else { + result.cryptoId_ = cryptoIdBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.storage.v1.GetCryptoRequest) { + return mergeFrom((opi_api.storage.v1.GetCryptoRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.storage.v1.GetCryptoRequest other) { + if (other == opi_api.storage.v1.GetCryptoRequest.getDefaultInstance()) return this; + if (other.hasCryptoId()) { + mergeCryptoId(other.getCryptoId()); + } + 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 { + opi_api.storage.v1.GetCryptoRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.storage.v1.GetCryptoRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private opi_api.common.v1.ObjectKey cryptoId_; + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder> cryptoIdBuilder_; + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + * @return Whether the cryptoId field is set. + */ + public boolean hasCryptoId() { + return cryptoIdBuilder_ != null || cryptoId_ != null; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + * @return The cryptoId. + */ + public opi_api.common.v1.ObjectKey getCryptoId() { + if (cryptoIdBuilder_ == null) { + return cryptoId_ == null ? opi_api.common.v1.ObjectKey.getDefaultInstance() : cryptoId_; + } else { + return cryptoIdBuilder_.getMessage(); + } + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + public Builder setCryptoId(opi_api.common.v1.ObjectKey value) { + if (cryptoIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cryptoId_ = value; + onChanged(); + } else { + cryptoIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + public Builder setCryptoId( + opi_api.common.v1.ObjectKey.Builder builderForValue) { + if (cryptoIdBuilder_ == null) { + cryptoId_ = builderForValue.build(); + onChanged(); + } else { + cryptoIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + public Builder mergeCryptoId(opi_api.common.v1.ObjectKey value) { + if (cryptoIdBuilder_ == null) { + if (cryptoId_ != null) { + cryptoId_ = + opi_api.common.v1.ObjectKey.newBuilder(cryptoId_).mergeFrom(value).buildPartial(); + } else { + cryptoId_ = value; + } + onChanged(); + } else { + cryptoIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + public Builder clearCryptoId() { + if (cryptoIdBuilder_ == null) { + cryptoId_ = null; + onChanged(); + } else { + cryptoId_ = null; + cryptoIdBuilder_ = null; + } + + return this; + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + public opi_api.common.v1.ObjectKey.Builder getCryptoIdBuilder() { + + onChanged(); + return getCryptoIdFieldBuilder().getBuilder(); + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + public opi_api.common.v1.ObjectKeyOrBuilder getCryptoIdOrBuilder() { + if (cryptoIdBuilder_ != null) { + return cryptoIdBuilder_.getMessageOrBuilder(); + } else { + return cryptoId_ == null ? + opi_api.common.v1.ObjectKey.getDefaultInstance() : cryptoId_; + } + } + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder> + getCryptoIdFieldBuilder() { + if (cryptoIdBuilder_ == null) { + cryptoIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder>( + getCryptoId(), + getParentForChildren(), + isClean()); + cryptoId_ = null; + } + return cryptoIdBuilder_; + } + @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:opi_api.storage.v1.GetCryptoRequest) + } + + // @@protoc_insertion_point(class_scope:opi_api.storage.v1.GetCryptoRequest) + private static final opi_api.storage.v1.GetCryptoRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.storage.v1.GetCryptoRequest(); + } + + public static opi_api.storage.v1.GetCryptoRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCryptoRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCryptoRequest(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 opi_api.storage.v1.GetCryptoRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/GetCryptoRequestOrBuilder.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/GetCryptoRequestOrBuilder.java new file mode 100644 index 00000000..db948f15 --- /dev/null +++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/GetCryptoRequestOrBuilder.java @@ -0,0 +1,24 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: middleend.proto + +package opi_api.storage.v1; + +public interface GetCryptoRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.storage.v1.GetCryptoRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + * @return Whether the cryptoId field is set. + */ + boolean hasCryptoId(); + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + * @return The cryptoId. + */ + opi_api.common.v1.ObjectKey getCryptoId(); + /** + * .opi_api.common.v1.ObjectKey crypto_id = 1; + */ + opi_api.common.v1.ObjectKeyOrBuilder getCryptoIdOrBuilder(); +} diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/ListCryptoRequest.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/ListCryptoRequest.java new file mode 100644 index 00000000..656ffde8 --- /dev/null +++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/ListCryptoRequest.java @@ -0,0 +1,621 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: middleend.proto + +package opi_api.storage.v1; + +/** + * Protobuf type {@code opi_api.storage.v1.ListCryptoRequest} + */ +public final class ListCryptoRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.storage.v1.ListCryptoRequest) + ListCryptoRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListCryptoRequest.newBuilder() to construct. + private ListCryptoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListCryptoRequest() { + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListCryptoRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListCryptoRequest( + 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; + case 8: { + + pageSize_ = input.readInt32(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = 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 opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_ListCryptoRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_ListCryptoRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.storage.v1.ListCryptoRequest.class, opi_api.storage.v1.ListCryptoRequest.Builder.class); + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 1; + private int pageSize_; + /** + * int32 page_size = 1; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object pageToken_; + /** + * string page_token = 2; + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + /** + * string page_token = 2; + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = 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 (pageSize_ != 0) { + output.writeInt32(1, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); + } + 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 opi_api.storage.v1.ListCryptoRequest)) { + return super.equals(obj); + } + opi_api.storage.v1.ListCryptoRequest other = (opi_api.storage.v1.ListCryptoRequest) obj; + + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) 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) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.storage.v1.ListCryptoRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.storage.v1.ListCryptoRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.storage.v1.ListCryptoRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.storage.v1.ListCryptoRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.storage.v1.ListCryptoRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.storage.v1.ListCryptoRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.storage.v1.ListCryptoRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.storage.v1.ListCryptoRequest 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 opi_api.storage.v1.ListCryptoRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.storage.v1.ListCryptoRequest 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 opi_api.storage.v1.ListCryptoRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.storage.v1.ListCryptoRequest 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(opi_api.storage.v1.ListCryptoRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code opi_api.storage.v1.ListCryptoRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.storage.v1.ListCryptoRequest) + opi_api.storage.v1.ListCryptoRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_ListCryptoRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_ListCryptoRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.storage.v1.ListCryptoRequest.class, opi_api.storage.v1.ListCryptoRequest.Builder.class); + } + + // Construct using opi_api.storage.v1.ListCryptoRequest.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(); + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_ListCryptoRequest_descriptor; + } + + @java.lang.Override + public opi_api.storage.v1.ListCryptoRequest getDefaultInstanceForType() { + return opi_api.storage.v1.ListCryptoRequest.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.storage.v1.ListCryptoRequest build() { + opi_api.storage.v1.ListCryptoRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.storage.v1.ListCryptoRequest buildPartial() { + opi_api.storage.v1.ListCryptoRequest result = new opi_api.storage.v1.ListCryptoRequest(this); + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + 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 opi_api.storage.v1.ListCryptoRequest) { + return mergeFrom((opi_api.storage.v1.ListCryptoRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.storage.v1.ListCryptoRequest other) { + if (other == opi_api.storage.v1.ListCryptoRequest.getDefaultInstance()) return this; + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + 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 { + opi_api.storage.v1.ListCryptoRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.storage.v1.ListCryptoRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int pageSize_ ; + /** + * int32 page_size = 1; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * int32 page_size = 1; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * int32 page_size = 1; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * string page_token = 2; + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string page_token = 2; + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string page_token = 2; + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * string page_token = 2; + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * string page_token = 2; + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = 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:opi_api.storage.v1.ListCryptoRequest) + } + + // @@protoc_insertion_point(class_scope:opi_api.storage.v1.ListCryptoRequest) + private static final opi_api.storage.v1.ListCryptoRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.storage.v1.ListCryptoRequest(); + } + + public static opi_api.storage.v1.ListCryptoRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCryptoRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCryptoRequest(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 opi_api.storage.v1.ListCryptoRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/ListCryptoRequestOrBuilder.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/ListCryptoRequestOrBuilder.java new file mode 100644 index 00000000..1939e547 --- /dev/null +++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/ListCryptoRequestOrBuilder.java @@ -0,0 +1,27 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: middleend.proto + +package opi_api.storage.v1; + +public interface ListCryptoRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.storage.v1.ListCryptoRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 page_size = 1; + * @return The pageSize. + */ + int getPageSize(); + + /** + * string page_token = 2; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * string page_token = 2; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/ListCryptoResponse.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/ListCryptoResponse.java new file mode 100644 index 00000000..28a0be5f --- /dev/null +++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/ListCryptoResponse.java @@ -0,0 +1,908 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: middleend.proto + +package opi_api.storage.v1; + +/** + * Protobuf type {@code opi_api.storage.v1.ListCryptoResponse} + */ +public final class ListCryptoResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.storage.v1.ListCryptoResponse) + ListCryptoResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListCryptoResponse.newBuilder() to construct. + private ListCryptoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListCryptoResponse() { + volumes_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListCryptoResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListCryptoResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + volumes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + volumes_.add( + input.readMessage(opi_api.storage.v1.Crypto.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + volumes_ = java.util.Collections.unmodifiableList(volumes_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_ListCryptoResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_ListCryptoResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.storage.v1.ListCryptoResponse.class, opi_api.storage.v1.ListCryptoResponse.Builder.class); + } + + public static final int VOLUMES_FIELD_NUMBER = 1; + private java.util.List volumes_; + /** + * repeated .opi_api.storage.v1.Crypto volumes = 1; + */ + @java.lang.Override + public java.util.List getVolumesList() { + return volumes_; + } + /** + * repeated .opi_api.storage.v1.Crypto volumes = 1; + */ + @java.lang.Override + public java.util.List + getVolumesOrBuilderList() { + return volumes_; + } + /** + * repeated .opi_api.storage.v1.Crypto volumes = 1; + */ + @java.lang.Override + public int getVolumesCount() { + return volumes_.size(); + } + /** + * repeated .opi_api.storage.v1.Crypto volumes = 1; + */ + @java.lang.Override + public opi_api.storage.v1.Crypto getVolumes(int index) { + return volumes_.get(index); + } + /** + * repeated .opi_api.storage.v1.Crypto volumes = 1; + */ + @java.lang.Override + public opi_api.storage.v1.CryptoOrBuilder getVolumesOrBuilder( + int index) { + return volumes_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * string next_page_token = 2; + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = 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 { + for (int i = 0; i < volumes_.size(); i++) { + output.writeMessage(1, volumes_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < volumes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, volumes_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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 opi_api.storage.v1.ListCryptoResponse)) { + return super.equals(obj); + } + opi_api.storage.v1.ListCryptoResponse other = (opi_api.storage.v1.ListCryptoResponse) obj; + + if (!getVolumesList() + .equals(other.getVolumesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) 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 (getVolumesCount() > 0) { + hash = (37 * hash) + VOLUMES_FIELD_NUMBER; + hash = (53 * hash) + getVolumesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.storage.v1.ListCryptoResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.storage.v1.ListCryptoResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.storage.v1.ListCryptoResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.storage.v1.ListCryptoResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.storage.v1.ListCryptoResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.storage.v1.ListCryptoResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.storage.v1.ListCryptoResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.storage.v1.ListCryptoResponse 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 opi_api.storage.v1.ListCryptoResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.storage.v1.ListCryptoResponse 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 opi_api.storage.v1.ListCryptoResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.storage.v1.ListCryptoResponse 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(opi_api.storage.v1.ListCryptoResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code opi_api.storage.v1.ListCryptoResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.storage.v1.ListCryptoResponse) + opi_api.storage.v1.ListCryptoResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_ListCryptoResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_ListCryptoResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.storage.v1.ListCryptoResponse.class, opi_api.storage.v1.ListCryptoResponse.Builder.class); + } + + // Construct using opi_api.storage.v1.ListCryptoResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getVolumesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (volumesBuilder_ == null) { + volumes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + volumesBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_ListCryptoResponse_descriptor; + } + + @java.lang.Override + public opi_api.storage.v1.ListCryptoResponse getDefaultInstanceForType() { + return opi_api.storage.v1.ListCryptoResponse.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.storage.v1.ListCryptoResponse build() { + opi_api.storage.v1.ListCryptoResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.storage.v1.ListCryptoResponse buildPartial() { + opi_api.storage.v1.ListCryptoResponse result = new opi_api.storage.v1.ListCryptoResponse(this); + int from_bitField0_ = bitField0_; + if (volumesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + volumes_ = java.util.Collections.unmodifiableList(volumes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.volumes_ = volumes_; + } else { + result.volumes_ = volumesBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + 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 opi_api.storage.v1.ListCryptoResponse) { + return mergeFrom((opi_api.storage.v1.ListCryptoResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.storage.v1.ListCryptoResponse other) { + if (other == opi_api.storage.v1.ListCryptoResponse.getDefaultInstance()) return this; + if (volumesBuilder_ == null) { + if (!other.volumes_.isEmpty()) { + if (volumes_.isEmpty()) { + volumes_ = other.volumes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureVolumesIsMutable(); + volumes_.addAll(other.volumes_); + } + onChanged(); + } + } else { + if (!other.volumes_.isEmpty()) { + if (volumesBuilder_.isEmpty()) { + volumesBuilder_.dispose(); + volumesBuilder_ = null; + volumes_ = other.volumes_; + bitField0_ = (bitField0_ & ~0x00000001); + volumesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVolumesFieldBuilder() : null; + } else { + volumesBuilder_.addAllMessages(other.volumes_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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 { + opi_api.storage.v1.ListCryptoResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.storage.v1.ListCryptoResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List volumes_ = + java.util.Collections.emptyList(); + private void ensureVolumesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + volumes_ = new java.util.ArrayList(volumes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + opi_api.storage.v1.Crypto, opi_api.storage.v1.Crypto.Builder, opi_api.storage.v1.CryptoOrBuilder> volumesBuilder_; + + /** + * repeated .opi_api.storage.v1.Crypto volumes = 1; + */ + public java.util.List getVolumesList() { + if (volumesBuilder_ == null) { + return java.util.Collections.unmodifiableList(volumes_); + } else { + return volumesBuilder_.getMessageList(); + } + } + /** + * repeated .opi_api.storage.v1.Crypto volumes = 1; + */ + public int getVolumesCount() { + if (volumesBuilder_ == null) { + return volumes_.size(); + } else { + return volumesBuilder_.getCount(); + } + } + /** + * repeated .opi_api.storage.v1.Crypto volumes = 1; + */ + public opi_api.storage.v1.Crypto getVolumes(int index) { + if (volumesBuilder_ == null) { + return volumes_.get(index); + } else { + return volumesBuilder_.getMessage(index); + } + } + /** + * repeated .opi_api.storage.v1.Crypto volumes = 1; + */ + public Builder setVolumes( + int index, opi_api.storage.v1.Crypto value) { + if (volumesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVolumesIsMutable(); + volumes_.set(index, value); + onChanged(); + } else { + volumesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .opi_api.storage.v1.Crypto volumes = 1; + */ + public Builder setVolumes( + int index, opi_api.storage.v1.Crypto.Builder builderForValue) { + if (volumesBuilder_ == null) { + ensureVolumesIsMutable(); + volumes_.set(index, builderForValue.build()); + onChanged(); + } else { + volumesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .opi_api.storage.v1.Crypto volumes = 1; + */ + public Builder addVolumes(opi_api.storage.v1.Crypto value) { + if (volumesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVolumesIsMutable(); + volumes_.add(value); + onChanged(); + } else { + volumesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .opi_api.storage.v1.Crypto volumes = 1; + */ + public Builder addVolumes( + int index, opi_api.storage.v1.Crypto value) { + if (volumesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVolumesIsMutable(); + volumes_.add(index, value); + onChanged(); + } else { + volumesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .opi_api.storage.v1.Crypto volumes = 1; + */ + public Builder addVolumes( + opi_api.storage.v1.Crypto.Builder builderForValue) { + if (volumesBuilder_ == null) { + ensureVolumesIsMutable(); + volumes_.add(builderForValue.build()); + onChanged(); + } else { + volumesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .opi_api.storage.v1.Crypto volumes = 1; + */ + public Builder addVolumes( + int index, opi_api.storage.v1.Crypto.Builder builderForValue) { + if (volumesBuilder_ == null) { + ensureVolumesIsMutable(); + volumes_.add(index, builderForValue.build()); + onChanged(); + } else { + volumesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .opi_api.storage.v1.Crypto volumes = 1; + */ + public Builder addAllVolumes( + java.lang.Iterable values) { + if (volumesBuilder_ == null) { + ensureVolumesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, volumes_); + onChanged(); + } else { + volumesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .opi_api.storage.v1.Crypto volumes = 1; + */ + public Builder clearVolumes() { + if (volumesBuilder_ == null) { + volumes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + volumesBuilder_.clear(); + } + return this; + } + /** + * repeated .opi_api.storage.v1.Crypto volumes = 1; + */ + public Builder removeVolumes(int index) { + if (volumesBuilder_ == null) { + ensureVolumesIsMutable(); + volumes_.remove(index); + onChanged(); + } else { + volumesBuilder_.remove(index); + } + return this; + } + /** + * repeated .opi_api.storage.v1.Crypto volumes = 1; + */ + public opi_api.storage.v1.Crypto.Builder getVolumesBuilder( + int index) { + return getVolumesFieldBuilder().getBuilder(index); + } + /** + * repeated .opi_api.storage.v1.Crypto volumes = 1; + */ + public opi_api.storage.v1.CryptoOrBuilder getVolumesOrBuilder( + int index) { + if (volumesBuilder_ == null) { + return volumes_.get(index); } else { + return volumesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .opi_api.storage.v1.Crypto volumes = 1; + */ + public java.util.List + getVolumesOrBuilderList() { + if (volumesBuilder_ != null) { + return volumesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(volumes_); + } + } + /** + * repeated .opi_api.storage.v1.Crypto volumes = 1; + */ + public opi_api.storage.v1.Crypto.Builder addVolumesBuilder() { + return getVolumesFieldBuilder().addBuilder( + opi_api.storage.v1.Crypto.getDefaultInstance()); + } + /** + * repeated .opi_api.storage.v1.Crypto volumes = 1; + */ + public opi_api.storage.v1.Crypto.Builder addVolumesBuilder( + int index) { + return getVolumesFieldBuilder().addBuilder( + index, opi_api.storage.v1.Crypto.getDefaultInstance()); + } + /** + * repeated .opi_api.storage.v1.Crypto volumes = 1; + */ + public java.util.List + getVolumesBuilderList() { + return getVolumesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + opi_api.storage.v1.Crypto, opi_api.storage.v1.Crypto.Builder, opi_api.storage.v1.CryptoOrBuilder> + getVolumesFieldBuilder() { + if (volumesBuilder_ == null) { + volumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + opi_api.storage.v1.Crypto, opi_api.storage.v1.Crypto.Builder, opi_api.storage.v1.CryptoOrBuilder>( + volumes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + volumes_ = null; + } + return volumesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * string next_page_token = 2; + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string next_page_token = 2; + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * string next_page_token = 2; + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = 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:opi_api.storage.v1.ListCryptoResponse) + } + + // @@protoc_insertion_point(class_scope:opi_api.storage.v1.ListCryptoResponse) + private static final opi_api.storage.v1.ListCryptoResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.storage.v1.ListCryptoResponse(); + } + + public static opi_api.storage.v1.ListCryptoResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCryptoResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCryptoResponse(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 opi_api.storage.v1.ListCryptoResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/ListCryptoResponseOrBuilder.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/ListCryptoResponseOrBuilder.java new file mode 100644 index 00000000..a76cde30 --- /dev/null +++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/ListCryptoResponseOrBuilder.java @@ -0,0 +1,45 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: middleend.proto + +package opi_api.storage.v1; + +public interface ListCryptoResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.storage.v1.ListCryptoResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .opi_api.storage.v1.Crypto volumes = 1; + */ + java.util.List + getVolumesList(); + /** + * repeated .opi_api.storage.v1.Crypto volumes = 1; + */ + opi_api.storage.v1.Crypto getVolumes(int index); + /** + * repeated .opi_api.storage.v1.Crypto volumes = 1; + */ + int getVolumesCount(); + /** + * repeated .opi_api.storage.v1.Crypto volumes = 1; + */ + java.util.List + getVolumesOrBuilderList(); + /** + * repeated .opi_api.storage.v1.Crypto volumes = 1; + */ + opi_api.storage.v1.CryptoOrBuilder getVolumesOrBuilder( + int index); + + /** + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/MiddleendProto.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/MiddleendProto.java index 7109e868..62d7d885 100644 --- a/storage/v1alpha1/gen/java/opi_api/storage/v1/MiddleendProto.java +++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/MiddleendProto.java @@ -14,6 +14,51 @@ public static void registerAllExtensions( registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_storage_v1_Crypto_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_storage_v1_Crypto_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_storage_v1_CreateCryptoRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_storage_v1_CreateCryptoRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_storage_v1_DeleteCryptoRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_storage_v1_DeleteCryptoRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_storage_v1_UpdateCryptoRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_storage_v1_UpdateCryptoRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_storage_v1_ListCryptoRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_storage_v1_ListCryptoRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_storage_v1_ListCryptoResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_storage_v1_ListCryptoResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_storage_v1_GetCryptoRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_storage_v1_GetCryptoRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_storage_v1_CryptoStatsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_storage_v1_CryptoStatsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_storage_v1_CryptoStatsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_storage_v1_CryptoStatsResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -23,15 +68,120 @@ public static void registerAllExtensions( descriptor; static { java.lang.String[] descriptorData = { - "\n\017middleend.proto\022\022opi_api.storage.v1B]\n" + - "\022opi_api.storage.v1B\016MiddleendProtoP\001Z5g" + - "ithub.com/opiproject/opi-api/storage/v1a" + - "lpha1/gen/gob\006proto3" + "\n\017middleend.proto\022\022opi_api.storage.v1\032\017o" + + "picommon.proto\032\020object_key.proto\032\033google" + + "/protobuf/empty.proto\032\034google/api/annota" + + "tions.proto\"\247\001\n\006Crypto\022/\n\tcrypto_id\030\001 \001(" + + "\0132\034.opi_api.common.v1.ObjectKey\022/\n\tvolum" + + "e_id\030\002 \001(\0132\034.opi_api.common.v1.ObjectKey" + + "\022\013\n\003key\030\003 \001(\014\022.\n\006cipher\030\004 \001(\0162\036.opi_api." + + "storage.v1.CryptoType\"A\n\023CreateCryptoReq" + + "uest\022*\n\006volume\030\001 \001(\0132\032.opi_api.storage.v" + + "1.Crypto\"F\n\023DeleteCryptoRequest\022/\n\tcrypt" + + "o_id\030\001 \001(\0132\034.opi_api.common.v1.ObjectKey" + + "\"A\n\023UpdateCryptoRequest\022*\n\006volume\030\001 \001(\0132" + + "\032.opi_api.storage.v1.Crypto\":\n\021ListCrypt" + + "oRequest\022\021\n\tpage_size\030\001 \001(\005\022\022\n\npage_toke" + + "n\030\002 \001(\t\"Z\n\022ListCryptoResponse\022+\n\007volumes" + + "\030\001 \003(\0132\032.opi_api.storage.v1.Crypto\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\"C\n\020GetCryptoRequest\022" + + "/\n\tcrypto_id\030\001 \001(\0132\034.opi_api.common.v1.O" + + "bjectKey\"E\n\022CryptoStatsRequest\022/\n\tcrypto" + + "_id\030\001 \001(\0132\034.opi_api.common.v1.ObjectKey\"" + + "U\n\023CryptoStatsResponse\022/\n\tcrypto_id\030\001 \001(" + + "\0132\034.opi_api.common.v1.ObjectKey\022\r\n\005stats" + + "\030\002 \001(\t2\246\005\n\020MiddleendService\022p\n\014CreateCry" + + "pto\022\'.opi_api.storage.v1.CreateCryptoReq" + + "uest\032\032.opi_api.storage.v1.Crypto\"\033\202\323\344\223\002\025" + + "\"\013/v1/volumes:\006volume\022m\n\014DeleteCrypto\022\'." + + "opi_api.storage.v1.DeleteCryptoRequest\032\026" + + ".google.protobuf.Empty\"\034\202\323\344\223\002\026*\024/v1/volu" + + "mes/{volume}\022p\n\014UpdateCrypto\022\'.opi_api.s" + + "torage.v1.UpdateCryptoRequest\032\032.opi_api." + + "storage.v1.Crypto\"\033\202\323\344\223\002\0252\013/v1/volumes:\006" + + "volume\022p\n\nListCrypto\022%.opi_api.storage.v" + + "1.ListCryptoRequest\032&.opi_api.storage.v1" + + ".ListCryptoResponse\"\023\202\323\344\223\002\r\022\013/v1/volumes" + + "\022k\n\tGetCrypto\022$.opi_api.storage.v1.GetCr" + + "yptoRequest\032\032.opi_api.storage.v1.Crypto\"" + + "\034\202\323\344\223\002\026\022\024/v1/volumes/{volume}\022`\n\013CryptoS" + + "tats\022&.opi_api.storage.v1.CryptoStatsReq" + + "uest\032\'.opi_api.storage.v1.CryptoStatsRes" + + "ponse\"\000B]\n\022opi_api.storage.v1B\016Middleend" + + "ProtoP\001Z5github.com/opiproject/opi-api/s" + + "torage/v1alpha1/gen/gob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + opi_api.storage.v1.OpiCommonProto.getDescriptor(), + opi_api.common.v1.ObjectKeyProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), }); + internal_static_opi_api_storage_v1_Crypto_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_opi_api_storage_v1_Crypto_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_storage_v1_Crypto_descriptor, + new java.lang.String[] { "CryptoId", "VolumeId", "Key", "Cipher", }); + internal_static_opi_api_storage_v1_CreateCryptoRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_opi_api_storage_v1_CreateCryptoRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_storage_v1_CreateCryptoRequest_descriptor, + new java.lang.String[] { "Volume", }); + internal_static_opi_api_storage_v1_DeleteCryptoRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_opi_api_storage_v1_DeleteCryptoRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_storage_v1_DeleteCryptoRequest_descriptor, + new java.lang.String[] { "CryptoId", }); + internal_static_opi_api_storage_v1_UpdateCryptoRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_opi_api_storage_v1_UpdateCryptoRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_storage_v1_UpdateCryptoRequest_descriptor, + new java.lang.String[] { "Volume", }); + internal_static_opi_api_storage_v1_ListCryptoRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_opi_api_storage_v1_ListCryptoRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_storage_v1_ListCryptoRequest_descriptor, + new java.lang.String[] { "PageSize", "PageToken", }); + internal_static_opi_api_storage_v1_ListCryptoResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_opi_api_storage_v1_ListCryptoResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_storage_v1_ListCryptoResponse_descriptor, + new java.lang.String[] { "Volumes", "NextPageToken", }); + internal_static_opi_api_storage_v1_GetCryptoRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_opi_api_storage_v1_GetCryptoRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_storage_v1_GetCryptoRequest_descriptor, + new java.lang.String[] { "CryptoId", }); + internal_static_opi_api_storage_v1_CryptoStatsRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_opi_api_storage_v1_CryptoStatsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_storage_v1_CryptoStatsRequest_descriptor, + new java.lang.String[] { "CryptoId", }); + internal_static_opi_api_storage_v1_CryptoStatsResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_opi_api_storage_v1_CryptoStatsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_storage_v1_CryptoStatsResponse_descriptor, + new java.lang.String[] { "CryptoId", "Stats", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + opi_api.storage.v1.OpiCommonProto.getDescriptor(); + opi_api.common.v1.ObjectKeyProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/MiddleendServiceGrpc.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/MiddleendServiceGrpc.java new file mode 100644 index 00000000..f4cb8fb0 --- /dev/null +++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/MiddleendServiceGrpc.java @@ -0,0 +1,661 @@ +package opi_api.storage.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Middle End (Storage Services) APIs. For example, encryption, compression, raid, QoS, multipath, ...
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: middleend.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class MiddleendServiceGrpc { + + private MiddleendServiceGrpc() {} + + public static final String SERVICE_NAME = "opi_api.storage.v1.MiddleendService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateCryptoMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCrypto", + requestType = opi_api.storage.v1.CreateCryptoRequest.class, + responseType = opi_api.storage.v1.Crypto.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateCryptoMethod() { + io.grpc.MethodDescriptor getCreateCryptoMethod; + if ((getCreateCryptoMethod = MiddleendServiceGrpc.getCreateCryptoMethod) == null) { + synchronized (MiddleendServiceGrpc.class) { + if ((getCreateCryptoMethod = MiddleendServiceGrpc.getCreateCryptoMethod) == null) { + MiddleendServiceGrpc.getCreateCryptoMethod = getCreateCryptoMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCrypto")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.storage.v1.CreateCryptoRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.storage.v1.Crypto.getDefaultInstance())) + .setSchemaDescriptor(new MiddleendServiceMethodDescriptorSupplier("CreateCrypto")) + .build(); + } + } + } + return getCreateCryptoMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteCryptoMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCrypto", + requestType = opi_api.storage.v1.DeleteCryptoRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteCryptoMethod() { + io.grpc.MethodDescriptor getDeleteCryptoMethod; + if ((getDeleteCryptoMethod = MiddleendServiceGrpc.getDeleteCryptoMethod) == null) { + synchronized (MiddleendServiceGrpc.class) { + if ((getDeleteCryptoMethod = MiddleendServiceGrpc.getDeleteCryptoMethod) == null) { + MiddleendServiceGrpc.getDeleteCryptoMethod = getDeleteCryptoMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCrypto")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.storage.v1.DeleteCryptoRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new MiddleendServiceMethodDescriptorSupplier("DeleteCrypto")) + .build(); + } + } + } + return getDeleteCryptoMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateCryptoMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCrypto", + requestType = opi_api.storage.v1.UpdateCryptoRequest.class, + responseType = opi_api.storage.v1.Crypto.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateCryptoMethod() { + io.grpc.MethodDescriptor getUpdateCryptoMethod; + if ((getUpdateCryptoMethod = MiddleendServiceGrpc.getUpdateCryptoMethod) == null) { + synchronized (MiddleendServiceGrpc.class) { + if ((getUpdateCryptoMethod = MiddleendServiceGrpc.getUpdateCryptoMethod) == null) { + MiddleendServiceGrpc.getUpdateCryptoMethod = getUpdateCryptoMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCrypto")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.storage.v1.UpdateCryptoRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.storage.v1.Crypto.getDefaultInstance())) + .setSchemaDescriptor(new MiddleendServiceMethodDescriptorSupplier("UpdateCrypto")) + .build(); + } + } + } + return getUpdateCryptoMethod; + } + + private static volatile io.grpc.MethodDescriptor getListCryptoMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCrypto", + requestType = opi_api.storage.v1.ListCryptoRequest.class, + responseType = opi_api.storage.v1.ListCryptoResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListCryptoMethod() { + io.grpc.MethodDescriptor getListCryptoMethod; + if ((getListCryptoMethod = MiddleendServiceGrpc.getListCryptoMethod) == null) { + synchronized (MiddleendServiceGrpc.class) { + if ((getListCryptoMethod = MiddleendServiceGrpc.getListCryptoMethod) == null) { + MiddleendServiceGrpc.getListCryptoMethod = getListCryptoMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCrypto")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.storage.v1.ListCryptoRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.storage.v1.ListCryptoResponse.getDefaultInstance())) + .setSchemaDescriptor(new MiddleendServiceMethodDescriptorSupplier("ListCrypto")) + .build(); + } + } + } + return getListCryptoMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetCryptoMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCrypto", + requestType = opi_api.storage.v1.GetCryptoRequest.class, + responseType = opi_api.storage.v1.Crypto.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetCryptoMethod() { + io.grpc.MethodDescriptor getGetCryptoMethod; + if ((getGetCryptoMethod = MiddleendServiceGrpc.getGetCryptoMethod) == null) { + synchronized (MiddleendServiceGrpc.class) { + if ((getGetCryptoMethod = MiddleendServiceGrpc.getGetCryptoMethod) == null) { + MiddleendServiceGrpc.getGetCryptoMethod = getGetCryptoMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCrypto")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.storage.v1.GetCryptoRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.storage.v1.Crypto.getDefaultInstance())) + .setSchemaDescriptor(new MiddleendServiceMethodDescriptorSupplier("GetCrypto")) + .build(); + } + } + } + return getGetCryptoMethod; + } + + private static volatile io.grpc.MethodDescriptor getCryptoStatsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CryptoStats", + requestType = opi_api.storage.v1.CryptoStatsRequest.class, + responseType = opi_api.storage.v1.CryptoStatsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCryptoStatsMethod() { + io.grpc.MethodDescriptor getCryptoStatsMethod; + if ((getCryptoStatsMethod = MiddleendServiceGrpc.getCryptoStatsMethod) == null) { + synchronized (MiddleendServiceGrpc.class) { + if ((getCryptoStatsMethod = MiddleendServiceGrpc.getCryptoStatsMethod) == null) { + MiddleendServiceGrpc.getCryptoStatsMethod = getCryptoStatsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CryptoStats")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.storage.v1.CryptoStatsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.storage.v1.CryptoStatsResponse.getDefaultInstance())) + .setSchemaDescriptor(new MiddleendServiceMethodDescriptorSupplier("CryptoStats")) + .build(); + } + } + } + return getCryptoStatsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static MiddleendServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MiddleendServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MiddleendServiceStub(channel, callOptions); + } + }; + return MiddleendServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static MiddleendServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MiddleendServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MiddleendServiceBlockingStub(channel, callOptions); + } + }; + return MiddleendServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static MiddleendServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MiddleendServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MiddleendServiceFutureStub(channel, callOptions); + } + }; + return MiddleendServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Middle End (Storage Services) APIs. For example, encryption, compression, raid, QoS, multipath, ...
+   * 
+ */ + public static abstract class MiddleendServiceImplBase implements io.grpc.BindableService { + + /** + */ + public void createCrypto(opi_api.storage.v1.CreateCryptoRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCryptoMethod(), responseObserver); + } + + /** + */ + public void deleteCrypto(opi_api.storage.v1.DeleteCryptoRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteCryptoMethod(), responseObserver); + } + + /** + */ + public void updateCrypto(opi_api.storage.v1.UpdateCryptoRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCryptoMethod(), responseObserver); + } + + /** + */ + public void listCrypto(opi_api.storage.v1.ListCryptoRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCryptoMethod(), responseObserver); + } + + /** + */ + public void getCrypto(opi_api.storage.v1.GetCryptoRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCryptoMethod(), responseObserver); + } + + /** + */ + public void cryptoStats(opi_api.storage.v1.CryptoStatsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCryptoStatsMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateCryptoMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + opi_api.storage.v1.CreateCryptoRequest, + opi_api.storage.v1.Crypto>( + this, METHODID_CREATE_CRYPTO))) + .addMethod( + getDeleteCryptoMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + opi_api.storage.v1.DeleteCryptoRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_CRYPTO))) + .addMethod( + getUpdateCryptoMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + opi_api.storage.v1.UpdateCryptoRequest, + opi_api.storage.v1.Crypto>( + this, METHODID_UPDATE_CRYPTO))) + .addMethod( + getListCryptoMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + opi_api.storage.v1.ListCryptoRequest, + opi_api.storage.v1.ListCryptoResponse>( + this, METHODID_LIST_CRYPTO))) + .addMethod( + getGetCryptoMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + opi_api.storage.v1.GetCryptoRequest, + opi_api.storage.v1.Crypto>( + this, METHODID_GET_CRYPTO))) + .addMethod( + getCryptoStatsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + opi_api.storage.v1.CryptoStatsRequest, + opi_api.storage.v1.CryptoStatsResponse>( + this, METHODID_CRYPTO_STATS))) + .build(); + } + } + + /** + *
+   * Middle End (Storage Services) APIs. For example, encryption, compression, raid, QoS, multipath, ...
+   * 
+ */ + public static final class MiddleendServiceStub extends io.grpc.stub.AbstractAsyncStub { + private MiddleendServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MiddleendServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MiddleendServiceStub(channel, callOptions); + } + + /** + */ + public void createCrypto(opi_api.storage.v1.CreateCryptoRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCryptoMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void deleteCrypto(opi_api.storage.v1.DeleteCryptoRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCryptoMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void updateCrypto(opi_api.storage.v1.UpdateCryptoRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCryptoMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void listCrypto(opi_api.storage.v1.ListCryptoRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCryptoMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void getCrypto(opi_api.storage.v1.GetCryptoRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCryptoMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void cryptoStats(opi_api.storage.v1.CryptoStatsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCryptoStatsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Middle End (Storage Services) APIs. For example, encryption, compression, raid, QoS, multipath, ...
+   * 
+ */ + public static final class MiddleendServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private MiddleendServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MiddleendServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MiddleendServiceBlockingStub(channel, callOptions); + } + + /** + */ + public opi_api.storage.v1.Crypto createCrypto(opi_api.storage.v1.CreateCryptoRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCryptoMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.protobuf.Empty deleteCrypto(opi_api.storage.v1.DeleteCryptoRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCryptoMethod(), getCallOptions(), request); + } + + /** + */ + public opi_api.storage.v1.Crypto updateCrypto(opi_api.storage.v1.UpdateCryptoRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCryptoMethod(), getCallOptions(), request); + } + + /** + */ + public opi_api.storage.v1.ListCryptoResponse listCrypto(opi_api.storage.v1.ListCryptoRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCryptoMethod(), getCallOptions(), request); + } + + /** + */ + public opi_api.storage.v1.Crypto getCrypto(opi_api.storage.v1.GetCryptoRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCryptoMethod(), getCallOptions(), request); + } + + /** + */ + public opi_api.storage.v1.CryptoStatsResponse cryptoStats(opi_api.storage.v1.CryptoStatsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCryptoStatsMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Middle End (Storage Services) APIs. For example, encryption, compression, raid, QoS, multipath, ...
+   * 
+ */ + public static final class MiddleendServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private MiddleendServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MiddleendServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MiddleendServiceFutureStub(channel, callOptions); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture createCrypto( + opi_api.storage.v1.CreateCryptoRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCryptoMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture deleteCrypto( + opi_api.storage.v1.DeleteCryptoRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCryptoMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture updateCrypto( + opi_api.storage.v1.UpdateCryptoRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCryptoMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture listCrypto( + opi_api.storage.v1.ListCryptoRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCryptoMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture getCrypto( + opi_api.storage.v1.GetCryptoRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCryptoMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture cryptoStats( + opi_api.storage.v1.CryptoStatsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCryptoStatsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_CRYPTO = 0; + private static final int METHODID_DELETE_CRYPTO = 1; + private static final int METHODID_UPDATE_CRYPTO = 2; + private static final int METHODID_LIST_CRYPTO = 3; + private static final int METHODID_GET_CRYPTO = 4; + private static final int METHODID_CRYPTO_STATS = 5; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final MiddleendServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(MiddleendServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_CRYPTO: + serviceImpl.createCrypto((opi_api.storage.v1.CreateCryptoRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CRYPTO: + serviceImpl.deleteCrypto((opi_api.storage.v1.DeleteCryptoRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CRYPTO: + serviceImpl.updateCrypto((opi_api.storage.v1.UpdateCryptoRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CRYPTO: + serviceImpl.listCrypto((opi_api.storage.v1.ListCryptoRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CRYPTO: + serviceImpl.getCrypto((opi_api.storage.v1.GetCryptoRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CRYPTO_STATS: + serviceImpl.cryptoStats((opi_api.storage.v1.CryptoStatsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class MiddleendServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + MiddleendServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return opi_api.storage.v1.MiddleendProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("MiddleendService"); + } + } + + private static final class MiddleendServiceFileDescriptorSupplier + extends MiddleendServiceBaseDescriptorSupplier { + MiddleendServiceFileDescriptorSupplier() {} + } + + private static final class MiddleendServiceMethodDescriptorSupplier + extends MiddleendServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + MiddleendServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (MiddleendServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new MiddleendServiceFileDescriptorSupplier()) + .addMethod(getCreateCryptoMethod()) + .addMethod(getDeleteCryptoMethod()) + .addMethod(getUpdateCryptoMethod()) + .addMethod(getListCryptoMethod()) + .addMethod(getGetCryptoMethod()) + .addMethod(getCryptoStatsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/OpiCommonProto.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/OpiCommonProto.java index 7f957514..55b67efb 100644 --- a/storage/v1alpha1/gen/java/opi_api/storage/v1/OpiCommonProto.java +++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/OpiCommonProto.java @@ -31,9 +31,15 @@ public static void registerAllExtensions( "\n\017opicommon.proto\022\022opi_api.storage.v1\"S\n" + "\013PciEndpoint\022\017\n\007port_id\030\001 \001(\005\022\031\n\021physica" + "l_function\030\002 \001(\005\022\030\n\020virtual_function\030\003 \001" + - "(\005B]\n\022opi_api.storage.v1B\016OpiCommonProto" + - "P\001Z5github.com/opiproject/opi-api/storag" + - "e/v1alpha1/gen/gob\006proto3" + "(\005*\327\001\n\nCryptoType\022\033\n\027CRYPTO_TYPE_UNSPECI" + + "FIED\020\000\022\033\n\027CRYPTO_TYPE_AES_CBC_128\020\001\022\033\n\027C" + + "RYPTO_TYPE_AES_CBC_192\020\002\022\033\n\027CRYPTO_TYPE_" + + "AES_CBC_256\020\003\022\033\n\027CRYPTO_TYPE_AES_XTS_128" + + "\020\004\022\033\n\027CRYPTO_TYPE_AES_XTS_192\020\005\022\033\n\027CRYPT" + + "O_TYPE_AES_XTS_256\020\006B]\n\022opi_api.storage." + + "v1B\016OpiCommonProtoP\001Z5github.com/opiproj" + + "ect/opi-api/storage/v1alpha1/gen/gob\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/UpdateCryptoRequest.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/UpdateCryptoRequest.java new file mode 100644 index 00000000..3b999b38 --- /dev/null +++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/UpdateCryptoRequest.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: middleend.proto + +package opi_api.storage.v1; + +/** + * Protobuf type {@code opi_api.storage.v1.UpdateCryptoRequest} + */ +public final class UpdateCryptoRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.storage.v1.UpdateCryptoRequest) + UpdateCryptoRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateCryptoRequest.newBuilder() to construct. + private UpdateCryptoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateCryptoRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpdateCryptoRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UpdateCryptoRequest( + 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; + case 10: { + opi_api.storage.v1.Crypto.Builder subBuilder = null; + if (volume_ != null) { + subBuilder = volume_.toBuilder(); + } + volume_ = input.readMessage(opi_api.storage.v1.Crypto.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(volume_); + volume_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_UpdateCryptoRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_UpdateCryptoRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.storage.v1.UpdateCryptoRequest.class, opi_api.storage.v1.UpdateCryptoRequest.Builder.class); + } + + public static final int VOLUME_FIELD_NUMBER = 1; + private opi_api.storage.v1.Crypto volume_; + /** + * .opi_api.storage.v1.Crypto volume = 1; + * @return Whether the volume field is set. + */ + @java.lang.Override + public boolean hasVolume() { + return volume_ != null; + } + /** + * .opi_api.storage.v1.Crypto volume = 1; + * @return The volume. + */ + @java.lang.Override + public opi_api.storage.v1.Crypto getVolume() { + return volume_ == null ? opi_api.storage.v1.Crypto.getDefaultInstance() : volume_; + } + /** + * .opi_api.storage.v1.Crypto volume = 1; + */ + @java.lang.Override + public opi_api.storage.v1.CryptoOrBuilder getVolumeOrBuilder() { + return getVolume(); + } + + 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 (volume_ != null) { + output.writeMessage(1, getVolume()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (volume_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getVolume()); + } + 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 opi_api.storage.v1.UpdateCryptoRequest)) { + return super.equals(obj); + } + opi_api.storage.v1.UpdateCryptoRequest other = (opi_api.storage.v1.UpdateCryptoRequest) obj; + + if (hasVolume() != other.hasVolume()) return false; + if (hasVolume()) { + if (!getVolume() + .equals(other.getVolume())) 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 (hasVolume()) { + hash = (37 * hash) + VOLUME_FIELD_NUMBER; + hash = (53 * hash) + getVolume().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.storage.v1.UpdateCryptoRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.storage.v1.UpdateCryptoRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.storage.v1.UpdateCryptoRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.storage.v1.UpdateCryptoRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.storage.v1.UpdateCryptoRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.storage.v1.UpdateCryptoRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.storage.v1.UpdateCryptoRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.storage.v1.UpdateCryptoRequest 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 opi_api.storage.v1.UpdateCryptoRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.storage.v1.UpdateCryptoRequest 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 opi_api.storage.v1.UpdateCryptoRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.storage.v1.UpdateCryptoRequest 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(opi_api.storage.v1.UpdateCryptoRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code opi_api.storage.v1.UpdateCryptoRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.storage.v1.UpdateCryptoRequest) + opi_api.storage.v1.UpdateCryptoRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_UpdateCryptoRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_UpdateCryptoRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.storage.v1.UpdateCryptoRequest.class, opi_api.storage.v1.UpdateCryptoRequest.Builder.class); + } + + // Construct using opi_api.storage.v1.UpdateCryptoRequest.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 (volumeBuilder_ == null) { + volume_ = null; + } else { + volume_ = null; + volumeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_UpdateCryptoRequest_descriptor; + } + + @java.lang.Override + public opi_api.storage.v1.UpdateCryptoRequest getDefaultInstanceForType() { + return opi_api.storage.v1.UpdateCryptoRequest.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.storage.v1.UpdateCryptoRequest build() { + opi_api.storage.v1.UpdateCryptoRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.storage.v1.UpdateCryptoRequest buildPartial() { + opi_api.storage.v1.UpdateCryptoRequest result = new opi_api.storage.v1.UpdateCryptoRequest(this); + if (volumeBuilder_ == null) { + result.volume_ = volume_; + } else { + result.volume_ = volumeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.storage.v1.UpdateCryptoRequest) { + return mergeFrom((opi_api.storage.v1.UpdateCryptoRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.storage.v1.UpdateCryptoRequest other) { + if (other == opi_api.storage.v1.UpdateCryptoRequest.getDefaultInstance()) return this; + if (other.hasVolume()) { + mergeVolume(other.getVolume()); + } + 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 { + opi_api.storage.v1.UpdateCryptoRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.storage.v1.UpdateCryptoRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private opi_api.storage.v1.Crypto volume_; + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.storage.v1.Crypto, opi_api.storage.v1.Crypto.Builder, opi_api.storage.v1.CryptoOrBuilder> volumeBuilder_; + /** + * .opi_api.storage.v1.Crypto volume = 1; + * @return Whether the volume field is set. + */ + public boolean hasVolume() { + return volumeBuilder_ != null || volume_ != null; + } + /** + * .opi_api.storage.v1.Crypto volume = 1; + * @return The volume. + */ + public opi_api.storage.v1.Crypto getVolume() { + if (volumeBuilder_ == null) { + return volume_ == null ? opi_api.storage.v1.Crypto.getDefaultInstance() : volume_; + } else { + return volumeBuilder_.getMessage(); + } + } + /** + * .opi_api.storage.v1.Crypto volume = 1; + */ + public Builder setVolume(opi_api.storage.v1.Crypto value) { + if (volumeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + volume_ = value; + onChanged(); + } else { + volumeBuilder_.setMessage(value); + } + + return this; + } + /** + * .opi_api.storage.v1.Crypto volume = 1; + */ + public Builder setVolume( + opi_api.storage.v1.Crypto.Builder builderForValue) { + if (volumeBuilder_ == null) { + volume_ = builderForValue.build(); + onChanged(); + } else { + volumeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .opi_api.storage.v1.Crypto volume = 1; + */ + public Builder mergeVolume(opi_api.storage.v1.Crypto value) { + if (volumeBuilder_ == null) { + if (volume_ != null) { + volume_ = + opi_api.storage.v1.Crypto.newBuilder(volume_).mergeFrom(value).buildPartial(); + } else { + volume_ = value; + } + onChanged(); + } else { + volumeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .opi_api.storage.v1.Crypto volume = 1; + */ + public Builder clearVolume() { + if (volumeBuilder_ == null) { + volume_ = null; + onChanged(); + } else { + volume_ = null; + volumeBuilder_ = null; + } + + return this; + } + /** + * .opi_api.storage.v1.Crypto volume = 1; + */ + public opi_api.storage.v1.Crypto.Builder getVolumeBuilder() { + + onChanged(); + return getVolumeFieldBuilder().getBuilder(); + } + /** + * .opi_api.storage.v1.Crypto volume = 1; + */ + public opi_api.storage.v1.CryptoOrBuilder getVolumeOrBuilder() { + if (volumeBuilder_ != null) { + return volumeBuilder_.getMessageOrBuilder(); + } else { + return volume_ == null ? + opi_api.storage.v1.Crypto.getDefaultInstance() : volume_; + } + } + /** + * .opi_api.storage.v1.Crypto volume = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.storage.v1.Crypto, opi_api.storage.v1.Crypto.Builder, opi_api.storage.v1.CryptoOrBuilder> + getVolumeFieldBuilder() { + if (volumeBuilder_ == null) { + volumeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + opi_api.storage.v1.Crypto, opi_api.storage.v1.Crypto.Builder, opi_api.storage.v1.CryptoOrBuilder>( + getVolume(), + getParentForChildren(), + isClean()); + volume_ = null; + } + return volumeBuilder_; + } + @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:opi_api.storage.v1.UpdateCryptoRequest) + } + + // @@protoc_insertion_point(class_scope:opi_api.storage.v1.UpdateCryptoRequest) + private static final opi_api.storage.v1.UpdateCryptoRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.storage.v1.UpdateCryptoRequest(); + } + + public static opi_api.storage.v1.UpdateCryptoRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCryptoRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCryptoRequest(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 opi_api.storage.v1.UpdateCryptoRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/UpdateCryptoRequestOrBuilder.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/UpdateCryptoRequestOrBuilder.java new file mode 100644 index 00000000..a890c497 --- /dev/null +++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/UpdateCryptoRequestOrBuilder.java @@ -0,0 +1,24 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: middleend.proto + +package opi_api.storage.v1; + +public interface UpdateCryptoRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.storage.v1.UpdateCryptoRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .opi_api.storage.v1.Crypto volume = 1; + * @return Whether the volume field is set. + */ + boolean hasVolume(); + /** + * .opi_api.storage.v1.Crypto volume = 1; + * @return The volume. + */ + opi_api.storage.v1.Crypto getVolume(); + /** + * .opi_api.storage.v1.Crypto volume = 1; + */ + opi_api.storage.v1.CryptoOrBuilder getVolumeOrBuilder(); +} diff --git a/storage/v1alpha1/gen/python/middleend_pb2.py b/storage/v1alpha1/gen/python/middleend_pb2.py index dd9eaeb1..a8c747e9 100644 --- a/storage/v1alpha1/gen/python/middleend_pb2.py +++ b/storage/v1alpha1/gen/python/middleend_pb2.py @@ -12,14 +12,121 @@ _sym_db = _symbol_database.Default() +import opicommon_pb2 as opicommon__pb2 +import object_key_pb2 as object__key__pb2 +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0fmiddleend.proto\x12\x12opi_api.storage.v1B]\n\x12opi_api.storage.v1B\x0eMiddleendProtoP\x01Z5github.com/opiproject/opi-api/storage/v1alpha1/gen/gob\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0fmiddleend.proto\x12\x12opi_api.storage.v1\x1a\x0fopicommon.proto\x1a\x10object_key.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/api/annotations.proto\"\xa7\x01\n\x06\x43rypto\x12/\n\tcrypto_id\x18\x01 \x01(\x0b\x32\x1c.opi_api.common.v1.ObjectKey\x12/\n\tvolume_id\x18\x02 \x01(\x0b\x32\x1c.opi_api.common.v1.ObjectKey\x12\x0b\n\x03key\x18\x03 \x01(\x0c\x12.\n\x06\x63ipher\x18\x04 \x01(\x0e\x32\x1e.opi_api.storage.v1.CryptoType\"A\n\x13\x43reateCryptoRequest\x12*\n\x06volume\x18\x01 \x01(\x0b\x32\x1a.opi_api.storage.v1.Crypto\"F\n\x13\x44\x65leteCryptoRequest\x12/\n\tcrypto_id\x18\x01 \x01(\x0b\x32\x1c.opi_api.common.v1.ObjectKey\"A\n\x13UpdateCryptoRequest\x12*\n\x06volume\x18\x01 \x01(\x0b\x32\x1a.opi_api.storage.v1.Crypto\":\n\x11ListCryptoRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\"Z\n\x12ListCryptoResponse\x12+\n\x07volumes\x18\x01 \x03(\x0b\x32\x1a.opi_api.storage.v1.Crypto\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"C\n\x10GetCryptoRequest\x12/\n\tcrypto_id\x18\x01 \x01(\x0b\x32\x1c.opi_api.common.v1.ObjectKey\"E\n\x12\x43ryptoStatsRequest\x12/\n\tcrypto_id\x18\x01 \x01(\x0b\x32\x1c.opi_api.common.v1.ObjectKey\"U\n\x13\x43ryptoStatsResponse\x12/\n\tcrypto_id\x18\x01 \x01(\x0b\x32\x1c.opi_api.common.v1.ObjectKey\x12\r\n\x05stats\x18\x02 \x01(\t2\xa6\x05\n\x10MiddleendService\x12p\n\x0c\x43reateCrypto\x12\'.opi_api.storage.v1.CreateCryptoRequest\x1a\x1a.opi_api.storage.v1.Crypto\"\x1b\x82\xd3\xe4\x93\x02\x15\"\x0b/v1/volumes:\x06volume\x12m\n\x0c\x44\x65leteCrypto\x12\'.opi_api.storage.v1.DeleteCryptoRequest\x1a\x16.google.protobuf.Empty\"\x1c\x82\xd3\xe4\x93\x02\x16*\x14/v1/volumes/{volume}\x12p\n\x0cUpdateCrypto\x12\'.opi_api.storage.v1.UpdateCryptoRequest\x1a\x1a.opi_api.storage.v1.Crypto\"\x1b\x82\xd3\xe4\x93\x02\x15\x32\x0b/v1/volumes:\x06volume\x12p\n\nListCrypto\x12%.opi_api.storage.v1.ListCryptoRequest\x1a&.opi_api.storage.v1.ListCryptoResponse\"\x13\x82\xd3\xe4\x93\x02\r\x12\x0b/v1/volumes\x12k\n\tGetCrypto\x12$.opi_api.storage.v1.GetCryptoRequest\x1a\x1a.opi_api.storage.v1.Crypto\"\x1c\x82\xd3\xe4\x93\x02\x16\x12\x14/v1/volumes/{volume}\x12`\n\x0b\x43ryptoStats\x12&.opi_api.storage.v1.CryptoStatsRequest\x1a\'.opi_api.storage.v1.CryptoStatsResponse\"\x00\x42]\n\x12opi_api.storage.v1B\x0eMiddleendProtoP\x01Z5github.com/opiproject/opi-api/storage/v1alpha1/gen/gob\x06proto3') +_CRYPTO = DESCRIPTOR.message_types_by_name['Crypto'] +_CREATECRYPTOREQUEST = DESCRIPTOR.message_types_by_name['CreateCryptoRequest'] +_DELETECRYPTOREQUEST = DESCRIPTOR.message_types_by_name['DeleteCryptoRequest'] +_UPDATECRYPTOREQUEST = DESCRIPTOR.message_types_by_name['UpdateCryptoRequest'] +_LISTCRYPTOREQUEST = DESCRIPTOR.message_types_by_name['ListCryptoRequest'] +_LISTCRYPTORESPONSE = DESCRIPTOR.message_types_by_name['ListCryptoResponse'] +_GETCRYPTOREQUEST = DESCRIPTOR.message_types_by_name['GetCryptoRequest'] +_CRYPTOSTATSREQUEST = DESCRIPTOR.message_types_by_name['CryptoStatsRequest'] +_CRYPTOSTATSRESPONSE = DESCRIPTOR.message_types_by_name['CryptoStatsResponse'] +Crypto = _reflection.GeneratedProtocolMessageType('Crypto', (_message.Message,), { + 'DESCRIPTOR' : _CRYPTO, + '__module__' : 'middleend_pb2' + # @@protoc_insertion_point(class_scope:opi_api.storage.v1.Crypto) + }) +_sym_db.RegisterMessage(Crypto) + +CreateCryptoRequest = _reflection.GeneratedProtocolMessageType('CreateCryptoRequest', (_message.Message,), { + 'DESCRIPTOR' : _CREATECRYPTOREQUEST, + '__module__' : 'middleend_pb2' + # @@protoc_insertion_point(class_scope:opi_api.storage.v1.CreateCryptoRequest) + }) +_sym_db.RegisterMessage(CreateCryptoRequest) + +DeleteCryptoRequest = _reflection.GeneratedProtocolMessageType('DeleteCryptoRequest', (_message.Message,), { + 'DESCRIPTOR' : _DELETECRYPTOREQUEST, + '__module__' : 'middleend_pb2' + # @@protoc_insertion_point(class_scope:opi_api.storage.v1.DeleteCryptoRequest) + }) +_sym_db.RegisterMessage(DeleteCryptoRequest) + +UpdateCryptoRequest = _reflection.GeneratedProtocolMessageType('UpdateCryptoRequest', (_message.Message,), { + 'DESCRIPTOR' : _UPDATECRYPTOREQUEST, + '__module__' : 'middleend_pb2' + # @@protoc_insertion_point(class_scope:opi_api.storage.v1.UpdateCryptoRequest) + }) +_sym_db.RegisterMessage(UpdateCryptoRequest) + +ListCryptoRequest = _reflection.GeneratedProtocolMessageType('ListCryptoRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTCRYPTOREQUEST, + '__module__' : 'middleend_pb2' + # @@protoc_insertion_point(class_scope:opi_api.storage.v1.ListCryptoRequest) + }) +_sym_db.RegisterMessage(ListCryptoRequest) + +ListCryptoResponse = _reflection.GeneratedProtocolMessageType('ListCryptoResponse', (_message.Message,), { + 'DESCRIPTOR' : _LISTCRYPTORESPONSE, + '__module__' : 'middleend_pb2' + # @@protoc_insertion_point(class_scope:opi_api.storage.v1.ListCryptoResponse) + }) +_sym_db.RegisterMessage(ListCryptoResponse) + +GetCryptoRequest = _reflection.GeneratedProtocolMessageType('GetCryptoRequest', (_message.Message,), { + 'DESCRIPTOR' : _GETCRYPTOREQUEST, + '__module__' : 'middleend_pb2' + # @@protoc_insertion_point(class_scope:opi_api.storage.v1.GetCryptoRequest) + }) +_sym_db.RegisterMessage(GetCryptoRequest) + +CryptoStatsRequest = _reflection.GeneratedProtocolMessageType('CryptoStatsRequest', (_message.Message,), { + 'DESCRIPTOR' : _CRYPTOSTATSREQUEST, + '__module__' : 'middleend_pb2' + # @@protoc_insertion_point(class_scope:opi_api.storage.v1.CryptoStatsRequest) + }) +_sym_db.RegisterMessage(CryptoStatsRequest) + +CryptoStatsResponse = _reflection.GeneratedProtocolMessageType('CryptoStatsResponse', (_message.Message,), { + 'DESCRIPTOR' : _CRYPTOSTATSRESPONSE, + '__module__' : 'middleend_pb2' + # @@protoc_insertion_point(class_scope:opi_api.storage.v1.CryptoStatsResponse) + }) +_sym_db.RegisterMessage(CryptoStatsResponse) + +_MIDDLEENDSERVICE = DESCRIPTOR.services_by_name['MiddleendService'] if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b'\n\022opi_api.storage.v1B\016MiddleendProtoP\001Z5github.com/opiproject/opi-api/storage/v1alpha1/gen/go' + _MIDDLEENDSERVICE.methods_by_name['CreateCrypto']._options = None + _MIDDLEENDSERVICE.methods_by_name['CreateCrypto']._serialized_options = b'\202\323\344\223\002\025\"\013/v1/volumes:\006volume' + _MIDDLEENDSERVICE.methods_by_name['DeleteCrypto']._options = None + _MIDDLEENDSERVICE.methods_by_name['DeleteCrypto']._serialized_options = b'\202\323\344\223\002\026*\024/v1/volumes/{volume}' + _MIDDLEENDSERVICE.methods_by_name['UpdateCrypto']._options = None + _MIDDLEENDSERVICE.methods_by_name['UpdateCrypto']._serialized_options = b'\202\323\344\223\002\0252\013/v1/volumes:\006volume' + _MIDDLEENDSERVICE.methods_by_name['ListCrypto']._options = None + _MIDDLEENDSERVICE.methods_by_name['ListCrypto']._serialized_options = b'\202\323\344\223\002\r\022\013/v1/volumes' + _MIDDLEENDSERVICE.methods_by_name['GetCrypto']._options = None + _MIDDLEENDSERVICE.methods_by_name['GetCrypto']._serialized_options = b'\202\323\344\223\002\026\022\024/v1/volumes/{volume}' + _CRYPTO._serialized_start=134 + _CRYPTO._serialized_end=301 + _CREATECRYPTOREQUEST._serialized_start=303 + _CREATECRYPTOREQUEST._serialized_end=368 + _DELETECRYPTOREQUEST._serialized_start=370 + _DELETECRYPTOREQUEST._serialized_end=440 + _UPDATECRYPTOREQUEST._serialized_start=442 + _UPDATECRYPTOREQUEST._serialized_end=507 + _LISTCRYPTOREQUEST._serialized_start=509 + _LISTCRYPTOREQUEST._serialized_end=567 + _LISTCRYPTORESPONSE._serialized_start=569 + _LISTCRYPTORESPONSE._serialized_end=659 + _GETCRYPTOREQUEST._serialized_start=661 + _GETCRYPTOREQUEST._serialized_end=728 + _CRYPTOSTATSREQUEST._serialized_start=730 + _CRYPTOSTATSREQUEST._serialized_end=799 + _CRYPTOSTATSRESPONSE._serialized_start=801 + _CRYPTOSTATSRESPONSE._serialized_end=886 + _MIDDLEENDSERVICE._serialized_start=889 + _MIDDLEENDSERVICE._serialized_end=1567 # @@protoc_insertion_point(module_scope) diff --git a/storage/v1alpha1/gen/python/middleend_pb2_grpc.py b/storage/v1alpha1/gen/python/middleend_pb2_grpc.py index 2daafffe..74ff3b1e 100644 --- a/storage/v1alpha1/gen/python/middleend_pb2_grpc.py +++ b/storage/v1alpha1/gen/python/middleend_pb2_grpc.py @@ -2,3 +2,234 @@ """Client and server classes corresponding to protobuf-defined services.""" import grpc +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +import middleend_pb2 as middleend__pb2 + + +class MiddleendServiceStub(object): + """Middle End (Storage Services) APIs. For example, encryption, compression, raid, QoS, multipath, ... + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateCrypto = channel.unary_unary( + '/opi_api.storage.v1.MiddleendService/CreateCrypto', + request_serializer=middleend__pb2.CreateCryptoRequest.SerializeToString, + response_deserializer=middleend__pb2.Crypto.FromString, + ) + self.DeleteCrypto = channel.unary_unary( + '/opi_api.storage.v1.MiddleendService/DeleteCrypto', + request_serializer=middleend__pb2.DeleteCryptoRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.UpdateCrypto = channel.unary_unary( + '/opi_api.storage.v1.MiddleendService/UpdateCrypto', + request_serializer=middleend__pb2.UpdateCryptoRequest.SerializeToString, + response_deserializer=middleend__pb2.Crypto.FromString, + ) + self.ListCrypto = channel.unary_unary( + '/opi_api.storage.v1.MiddleendService/ListCrypto', + request_serializer=middleend__pb2.ListCryptoRequest.SerializeToString, + response_deserializer=middleend__pb2.ListCryptoResponse.FromString, + ) + self.GetCrypto = channel.unary_unary( + '/opi_api.storage.v1.MiddleendService/GetCrypto', + request_serializer=middleend__pb2.GetCryptoRequest.SerializeToString, + response_deserializer=middleend__pb2.Crypto.FromString, + ) + self.CryptoStats = channel.unary_unary( + '/opi_api.storage.v1.MiddleendService/CryptoStats', + request_serializer=middleend__pb2.CryptoStatsRequest.SerializeToString, + response_deserializer=middleend__pb2.CryptoStatsResponse.FromString, + ) + + +class MiddleendServiceServicer(object): + """Middle End (Storage Services) APIs. For example, encryption, compression, raid, QoS, multipath, ... + """ + + def CreateCrypto(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteCrypto(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateCrypto(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListCrypto(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetCrypto(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CryptoStats(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MiddleendServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateCrypto': grpc.unary_unary_rpc_method_handler( + servicer.CreateCrypto, + request_deserializer=middleend__pb2.CreateCryptoRequest.FromString, + response_serializer=middleend__pb2.Crypto.SerializeToString, + ), + 'DeleteCrypto': grpc.unary_unary_rpc_method_handler( + servicer.DeleteCrypto, + request_deserializer=middleend__pb2.DeleteCryptoRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'UpdateCrypto': grpc.unary_unary_rpc_method_handler( + servicer.UpdateCrypto, + request_deserializer=middleend__pb2.UpdateCryptoRequest.FromString, + response_serializer=middleend__pb2.Crypto.SerializeToString, + ), + 'ListCrypto': grpc.unary_unary_rpc_method_handler( + servicer.ListCrypto, + request_deserializer=middleend__pb2.ListCryptoRequest.FromString, + response_serializer=middleend__pb2.ListCryptoResponse.SerializeToString, + ), + 'GetCrypto': grpc.unary_unary_rpc_method_handler( + servicer.GetCrypto, + request_deserializer=middleend__pb2.GetCryptoRequest.FromString, + response_serializer=middleend__pb2.Crypto.SerializeToString, + ), + 'CryptoStats': grpc.unary_unary_rpc_method_handler( + servicer.CryptoStats, + request_deserializer=middleend__pb2.CryptoStatsRequest.FromString, + response_serializer=middleend__pb2.CryptoStatsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'opi_api.storage.v1.MiddleendService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class MiddleendService(object): + """Middle End (Storage Services) APIs. For example, encryption, compression, raid, QoS, multipath, ... + """ + + @staticmethod + def CreateCrypto(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.storage.v1.MiddleendService/CreateCrypto', + middleend__pb2.CreateCryptoRequest.SerializeToString, + middleend__pb2.Crypto.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteCrypto(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.storage.v1.MiddleendService/DeleteCrypto', + middleend__pb2.DeleteCryptoRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateCrypto(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.storage.v1.MiddleendService/UpdateCrypto', + middleend__pb2.UpdateCryptoRequest.SerializeToString, + middleend__pb2.Crypto.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListCrypto(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.storage.v1.MiddleendService/ListCrypto', + middleend__pb2.ListCryptoRequest.SerializeToString, + middleend__pb2.ListCryptoResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetCrypto(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.storage.v1.MiddleendService/GetCrypto', + middleend__pb2.GetCryptoRequest.SerializeToString, + middleend__pb2.Crypto.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CryptoStats(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.storage.v1.MiddleendService/CryptoStats', + middleend__pb2.CryptoStatsRequest.SerializeToString, + middleend__pb2.CryptoStatsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/storage/v1alpha1/gen/python/opicommon_pb2.py b/storage/v1alpha1/gen/python/opicommon_pb2.py index bb96731b..c2dc2b16 100644 --- a/storage/v1alpha1/gen/python/opicommon_pb2.py +++ b/storage/v1alpha1/gen/python/opicommon_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opicommon.proto """Generated protocol buffer code.""" +from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -14,8 +15,17 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0fopicommon.proto\x12\x12opi_api.storage.v1\"S\n\x0bPciEndpoint\x12\x0f\n\x07port_id\x18\x01 \x01(\x05\x12\x19\n\x11physical_function\x18\x02 \x01(\x05\x12\x18\n\x10virtual_function\x18\x03 \x01(\x05\x42]\n\x12opi_api.storage.v1B\x0eOpiCommonProtoP\x01Z5github.com/opiproject/opi-api/storage/v1alpha1/gen/gob\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0fopicommon.proto\x12\x12opi_api.storage.v1\"S\n\x0bPciEndpoint\x12\x0f\n\x07port_id\x18\x01 \x01(\x05\x12\x19\n\x11physical_function\x18\x02 \x01(\x05\x12\x18\n\x10virtual_function\x18\x03 \x01(\x05*\xd7\x01\n\nCryptoType\x12\x1b\n\x17\x43RYPTO_TYPE_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x43RYPTO_TYPE_AES_CBC_128\x10\x01\x12\x1b\n\x17\x43RYPTO_TYPE_AES_CBC_192\x10\x02\x12\x1b\n\x17\x43RYPTO_TYPE_AES_CBC_256\x10\x03\x12\x1b\n\x17\x43RYPTO_TYPE_AES_XTS_128\x10\x04\x12\x1b\n\x17\x43RYPTO_TYPE_AES_XTS_192\x10\x05\x12\x1b\n\x17\x43RYPTO_TYPE_AES_XTS_256\x10\x06\x42]\n\x12opi_api.storage.v1B\x0eOpiCommonProtoP\x01Z5github.com/opiproject/opi-api/storage/v1alpha1/gen/gob\x06proto3') +_CRYPTOTYPE = DESCRIPTOR.enum_types_by_name['CryptoType'] +CryptoType = enum_type_wrapper.EnumTypeWrapper(_CRYPTOTYPE) +CRYPTO_TYPE_UNSPECIFIED = 0 +CRYPTO_TYPE_AES_CBC_128 = 1 +CRYPTO_TYPE_AES_CBC_192 = 2 +CRYPTO_TYPE_AES_CBC_256 = 3 +CRYPTO_TYPE_AES_XTS_128 = 4 +CRYPTO_TYPE_AES_XTS_192 = 5 +CRYPTO_TYPE_AES_XTS_256 = 6 _PCIENDPOINT = DESCRIPTOR.message_types_by_name['PciEndpoint'] @@ -30,6 +40,8 @@ DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b'\n\022opi_api.storage.v1B\016OpiCommonProtoP\001Z5github.com/opiproject/opi-api/storage/v1alpha1/gen/go' + _CRYPTOTYPE._serialized_start=125 + _CRYPTOTYPE._serialized_end=340 _PCIENDPOINT._serialized_start=39 _PCIENDPOINT._serialized_end=122 # @@protoc_insertion_point(module_scope) diff --git a/storage/v1alpha1/middleend.proto b/storage/v1alpha1/middleend.proto index 2853403c..3a9d1d36 100755 --- a/storage/v1alpha1/middleend.proto +++ b/storage/v1alpha1/middleend.proto @@ -9,7 +9,88 @@ option java_multiple_files = true; option java_outer_classname = "MiddleendProto"; option go_package = "github.com/opiproject/opi-api/storage/v1alpha1/gen/go"; +import "opicommon.proto"; +import "object_key.proto"; +import "google/protobuf/empty.proto"; +import "google/api/annotations.proto"; -// Middle End (Storage Services) APIs. +// Middle End (Storage Services) APIs. For example, encryption, compression, raid, QoS, multipath, ... +service MiddleendService { + rpc CreateCrypto (CreateCryptoRequest) returns (Crypto) { + option (google.api.http) = { + post: "/v1/volumes" + body: "volume" + }; + } + rpc DeleteCrypto (DeleteCryptoRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/volumes/{volume}" + }; + } + rpc UpdateCrypto (UpdateCryptoRequest) returns (Crypto) { + option (google.api.http) = { + patch: "/v1/volumes" + body: "volume" + }; + } + rpc ListCrypto (ListCryptoRequest) returns (ListCryptoResponse) { + option (google.api.http) = { + get: "/v1/volumes" + }; + } + rpc GetCrypto (GetCryptoRequest) returns (Crypto) { + option (google.api.http) = { + get: "/v1/volumes/{volume}" + }; + } + rpc CryptoStats (CryptoStatsRequest) returns (CryptoStatsResponse) {} +} -// TODO: encryption, compression, raid, QoS, multipath, ... +message Crypto { + common.v1.ObjectKey crypto_id = 1; + + // The back/middle-end volume to back this volume + common.v1.ObjectKey volume_id = 2; + + // Key to be used for encryption + bytes key = 3; + + // Cipher to use + CryptoType cipher = 4; + +} + +message CreateCryptoRequest { + Crypto volume = 1; +} + +message DeleteCryptoRequest { + common.v1.ObjectKey crypto_id = 1; +} + +message UpdateCryptoRequest { + Crypto volume = 1; +} + +message ListCryptoRequest { + int32 page_size = 1; + string page_token = 2; +} + +message ListCryptoResponse { + repeated Crypto volumes = 1; + string next_page_token = 2; +} + +message GetCryptoRequest { + common.v1.ObjectKey crypto_id = 1; +} + +message CryptoStatsRequest { + common.v1.ObjectKey crypto_id = 1; +} + +message CryptoStatsResponse { + common.v1.ObjectKey crypto_id = 1; + string stats = 2; +} \ No newline at end of file diff --git a/storage/v1alpha1/opicommon.proto b/storage/v1alpha1/opicommon.proto index f4b1073d..3c76edb0 100755 --- a/storage/v1alpha1/opicommon.proto +++ b/storage/v1alpha1/opicommon.proto @@ -36,3 +36,14 @@ message PciEndpoint { // strictly have to and that should not be relied upon. int32 virtual_function = 3; } + +// AES encryption type to be used +enum CryptoType { + CRYPTO_TYPE_UNSPECIFIED = 0; + CRYPTO_TYPE_AES_CBC_128 = 1; + CRYPTO_TYPE_AES_CBC_192 = 2; + CRYPTO_TYPE_AES_CBC_256 = 3; + CRYPTO_TYPE_AES_XTS_128 = 4; + CRYPTO_TYPE_AES_XTS_192 = 5; + CRYPTO_TYPE_AES_XTS_256 = 6; +} \ No newline at end of file