diff --git a/storage/v1alpha1/autogen.md b/storage/v1alpha1/autogen.md
index c59e0b2c..ed846b0e 100644
--- a/storage/v1alpha1/autogen.md
+++ b/storage/v1alpha1/autogen.md
@@ -156,6 +156,14 @@
- [CryptoType](#opi_api-storage-v1-CryptoType)
+- [transactions.proto](#transactions-proto)
+ - [CreateTransactionRequest](#opi_api-storage-v1-CreateTransactionRequest)
+ - [DeleteTransactionRequest](#opi_api-storage-v1-DeleteTransactionRequest)
+ - [ExecuteTransactionRequest](#opi_api-storage-v1-ExecuteTransactionRequest)
+ - [Transaction](#opi_api-storage-v1-Transaction)
+
+ - [TransactionService](#opi_api-storage-v1-TransactionService)
+
- [object_key.proto](#object_key-proto)
- [ObjectKey](#opi_api-common-v1-ObjectKey)
@@ -201,6 +209,7 @@
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| device | [AioController](#opi_api-storage-v1-AioController) | | |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
@@ -216,6 +225,7 @@
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| handle | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
@@ -317,6 +327,7 @@ Intentionally empty
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| device | [AioController](#opi_api-storage-v1-AioController) | | |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
@@ -397,6 +408,7 @@ Back End (network-facing) APIs. This service is for AIO generic kernel block dev
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| device | [NullDebug](#opi_api-storage-v1-NullDebug) | | |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
@@ -412,6 +424,7 @@ Back End (network-facing) APIs. This service is for AIO generic kernel block dev
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| handle | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
@@ -498,6 +511,7 @@ Intentionally empty.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| device | [NullDebug](#opi_api-storage-v1-NullDebug) | | |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
@@ -828,6 +842,7 @@ Back End (network-facing) APIs. NVMe/TCP and NVMe/RoCEv2 protocols are covered b
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| controller | [NVMeController](#opi_api-storage-v1-NVMeController) | | |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
@@ -843,6 +858,7 @@ Back End (network-facing) APIs. NVMe/TCP and NVMe/RoCEv2 protocols are covered b
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| namespace | [NVMeNamespace](#opi_api-storage-v1-NVMeNamespace) | | |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
@@ -858,6 +874,7 @@ Back End (network-facing) APIs. NVMe/TCP and NVMe/RoCEv2 protocols are covered b
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| subsystem | [NVMeSubsystem](#opi_api-storage-v1-NVMeSubsystem) | | |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
@@ -873,6 +890,7 @@ Back End (network-facing) APIs. NVMe/TCP and NVMe/RoCEv2 protocols are covered b
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| controller_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
@@ -888,6 +906,7 @@ Back End (network-facing) APIs. NVMe/TCP and NVMe/RoCEv2 protocols are covered b
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| namespace_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
@@ -903,6 +922,7 @@ Back End (network-facing) APIs. NVMe/TCP and NVMe/RoCEv2 protocols are covered b
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| subsystem_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
@@ -1311,6 +1331,7 @@ Back End (network-facing) APIs. NVMe/TCP and NVMe/RoCEv2 protocols are covered b
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| controller | [NVMeController](#opi_api-storage-v1-NVMeController) | | |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
@@ -1326,6 +1347,7 @@ Back End (network-facing) APIs. NVMe/TCP and NVMe/RoCEv2 protocols are covered b
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| namespace | [NVMeNamespace](#opi_api-storage-v1-NVMeNamespace) | | |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
@@ -1341,6 +1363,7 @@ Back End (network-facing) APIs. NVMe/TCP and NVMe/RoCEv2 protocols are covered b
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| subsystem | [NVMeSubsystem](#opi_api-storage-v1-NVMeSubsystem) | | |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
@@ -1426,6 +1449,7 @@ Front End (host-facing) APIs. Mostly used for NVMe/PCIe emulation and host prese
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| controller | [VirtioBlk](#opi_api-storage-v1-VirtioBlk) | | |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
@@ -1441,6 +1465,7 @@ Front End (host-facing) APIs. Mostly used for NVMe/PCIe emulation and host prese
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| controller_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
@@ -1503,6 +1528,7 @@ Front End (host-facing) APIs. Mostly used for NVMe/PCIe emulation and host prese
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| controller | [VirtioBlk](#opi_api-storage-v1-VirtioBlk) | | |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
@@ -1614,6 +1640,7 @@ Front End (host-facing) APIs. Mostly used for Virtio-blk emulation emulation and
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| controller | [VirtioScsiController](#opi_api-storage-v1-VirtioScsiController) | | |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
@@ -1629,6 +1656,7 @@ Front End (host-facing) APIs. Mostly used for Virtio-blk emulation emulation and
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| lun | [VirtioScsiLun](#opi_api-storage-v1-VirtioScsiLun) | | |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
@@ -1644,6 +1672,7 @@ Front End (host-facing) APIs. Mostly used for Virtio-blk emulation emulation and
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| target | [VirtioScsiTarget](#opi_api-storage-v1-VirtioScsiTarget) | | |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
@@ -1659,6 +1688,7 @@ Front End (host-facing) APIs. Mostly used for Virtio-blk emulation emulation and
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| controller_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
@@ -1675,6 +1705,7 @@ Front End (host-facing) APIs. Mostly used for Virtio-blk emulation emulation and
| ----- | ---- | ----- | ----------- |
| controller_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
| lun_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
@@ -1690,6 +1721,7 @@ Front End (host-facing) APIs. Mostly used for Virtio-blk emulation emulation and
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| target_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
@@ -1848,6 +1880,7 @@ Front End (host-facing) APIs. Mostly used for Virtio-blk emulation emulation and
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| controller | [VirtioScsiController](#opi_api-storage-v1-VirtioScsiController) | | |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
@@ -1863,6 +1896,7 @@ Front End (host-facing) APIs. Mostly used for Virtio-blk emulation emulation and
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| lun | [VirtioScsiLun](#opi_api-storage-v1-VirtioScsiLun) | | |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
@@ -1878,6 +1912,7 @@ Front End (host-facing) APIs. Mostly used for Virtio-blk emulation emulation and
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| target | [VirtioScsiTarget](#opi_api-storage-v1-VirtioScsiTarget) | | |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
@@ -2079,6 +2114,7 @@ Front End (host-facing) APIs. Mostly used for Virtio-scsi emulation and host pre
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| volume | [Crypto](#opi_api-storage-v1-Crypto) | | |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
@@ -2143,6 +2179,7 @@ Front End (host-facing) APIs. Mostly used for Virtio-scsi emulation and host pre
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| crypto_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
@@ -2205,6 +2242,7 @@ Front End (host-facing) APIs. Mostly used for Virtio-scsi emulation and host pre
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| volume | [Crypto](#opi_api-storage-v1-Crypto) | | |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
@@ -2292,6 +2330,89 @@ AES encryption type to be used
+
+
Top
+
+## transactions.proto
+
+
+
+
+
+### CreateTransactionRequest
+Empty
+
+
+
+
+
+
+
+
+### DeleteTransactionRequest
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
+
+
+
+
+
+
+
+
+### ExecuteTransactionRequest
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
+
+
+
+
+
+
+
+
+### Transaction
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| txn_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+### TransactionService
+
+
+| Method Name | Request Type | Response Type | Description |
+| ----------- | ------------ | ------------- | ------------|
+| CreateTransaction | [CreateTransactionRequest](#opi_api-storage-v1-CreateTransactionRequest) | [Transaction](#opi_api-storage-v1-Transaction) | |
+| DeleteTransaction | [DeleteTransactionRequest](#opi_api-storage-v1-DeleteTransactionRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |
+| ExecuteTransaction | [ExecuteTransactionRequest](#opi_api-storage-v1-ExecuteTransactionRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |
+
+
+
+
+
Top
diff --git a/storage/v1alpha1/backend_aio.proto b/storage/v1alpha1/backend_aio.proto
index d23ccc4c..41b90cac 100644
--- a/storage/v1alpha1/backend_aio.proto
+++ b/storage/v1alpha1/backend_aio.proto
@@ -37,14 +37,20 @@ message AioController {
message AioControllerCreateRequest {
AioController device = 1;
+
+ common.v1.ObjectKey txn_id = 2;
}
message AioControllerDeleteRequest {
common.v1.ObjectKey handle = 1;
+
+ common.v1.ObjectKey txn_id = 2;
}
message AioControllerUpdateRequest {
AioController device = 1;
+
+ common.v1.ObjectKey txn_id = 2;
}
message AioControllerList{
diff --git a/storage/v1alpha1/backend_null.proto b/storage/v1alpha1/backend_null.proto
index 90e4b7dd..04658aaa 100755
--- a/storage/v1alpha1/backend_null.proto
+++ b/storage/v1alpha1/backend_null.proto
@@ -33,15 +33,20 @@ message NullDebug {
message NullDebugCreateRequest {
NullDebug device = 1;
+
+ common.v1.ObjectKey txn_id = 2;
}
message NullDebugDeleteRequest {
common.v1.ObjectKey handle = 1;
+ common.v1.ObjectKey txn_id = 2;
}
message NullDebugUpdateRequest {
NullDebug device = 1;
+
+ common.v1.ObjectKey txn_id = 2;
}
message NullDebugListRequest {
diff --git a/storage/v1alpha1/frontend_nvme_pcie.proto b/storage/v1alpha1/frontend_nvme_pcie.proto
index 892430d4..6e62a0c9 100755
--- a/storage/v1alpha1/frontend_nvme_pcie.proto
+++ b/storage/v1alpha1/frontend_nvme_pcie.proto
@@ -225,14 +225,20 @@ message NVMeNamespaceStatus {
message CreateNVMeSubsystemRequest {
NVMeSubsystem subsystem = 1;
+
+ common.v1.ObjectKey txn_id = 2;
}
message DeleteNVMeSubsystemRequest {
common.v1.ObjectKey subsystem_id = 1;
+
+ common.v1.ObjectKey txn_id = 2;
}
message UpdateNVMeSubsystemRequest {
NVMeSubsystem subsystem = 1;
+
+ common.v1.ObjectKey txn_id = 2;
}
message ListNVMeSubsystemRequest {
@@ -259,14 +265,20 @@ message NVMeSubsystemStatsResponse {
message CreateNVMeControllerRequest {
NVMeController controller = 1;
+
+ common.v1.ObjectKey txn_id = 2;
}
message DeleteNVMeControllerRequest {
common.v1.ObjectKey controller_id = 1;
+
+ common.v1.ObjectKey txn_id = 2;
}
message UpdateNVMeControllerRequest {
NVMeController controller = 1;
+
+ common.v1.ObjectKey txn_id = 2;
}
message ListNVMeControllerRequest {
@@ -295,14 +307,20 @@ message NVMeControllerStatsResponse {
message CreateNVMeNamespaceRequest {
NVMeNamespace namespace = 1;
+
+ common.v1.ObjectKey txn_id = 2;
}
message DeleteNVMeNamespaceRequest {
common.v1.ObjectKey namespace_id = 1;
+
+ common.v1.ObjectKey txn_id = 2;
}
message UpdateNVMeNamespaceRequest {
NVMeNamespace namespace = 1;
+
+ common.v1.ObjectKey txn_id = 2;
}
message ListNVMeNamespaceRequest {
diff --git a/storage/v1alpha1/frontend_virtio_blk.proto b/storage/v1alpha1/frontend_virtio_blk.proto
index d954dbbf..1b6d9a37 100755
--- a/storage/v1alpha1/frontend_virtio_blk.proto
+++ b/storage/v1alpha1/frontend_virtio_blk.proto
@@ -60,14 +60,20 @@ message VirtioBlk {
message CreateVirtioBlkRequest {
VirtioBlk controller = 1;
+
+ common.v1.ObjectKey txn_id = 2;
}
message DeleteVirtioBlkRequest {
common.v1.ObjectKey controller_id = 1;
+
+ common.v1.ObjectKey txn_id = 2;
}
message UpdateVirtioBlkRequest {
VirtioBlk controller = 1;
+
+ common.v1.ObjectKey txn_id = 2;
}
message ListVirtioBlkRequest {
diff --git a/storage/v1alpha1/frontend_virtio_scsi.proto b/storage/v1alpha1/frontend_virtio_scsi.proto
index b8c9190a..06ac2709 100755
--- a/storage/v1alpha1/frontend_virtio_scsi.proto
+++ b/storage/v1alpha1/frontend_virtio_scsi.proto
@@ -130,14 +130,20 @@ message VirtioScsiLun {
message CreateVirtioScsiTargetRequest {
VirtioScsiTarget target = 1;
+
+ common.v1.ObjectKey txn_id = 2;
}
message DeleteVirtioScsiTargetRequest {
common.v1.ObjectKey target_id = 1;
+
+ common.v1.ObjectKey txn_id = 2;
}
message UpdateVirtioScsiTargetRequest {
VirtioScsiTarget target = 1;
+
+ common.v1.ObjectKey txn_id = 2;
}
message ListVirtioScsiTargetRequest {
@@ -165,14 +171,20 @@ message VirtioScsiTargetStatsResponse {
message CreateVirtioScsiControllerRequest {
VirtioScsiController controller = 1;
+
+ common.v1.ObjectKey txn_id = 2;
}
message DeleteVirtioScsiControllerRequest {
common.v1.ObjectKey controller_id = 1;
+
+ common.v1.ObjectKey txn_id = 2;
}
message UpdateVirtioScsiControllerRequest {
VirtioScsiController controller = 1;
+
+ common.v1.ObjectKey txn_id = 2;
}
message ListVirtioScsiControllerRequest {
@@ -200,15 +212,21 @@ message VirtioScsiControllerStatsResponse {
message CreateVirtioScsiLunRequest {
VirtioScsiLun lun = 1;
+
+ common.v1.ObjectKey txn_id = 2;
}
message DeleteVirtioScsiLunRequest {
common.v1.ObjectKey controller_id = 1;
common.v1.ObjectKey lun_id = 2;
+
+ common.v1.ObjectKey txn_id = 3;
}
message UpdateVirtioScsiLunRequest {
VirtioScsiLun lun = 1;
+
+ common.v1.ObjectKey txn_id = 2;
}
message ListVirtioScsiLunRequest {
diff --git a/storage/v1alpha1/gen/cpp/backend_aio.pb.cc b/storage/v1alpha1/gen/cpp/backend_aio.pb.cc
index 539cae42..02986822 100644
--- a/storage/v1alpha1/gen/cpp/backend_aio.pb.cc
+++ b/storage/v1alpha1/gen/cpp/backend_aio.pb.cc
@@ -37,7 +37,8 @@ struct AioControllerDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AioControllerDefaultTypeInternal _AioController_default_instance_;
constexpr AioControllerCreateRequest::AioControllerCreateRequest(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : device_(nullptr){}
+ : device_(nullptr)
+ , txn_id_(nullptr){}
struct AioControllerCreateRequestDefaultTypeInternal {
constexpr AioControllerCreateRequestDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
@@ -49,7 +50,8 @@ struct AioControllerCreateRequestDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AioControllerCreateRequestDefaultTypeInternal _AioControllerCreateRequest_default_instance_;
constexpr AioControllerDeleteRequest::AioControllerDeleteRequest(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : handle_(nullptr){}
+ : handle_(nullptr)
+ , txn_id_(nullptr){}
struct AioControllerDeleteRequestDefaultTypeInternal {
constexpr AioControllerDeleteRequestDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
@@ -61,7 +63,8 @@ struct AioControllerDeleteRequestDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AioControllerDeleteRequestDefaultTypeInternal _AioControllerDeleteRequest_default_instance_;
constexpr AioControllerUpdateRequest::AioControllerUpdateRequest(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : device_(nullptr){}
+ : device_(nullptr)
+ , txn_id_(nullptr){}
struct AioControllerUpdateRequestDefaultTypeInternal {
constexpr AioControllerUpdateRequestDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
@@ -169,6 +172,7 @@ const uint32_t TableStruct_backend_5faio_2eproto::offsets[] PROTOBUF_SECTION_VAR
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::AioControllerCreateRequest, device_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::AioControllerCreateRequest, txn_id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::AioControllerDeleteRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -176,6 +180,7 @@ const uint32_t TableStruct_backend_5faio_2eproto::offsets[] PROTOBUF_SECTION_VAR
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::AioControllerDeleteRequest, handle_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::AioControllerDeleteRequest, txn_id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::AioControllerUpdateRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -183,6 +188,7 @@ const uint32_t TableStruct_backend_5faio_2eproto::offsets[] PROTOBUF_SECTION_VAR
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::AioControllerUpdateRequest, device_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::AioControllerUpdateRequest, txn_id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::AioControllerList, _internal_metadata_),
~0u, // no _extensions_
@@ -229,14 +235,14 @@ const uint32_t TableStruct_backend_5faio_2eproto::offsets[] PROTOBUF_SECTION_VAR
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::opi_api::storage::v1::AioController)},
{ 11, -1, -1, sizeof(::opi_api::storage::v1::AioControllerCreateRequest)},
- { 18, -1, -1, sizeof(::opi_api::storage::v1::AioControllerDeleteRequest)},
- { 25, -1, -1, sizeof(::opi_api::storage::v1::AioControllerUpdateRequest)},
- { 32, -1, -1, sizeof(::opi_api::storage::v1::AioControllerList)},
- { 39, -1, -1, sizeof(::opi_api::storage::v1::AioControllerGetRequest)},
- { 46, -1, -1, sizeof(::opi_api::storage::v1::AioControllerGetListRequest)},
- { 52, -1, -1, sizeof(::opi_api::storage::v1::AioControllerGetStatsRequest)},
- { 59, -1, -1, sizeof(::opi_api::storage::v1::AioControllerStatsRequest)},
- { 66, -1, -1, sizeof(::opi_api::storage::v1::AioControllerStats)},
+ { 19, -1, -1, sizeof(::opi_api::storage::v1::AioControllerDeleteRequest)},
+ { 27, -1, -1, sizeof(::opi_api::storage::v1::AioControllerUpdateRequest)},
+ { 35, -1, -1, sizeof(::opi_api::storage::v1::AioControllerList)},
+ { 42, -1, -1, sizeof(::opi_api::storage::v1::AioControllerGetRequest)},
+ { 49, -1, -1, sizeof(::opi_api::storage::v1::AioControllerGetListRequest)},
+ { 55, -1, -1, sizeof(::opi_api::storage::v1::AioControllerGetStatsRequest)},
+ { 62, -1, -1, sizeof(::opi_api::storage::v1::AioControllerStatsRequest)},
+ { 69, -1, -1, sizeof(::opi_api::storage::v1::AioControllerStats)},
};
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
@@ -259,43 +265,46 @@ const char descriptor_table_protodef_backend_5faio_2eproto[] PROTOBUF_SECTION_VA
"handle\030\001 \001(\0132\034.opi_api.common.v1.ObjectK"
"ey\022\022\n\nblock_size\030\002 \001(\003\022\024\n\014blocks_count\030\003"
" \001(\003\022%\n\004uuid\030\004 \001(\0132\027.opi_api.common.v1.U"
- "uid\022\020\n\010filename\030\005 \001(\t\"O\n\032AioControllerCr"
+ "uid\022\020\n\010filename\030\005 \001(\t\"}\n\032AioControllerCr"
"eateRequest\0221\n\006device\030\001 \001(\0132!.opi_api.st"
- "orage.v1.AioController\"J\n\032AioControllerD"
- "eleteRequest\022,\n\006handle\030\001 \001(\0132\034.opi_api.c"
- "ommon.v1.ObjectKey\"O\n\032AioControllerUpdat"
- "eRequest\0221\n\006device\030\001 \001(\0132!.opi_api.stora"
- "ge.v1.AioController\"F\n\021AioControllerList"
- "\0221\n\006device\030\001 \003(\0132!.opi_api.storage.v1.Ai"
- "oController\"G\n\027AioControllerGetRequest\022,"
- "\n\006handle\030\001 \001(\0132\034.opi_api.common.v1.Objec"
- "tKey\"\035\n\033AioControllerGetListRequest\"L\n\034A"
- "ioControllerGetStatsRequest\022,\n\006handle\030\001 "
- "\001(\0132\034.opi_api.common.v1.ObjectKey\"I\n\031Aio"
- "ControllerStatsRequest\022,\n\006handle\030\001 \001(\0132\034"
- ".opi_api.common.v1.ObjectKey\"Q\n\022AioContr"
- "ollerStats\022,\n\006handle\030\001 \001(\0132\034.opi_api.com"
- "mon.v1.ObjectKey\022\r\n\005stats\030\002 \001(\t2\234\005\n\024AioC"
- "ontrollerService\022j\n\023AioControllerCreate\022"
- "..opi_api.storage.v1.AioControllerCreate"
- "Request\032!.opi_api.storage.v1.AioControll"
- "er\"\000\022_\n\023AioControllerDelete\022..opi_api.st"
- "orage.v1.AioControllerDeleteRequest\032\026.go"
- "ogle.protobuf.Empty\"\000\022d\n\020AioControllerGe"
- "t\022+.opi_api.storage.v1.AioControllerGetR"
- "equest\032!.opi_api.storage.v1.AioControlle"
- "r\"\000\022p\n\024AioControllerGetList\022/.opi_api.st"
- "orage.v1.AioControllerGetListRequest\032%.o"
- "pi_api.storage.v1.AioControllerList\"\000\022s\n"
- "\025AioControllerGetStats\0220.opi_api.storage"
- ".v1.AioControllerGetStatsRequest\032&.opi_a"
- "pi.storage.v1.AioControllerStats\"\000\022j\n\023Ai"
- "oControllerUpdate\022..opi_api.storage.v1.A"
- "ioControllerUpdateRequest\032!.opi_api.stor"
- "age.v1.AioController\"\000B^\n\022opi_api.storag"
- "e.v1B\017BackendAioProtoP\001Z5github.com/opip"
- "roject/opi-api/storage/v1alpha1/gen/gob\006"
- "proto3"
+ "orage.v1.AioController\022,\n\006txn_id\030\002 \001(\0132\034"
+ ".opi_api.common.v1.ObjectKey\"x\n\032AioContr"
+ "ollerDeleteRequest\022,\n\006handle\030\001 \001(\0132\034.opi"
+ "_api.common.v1.ObjectKey\022,\n\006txn_id\030\002 \001(\013"
+ "2\034.opi_api.common.v1.ObjectKey\"}\n\032AioCon"
+ "trollerUpdateRequest\0221\n\006device\030\001 \001(\0132!.o"
+ "pi_api.storage.v1.AioController\022,\n\006txn_i"
+ "d\030\002 \001(\0132\034.opi_api.common.v1.ObjectKey\"F\n"
+ "\021AioControllerList\0221\n\006device\030\001 \003(\0132!.opi"
+ "_api.storage.v1.AioController\"G\n\027AioCont"
+ "rollerGetRequest\022,\n\006handle\030\001 \001(\0132\034.opi_a"
+ "pi.common.v1.ObjectKey\"\035\n\033AioControllerG"
+ "etListRequest\"L\n\034AioControllerGetStatsRe"
+ "quest\022,\n\006handle\030\001 \001(\0132\034.opi_api.common.v"
+ "1.ObjectKey\"I\n\031AioControllerStatsRequest"
+ "\022,\n\006handle\030\001 \001(\0132\034.opi_api.common.v1.Obj"
+ "ectKey\"Q\n\022AioControllerStats\022,\n\006handle\030\001"
+ " \001(\0132\034.opi_api.common.v1.ObjectKey\022\r\n\005st"
+ "ats\030\002 \001(\t2\234\005\n\024AioControllerService\022j\n\023Ai"
+ "oControllerCreate\022..opi_api.storage.v1.A"
+ "ioControllerCreateRequest\032!.opi_api.stor"
+ "age.v1.AioController\"\000\022_\n\023AioControllerD"
+ "elete\022..opi_api.storage.v1.AioController"
+ "DeleteRequest\032\026.google.protobuf.Empty\"\000\022"
+ "d\n\020AioControllerGet\022+.opi_api.storage.v1"
+ ".AioControllerGetRequest\032!.opi_api.stora"
+ "ge.v1.AioController\"\000\022p\n\024AioControllerGe"
+ "tList\022/.opi_api.storage.v1.AioController"
+ "GetListRequest\032%.opi_api.storage.v1.AioC"
+ "ontrollerList\"\000\022s\n\025AioControllerGetStats"
+ "\0220.opi_api.storage.v1.AioControllerGetSt"
+ "atsRequest\032&.opi_api.storage.v1.AioContr"
+ "ollerStats\"\000\022j\n\023AioControllerUpdate\022..op"
+ "i_api.storage.v1.AioControllerUpdateRequ"
+ "est\032!.opi_api.storage.v1.AioController\"\000"
+ "B^\n\022opi_api.storage.v1B\017BackendAioProtoP"
+ "\001Z5github.com/opiproject/opi-api/storage"
+ "/v1alpha1/gen/gob\006proto3"
;
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_backend_5faio_2eproto_deps[3] = {
&::descriptor_table_google_2fprotobuf_2fempty_2eproto,
@@ -304,7 +313,7 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor
};
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_backend_5faio_2eproto_once;
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_backend_5faio_2eproto = {
- false, false, 1686, descriptor_table_protodef_backend_5faio_2eproto, "backend_aio.proto",
+ false, false, 1824, descriptor_table_protodef_backend_5faio_2eproto, "backend_aio.proto",
&descriptor_table_backend_5faio_2eproto_once, descriptor_table_backend_5faio_2eproto_deps, 3, 10,
schemas, file_default_instances, TableStruct_backend_5faio_2eproto::offsets,
file_level_metadata_backend_5faio_2eproto, file_level_enum_descriptors_backend_5faio_2eproto, file_level_service_descriptors_backend_5faio_2eproto,
@@ -681,12 +690,23 @@ ::PROTOBUF_NAMESPACE_ID::Metadata AioController::GetMetadata() const {
class AioControllerCreateRequest::_Internal {
public:
static const ::opi_api::storage::v1::AioController& device(const AioControllerCreateRequest* msg);
+ static const ::opi_api::common::v1::ObjectKey& txn_id(const AioControllerCreateRequest* msg);
};
const ::opi_api::storage::v1::AioController&
AioControllerCreateRequest::_Internal::device(const AioControllerCreateRequest* msg) {
return *msg->device_;
}
+const ::opi_api::common::v1::ObjectKey&
+AioControllerCreateRequest::_Internal::txn_id(const AioControllerCreateRequest* msg) {
+ return *msg->txn_id_;
+}
+void AioControllerCreateRequest::clear_txn_id() {
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
+}
AioControllerCreateRequest::AioControllerCreateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -704,11 +724,19 @@ AioControllerCreateRequest::AioControllerCreateRequest(const AioControllerCreate
} else {
device_ = nullptr;
}
+ if (from._internal_has_txn_id()) {
+ txn_id_ = new ::opi_api::common::v1::ObjectKey(*from.txn_id_);
+ } else {
+ txn_id_ = nullptr;
+ }
// @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.AioControllerCreateRequest)
}
inline void AioControllerCreateRequest::SharedCtor() {
-device_ = nullptr;
+::memset(reinterpret_cast(this) + static_cast(
+ reinterpret_cast(&device_) - reinterpret_cast(this)),
+ 0, static_cast(reinterpret_cast(&txn_id_) -
+ reinterpret_cast(&device_)) + sizeof(txn_id_));
}
AioControllerCreateRequest::~AioControllerCreateRequest() {
@@ -721,6 +749,7 @@ AioControllerCreateRequest::~AioControllerCreateRequest() {
inline void AioControllerCreateRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete device_;
+ if (this != internal_default_instance()) delete txn_id_;
}
void AioControllerCreateRequest::ArenaDtor(void* object) {
@@ -743,6 +772,10 @@ void AioControllerCreateRequest::Clear() {
delete device_;
}
device_ = nullptr;
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -760,6 +793,14 @@ const char* AioControllerCreateRequest::_InternalParse(const char* ptr, ::PROTOB
} else
goto handle_unusual;
continue;
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_txn_id(), ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
default:
goto handle_unusual;
} // switch
@@ -797,6 +838,14 @@ uint8_t* AioControllerCreateRequest::_InternalSerialize(
1, _Internal::device(this), target, stream);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::txn_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);
@@ -820,6 +869,13 @@ size_t AioControllerCreateRequest::ByteSizeLong() const {
*device_);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *txn_id_);
+ }
+
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
@@ -845,6 +901,9 @@ void AioControllerCreateRequest::MergeFrom(const AioControllerCreateRequest& fro
if (from._internal_has_device()) {
_internal_mutable_device()->::opi_api::storage::v1::AioController::MergeFrom(from._internal_device());
}
+ if (from._internal_has_txn_id()) {
+ _internal_mutable_txn_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_txn_id());
+ }
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -862,7 +921,12 @@ bool AioControllerCreateRequest::IsInitialized() const {
void AioControllerCreateRequest::InternalSwap(AioControllerCreateRequest* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(device_, other->device_);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(AioControllerCreateRequest, txn_id_)
+ + sizeof(AioControllerCreateRequest::txn_id_)
+ - PROTOBUF_FIELD_OFFSET(AioControllerCreateRequest, device_)>(
+ reinterpret_cast(&device_),
+ reinterpret_cast(&other->device_));
}
::PROTOBUF_NAMESPACE_ID::Metadata AioControllerCreateRequest::GetMetadata() const {
@@ -876,18 +940,29 @@ ::PROTOBUF_NAMESPACE_ID::Metadata AioControllerCreateRequest::GetMetadata() cons
class AioControllerDeleteRequest::_Internal {
public:
static const ::opi_api::common::v1::ObjectKey& handle(const AioControllerDeleteRequest* msg);
+ static const ::opi_api::common::v1::ObjectKey& txn_id(const AioControllerDeleteRequest* msg);
};
const ::opi_api::common::v1::ObjectKey&
AioControllerDeleteRequest::_Internal::handle(const AioControllerDeleteRequest* msg) {
return *msg->handle_;
}
+const ::opi_api::common::v1::ObjectKey&
+AioControllerDeleteRequest::_Internal::txn_id(const AioControllerDeleteRequest* msg) {
+ return *msg->txn_id_;
+}
void AioControllerDeleteRequest::clear_handle() {
if (GetArenaForAllocation() == nullptr && handle_ != nullptr) {
delete handle_;
}
handle_ = nullptr;
}
+void AioControllerDeleteRequest::clear_txn_id() {
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
+}
AioControllerDeleteRequest::AioControllerDeleteRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -905,11 +980,19 @@ AioControllerDeleteRequest::AioControllerDeleteRequest(const AioControllerDelete
} else {
handle_ = nullptr;
}
+ if (from._internal_has_txn_id()) {
+ txn_id_ = new ::opi_api::common::v1::ObjectKey(*from.txn_id_);
+ } else {
+ txn_id_ = nullptr;
+ }
// @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.AioControllerDeleteRequest)
}
inline void AioControllerDeleteRequest::SharedCtor() {
-handle_ = nullptr;
+::memset(reinterpret_cast(this) + static_cast(
+ reinterpret_cast(&handle_) - reinterpret_cast(this)),
+ 0, static_cast(reinterpret_cast(&txn_id_) -
+ reinterpret_cast(&handle_)) + sizeof(txn_id_));
}
AioControllerDeleteRequest::~AioControllerDeleteRequest() {
@@ -922,6 +1005,7 @@ AioControllerDeleteRequest::~AioControllerDeleteRequest() {
inline void AioControllerDeleteRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete handle_;
+ if (this != internal_default_instance()) delete txn_id_;
}
void AioControllerDeleteRequest::ArenaDtor(void* object) {
@@ -944,6 +1028,10 @@ void AioControllerDeleteRequest::Clear() {
delete handle_;
}
handle_ = nullptr;
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -961,6 +1049,14 @@ const char* AioControllerDeleteRequest::_InternalParse(const char* ptr, ::PROTOB
} else
goto handle_unusual;
continue;
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_txn_id(), ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
default:
goto handle_unusual;
} // switch
@@ -998,6 +1094,14 @@ uint8_t* AioControllerDeleteRequest::_InternalSerialize(
1, _Internal::handle(this), target, stream);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::txn_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);
@@ -1021,6 +1125,13 @@ size_t AioControllerDeleteRequest::ByteSizeLong() const {
*handle_);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *txn_id_);
+ }
+
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
@@ -1046,6 +1157,9 @@ void AioControllerDeleteRequest::MergeFrom(const AioControllerDeleteRequest& fro
if (from._internal_has_handle()) {
_internal_mutable_handle()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_handle());
}
+ if (from._internal_has_txn_id()) {
+ _internal_mutable_txn_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_txn_id());
+ }
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -1063,7 +1177,12 @@ bool AioControllerDeleteRequest::IsInitialized() const {
void AioControllerDeleteRequest::InternalSwap(AioControllerDeleteRequest* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(handle_, other->handle_);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(AioControllerDeleteRequest, txn_id_)
+ + sizeof(AioControllerDeleteRequest::txn_id_)
+ - PROTOBUF_FIELD_OFFSET(AioControllerDeleteRequest, handle_)>(
+ reinterpret_cast(&handle_),
+ reinterpret_cast(&other->handle_));
}
::PROTOBUF_NAMESPACE_ID::Metadata AioControllerDeleteRequest::GetMetadata() const {
@@ -1077,12 +1196,23 @@ ::PROTOBUF_NAMESPACE_ID::Metadata AioControllerDeleteRequest::GetMetadata() cons
class AioControllerUpdateRequest::_Internal {
public:
static const ::opi_api::storage::v1::AioController& device(const AioControllerUpdateRequest* msg);
+ static const ::opi_api::common::v1::ObjectKey& txn_id(const AioControllerUpdateRequest* msg);
};
const ::opi_api::storage::v1::AioController&
AioControllerUpdateRequest::_Internal::device(const AioControllerUpdateRequest* msg) {
return *msg->device_;
}
+const ::opi_api::common::v1::ObjectKey&
+AioControllerUpdateRequest::_Internal::txn_id(const AioControllerUpdateRequest* msg) {
+ return *msg->txn_id_;
+}
+void AioControllerUpdateRequest::clear_txn_id() {
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
+}
AioControllerUpdateRequest::AioControllerUpdateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -1100,11 +1230,19 @@ AioControllerUpdateRequest::AioControllerUpdateRequest(const AioControllerUpdate
} else {
device_ = nullptr;
}
+ if (from._internal_has_txn_id()) {
+ txn_id_ = new ::opi_api::common::v1::ObjectKey(*from.txn_id_);
+ } else {
+ txn_id_ = nullptr;
+ }
// @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.AioControllerUpdateRequest)
}
inline void AioControllerUpdateRequest::SharedCtor() {
-device_ = nullptr;
+::memset(reinterpret_cast(this) + static_cast(
+ reinterpret_cast(&device_) - reinterpret_cast(this)),
+ 0, static_cast(reinterpret_cast(&txn_id_) -
+ reinterpret_cast(&device_)) + sizeof(txn_id_));
}
AioControllerUpdateRequest::~AioControllerUpdateRequest() {
@@ -1117,6 +1255,7 @@ AioControllerUpdateRequest::~AioControllerUpdateRequest() {
inline void AioControllerUpdateRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete device_;
+ if (this != internal_default_instance()) delete txn_id_;
}
void AioControllerUpdateRequest::ArenaDtor(void* object) {
@@ -1139,6 +1278,10 @@ void AioControllerUpdateRequest::Clear() {
delete device_;
}
device_ = nullptr;
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -1156,6 +1299,14 @@ const char* AioControllerUpdateRequest::_InternalParse(const char* ptr, ::PROTOB
} else
goto handle_unusual;
continue;
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_txn_id(), ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
default:
goto handle_unusual;
} // switch
@@ -1193,6 +1344,14 @@ uint8_t* AioControllerUpdateRequest::_InternalSerialize(
1, _Internal::device(this), target, stream);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::txn_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);
@@ -1216,6 +1375,13 @@ size_t AioControllerUpdateRequest::ByteSizeLong() const {
*device_);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *txn_id_);
+ }
+
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
@@ -1241,6 +1407,9 @@ void AioControllerUpdateRequest::MergeFrom(const AioControllerUpdateRequest& fro
if (from._internal_has_device()) {
_internal_mutable_device()->::opi_api::storage::v1::AioController::MergeFrom(from._internal_device());
}
+ if (from._internal_has_txn_id()) {
+ _internal_mutable_txn_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_txn_id());
+ }
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -1258,7 +1427,12 @@ bool AioControllerUpdateRequest::IsInitialized() const {
void AioControllerUpdateRequest::InternalSwap(AioControllerUpdateRequest* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(device_, other->device_);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(AioControllerUpdateRequest, txn_id_)
+ + sizeof(AioControllerUpdateRequest::txn_id_)
+ - PROTOBUF_FIELD_OFFSET(AioControllerUpdateRequest, device_)>(
+ reinterpret_cast(&device_),
+ reinterpret_cast(&other->device_));
}
::PROTOBUF_NAMESPACE_ID::Metadata AioControllerUpdateRequest::GetMetadata() const {
diff --git a/storage/v1alpha1/gen/cpp/backend_aio.pb.h b/storage/v1alpha1/gen/cpp/backend_aio.pb.h
index 86f33a4f..f696b0ad 100644
--- a/storage/v1alpha1/gen/cpp/backend_aio.pb.h
+++ b/storage/v1alpha1/gen/cpp/backend_aio.pb.h
@@ -447,6 +447,7 @@ class AioControllerCreateRequest final :
enum : int {
kDeviceFieldNumber = 1,
+ kTxnIdFieldNumber = 2,
};
// .opi_api.storage.v1.AioController device = 1;
bool has_device() const;
@@ -466,6 +467,24 @@ class AioControllerCreateRequest final :
::opi_api::storage::v1::AioController* device);
::opi_api::storage::v1::AioController* unsafe_arena_release_device();
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ bool has_txn_id() const;
+ private:
+ bool _internal_has_txn_id() const;
+ public:
+ void clear_txn_id();
+ const ::opi_api::common::v1::ObjectKey& txn_id() const;
+ PROTOBUF_NODISCARD ::opi_api::common::v1::ObjectKey* release_txn_id();
+ ::opi_api::common::v1::ObjectKey* mutable_txn_id();
+ void set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id);
+ private:
+ const ::opi_api::common::v1::ObjectKey& _internal_txn_id() const;
+ ::opi_api::common::v1::ObjectKey* _internal_mutable_txn_id();
+ public:
+ void unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id);
+ ::opi_api::common::v1::ObjectKey* unsafe_arena_release_txn_id();
+
// @@protoc_insertion_point(class_scope:opi_api.storage.v1.AioControllerCreateRequest)
private:
class _Internal;
@@ -474,6 +493,7 @@ class AioControllerCreateRequest final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::opi_api::storage::v1::AioController* device_;
+ ::opi_api::common::v1::ObjectKey* txn_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_backend_5faio_2eproto;
};
@@ -602,6 +622,7 @@ class AioControllerDeleteRequest final :
enum : int {
kHandleFieldNumber = 1,
+ kTxnIdFieldNumber = 2,
};
// .opi_api.common.v1.ObjectKey handle = 1;
bool has_handle() const;
@@ -621,6 +642,24 @@ class AioControllerDeleteRequest final :
::opi_api::common::v1::ObjectKey* handle);
::opi_api::common::v1::ObjectKey* unsafe_arena_release_handle();
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ bool has_txn_id() const;
+ private:
+ bool _internal_has_txn_id() const;
+ public:
+ void clear_txn_id();
+ const ::opi_api::common::v1::ObjectKey& txn_id() const;
+ PROTOBUF_NODISCARD ::opi_api::common::v1::ObjectKey* release_txn_id();
+ ::opi_api::common::v1::ObjectKey* mutable_txn_id();
+ void set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id);
+ private:
+ const ::opi_api::common::v1::ObjectKey& _internal_txn_id() const;
+ ::opi_api::common::v1::ObjectKey* _internal_mutable_txn_id();
+ public:
+ void unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id);
+ ::opi_api::common::v1::ObjectKey* unsafe_arena_release_txn_id();
+
// @@protoc_insertion_point(class_scope:opi_api.storage.v1.AioControllerDeleteRequest)
private:
class _Internal;
@@ -629,6 +668,7 @@ class AioControllerDeleteRequest final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::opi_api::common::v1::ObjectKey* handle_;
+ ::opi_api::common::v1::ObjectKey* txn_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_backend_5faio_2eproto;
};
@@ -757,6 +797,7 @@ class AioControllerUpdateRequest final :
enum : int {
kDeviceFieldNumber = 1,
+ kTxnIdFieldNumber = 2,
};
// .opi_api.storage.v1.AioController device = 1;
bool has_device() const;
@@ -776,6 +817,24 @@ class AioControllerUpdateRequest final :
::opi_api::storage::v1::AioController* device);
::opi_api::storage::v1::AioController* unsafe_arena_release_device();
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ bool has_txn_id() const;
+ private:
+ bool _internal_has_txn_id() const;
+ public:
+ void clear_txn_id();
+ const ::opi_api::common::v1::ObjectKey& txn_id() const;
+ PROTOBUF_NODISCARD ::opi_api::common::v1::ObjectKey* release_txn_id();
+ ::opi_api::common::v1::ObjectKey* mutable_txn_id();
+ void set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id);
+ private:
+ const ::opi_api::common::v1::ObjectKey& _internal_txn_id() const;
+ ::opi_api::common::v1::ObjectKey* _internal_mutable_txn_id();
+ public:
+ void unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id);
+ ::opi_api::common::v1::ObjectKey* unsafe_arena_release_txn_id();
+
// @@protoc_insertion_point(class_scope:opi_api.storage.v1.AioControllerUpdateRequest)
private:
class _Internal;
@@ -784,6 +843,7 @@ class AioControllerUpdateRequest final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::opi_api::storage::v1::AioController* device_;
+ ::opi_api::common::v1::ObjectKey* txn_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_backend_5faio_2eproto;
};
@@ -2064,6 +2124,92 @@ inline void AioControllerCreateRequest::set_allocated_device(::opi_api::storage:
// @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.AioControllerCreateRequest.device)
}
+// .opi_api.common.v1.ObjectKey txn_id = 2;
+inline bool AioControllerCreateRequest::_internal_has_txn_id() const {
+ return this != internal_default_instance() && txn_id_ != nullptr;
+}
+inline bool AioControllerCreateRequest::has_txn_id() const {
+ return _internal_has_txn_id();
+}
+inline const ::opi_api::common::v1::ObjectKey& AioControllerCreateRequest::_internal_txn_id() const {
+ const ::opi_api::common::v1::ObjectKey* p = txn_id_;
+ return p != nullptr ? *p : reinterpret_cast(
+ ::opi_api::common::v1::_ObjectKey_default_instance_);
+}
+inline const ::opi_api::common::v1::ObjectKey& AioControllerCreateRequest::txn_id() const {
+ // @@protoc_insertion_point(field_get:opi_api.storage.v1.AioControllerCreateRequest.txn_id)
+ return _internal_txn_id();
+}
+inline void AioControllerCreateRequest::unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id) {
+ if (GetArenaForAllocation() == nullptr) {
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ txn_id_ = txn_id;
+ if (txn_id) {
+
+ } else {
+
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.storage.v1.AioControllerCreateRequest.txn_id)
+}
+inline ::opi_api::common::v1::ObjectKey* AioControllerCreateRequest::release_txn_id() {
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_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* AioControllerCreateRequest::unsafe_arena_release_txn_id() {
+ // @@protoc_insertion_point(field_release:opi_api.storage.v1.AioControllerCreateRequest.txn_id)
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_id_ = nullptr;
+ return temp;
+}
+inline ::opi_api::common::v1::ObjectKey* AioControllerCreateRequest::_internal_mutable_txn_id() {
+
+ if (txn_id_ == nullptr) {
+ auto* p = CreateMaybeMessage<::opi_api::common::v1::ObjectKey>(GetArenaForAllocation());
+ txn_id_ = p;
+ }
+ return txn_id_;
+}
+inline ::opi_api::common::v1::ObjectKey* AioControllerCreateRequest::mutable_txn_id() {
+ ::opi_api::common::v1::ObjectKey* _msg = _internal_mutable_txn_id();
+ // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.AioControllerCreateRequest.txn_id)
+ return _msg;
+}
+inline void AioControllerCreateRequest::set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
+ if (message_arena == nullptr) {
+ delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ if (txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
+ ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
+ reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id));
+ if (message_arena != submessage_arena) {
+ txn_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, txn_id, submessage_arena);
+ }
+
+ } else {
+
+ }
+ txn_id_ = txn_id;
+ // @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.AioControllerCreateRequest.txn_id)
+}
+
// -------------------------------------------------------------------
// AioControllerDeleteRequest
@@ -2154,6 +2300,92 @@ inline void AioControllerDeleteRequest::set_allocated_handle(::opi_api::common::
// @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.AioControllerDeleteRequest.handle)
}
+// .opi_api.common.v1.ObjectKey txn_id = 2;
+inline bool AioControllerDeleteRequest::_internal_has_txn_id() const {
+ return this != internal_default_instance() && txn_id_ != nullptr;
+}
+inline bool AioControllerDeleteRequest::has_txn_id() const {
+ return _internal_has_txn_id();
+}
+inline const ::opi_api::common::v1::ObjectKey& AioControllerDeleteRequest::_internal_txn_id() const {
+ const ::opi_api::common::v1::ObjectKey* p = txn_id_;
+ return p != nullptr ? *p : reinterpret_cast(
+ ::opi_api::common::v1::_ObjectKey_default_instance_);
+}
+inline const ::opi_api::common::v1::ObjectKey& AioControllerDeleteRequest::txn_id() const {
+ // @@protoc_insertion_point(field_get:opi_api.storage.v1.AioControllerDeleteRequest.txn_id)
+ return _internal_txn_id();
+}
+inline void AioControllerDeleteRequest::unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id) {
+ if (GetArenaForAllocation() == nullptr) {
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ txn_id_ = txn_id;
+ if (txn_id) {
+
+ } else {
+
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.storage.v1.AioControllerDeleteRequest.txn_id)
+}
+inline ::opi_api::common::v1::ObjectKey* AioControllerDeleteRequest::release_txn_id() {
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_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* AioControllerDeleteRequest::unsafe_arena_release_txn_id() {
+ // @@protoc_insertion_point(field_release:opi_api.storage.v1.AioControllerDeleteRequest.txn_id)
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_id_ = nullptr;
+ return temp;
+}
+inline ::opi_api::common::v1::ObjectKey* AioControllerDeleteRequest::_internal_mutable_txn_id() {
+
+ if (txn_id_ == nullptr) {
+ auto* p = CreateMaybeMessage<::opi_api::common::v1::ObjectKey>(GetArenaForAllocation());
+ txn_id_ = p;
+ }
+ return txn_id_;
+}
+inline ::opi_api::common::v1::ObjectKey* AioControllerDeleteRequest::mutable_txn_id() {
+ ::opi_api::common::v1::ObjectKey* _msg = _internal_mutable_txn_id();
+ // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.AioControllerDeleteRequest.txn_id)
+ return _msg;
+}
+inline void AioControllerDeleteRequest::set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
+ if (message_arena == nullptr) {
+ delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ if (txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
+ ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
+ reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id));
+ if (message_arena != submessage_arena) {
+ txn_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, txn_id, submessage_arena);
+ }
+
+ } else {
+
+ }
+ txn_id_ = txn_id;
+ // @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.AioControllerDeleteRequest.txn_id)
+}
+
// -------------------------------------------------------------------
// AioControllerUpdateRequest
@@ -2248,6 +2480,92 @@ inline void AioControllerUpdateRequest::set_allocated_device(::opi_api::storage:
// @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.AioControllerUpdateRequest.device)
}
+// .opi_api.common.v1.ObjectKey txn_id = 2;
+inline bool AioControllerUpdateRequest::_internal_has_txn_id() const {
+ return this != internal_default_instance() && txn_id_ != nullptr;
+}
+inline bool AioControllerUpdateRequest::has_txn_id() const {
+ return _internal_has_txn_id();
+}
+inline const ::opi_api::common::v1::ObjectKey& AioControllerUpdateRequest::_internal_txn_id() const {
+ const ::opi_api::common::v1::ObjectKey* p = txn_id_;
+ return p != nullptr ? *p : reinterpret_cast(
+ ::opi_api::common::v1::_ObjectKey_default_instance_);
+}
+inline const ::opi_api::common::v1::ObjectKey& AioControllerUpdateRequest::txn_id() const {
+ // @@protoc_insertion_point(field_get:opi_api.storage.v1.AioControllerUpdateRequest.txn_id)
+ return _internal_txn_id();
+}
+inline void AioControllerUpdateRequest::unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id) {
+ if (GetArenaForAllocation() == nullptr) {
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ txn_id_ = txn_id;
+ if (txn_id) {
+
+ } else {
+
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.storage.v1.AioControllerUpdateRequest.txn_id)
+}
+inline ::opi_api::common::v1::ObjectKey* AioControllerUpdateRequest::release_txn_id() {
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_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* AioControllerUpdateRequest::unsafe_arena_release_txn_id() {
+ // @@protoc_insertion_point(field_release:opi_api.storage.v1.AioControllerUpdateRequest.txn_id)
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_id_ = nullptr;
+ return temp;
+}
+inline ::opi_api::common::v1::ObjectKey* AioControllerUpdateRequest::_internal_mutable_txn_id() {
+
+ if (txn_id_ == nullptr) {
+ auto* p = CreateMaybeMessage<::opi_api::common::v1::ObjectKey>(GetArenaForAllocation());
+ txn_id_ = p;
+ }
+ return txn_id_;
+}
+inline ::opi_api::common::v1::ObjectKey* AioControllerUpdateRequest::mutable_txn_id() {
+ ::opi_api::common::v1::ObjectKey* _msg = _internal_mutable_txn_id();
+ // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.AioControllerUpdateRequest.txn_id)
+ return _msg;
+}
+inline void AioControllerUpdateRequest::set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
+ if (message_arena == nullptr) {
+ delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ if (txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
+ ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
+ reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id));
+ if (message_arena != submessage_arena) {
+ txn_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, txn_id, submessage_arena);
+ }
+
+ } else {
+
+ }
+ txn_id_ = txn_id;
+ // @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.AioControllerUpdateRequest.txn_id)
+}
+
// -------------------------------------------------------------------
// AioControllerList
diff --git a/storage/v1alpha1/gen/cpp/backend_null.pb.cc b/storage/v1alpha1/gen/cpp/backend_null.pb.cc
index f5245c0e..2da335f0 100644
--- a/storage/v1alpha1/gen/cpp/backend_null.pb.cc
+++ b/storage/v1alpha1/gen/cpp/backend_null.pb.cc
@@ -36,7 +36,8 @@ struct NullDebugDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT NullDebugDefaultTypeInternal _NullDebug_default_instance_;
constexpr NullDebugCreateRequest::NullDebugCreateRequest(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : device_(nullptr){}
+ : device_(nullptr)
+ , txn_id_(nullptr){}
struct NullDebugCreateRequestDefaultTypeInternal {
constexpr NullDebugCreateRequestDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
@@ -48,7 +49,8 @@ struct NullDebugCreateRequestDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT NullDebugCreateRequestDefaultTypeInternal _NullDebugCreateRequest_default_instance_;
constexpr NullDebugDeleteRequest::NullDebugDeleteRequest(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : handle_(nullptr){}
+ : handle_(nullptr)
+ , txn_id_(nullptr){}
struct NullDebugDeleteRequestDefaultTypeInternal {
constexpr NullDebugDeleteRequestDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
@@ -60,7 +62,8 @@ struct NullDebugDeleteRequestDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT NullDebugDeleteRequestDefaultTypeInternal _NullDebugDeleteRequest_default_instance_;
constexpr NullDebugUpdateRequest::NullDebugUpdateRequest(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : device_(nullptr){}
+ : device_(nullptr)
+ , txn_id_(nullptr){}
struct NullDebugUpdateRequestDefaultTypeInternal {
constexpr NullDebugUpdateRequestDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
@@ -155,6 +158,7 @@ const uint32_t TableStruct_backend_5fnull_2eproto::offsets[] PROTOBUF_SECTION_VA
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::NullDebugCreateRequest, device_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::NullDebugCreateRequest, txn_id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::NullDebugDeleteRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -162,6 +166,7 @@ const uint32_t TableStruct_backend_5fnull_2eproto::offsets[] PROTOBUF_SECTION_VA
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::NullDebugDeleteRequest, handle_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::NullDebugDeleteRequest, txn_id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::NullDebugUpdateRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -169,6 +174,7 @@ const uint32_t TableStruct_backend_5fnull_2eproto::offsets[] PROTOBUF_SECTION_VA
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::NullDebugUpdateRequest, device_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::NullDebugUpdateRequest, txn_id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::NullDebugListRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -208,13 +214,13 @@ const uint32_t TableStruct_backend_5fnull_2eproto::offsets[] PROTOBUF_SECTION_VA
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::opi_api::storage::v1::NullDebug)},
{ 10, -1, -1, sizeof(::opi_api::storage::v1::NullDebugCreateRequest)},
- { 17, -1, -1, sizeof(::opi_api::storage::v1::NullDebugDeleteRequest)},
- { 24, -1, -1, sizeof(::opi_api::storage::v1::NullDebugUpdateRequest)},
- { 31, -1, -1, sizeof(::opi_api::storage::v1::NullDebugListRequest)},
- { 37, -1, -1, sizeof(::opi_api::storage::v1::NullDebugListResponse)},
- { 44, -1, -1, sizeof(::opi_api::storage::v1::NullDebugGetRequest)},
- { 51, -1, -1, sizeof(::opi_api::storage::v1::NullDebugStatsRequest)},
- { 58, -1, -1, sizeof(::opi_api::storage::v1::NullDebugStatsResponse)},
+ { 18, -1, -1, sizeof(::opi_api::storage::v1::NullDebugDeleteRequest)},
+ { 26, -1, -1, sizeof(::opi_api::storage::v1::NullDebugUpdateRequest)},
+ { 34, -1, -1, sizeof(::opi_api::storage::v1::NullDebugListRequest)},
+ { 40, -1, -1, sizeof(::opi_api::storage::v1::NullDebugListResponse)},
+ { 47, -1, -1, sizeof(::opi_api::storage::v1::NullDebugGetRequest)},
+ { 54, -1, -1, sizeof(::opi_api::storage::v1::NullDebugStatsRequest)},
+ { 61, -1, -1, sizeof(::opi_api::storage::v1::NullDebugStatsResponse)},
};
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
@@ -236,38 +242,41 @@ const char descriptor_table_protodef_backend_5fnull_2eproto[] PROTOBUF_SECTION_V
"dle\030\001 \001(\0132\034.opi_api.common.v1.ObjectKey\022"
"\022\n\nblock_size\030\002 \001(\003\022\024\n\014blocks_count\030\003 \001("
"\003\022%\n\004uuid\030\004 \001(\0132\027.opi_api.common.v1.Uuid"
- "\"G\n\026NullDebugCreateRequest\022-\n\006device\030\001 \001"
- "(\0132\035.opi_api.storage.v1.NullDebug\"F\n\026Nul"
- "lDebugDeleteRequest\022,\n\006handle\030\001 \001(\0132\034.op"
- "i_api.common.v1.ObjectKey\"G\n\026NullDebugUp"
- "dateRequest\022-\n\006device\030\001 \001(\0132\035.opi_api.st"
- "orage.v1.NullDebug\"\026\n\024NullDebugListReque"
- "st\"F\n\025NullDebugListResponse\022-\n\006device\030\001 "
- "\003(\0132\035.opi_api.storage.v1.NullDebug\"C\n\023Nu"
- "llDebugGetRequest\022,\n\006handle\030\001 \001(\0132\034.opi_"
- "api.common.v1.ObjectKey\"E\n\025NullDebugStat"
- "sRequest\022,\n\006handle\030\001 \001(\0132\034.opi_api.commo"
- "n.v1.ObjectKey\"U\n\026NullDebugStatsResponse"
- "\022,\n\006handle\030\001 \001(\0132\034.opi_api.common.v1.Obj"
- "ectKey\022\r\n\005stats\030\002 \001(\t2\330\004\n\020NullDebugServi"
- "ce\022^\n\017NullDebugCreate\022*.opi_api.storage."
- "v1.NullDebugCreateRequest\032\035.opi_api.stor"
- "age.v1.NullDebug\"\000\022W\n\017NullDebugDelete\022*."
- "opi_api.storage.v1.NullDebugDeleteReques"
- "t\032\026.google.protobuf.Empty\"\000\022^\n\017NullDebug"
- "Update\022*.opi_api.storage.v1.NullDebugUpd"
- "ateRequest\032\035.opi_api.storage.v1.NullDebu"
- "g\"\000\022f\n\rNullDebugList\022(.opi_api.storage.v"
- "1.NullDebugListRequest\032).opi_api.storage"
- ".v1.NullDebugListResponse\"\000\022X\n\014NullDebug"
- "Get\022\'.opi_api.storage.v1.NullDebugGetReq"
- "uest\032\035.opi_api.storage.v1.NullDebug\"\000\022i\n"
- "\016NullDebugStats\022).opi_api.storage.v1.Nul"
- "lDebugStatsRequest\032*.opi_api.storage.v1."
- "NullDebugStatsResponse\"\000B_\n\022opi_api.stor"
- "age.v1B\020BackendNullProtoP\001Z5github.com/o"
- "piproject/opi-api/storage/v1alpha1/gen/g"
- "ob\006proto3"
+ "\"u\n\026NullDebugCreateRequest\022-\n\006device\030\001 \001"
+ "(\0132\035.opi_api.storage.v1.NullDebug\022,\n\006txn"
+ "_id\030\002 \001(\0132\034.opi_api.common.v1.ObjectKey\""
+ "t\n\026NullDebugDeleteRequest\022,\n\006handle\030\001 \001("
+ "\0132\034.opi_api.common.v1.ObjectKey\022,\n\006txn_i"
+ "d\030\002 \001(\0132\034.opi_api.common.v1.ObjectKey\"u\n"
+ "\026NullDebugUpdateRequest\022-\n\006device\030\001 \001(\0132"
+ "\035.opi_api.storage.v1.NullDebug\022,\n\006txn_id"
+ "\030\002 \001(\0132\034.opi_api.common.v1.ObjectKey\"\026\n\024"
+ "NullDebugListRequest\"F\n\025NullDebugListRes"
+ "ponse\022-\n\006device\030\001 \003(\0132\035.opi_api.storage."
+ "v1.NullDebug\"C\n\023NullDebugGetRequest\022,\n\006h"
+ "andle\030\001 \001(\0132\034.opi_api.common.v1.ObjectKe"
+ "y\"E\n\025NullDebugStatsRequest\022,\n\006handle\030\001 \001"
+ "(\0132\034.opi_api.common.v1.ObjectKey\"U\n\026Null"
+ "DebugStatsResponse\022,\n\006handle\030\001 \001(\0132\034.opi"
+ "_api.common.v1.ObjectKey\022\r\n\005stats\030\002 \001(\t2"
+ "\330\004\n\020NullDebugService\022^\n\017NullDebugCreate\022"
+ "*.opi_api.storage.v1.NullDebugCreateRequ"
+ "est\032\035.opi_api.storage.v1.NullDebug\"\000\022W\n\017"
+ "NullDebugDelete\022*.opi_api.storage.v1.Nul"
+ "lDebugDeleteRequest\032\026.google.protobuf.Em"
+ "pty\"\000\022^\n\017NullDebugUpdate\022*.opi_api.stora"
+ "ge.v1.NullDebugUpdateRequest\032\035.opi_api.s"
+ "torage.v1.NullDebug\"\000\022f\n\rNullDebugList\022("
+ ".opi_api.storage.v1.NullDebugListRequest"
+ "\032).opi_api.storage.v1.NullDebugListRespo"
+ "nse\"\000\022X\n\014NullDebugGet\022\'.opi_api.storage."
+ "v1.NullDebugGetRequest\032\035.opi_api.storage"
+ ".v1.NullDebug\"\000\022i\n\016NullDebugStats\022).opi_"
+ "api.storage.v1.NullDebugStatsRequest\032*.o"
+ "pi_api.storage.v1.NullDebugStatsResponse"
+ "\"\000B_\n\022opi_api.storage.v1B\020BackendNullPro"
+ "toP\001Z5github.com/opiproject/opi-api/stor"
+ "age/v1alpha1/gen/gob\006proto3"
;
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_backend_5fnull_2eproto_deps[3] = {
&::descriptor_table_google_2fprotobuf_2fempty_2eproto,
@@ -276,7 +285,7 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor
};
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_backend_5fnull_2eproto_once;
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_backend_5fnull_2eproto = {
- false, false, 1489, descriptor_table_protodef_backend_5fnull_2eproto, "backend_null.proto",
+ false, false, 1627, descriptor_table_protodef_backend_5fnull_2eproto, "backend_null.proto",
&descriptor_table_backend_5fnull_2eproto_once, descriptor_table_backend_5fnull_2eproto_deps, 3, 9,
schemas, file_default_instances, TableStruct_backend_5fnull_2eproto::offsets,
file_level_metadata_backend_5fnull_2eproto, file_level_enum_descriptors_backend_5fnull_2eproto, file_level_service_descriptors_backend_5fnull_2eproto,
@@ -602,12 +611,23 @@ ::PROTOBUF_NAMESPACE_ID::Metadata NullDebug::GetMetadata() const {
class NullDebugCreateRequest::_Internal {
public:
static const ::opi_api::storage::v1::NullDebug& device(const NullDebugCreateRequest* msg);
+ static const ::opi_api::common::v1::ObjectKey& txn_id(const NullDebugCreateRequest* msg);
};
const ::opi_api::storage::v1::NullDebug&
NullDebugCreateRequest::_Internal::device(const NullDebugCreateRequest* msg) {
return *msg->device_;
}
+const ::opi_api::common::v1::ObjectKey&
+NullDebugCreateRequest::_Internal::txn_id(const NullDebugCreateRequest* msg) {
+ return *msg->txn_id_;
+}
+void NullDebugCreateRequest::clear_txn_id() {
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
+}
NullDebugCreateRequest::NullDebugCreateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -625,11 +645,19 @@ NullDebugCreateRequest::NullDebugCreateRequest(const NullDebugCreateRequest& fro
} else {
device_ = nullptr;
}
+ if (from._internal_has_txn_id()) {
+ txn_id_ = new ::opi_api::common::v1::ObjectKey(*from.txn_id_);
+ } else {
+ txn_id_ = nullptr;
+ }
// @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.NullDebugCreateRequest)
}
inline void NullDebugCreateRequest::SharedCtor() {
-device_ = nullptr;
+::memset(reinterpret_cast(this) + static_cast(
+ reinterpret_cast(&device_) - reinterpret_cast(this)),
+ 0, static_cast(reinterpret_cast(&txn_id_) -
+ reinterpret_cast(&device_)) + sizeof(txn_id_));
}
NullDebugCreateRequest::~NullDebugCreateRequest() {
@@ -642,6 +670,7 @@ NullDebugCreateRequest::~NullDebugCreateRequest() {
inline void NullDebugCreateRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete device_;
+ if (this != internal_default_instance()) delete txn_id_;
}
void NullDebugCreateRequest::ArenaDtor(void* object) {
@@ -664,6 +693,10 @@ void NullDebugCreateRequest::Clear() {
delete device_;
}
device_ = nullptr;
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -681,6 +714,14 @@ const char* NullDebugCreateRequest::_InternalParse(const char* ptr, ::PROTOBUF_N
} else
goto handle_unusual;
continue;
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_txn_id(), ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
default:
goto handle_unusual;
} // switch
@@ -718,6 +759,14 @@ uint8_t* NullDebugCreateRequest::_InternalSerialize(
1, _Internal::device(this), target, stream);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::txn_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);
@@ -741,6 +790,13 @@ size_t NullDebugCreateRequest::ByteSizeLong() const {
*device_);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *txn_id_);
+ }
+
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
@@ -766,6 +822,9 @@ void NullDebugCreateRequest::MergeFrom(const NullDebugCreateRequest& from) {
if (from._internal_has_device()) {
_internal_mutable_device()->::opi_api::storage::v1::NullDebug::MergeFrom(from._internal_device());
}
+ if (from._internal_has_txn_id()) {
+ _internal_mutable_txn_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_txn_id());
+ }
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -783,7 +842,12 @@ bool NullDebugCreateRequest::IsInitialized() const {
void NullDebugCreateRequest::InternalSwap(NullDebugCreateRequest* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(device_, other->device_);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(NullDebugCreateRequest, txn_id_)
+ + sizeof(NullDebugCreateRequest::txn_id_)
+ - PROTOBUF_FIELD_OFFSET(NullDebugCreateRequest, device_)>(
+ reinterpret_cast(&device_),
+ reinterpret_cast(&other->device_));
}
::PROTOBUF_NAMESPACE_ID::Metadata NullDebugCreateRequest::GetMetadata() const {
@@ -797,18 +861,29 @@ ::PROTOBUF_NAMESPACE_ID::Metadata NullDebugCreateRequest::GetMetadata() const {
class NullDebugDeleteRequest::_Internal {
public:
static const ::opi_api::common::v1::ObjectKey& handle(const NullDebugDeleteRequest* msg);
+ static const ::opi_api::common::v1::ObjectKey& txn_id(const NullDebugDeleteRequest* msg);
};
const ::opi_api::common::v1::ObjectKey&
NullDebugDeleteRequest::_Internal::handle(const NullDebugDeleteRequest* msg) {
return *msg->handle_;
}
+const ::opi_api::common::v1::ObjectKey&
+NullDebugDeleteRequest::_Internal::txn_id(const NullDebugDeleteRequest* msg) {
+ return *msg->txn_id_;
+}
void NullDebugDeleteRequest::clear_handle() {
if (GetArenaForAllocation() == nullptr && handle_ != nullptr) {
delete handle_;
}
handle_ = nullptr;
}
+void NullDebugDeleteRequest::clear_txn_id() {
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
+}
NullDebugDeleteRequest::NullDebugDeleteRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -826,11 +901,19 @@ NullDebugDeleteRequest::NullDebugDeleteRequest(const NullDebugDeleteRequest& fro
} else {
handle_ = nullptr;
}
+ if (from._internal_has_txn_id()) {
+ txn_id_ = new ::opi_api::common::v1::ObjectKey(*from.txn_id_);
+ } else {
+ txn_id_ = nullptr;
+ }
// @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.NullDebugDeleteRequest)
}
inline void NullDebugDeleteRequest::SharedCtor() {
-handle_ = nullptr;
+::memset(reinterpret_cast(this) + static_cast(
+ reinterpret_cast(&handle_) - reinterpret_cast(this)),
+ 0, static_cast(reinterpret_cast(&txn_id_) -
+ reinterpret_cast(&handle_)) + sizeof(txn_id_));
}
NullDebugDeleteRequest::~NullDebugDeleteRequest() {
@@ -843,6 +926,7 @@ NullDebugDeleteRequest::~NullDebugDeleteRequest() {
inline void NullDebugDeleteRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete handle_;
+ if (this != internal_default_instance()) delete txn_id_;
}
void NullDebugDeleteRequest::ArenaDtor(void* object) {
@@ -865,6 +949,10 @@ void NullDebugDeleteRequest::Clear() {
delete handle_;
}
handle_ = nullptr;
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -882,6 +970,14 @@ const char* NullDebugDeleteRequest::_InternalParse(const char* ptr, ::PROTOBUF_N
} else
goto handle_unusual;
continue;
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_txn_id(), ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
default:
goto handle_unusual;
} // switch
@@ -919,6 +1015,14 @@ uint8_t* NullDebugDeleteRequest::_InternalSerialize(
1, _Internal::handle(this), target, stream);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::txn_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);
@@ -942,6 +1046,13 @@ size_t NullDebugDeleteRequest::ByteSizeLong() const {
*handle_);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *txn_id_);
+ }
+
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
@@ -967,6 +1078,9 @@ void NullDebugDeleteRequest::MergeFrom(const NullDebugDeleteRequest& from) {
if (from._internal_has_handle()) {
_internal_mutable_handle()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_handle());
}
+ if (from._internal_has_txn_id()) {
+ _internal_mutable_txn_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_txn_id());
+ }
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -984,7 +1098,12 @@ bool NullDebugDeleteRequest::IsInitialized() const {
void NullDebugDeleteRequest::InternalSwap(NullDebugDeleteRequest* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(handle_, other->handle_);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(NullDebugDeleteRequest, txn_id_)
+ + sizeof(NullDebugDeleteRequest::txn_id_)
+ - PROTOBUF_FIELD_OFFSET(NullDebugDeleteRequest, handle_)>(
+ reinterpret_cast(&handle_),
+ reinterpret_cast(&other->handle_));
}
::PROTOBUF_NAMESPACE_ID::Metadata NullDebugDeleteRequest::GetMetadata() const {
@@ -998,12 +1117,23 @@ ::PROTOBUF_NAMESPACE_ID::Metadata NullDebugDeleteRequest::GetMetadata() const {
class NullDebugUpdateRequest::_Internal {
public:
static const ::opi_api::storage::v1::NullDebug& device(const NullDebugUpdateRequest* msg);
+ static const ::opi_api::common::v1::ObjectKey& txn_id(const NullDebugUpdateRequest* msg);
};
const ::opi_api::storage::v1::NullDebug&
NullDebugUpdateRequest::_Internal::device(const NullDebugUpdateRequest* msg) {
return *msg->device_;
}
+const ::opi_api::common::v1::ObjectKey&
+NullDebugUpdateRequest::_Internal::txn_id(const NullDebugUpdateRequest* msg) {
+ return *msg->txn_id_;
+}
+void NullDebugUpdateRequest::clear_txn_id() {
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
+}
NullDebugUpdateRequest::NullDebugUpdateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -1021,11 +1151,19 @@ NullDebugUpdateRequest::NullDebugUpdateRequest(const NullDebugUpdateRequest& fro
} else {
device_ = nullptr;
}
+ if (from._internal_has_txn_id()) {
+ txn_id_ = new ::opi_api::common::v1::ObjectKey(*from.txn_id_);
+ } else {
+ txn_id_ = nullptr;
+ }
// @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.NullDebugUpdateRequest)
}
inline void NullDebugUpdateRequest::SharedCtor() {
-device_ = nullptr;
+::memset(reinterpret_cast(this) + static_cast(
+ reinterpret_cast(&device_) - reinterpret_cast(this)),
+ 0, static_cast(reinterpret_cast(&txn_id_) -
+ reinterpret_cast(&device_)) + sizeof(txn_id_));
}
NullDebugUpdateRequest::~NullDebugUpdateRequest() {
@@ -1038,6 +1176,7 @@ NullDebugUpdateRequest::~NullDebugUpdateRequest() {
inline void NullDebugUpdateRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete device_;
+ if (this != internal_default_instance()) delete txn_id_;
}
void NullDebugUpdateRequest::ArenaDtor(void* object) {
@@ -1060,6 +1199,10 @@ void NullDebugUpdateRequest::Clear() {
delete device_;
}
device_ = nullptr;
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -1077,6 +1220,14 @@ const char* NullDebugUpdateRequest::_InternalParse(const char* ptr, ::PROTOBUF_N
} else
goto handle_unusual;
continue;
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_txn_id(), ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
default:
goto handle_unusual;
} // switch
@@ -1114,6 +1265,14 @@ uint8_t* NullDebugUpdateRequest::_InternalSerialize(
1, _Internal::device(this), target, stream);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::txn_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);
@@ -1137,6 +1296,13 @@ size_t NullDebugUpdateRequest::ByteSizeLong() const {
*device_);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *txn_id_);
+ }
+
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
@@ -1162,6 +1328,9 @@ void NullDebugUpdateRequest::MergeFrom(const NullDebugUpdateRequest& from) {
if (from._internal_has_device()) {
_internal_mutable_device()->::opi_api::storage::v1::NullDebug::MergeFrom(from._internal_device());
}
+ if (from._internal_has_txn_id()) {
+ _internal_mutable_txn_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_txn_id());
+ }
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -1179,7 +1348,12 @@ bool NullDebugUpdateRequest::IsInitialized() const {
void NullDebugUpdateRequest::InternalSwap(NullDebugUpdateRequest* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(device_, other->device_);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(NullDebugUpdateRequest, txn_id_)
+ + sizeof(NullDebugUpdateRequest::txn_id_)
+ - PROTOBUF_FIELD_OFFSET(NullDebugUpdateRequest, device_)>(
+ reinterpret_cast(&device_),
+ reinterpret_cast(&other->device_));
}
::PROTOBUF_NAMESPACE_ID::Metadata NullDebugUpdateRequest::GetMetadata() const {
diff --git a/storage/v1alpha1/gen/cpp/backend_null.pb.h b/storage/v1alpha1/gen/cpp/backend_null.pb.h
index cc5cfde6..7a112e43 100644
--- a/storage/v1alpha1/gen/cpp/backend_null.pb.h
+++ b/storage/v1alpha1/gen/cpp/backend_null.pb.h
@@ -427,6 +427,7 @@ class NullDebugCreateRequest final :
enum : int {
kDeviceFieldNumber = 1,
+ kTxnIdFieldNumber = 2,
};
// .opi_api.storage.v1.NullDebug device = 1;
bool has_device() const;
@@ -446,6 +447,24 @@ class NullDebugCreateRequest final :
::opi_api::storage::v1::NullDebug* device);
::opi_api::storage::v1::NullDebug* unsafe_arena_release_device();
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ bool has_txn_id() const;
+ private:
+ bool _internal_has_txn_id() const;
+ public:
+ void clear_txn_id();
+ const ::opi_api::common::v1::ObjectKey& txn_id() const;
+ PROTOBUF_NODISCARD ::opi_api::common::v1::ObjectKey* release_txn_id();
+ ::opi_api::common::v1::ObjectKey* mutable_txn_id();
+ void set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id);
+ private:
+ const ::opi_api::common::v1::ObjectKey& _internal_txn_id() const;
+ ::opi_api::common::v1::ObjectKey* _internal_mutable_txn_id();
+ public:
+ void unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id);
+ ::opi_api::common::v1::ObjectKey* unsafe_arena_release_txn_id();
+
// @@protoc_insertion_point(class_scope:opi_api.storage.v1.NullDebugCreateRequest)
private:
class _Internal;
@@ -454,6 +473,7 @@ class NullDebugCreateRequest final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::opi_api::storage::v1::NullDebug* device_;
+ ::opi_api::common::v1::ObjectKey* txn_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_backend_5fnull_2eproto;
};
@@ -582,6 +602,7 @@ class NullDebugDeleteRequest final :
enum : int {
kHandleFieldNumber = 1,
+ kTxnIdFieldNumber = 2,
};
// .opi_api.common.v1.ObjectKey handle = 1;
bool has_handle() const;
@@ -601,6 +622,24 @@ class NullDebugDeleteRequest final :
::opi_api::common::v1::ObjectKey* handle);
::opi_api::common::v1::ObjectKey* unsafe_arena_release_handle();
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ bool has_txn_id() const;
+ private:
+ bool _internal_has_txn_id() const;
+ public:
+ void clear_txn_id();
+ const ::opi_api::common::v1::ObjectKey& txn_id() const;
+ PROTOBUF_NODISCARD ::opi_api::common::v1::ObjectKey* release_txn_id();
+ ::opi_api::common::v1::ObjectKey* mutable_txn_id();
+ void set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id);
+ private:
+ const ::opi_api::common::v1::ObjectKey& _internal_txn_id() const;
+ ::opi_api::common::v1::ObjectKey* _internal_mutable_txn_id();
+ public:
+ void unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id);
+ ::opi_api::common::v1::ObjectKey* unsafe_arena_release_txn_id();
+
// @@protoc_insertion_point(class_scope:opi_api.storage.v1.NullDebugDeleteRequest)
private:
class _Internal;
@@ -609,6 +648,7 @@ class NullDebugDeleteRequest final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::opi_api::common::v1::ObjectKey* handle_;
+ ::opi_api::common::v1::ObjectKey* txn_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_backend_5fnull_2eproto;
};
@@ -737,6 +777,7 @@ class NullDebugUpdateRequest final :
enum : int {
kDeviceFieldNumber = 1,
+ kTxnIdFieldNumber = 2,
};
// .opi_api.storage.v1.NullDebug device = 1;
bool has_device() const;
@@ -756,6 +797,24 @@ class NullDebugUpdateRequest final :
::opi_api::storage::v1::NullDebug* device);
::opi_api::storage::v1::NullDebug* unsafe_arena_release_device();
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ bool has_txn_id() const;
+ private:
+ bool _internal_has_txn_id() const;
+ public:
+ void clear_txn_id();
+ const ::opi_api::common::v1::ObjectKey& txn_id() const;
+ PROTOBUF_NODISCARD ::opi_api::common::v1::ObjectKey* release_txn_id();
+ ::opi_api::common::v1::ObjectKey* mutable_txn_id();
+ void set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id);
+ private:
+ const ::opi_api::common::v1::ObjectKey& _internal_txn_id() const;
+ ::opi_api::common::v1::ObjectKey* _internal_mutable_txn_id();
+ public:
+ void unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id);
+ ::opi_api::common::v1::ObjectKey* unsafe_arena_release_txn_id();
+
// @@protoc_insertion_point(class_scope:opi_api.storage.v1.NullDebugUpdateRequest)
private:
class _Internal;
@@ -764,6 +823,7 @@ class NullDebugUpdateRequest final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::opi_api::storage::v1::NullDebug* device_;
+ ::opi_api::common::v1::ObjectKey* txn_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_backend_5fnull_2eproto;
};
@@ -1838,6 +1898,92 @@ inline void NullDebugCreateRequest::set_allocated_device(::opi_api::storage::v1:
// @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.NullDebugCreateRequest.device)
}
+// .opi_api.common.v1.ObjectKey txn_id = 2;
+inline bool NullDebugCreateRequest::_internal_has_txn_id() const {
+ return this != internal_default_instance() && txn_id_ != nullptr;
+}
+inline bool NullDebugCreateRequest::has_txn_id() const {
+ return _internal_has_txn_id();
+}
+inline const ::opi_api::common::v1::ObjectKey& NullDebugCreateRequest::_internal_txn_id() const {
+ const ::opi_api::common::v1::ObjectKey* p = txn_id_;
+ return p != nullptr ? *p : reinterpret_cast(
+ ::opi_api::common::v1::_ObjectKey_default_instance_);
+}
+inline const ::opi_api::common::v1::ObjectKey& NullDebugCreateRequest::txn_id() const {
+ // @@protoc_insertion_point(field_get:opi_api.storage.v1.NullDebugCreateRequest.txn_id)
+ return _internal_txn_id();
+}
+inline void NullDebugCreateRequest::unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id) {
+ if (GetArenaForAllocation() == nullptr) {
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ txn_id_ = txn_id;
+ if (txn_id) {
+
+ } else {
+
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.storage.v1.NullDebugCreateRequest.txn_id)
+}
+inline ::opi_api::common::v1::ObjectKey* NullDebugCreateRequest::release_txn_id() {
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_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* NullDebugCreateRequest::unsafe_arena_release_txn_id() {
+ // @@protoc_insertion_point(field_release:opi_api.storage.v1.NullDebugCreateRequest.txn_id)
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_id_ = nullptr;
+ return temp;
+}
+inline ::opi_api::common::v1::ObjectKey* NullDebugCreateRequest::_internal_mutable_txn_id() {
+
+ if (txn_id_ == nullptr) {
+ auto* p = CreateMaybeMessage<::opi_api::common::v1::ObjectKey>(GetArenaForAllocation());
+ txn_id_ = p;
+ }
+ return txn_id_;
+}
+inline ::opi_api::common::v1::ObjectKey* NullDebugCreateRequest::mutable_txn_id() {
+ ::opi_api::common::v1::ObjectKey* _msg = _internal_mutable_txn_id();
+ // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.NullDebugCreateRequest.txn_id)
+ return _msg;
+}
+inline void NullDebugCreateRequest::set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
+ if (message_arena == nullptr) {
+ delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ if (txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
+ ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
+ reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id));
+ if (message_arena != submessage_arena) {
+ txn_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, txn_id, submessage_arena);
+ }
+
+ } else {
+
+ }
+ txn_id_ = txn_id;
+ // @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.NullDebugCreateRequest.txn_id)
+}
+
// -------------------------------------------------------------------
// NullDebugDeleteRequest
@@ -1928,6 +2074,92 @@ inline void NullDebugDeleteRequest::set_allocated_handle(::opi_api::common::v1::
// @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.NullDebugDeleteRequest.handle)
}
+// .opi_api.common.v1.ObjectKey txn_id = 2;
+inline bool NullDebugDeleteRequest::_internal_has_txn_id() const {
+ return this != internal_default_instance() && txn_id_ != nullptr;
+}
+inline bool NullDebugDeleteRequest::has_txn_id() const {
+ return _internal_has_txn_id();
+}
+inline const ::opi_api::common::v1::ObjectKey& NullDebugDeleteRequest::_internal_txn_id() const {
+ const ::opi_api::common::v1::ObjectKey* p = txn_id_;
+ return p != nullptr ? *p : reinterpret_cast(
+ ::opi_api::common::v1::_ObjectKey_default_instance_);
+}
+inline const ::opi_api::common::v1::ObjectKey& NullDebugDeleteRequest::txn_id() const {
+ // @@protoc_insertion_point(field_get:opi_api.storage.v1.NullDebugDeleteRequest.txn_id)
+ return _internal_txn_id();
+}
+inline void NullDebugDeleteRequest::unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id) {
+ if (GetArenaForAllocation() == nullptr) {
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ txn_id_ = txn_id;
+ if (txn_id) {
+
+ } else {
+
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.storage.v1.NullDebugDeleteRequest.txn_id)
+}
+inline ::opi_api::common::v1::ObjectKey* NullDebugDeleteRequest::release_txn_id() {
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_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* NullDebugDeleteRequest::unsafe_arena_release_txn_id() {
+ // @@protoc_insertion_point(field_release:opi_api.storage.v1.NullDebugDeleteRequest.txn_id)
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_id_ = nullptr;
+ return temp;
+}
+inline ::opi_api::common::v1::ObjectKey* NullDebugDeleteRequest::_internal_mutable_txn_id() {
+
+ if (txn_id_ == nullptr) {
+ auto* p = CreateMaybeMessage<::opi_api::common::v1::ObjectKey>(GetArenaForAllocation());
+ txn_id_ = p;
+ }
+ return txn_id_;
+}
+inline ::opi_api::common::v1::ObjectKey* NullDebugDeleteRequest::mutable_txn_id() {
+ ::opi_api::common::v1::ObjectKey* _msg = _internal_mutable_txn_id();
+ // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.NullDebugDeleteRequest.txn_id)
+ return _msg;
+}
+inline void NullDebugDeleteRequest::set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
+ if (message_arena == nullptr) {
+ delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ if (txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
+ ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
+ reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id));
+ if (message_arena != submessage_arena) {
+ txn_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, txn_id, submessage_arena);
+ }
+
+ } else {
+
+ }
+ txn_id_ = txn_id;
+ // @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.NullDebugDeleteRequest.txn_id)
+}
+
// -------------------------------------------------------------------
// NullDebugUpdateRequest
@@ -2022,6 +2254,92 @@ inline void NullDebugUpdateRequest::set_allocated_device(::opi_api::storage::v1:
// @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.NullDebugUpdateRequest.device)
}
+// .opi_api.common.v1.ObjectKey txn_id = 2;
+inline bool NullDebugUpdateRequest::_internal_has_txn_id() const {
+ return this != internal_default_instance() && txn_id_ != nullptr;
+}
+inline bool NullDebugUpdateRequest::has_txn_id() const {
+ return _internal_has_txn_id();
+}
+inline const ::opi_api::common::v1::ObjectKey& NullDebugUpdateRequest::_internal_txn_id() const {
+ const ::opi_api::common::v1::ObjectKey* p = txn_id_;
+ return p != nullptr ? *p : reinterpret_cast(
+ ::opi_api::common::v1::_ObjectKey_default_instance_);
+}
+inline const ::opi_api::common::v1::ObjectKey& NullDebugUpdateRequest::txn_id() const {
+ // @@protoc_insertion_point(field_get:opi_api.storage.v1.NullDebugUpdateRequest.txn_id)
+ return _internal_txn_id();
+}
+inline void NullDebugUpdateRequest::unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id) {
+ if (GetArenaForAllocation() == nullptr) {
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ txn_id_ = txn_id;
+ if (txn_id) {
+
+ } else {
+
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.storage.v1.NullDebugUpdateRequest.txn_id)
+}
+inline ::opi_api::common::v1::ObjectKey* NullDebugUpdateRequest::release_txn_id() {
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_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* NullDebugUpdateRequest::unsafe_arena_release_txn_id() {
+ // @@protoc_insertion_point(field_release:opi_api.storage.v1.NullDebugUpdateRequest.txn_id)
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_id_ = nullptr;
+ return temp;
+}
+inline ::opi_api::common::v1::ObjectKey* NullDebugUpdateRequest::_internal_mutable_txn_id() {
+
+ if (txn_id_ == nullptr) {
+ auto* p = CreateMaybeMessage<::opi_api::common::v1::ObjectKey>(GetArenaForAllocation());
+ txn_id_ = p;
+ }
+ return txn_id_;
+}
+inline ::opi_api::common::v1::ObjectKey* NullDebugUpdateRequest::mutable_txn_id() {
+ ::opi_api::common::v1::ObjectKey* _msg = _internal_mutable_txn_id();
+ // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.NullDebugUpdateRequest.txn_id)
+ return _msg;
+}
+inline void NullDebugUpdateRequest::set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
+ if (message_arena == nullptr) {
+ delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ if (txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
+ ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
+ reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id));
+ if (message_arena != submessage_arena) {
+ txn_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, txn_id, submessage_arena);
+ }
+
+ } else {
+
+ }
+ txn_id_ = txn_id;
+ // @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.NullDebugUpdateRequest.txn_id)
+}
+
// -------------------------------------------------------------------
// NullDebugListRequest
diff --git a/storage/v1alpha1/gen/cpp/frontend_nvme_pcie.pb.cc b/storage/v1alpha1/gen/cpp/frontend_nvme_pcie.pb.cc
index 587e7111..4df88b58 100644
--- a/storage/v1alpha1/gen/cpp/frontend_nvme_pcie.pb.cc
+++ b/storage/v1alpha1/gen/cpp/frontend_nvme_pcie.pb.cc
@@ -154,7 +154,8 @@ struct NVMeNamespaceStatusDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT NVMeNamespaceStatusDefaultTypeInternal _NVMeNamespaceStatus_default_instance_;
constexpr CreateNVMeSubsystemRequest::CreateNVMeSubsystemRequest(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : subsystem_(nullptr){}
+ : subsystem_(nullptr)
+ , txn_id_(nullptr){}
struct CreateNVMeSubsystemRequestDefaultTypeInternal {
constexpr CreateNVMeSubsystemRequestDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
@@ -166,7 +167,8 @@ struct CreateNVMeSubsystemRequestDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CreateNVMeSubsystemRequestDefaultTypeInternal _CreateNVMeSubsystemRequest_default_instance_;
constexpr DeleteNVMeSubsystemRequest::DeleteNVMeSubsystemRequest(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : subsystem_id_(nullptr){}
+ : subsystem_id_(nullptr)
+ , txn_id_(nullptr){}
struct DeleteNVMeSubsystemRequestDefaultTypeInternal {
constexpr DeleteNVMeSubsystemRequestDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
@@ -178,7 +180,8 @@ struct DeleteNVMeSubsystemRequestDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DeleteNVMeSubsystemRequestDefaultTypeInternal _DeleteNVMeSubsystemRequest_default_instance_;
constexpr UpdateNVMeSubsystemRequest::UpdateNVMeSubsystemRequest(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : subsystem_(nullptr){}
+ : subsystem_(nullptr)
+ , txn_id_(nullptr){}
struct UpdateNVMeSubsystemRequestDefaultTypeInternal {
constexpr UpdateNVMeSubsystemRequestDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
@@ -252,7 +255,8 @@ struct NVMeSubsystemStatsResponseDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT NVMeSubsystemStatsResponseDefaultTypeInternal _NVMeSubsystemStatsResponse_default_instance_;
constexpr CreateNVMeControllerRequest::CreateNVMeControllerRequest(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : controller_(nullptr){}
+ : controller_(nullptr)
+ , txn_id_(nullptr){}
struct CreateNVMeControllerRequestDefaultTypeInternal {
constexpr CreateNVMeControllerRequestDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
@@ -264,7 +268,8 @@ struct CreateNVMeControllerRequestDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CreateNVMeControllerRequestDefaultTypeInternal _CreateNVMeControllerRequest_default_instance_;
constexpr DeleteNVMeControllerRequest::DeleteNVMeControllerRequest(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : controller_id_(nullptr){}
+ : controller_id_(nullptr)
+ , txn_id_(nullptr){}
struct DeleteNVMeControllerRequestDefaultTypeInternal {
constexpr DeleteNVMeControllerRequestDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
@@ -276,7 +281,8 @@ struct DeleteNVMeControllerRequestDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DeleteNVMeControllerRequestDefaultTypeInternal _DeleteNVMeControllerRequest_default_instance_;
constexpr UpdateNVMeControllerRequest::UpdateNVMeControllerRequest(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : controller_(nullptr){}
+ : controller_(nullptr)
+ , txn_id_(nullptr){}
struct UpdateNVMeControllerRequestDefaultTypeInternal {
constexpr UpdateNVMeControllerRequestDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
@@ -352,7 +358,8 @@ struct NVMeControllerStatsResponseDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT NVMeControllerStatsResponseDefaultTypeInternal _NVMeControllerStatsResponse_default_instance_;
constexpr CreateNVMeNamespaceRequest::CreateNVMeNamespaceRequest(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : namespace__(nullptr){}
+ : namespace__(nullptr)
+ , txn_id_(nullptr){}
struct CreateNVMeNamespaceRequestDefaultTypeInternal {
constexpr CreateNVMeNamespaceRequestDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
@@ -364,7 +371,8 @@ struct CreateNVMeNamespaceRequestDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CreateNVMeNamespaceRequestDefaultTypeInternal _CreateNVMeNamespaceRequest_default_instance_;
constexpr DeleteNVMeNamespaceRequest::DeleteNVMeNamespaceRequest(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : namespace_id_(nullptr){}
+ : namespace_id_(nullptr)
+ , txn_id_(nullptr){}
struct DeleteNVMeNamespaceRequestDefaultTypeInternal {
constexpr DeleteNVMeNamespaceRequestDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
@@ -376,7 +384,8 @@ struct DeleteNVMeNamespaceRequestDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DeleteNVMeNamespaceRequestDefaultTypeInternal _DeleteNVMeNamespaceRequest_default_instance_;
constexpr UpdateNVMeNamespaceRequest::UpdateNVMeNamespaceRequest(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : namespace__(nullptr){}
+ : namespace__(nullptr)
+ , txn_id_(nullptr){}
struct UpdateNVMeNamespaceRequestDefaultTypeInternal {
constexpr UpdateNVMeNamespaceRequestDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
@@ -551,6 +560,7 @@ const uint32_t TableStruct_frontend_5fnvme_5fpcie_2eproto::offsets[] PROTOBUF_SE
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::CreateNVMeSubsystemRequest, subsystem_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::CreateNVMeSubsystemRequest, txn_id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::DeleteNVMeSubsystemRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -558,6 +568,7 @@ const uint32_t TableStruct_frontend_5fnvme_5fpcie_2eproto::offsets[] PROTOBUF_SE
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::DeleteNVMeSubsystemRequest, subsystem_id_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::DeleteNVMeSubsystemRequest, txn_id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::UpdateNVMeSubsystemRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -565,6 +576,7 @@ const uint32_t TableStruct_frontend_5fnvme_5fpcie_2eproto::offsets[] PROTOBUF_SE
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::UpdateNVMeSubsystemRequest, subsystem_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::UpdateNVMeSubsystemRequest, txn_id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::ListNVMeSubsystemRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -609,6 +621,7 @@ const uint32_t TableStruct_frontend_5fnvme_5fpcie_2eproto::offsets[] PROTOBUF_SE
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::CreateNVMeControllerRequest, controller_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::CreateNVMeControllerRequest, txn_id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::DeleteNVMeControllerRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -616,6 +629,7 @@ const uint32_t TableStruct_frontend_5fnvme_5fpcie_2eproto::offsets[] PROTOBUF_SE
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::DeleteNVMeControllerRequest, controller_id_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::DeleteNVMeControllerRequest, txn_id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::UpdateNVMeControllerRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -623,6 +637,7 @@ const uint32_t TableStruct_frontend_5fnvme_5fpcie_2eproto::offsets[] PROTOBUF_SE
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::UpdateNVMeControllerRequest, controller_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::UpdateNVMeControllerRequest, txn_id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::ListNVMeControllerRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -669,6 +684,7 @@ const uint32_t TableStruct_frontend_5fnvme_5fpcie_2eproto::offsets[] PROTOBUF_SE
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::CreateNVMeNamespaceRequest, namespace__),
+ PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::CreateNVMeNamespaceRequest, txn_id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::DeleteNVMeNamespaceRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -676,6 +692,7 @@ const uint32_t TableStruct_frontend_5fnvme_5fpcie_2eproto::offsets[] PROTOBUF_SE
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::DeleteNVMeNamespaceRequest, namespace_id_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::DeleteNVMeNamespaceRequest, txn_id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::UpdateNVMeNamespaceRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -683,6 +700,7 @@ const uint32_t TableStruct_frontend_5fnvme_5fpcie_2eproto::offsets[] PROTOBUF_SE
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::UpdateNVMeNamespaceRequest, namespace__),
+ PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::UpdateNVMeNamespaceRequest, txn_id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::ListNVMeNamespaceRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -734,29 +752,29 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOB
{ 65, -1, -1, sizeof(::opi_api::storage::v1::NVMeNamespaceSpec)},
{ 78, -1, -1, sizeof(::opi_api::storage::v1::NVMeNamespaceStatus)},
{ 86, -1, -1, sizeof(::opi_api::storage::v1::CreateNVMeSubsystemRequest)},
- { 93, -1, -1, sizeof(::opi_api::storage::v1::DeleteNVMeSubsystemRequest)},
- { 100, -1, -1, sizeof(::opi_api::storage::v1::UpdateNVMeSubsystemRequest)},
- { 107, -1, -1, sizeof(::opi_api::storage::v1::ListNVMeSubsystemRequest)},
- { 115, -1, -1, sizeof(::opi_api::storage::v1::ListNVMeSubsystemResponse)},
- { 123, -1, -1, sizeof(::opi_api::storage::v1::GetNVMeSubsystemRequest)},
- { 130, -1, -1, sizeof(::opi_api::storage::v1::NVMeSubsystemStatsRequest)},
- { 137, -1, -1, sizeof(::opi_api::storage::v1::NVMeSubsystemStatsResponse)},
- { 144, -1, -1, sizeof(::opi_api::storage::v1::CreateNVMeControllerRequest)},
- { 151, -1, -1, sizeof(::opi_api::storage::v1::DeleteNVMeControllerRequest)},
- { 158, -1, -1, sizeof(::opi_api::storage::v1::UpdateNVMeControllerRequest)},
- { 165, -1, -1, sizeof(::opi_api::storage::v1::ListNVMeControllerRequest)},
- { 174, -1, -1, sizeof(::opi_api::storage::v1::ListNVMeControllerResponse)},
- { 182, -1, -1, sizeof(::opi_api::storage::v1::GetNVMeControllerRequest)},
- { 189, -1, -1, sizeof(::opi_api::storage::v1::NVMeControllerStatsRequest)},
- { 196, -1, -1, sizeof(::opi_api::storage::v1::NVMeControllerStatsResponse)},
- { 204, -1, -1, sizeof(::opi_api::storage::v1::CreateNVMeNamespaceRequest)},
- { 211, -1, -1, sizeof(::opi_api::storage::v1::DeleteNVMeNamespaceRequest)},
- { 218, -1, -1, sizeof(::opi_api::storage::v1::UpdateNVMeNamespaceRequest)},
- { 225, -1, -1, sizeof(::opi_api::storage::v1::ListNVMeNamespaceRequest)},
- { 234, -1, -1, sizeof(::opi_api::storage::v1::ListNVMeNamespaceResponse)},
- { 242, -1, -1, sizeof(::opi_api::storage::v1::GetNVMeNamespaceRequest)},
- { 249, -1, -1, sizeof(::opi_api::storage::v1::NVMeNamespaceStatsRequest)},
- { 256, -1, -1, sizeof(::opi_api::storage::v1::NVMeNamespaceStatsResponse)},
+ { 94, -1, -1, sizeof(::opi_api::storage::v1::DeleteNVMeSubsystemRequest)},
+ { 102, -1, -1, sizeof(::opi_api::storage::v1::UpdateNVMeSubsystemRequest)},
+ { 110, -1, -1, sizeof(::opi_api::storage::v1::ListNVMeSubsystemRequest)},
+ { 118, -1, -1, sizeof(::opi_api::storage::v1::ListNVMeSubsystemResponse)},
+ { 126, -1, -1, sizeof(::opi_api::storage::v1::GetNVMeSubsystemRequest)},
+ { 133, -1, -1, sizeof(::opi_api::storage::v1::NVMeSubsystemStatsRequest)},
+ { 140, -1, -1, sizeof(::opi_api::storage::v1::NVMeSubsystemStatsResponse)},
+ { 147, -1, -1, sizeof(::opi_api::storage::v1::CreateNVMeControllerRequest)},
+ { 155, -1, -1, sizeof(::opi_api::storage::v1::DeleteNVMeControllerRequest)},
+ { 163, -1, -1, sizeof(::opi_api::storage::v1::UpdateNVMeControllerRequest)},
+ { 171, -1, -1, sizeof(::opi_api::storage::v1::ListNVMeControllerRequest)},
+ { 180, -1, -1, sizeof(::opi_api::storage::v1::ListNVMeControllerResponse)},
+ { 188, -1, -1, sizeof(::opi_api::storage::v1::GetNVMeControllerRequest)},
+ { 195, -1, -1, sizeof(::opi_api::storage::v1::NVMeControllerStatsRequest)},
+ { 202, -1, -1, sizeof(::opi_api::storage::v1::NVMeControllerStatsResponse)},
+ { 210, -1, -1, sizeof(::opi_api::storage::v1::CreateNVMeNamespaceRequest)},
+ { 218, -1, -1, sizeof(::opi_api::storage::v1::DeleteNVMeNamespaceRequest)},
+ { 226, -1, -1, sizeof(::opi_api::storage::v1::UpdateNVMeNamespaceRequest)},
+ { 234, -1, -1, sizeof(::opi_api::storage::v1::ListNVMeNamespaceRequest)},
+ { 243, -1, -1, sizeof(::opi_api::storage::v1::ListNVMeNamespaceResponse)},
+ { 251, -1, -1, sizeof(::opi_api::storage::v1::GetNVMeNamespaceRequest)},
+ { 258, -1, -1, sizeof(::opi_api::storage::v1::NVMeNamespaceStatsRequest)},
+ { 265, -1, -1, sizeof(::opi_api::storage::v1::NVMeNamespaceStatsResponse)},
};
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
@@ -833,132 +851,143 @@ const char descriptor_table_protodef_frontend_5fnvme_5fpcie_2eproto[] PROTOBUF_S
"te\030\001 \001(\0162).opi_api.storage.v1.NVMeNamesp"
"acePciState\022E\n\016pci_oper_state\030\002 \001(\0162-.op"
"i_api.storage.v1.NVMeNamespacePciOperSta"
- "te\"R\n\032CreateNVMeSubsystemRequest\0224\n\tsubs"
- "ystem\030\001 \001(\0132!.opi_api.storage.v1.NVMeSub"
- "system\"P\n\032DeleteNVMeSubsystemRequest\0222\n\014"
+ "te\"\200\001\n\032CreateNVMeSubsystemRequest\0224\n\tsub"
+ "system\030\001 \001(\0132!.opi_api.storage.v1.NVMeSu"
+ "bsystem\022,\n\006txn_id\030\002 \001(\0132\034.opi_api.common"
+ ".v1.ObjectKey\"~\n\032DeleteNVMeSubsystemRequ"
+ "est\0222\n\014subsystem_id\030\001 \001(\0132\034.opi_api.comm"
+ "on.v1.ObjectKey\022,\n\006txn_id\030\002 \001(\0132\034.opi_ap"
+ "i.common.v1.ObjectKey\"\200\001\n\032UpdateNVMeSubs"
+ "ystemRequest\0224\n\tsubsystem\030\001 \001(\0132!.opi_ap"
+ "i.storage.v1.NVMeSubsystem\022,\n\006txn_id\030\002 \001"
+ "(\0132\034.opi_api.common.v1.ObjectKey\"A\n\030List"
+ "NVMeSubsystemRequest\022\021\n\tpage_size\030\001 \001(\005\022"
+ "\022\n\npage_token\030\002 \001(\t\"k\n\031ListNVMeSubsystem"
+ "Response\0225\n\nsubsystems\030\001 \003(\0132!.opi_api.s"
+ "torage.v1.NVMeSubsystem\022\027\n\017next_page_tok"
+ "en\030\002 \001(\t\"M\n\027GetNVMeSubsystemRequest\0222\n\014s"
+ "ubsystem_id\030\001 \001(\0132\034.opi_api.common.v1.Ob"
+ "jectKey\"O\n\031NVMeSubsystemStatsRequest\0222\n\014"
"subsystem_id\030\001 \001(\0132\034.opi_api.common.v1.O"
- "bjectKey\"R\n\032UpdateNVMeSubsystemRequest\0224"
- "\n\tsubsystem\030\001 \001(\0132!.opi_api.storage.v1.N"
- "VMeSubsystem\"A\n\030ListNVMeSubsystemRequest"
- "\022\021\n\tpage_size\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\""
- "k\n\031ListNVMeSubsystemResponse\0225\n\nsubsyste"
- "ms\030\001 \003(\0132!.opi_api.storage.v1.NVMeSubsys"
- "tem\022\027\n\017next_page_token\030\002 \001(\t\"M\n\027GetNVMeS"
- "ubsystemRequest\0222\n\014subsystem_id\030\001 \001(\0132\034."
- "opi_api.common.v1.ObjectKey\"O\n\031NVMeSubsy"
- "stemStatsRequest\0222\n\014subsystem_id\030\001 \001(\0132\034"
- ".opi_api.common.v1.ObjectKey\"+\n\032NVMeSubs"
- "ystemStatsResponse\022\r\n\005stats\030\001 \001(\t\"U\n\033Cre"
- "ateNVMeControllerRequest\0226\n\ncontroller\030\001"
- " \001(\0132\".opi_api.storage.v1.NVMeController"
- "\"R\n\033DeleteNVMeControllerRequest\0223\n\rcontr"
- "oller_id\030\001 \001(\0132\034.opi_api.common.v1.Objec"
- "tKey\"U\n\033UpdateNVMeControllerRequest\0226\n\nc"
- "ontroller\030\001 \001(\0132\".opi_api.storage.v1.NVM"
- "eController\"v\n\031ListNVMeControllerRequest"
- "\0222\n\014subsystem_id\030\001 \001(\0132\034.opi_api.common."
- "v1.ObjectKey\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_"
- "token\030\003 \001(\t\"n\n\032ListNVMeControllerRespons"
- "e\0227\n\013controllers\030\001 \003(\0132\".opi_api.storage"
- ".v1.NVMeController\022\027\n\017next_page_token\030\002 "
- "\001(\t\"O\n\030GetNVMeControllerRequest\0223\n\rcontr"
- "oller_id\030\001 \001(\0132\034.opi_api.common.v1.Objec"
- "tKey\"F\n\032NVMeControllerStatsRequest\022(\n\002id"
- "\030\001 \001(\0132\034.opi_api.common.v1.ObjectKey\"V\n\033"
- "NVMeControllerStatsResponse\022(\n\002id\030\001 \001(\0132"
- "\034.opi_api.common.v1.ObjectKey\022\r\n\005stats\030\002"
- " \001(\t\"R\n\032CreateNVMeNamespaceRequest\0224\n\tna"
- "mespace\030\001 \001(\0132!.opi_api.storage.v1.NVMeN"
- "amespace\"P\n\032DeleteNVMeNamespaceRequest\0222"
- "\n\014namespace_id\030\001 \001(\0132\034.opi_api.common.v1"
- ".ObjectKey\"R\n\032UpdateNVMeNamespaceRequest"
- "\0224\n\tnamespace\030\001 \001(\0132!.opi_api.storage.v1"
- ".NVMeNamespace\"u\n\030ListNVMeNamespaceReque"
- "st\0222\n\014subsystem_id\030\001 \001(\0132\034.opi_api.commo"
- "n.v1.ObjectKey\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag"
- "e_token\030\003 \001(\t\"k\n\031ListNVMeNamespaceRespon"
- "se\0225\n\nnamespaces\030\001 \003(\0132!.opi_api.storage"
- ".v1.NVMeNamespace\022\027\n\017next_page_token\030\002 \001"
- "(\t\"M\n\027GetNVMeNamespaceRequest\0222\n\014namespa"
- "ce_id\030\001 \001(\0132\034.opi_api.common.v1.ObjectKe"
- "y\"O\n\031NVMeNamespaceStatsRequest\0222\n\014namesp"
- "ace_id\030\001 \001(\0132\034.opi_api.common.v1.ObjectK"
- "ey\"U\n\032NVMeNamespaceStatsResponse\022(\n\002id\030\001"
- " \001(\0132\034.opi_api.common.v1.ObjectKey\022\r\n\005st"
- "ats\030\002 \001(\t*\266\001\n\025NVMeNamespacePciState\022)\n%N"
- "V_ME_NAMESPACE_PCI_STATE_UNSPECIFIED\020\000\022%"
- "\n!NVME_NAMESPACE_PCI_STATE_DISABLED\020\001\022$\n"
- " NVME_NAMESPACE_PCI_STATE_ENABLED\020\002\022%\n!N"
- "VME_NAMESPACE_PCI_STATE_DELETING\020\003*\240\001\n\031N"
- "VMeNamespacePciOperState\022.\n*NV_ME_NAMESP"
- "ACE_PCI_OPER_STATE_UNSPECIFIED\020\000\022(\n$NVME"
- "_NAMESPACE_PCI_OPER_STATE_ONLINE\020\001\022)\n%NV"
- "ME_NAMESPACE_PCI_OPER_STATE_OFFLINE\020\0022\260\023"
- "\n\023FrontendNvmeService\022\213\001\n\023CreateNVMeSubs"
- "ystem\022..opi_api.storage.v1.CreateNVMeSub"
- "systemRequest\032!.opi_api.storage.v1.NVMeS"
- "ubsystem\"!\202\323\344\223\002\033\"\016/v1/subsystems:\tsubsys"
- "tem\022\201\001\n\023DeleteNVMeSubsystem\022..opi_api.st"
- "orage.v1.DeleteNVMeSubsystemRequest\032\026.go"
- "ogle.protobuf.Empty\"\"\202\323\344\223\002\034*\032/v1/subsyst"
- "ems/{subsystem}\022\213\001\n\023UpdateNVMeSubsystem\022"
- "..opi_api.storage.v1.UpdateNVMeSubsystem"
- "Request\032!.opi_api.storage.v1.NVMeSubsyst"
- "em\"!\202\323\344\223\002\0332\016/v1/subsystems:\tsubsystem\022\210\001"
- "\n\021ListNVMeSubsystem\022,.opi_api.storage.v1"
- ".ListNVMeSubsystemRequest\032-.opi_api.stor"
- "age.v1.ListNVMeSubsystemResponse\"\026\202\323\344\223\002\020"
- "\022\016/v1/subsystems\022\206\001\n\020GetNVMeSubsystem\022+."
- "opi_api.storage.v1.GetNVMeSubsystemReque"
- "st\032!.opi_api.storage.v1.NVMeSubsystem\"\"\202"
- "\323\344\223\002\034\022\032/v1/subsystems/{subsystem}\022u\n\022NVM"
- "eSubsystemStats\022-.opi_api.storage.v1.NVM"
- "eSubsystemStatsRequest\032..opi_api.storage"
- ".v1.NVMeSubsystemStatsResponse\"\000\022\220\001\n\024Cre"
- "ateNVMeController\022/.opi_api.storage.v1.C"
- "reateNVMeControllerRequest\032\".opi_api.sto"
- "rage.v1.NVMeController\"#\202\323\344\223\002\035\"\017/v1/cont"
- "rollers:\ncontroller\022\205\001\n\024DeleteNVMeContro"
- "ller\022/.opi_api.storage.v1.DeleteNVMeCont"
- "rollerRequest\032\026.google.protobuf.Empty\"$\202"
- "\323\344\223\002\036*\034/v1/controllers/{controller}\022\220\001\n\024"
- "UpdateNVMeController\022/.opi_api.storage.v"
- "1.UpdateNVMeControllerRequest\032\".opi_api."
- "storage.v1.NVMeController\"#\202\323\344\223\002\0352\017/v1/c"
- "ontrollers:\ncontroller\022\214\001\n\022ListNVMeContr"
- "oller\022-.opi_api.storage.v1.ListNVMeContr"
- "ollerRequest\032..opi_api.storage.v1.ListNV"
- "MeControllerResponse\"\027\202\323\344\223\002\021\022\017/v1/contro"
- "llers\022\213\001\n\021GetNVMeController\022,.opi_api.st"
- "orage.v1.GetNVMeControllerRequest\032\".opi_"
- "api.storage.v1.NVMeController\"$\202\323\344\223\002\036\022\034/"
- "v1/controllers/{controller}\022x\n\023NVMeContr"
- "ollerStats\022..opi_api.storage.v1.NVMeCont"
- "rollerStatsRequest\032/.opi_api.storage.v1."
- "NVMeControllerStatsResponse\"\000\022\213\001\n\023Create"
- "NVMeNamespace\022..opi_api.storage.v1.Creat"
- "eNVMeNamespaceRequest\032!.opi_api.storage."
- "v1.NVMeNamespace\"!\202\323\344\223\002\033\"\016/v1/namespaces"
- ":\tnamespace\022\201\001\n\023DeleteNVMeNamespace\022..op"
- "i_api.storage.v1.DeleteNVMeNamespaceRequ"
- "est\032\026.google.protobuf.Empty\"\"\202\323\344\223\002\034*\032/v1"
- "/namespaces/{namespace}\022\213\001\n\023UpdateNVMeNa"
- "mespace\022..opi_api.storage.v1.UpdateNVMeN"
- "amespaceRequest\032!.opi_api.storage.v1.NVM"
- "eNamespace\"!\202\323\344\223\002\0332\016/v1/namespaces:\tname"
- "space\022\210\001\n\021ListNVMeNamespace\022,.opi_api.st"
- "orage.v1.ListNVMeNamespaceRequest\032-.opi_"
- "api.storage.v1.ListNVMeNamespaceResponse"
- "\"\026\202\323\344\223\002\020\022\016/v1/namespaces\022\206\001\n\020GetNVMeName"
- "space\022+.opi_api.storage.v1.GetNVMeNamesp"
- "aceRequest\032!.opi_api.storage.v1.NVMeName"
- "space\"\"\202\323\344\223\002\034\022\032/v1/namespaces/{namespace"
- "}\022u\n\022NVMeNamespaceStats\022-.opi_api.storag"
- "e.v1.NVMeNamespaceStatsRequest\032..opi_api"
- ".storage.v1.NVMeNamespaceStatsResponse\"\000"
- "Bd\n\022opi_api.storage.v1B\025FrontendNvmePcie"
- "ProtoP\001Z5github.com/opiproject/opi-api/s"
- "torage/v1alpha1/gen/gob\006proto3"
+ "bjectKey\"+\n\032NVMeSubsystemStatsResponse\022\r"
+ "\n\005stats\030\001 \001(\t\"\203\001\n\033CreateNVMeControllerRe"
+ "quest\0226\n\ncontroller\030\001 \001(\0132\".opi_api.stor"
+ "age.v1.NVMeController\022,\n\006txn_id\030\002 \001(\0132\034."
+ "opi_api.common.v1.ObjectKey\"\200\001\n\033DeleteNV"
+ "MeControllerRequest\0223\n\rcontroller_id\030\001 \001"
+ "(\0132\034.opi_api.common.v1.ObjectKey\022,\n\006txn_"
+ "id\030\002 \001(\0132\034.opi_api.common.v1.ObjectKey\"\203"
+ "\001\n\033UpdateNVMeControllerRequest\0226\n\ncontro"
+ "ller\030\001 \001(\0132\".opi_api.storage.v1.NVMeCont"
+ "roller\022,\n\006txn_id\030\002 \001(\0132\034.opi_api.common."
+ "v1.ObjectKey\"v\n\031ListNVMeControllerReques"
+ "t\0222\n\014subsystem_id\030\001 \001(\0132\034.opi_api.common"
+ ".v1.ObjectKey\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage"
+ "_token\030\003 \001(\t\"n\n\032ListNVMeControllerRespon"
+ "se\0227\n\013controllers\030\001 \003(\0132\".opi_api.storag"
+ "e.v1.NVMeController\022\027\n\017next_page_token\030\002"
+ " \001(\t\"O\n\030GetNVMeControllerRequest\0223\n\rcont"
+ "roller_id\030\001 \001(\0132\034.opi_api.common.v1.Obje"
+ "ctKey\"F\n\032NVMeControllerStatsRequest\022(\n\002i"
+ "d\030\001 \001(\0132\034.opi_api.common.v1.ObjectKey\"V\n"
+ "\033NVMeControllerStatsResponse\022(\n\002id\030\001 \001(\013"
+ "2\034.opi_api.common.v1.ObjectKey\022\r\n\005stats\030"
+ "\002 \001(\t\"\200\001\n\032CreateNVMeNamespaceRequest\0224\n\t"
+ "namespace\030\001 \001(\0132!.opi_api.storage.v1.NVM"
+ "eNamespace\022,\n\006txn_id\030\002 \001(\0132\034.opi_api.com"
+ "mon.v1.ObjectKey\"~\n\032DeleteNVMeNamespaceR"
+ "equest\0222\n\014namespace_id\030\001 \001(\0132\034.opi_api.c"
+ "ommon.v1.ObjectKey\022,\n\006txn_id\030\002 \001(\0132\034.opi"
+ "_api.common.v1.ObjectKey\"\200\001\n\032UpdateNVMeN"
+ "amespaceRequest\0224\n\tnamespace\030\001 \001(\0132!.opi"
+ "_api.storage.v1.NVMeNamespace\022,\n\006txn_id\030"
+ "\002 \001(\0132\034.opi_api.common.v1.ObjectKey\"u\n\030L"
+ "istNVMeNamespaceRequest\0222\n\014subsystem_id\030"
+ "\001 \001(\0132\034.opi_api.common.v1.ObjectKey\022\021\n\tp"
+ "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\031Li"
+ "stNVMeNamespaceResponse\0225\n\nnamespaces\030\001 "
+ "\003(\0132!.opi_api.storage.v1.NVMeNamespace\022\027"
+ "\n\017next_page_token\030\002 \001(\t\"M\n\027GetNVMeNamesp"
+ "aceRequest\0222\n\014namespace_id\030\001 \001(\0132\034.opi_a"
+ "pi.common.v1.ObjectKey\"O\n\031NVMeNamespaceS"
+ "tatsRequest\0222\n\014namespace_id\030\001 \001(\0132\034.opi_"
+ "api.common.v1.ObjectKey\"U\n\032NVMeNamespace"
+ "StatsResponse\022(\n\002id\030\001 \001(\0132\034.opi_api.comm"
+ "on.v1.ObjectKey\022\r\n\005stats\030\002 \001(\t*\266\001\n\025NVMeN"
+ "amespacePciState\022)\n%NV_ME_NAMESPACE_PCI_"
+ "STATE_UNSPECIFIED\020\000\022%\n!NVME_NAMESPACE_PC"
+ "I_STATE_DISABLED\020\001\022$\n NVME_NAMESPACE_PCI"
+ "_STATE_ENABLED\020\002\022%\n!NVME_NAMESPACE_PCI_S"
+ "TATE_DELETING\020\003*\240\001\n\031NVMeNamespacePciOper"
+ "State\022.\n*NV_ME_NAMESPACE_PCI_OPER_STATE_"
+ "UNSPECIFIED\020\000\022(\n$NVME_NAMESPACE_PCI_OPER"
+ "_STATE_ONLINE\020\001\022)\n%NVME_NAMESPACE_PCI_OP"
+ "ER_STATE_OFFLINE\020\0022\260\023\n\023FrontendNvmeServi"
+ "ce\022\213\001\n\023CreateNVMeSubsystem\022..opi_api.sto"
+ "rage.v1.CreateNVMeSubsystemRequest\032!.opi"
+ "_api.storage.v1.NVMeSubsystem\"!\202\323\344\223\002\033\"\016/"
+ "v1/subsystems:\tsubsystem\022\201\001\n\023DeleteNVMeS"
+ "ubsystem\022..opi_api.storage.v1.DeleteNVMe"
+ "SubsystemRequest\032\026.google.protobuf.Empty"
+ "\"\"\202\323\344\223\002\034*\032/v1/subsystems/{subsystem}\022\213\001\n"
+ "\023UpdateNVMeSubsystem\022..opi_api.storage.v"
+ "1.UpdateNVMeSubsystemRequest\032!.opi_api.s"
+ "torage.v1.NVMeSubsystem\"!\202\323\344\223\002\0332\016/v1/sub"
+ "systems:\tsubsystem\022\210\001\n\021ListNVMeSubsystem"
+ "\022,.opi_api.storage.v1.ListNVMeSubsystemR"
+ "equest\032-.opi_api.storage.v1.ListNVMeSubs"
+ "ystemResponse\"\026\202\323\344\223\002\020\022\016/v1/subsystems\022\206\001"
+ "\n\020GetNVMeSubsystem\022+.opi_api.storage.v1."
+ "GetNVMeSubsystemRequest\032!.opi_api.storag"
+ "e.v1.NVMeSubsystem\"\"\202\323\344\223\002\034\022\032/v1/subsyste"
+ "ms/{subsystem}\022u\n\022NVMeSubsystemStats\022-.o"
+ "pi_api.storage.v1.NVMeSubsystemStatsRequ"
+ "est\032..opi_api.storage.v1.NVMeSubsystemSt"
+ "atsResponse\"\000\022\220\001\n\024CreateNVMeController\022/"
+ ".opi_api.storage.v1.CreateNVMeController"
+ "Request\032\".opi_api.storage.v1.NVMeControl"
+ "ler\"#\202\323\344\223\002\035\"\017/v1/controllers:\ncontroller"
+ "\022\205\001\n\024DeleteNVMeController\022/.opi_api.stor"
+ "age.v1.DeleteNVMeControllerRequest\032\026.goo"
+ "gle.protobuf.Empty\"$\202\323\344\223\002\036*\034/v1/controll"
+ "ers/{controller}\022\220\001\n\024UpdateNVMeControlle"
+ "r\022/.opi_api.storage.v1.UpdateNVMeControl"
+ "lerRequest\032\".opi_api.storage.v1.NVMeCont"
+ "roller\"#\202\323\344\223\002\0352\017/v1/controllers:\ncontrol"
+ "ler\022\214\001\n\022ListNVMeController\022-.opi_api.sto"
+ "rage.v1.ListNVMeControllerRequest\032..opi_"
+ "api.storage.v1.ListNVMeControllerRespons"
+ "e\"\027\202\323\344\223\002\021\022\017/v1/controllers\022\213\001\n\021GetNVMeCo"
+ "ntroller\022,.opi_api.storage.v1.GetNVMeCon"
+ "trollerRequest\032\".opi_api.storage.v1.NVMe"
+ "Controller\"$\202\323\344\223\002\036\022\034/v1/controllers/{con"
+ "troller}\022x\n\023NVMeControllerStats\022..opi_ap"
+ "i.storage.v1.NVMeControllerStatsRequest\032"
+ "/.opi_api.storage.v1.NVMeControllerStats"
+ "Response\"\000\022\213\001\n\023CreateNVMeNamespace\022..opi"
+ "_api.storage.v1.CreateNVMeNamespaceReque"
+ "st\032!.opi_api.storage.v1.NVMeNamespace\"!\202"
+ "\323\344\223\002\033\"\016/v1/namespaces:\tnamespace\022\201\001\n\023Del"
+ "eteNVMeNamespace\022..opi_api.storage.v1.De"
+ "leteNVMeNamespaceRequest\032\026.google.protob"
+ "uf.Empty\"\"\202\323\344\223\002\034*\032/v1/namespaces/{namesp"
+ "ace}\022\213\001\n\023UpdateNVMeNamespace\022..opi_api.s"
+ "torage.v1.UpdateNVMeNamespaceRequest\032!.o"
+ "pi_api.storage.v1.NVMeNamespace\"!\202\323\344\223\002\0332"
+ "\016/v1/namespaces:\tnamespace\022\210\001\n\021ListNVMeN"
+ "amespace\022,.opi_api.storage.v1.ListNVMeNa"
+ "mespaceRequest\032-.opi_api.storage.v1.List"
+ "NVMeNamespaceResponse\"\026\202\323\344\223\002\020\022\016/v1/names"
+ "paces\022\206\001\n\020GetNVMeNamespace\022+.opi_api.sto"
+ "rage.v1.GetNVMeNamespaceRequest\032!.opi_ap"
+ "i.storage.v1.NVMeNamespace\"\"\202\323\344\223\002\034\022\032/v1/"
+ "namespaces/{namespace}\022u\n\022NVMeNamespaceS"
+ "tats\022-.opi_api.storage.v1.NVMeNamespaceS"
+ "tatsRequest\032..opi_api.storage.v1.NVMeNam"
+ "espaceStatsResponse\"\000Bd\n\022opi_api.storage"
+ ".v1B\025FrontendNvmePcieProtoP\001Z5github.com"
+ "/opiproject/opi-api/storage/v1alpha1/gen"
+ "/gob\006proto3"
;
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_frontend_5fnvme_5fpcie_2eproto_deps[5] = {
&::descriptor_table_google_2fapi_2fannotations_2eproto,
@@ -969,7 +998,7 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor
};
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_frontend_5fnvme_5fpcie_2eproto_once;
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_frontend_5fnvme_5fpcie_2eproto = {
- false, false, 6510, descriptor_table_protodef_frontend_5fnvme_5fpcie_2eproto, "frontend_nvme_pcie.proto",
+ false, false, 6931, descriptor_table_protodef_frontend_5fnvme_5fpcie_2eproto, "frontend_nvme_pcie.proto",
&descriptor_table_frontend_5fnvme_5fpcie_2eproto_once, descriptor_table_frontend_5fnvme_5fpcie_2eproto_deps, 5, 33,
schemas, file_default_instances, TableStruct_frontend_5fnvme_5fpcie_2eproto::offsets,
file_level_metadata_frontend_5fnvme_5fpcie_2eproto, file_level_enum_descriptors_frontend_5fnvme_5fpcie_2eproto, file_level_service_descriptors_frontend_5fnvme_5fpcie_2eproto,
@@ -3669,12 +3698,23 @@ ::PROTOBUF_NAMESPACE_ID::Metadata NVMeNamespaceStatus::GetMetadata() const {
class CreateNVMeSubsystemRequest::_Internal {
public:
static const ::opi_api::storage::v1::NVMeSubsystem& subsystem(const CreateNVMeSubsystemRequest* msg);
+ static const ::opi_api::common::v1::ObjectKey& txn_id(const CreateNVMeSubsystemRequest* msg);
};
const ::opi_api::storage::v1::NVMeSubsystem&
CreateNVMeSubsystemRequest::_Internal::subsystem(const CreateNVMeSubsystemRequest* msg) {
return *msg->subsystem_;
}
+const ::opi_api::common::v1::ObjectKey&
+CreateNVMeSubsystemRequest::_Internal::txn_id(const CreateNVMeSubsystemRequest* msg) {
+ return *msg->txn_id_;
+}
+void CreateNVMeSubsystemRequest::clear_txn_id() {
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
+}
CreateNVMeSubsystemRequest::CreateNVMeSubsystemRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -3692,11 +3732,19 @@ CreateNVMeSubsystemRequest::CreateNVMeSubsystemRequest(const CreateNVMeSubsystem
} else {
subsystem_ = nullptr;
}
+ if (from._internal_has_txn_id()) {
+ txn_id_ = new ::opi_api::common::v1::ObjectKey(*from.txn_id_);
+ } else {
+ txn_id_ = nullptr;
+ }
// @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.CreateNVMeSubsystemRequest)
}
inline void CreateNVMeSubsystemRequest::SharedCtor() {
-subsystem_ = nullptr;
+::memset(reinterpret_cast(this) + static_cast(
+ reinterpret_cast(&subsystem_) - reinterpret_cast(this)),
+ 0, static_cast(reinterpret_cast(&txn_id_) -
+ reinterpret_cast(&subsystem_)) + sizeof(txn_id_));
}
CreateNVMeSubsystemRequest::~CreateNVMeSubsystemRequest() {
@@ -3709,6 +3757,7 @@ CreateNVMeSubsystemRequest::~CreateNVMeSubsystemRequest() {
inline void CreateNVMeSubsystemRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete subsystem_;
+ if (this != internal_default_instance()) delete txn_id_;
}
void CreateNVMeSubsystemRequest::ArenaDtor(void* object) {
@@ -3731,6 +3780,10 @@ void CreateNVMeSubsystemRequest::Clear() {
delete subsystem_;
}
subsystem_ = nullptr;
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -3748,6 +3801,14 @@ const char* CreateNVMeSubsystemRequest::_InternalParse(const char* ptr, ::PROTOB
} else
goto handle_unusual;
continue;
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_txn_id(), ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
default:
goto handle_unusual;
} // switch
@@ -3785,6 +3846,14 @@ uint8_t* CreateNVMeSubsystemRequest::_InternalSerialize(
1, _Internal::subsystem(this), target, stream);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::txn_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);
@@ -3808,6 +3877,13 @@ size_t CreateNVMeSubsystemRequest::ByteSizeLong() const {
*subsystem_);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *txn_id_);
+ }
+
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
@@ -3833,6 +3909,9 @@ void CreateNVMeSubsystemRequest::MergeFrom(const CreateNVMeSubsystemRequest& fro
if (from._internal_has_subsystem()) {
_internal_mutable_subsystem()->::opi_api::storage::v1::NVMeSubsystem::MergeFrom(from._internal_subsystem());
}
+ if (from._internal_has_txn_id()) {
+ _internal_mutable_txn_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_txn_id());
+ }
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -3850,7 +3929,12 @@ bool CreateNVMeSubsystemRequest::IsInitialized() const {
void CreateNVMeSubsystemRequest::InternalSwap(CreateNVMeSubsystemRequest* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(subsystem_, other->subsystem_);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(CreateNVMeSubsystemRequest, txn_id_)
+ + sizeof(CreateNVMeSubsystemRequest::txn_id_)
+ - PROTOBUF_FIELD_OFFSET(CreateNVMeSubsystemRequest, subsystem_)>(
+ reinterpret_cast(&subsystem_),
+ reinterpret_cast(&other->subsystem_));
}
::PROTOBUF_NAMESPACE_ID::Metadata CreateNVMeSubsystemRequest::GetMetadata() const {
@@ -3864,18 +3948,29 @@ ::PROTOBUF_NAMESPACE_ID::Metadata CreateNVMeSubsystemRequest::GetMetadata() cons
class DeleteNVMeSubsystemRequest::_Internal {
public:
static const ::opi_api::common::v1::ObjectKey& subsystem_id(const DeleteNVMeSubsystemRequest* msg);
+ static const ::opi_api::common::v1::ObjectKey& txn_id(const DeleteNVMeSubsystemRequest* msg);
};
const ::opi_api::common::v1::ObjectKey&
DeleteNVMeSubsystemRequest::_Internal::subsystem_id(const DeleteNVMeSubsystemRequest* msg) {
return *msg->subsystem_id_;
}
+const ::opi_api::common::v1::ObjectKey&
+DeleteNVMeSubsystemRequest::_Internal::txn_id(const DeleteNVMeSubsystemRequest* msg) {
+ return *msg->txn_id_;
+}
void DeleteNVMeSubsystemRequest::clear_subsystem_id() {
if (GetArenaForAllocation() == nullptr && subsystem_id_ != nullptr) {
delete subsystem_id_;
}
subsystem_id_ = nullptr;
}
+void DeleteNVMeSubsystemRequest::clear_txn_id() {
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
+}
DeleteNVMeSubsystemRequest::DeleteNVMeSubsystemRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -3893,11 +3988,19 @@ DeleteNVMeSubsystemRequest::DeleteNVMeSubsystemRequest(const DeleteNVMeSubsystem
} else {
subsystem_id_ = nullptr;
}
+ if (from._internal_has_txn_id()) {
+ txn_id_ = new ::opi_api::common::v1::ObjectKey(*from.txn_id_);
+ } else {
+ txn_id_ = nullptr;
+ }
// @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.DeleteNVMeSubsystemRequest)
}
inline void DeleteNVMeSubsystemRequest::SharedCtor() {
-subsystem_id_ = nullptr;
+::memset(reinterpret_cast(this) + static_cast(
+ reinterpret_cast(&subsystem_id_) - reinterpret_cast(this)),
+ 0, static_cast(reinterpret_cast(&txn_id_) -
+ reinterpret_cast(&subsystem_id_)) + sizeof(txn_id_));
}
DeleteNVMeSubsystemRequest::~DeleteNVMeSubsystemRequest() {
@@ -3910,6 +4013,7 @@ DeleteNVMeSubsystemRequest::~DeleteNVMeSubsystemRequest() {
inline void DeleteNVMeSubsystemRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete subsystem_id_;
+ if (this != internal_default_instance()) delete txn_id_;
}
void DeleteNVMeSubsystemRequest::ArenaDtor(void* object) {
@@ -3932,6 +4036,10 @@ void DeleteNVMeSubsystemRequest::Clear() {
delete subsystem_id_;
}
subsystem_id_ = nullptr;
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -3949,6 +4057,14 @@ const char* DeleteNVMeSubsystemRequest::_InternalParse(const char* ptr, ::PROTOB
} else
goto handle_unusual;
continue;
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_txn_id(), ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
default:
goto handle_unusual;
} // switch
@@ -3986,6 +4102,14 @@ uint8_t* DeleteNVMeSubsystemRequest::_InternalSerialize(
1, _Internal::subsystem_id(this), target, stream);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::txn_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);
@@ -4009,6 +4133,13 @@ size_t DeleteNVMeSubsystemRequest::ByteSizeLong() const {
*subsystem_id_);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *txn_id_);
+ }
+
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
@@ -4034,6 +4165,9 @@ void DeleteNVMeSubsystemRequest::MergeFrom(const DeleteNVMeSubsystemRequest& fro
if (from._internal_has_subsystem_id()) {
_internal_mutable_subsystem_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_subsystem_id());
}
+ if (from._internal_has_txn_id()) {
+ _internal_mutable_txn_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_txn_id());
+ }
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -4051,7 +4185,12 @@ bool DeleteNVMeSubsystemRequest::IsInitialized() const {
void DeleteNVMeSubsystemRequest::InternalSwap(DeleteNVMeSubsystemRequest* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(subsystem_id_, other->subsystem_id_);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(DeleteNVMeSubsystemRequest, txn_id_)
+ + sizeof(DeleteNVMeSubsystemRequest::txn_id_)
+ - PROTOBUF_FIELD_OFFSET(DeleteNVMeSubsystemRequest, subsystem_id_)>(
+ reinterpret_cast(&subsystem_id_),
+ reinterpret_cast(&other->subsystem_id_));
}
::PROTOBUF_NAMESPACE_ID::Metadata DeleteNVMeSubsystemRequest::GetMetadata() const {
@@ -4065,12 +4204,23 @@ ::PROTOBUF_NAMESPACE_ID::Metadata DeleteNVMeSubsystemRequest::GetMetadata() cons
class UpdateNVMeSubsystemRequest::_Internal {
public:
static const ::opi_api::storage::v1::NVMeSubsystem& subsystem(const UpdateNVMeSubsystemRequest* msg);
+ static const ::opi_api::common::v1::ObjectKey& txn_id(const UpdateNVMeSubsystemRequest* msg);
};
const ::opi_api::storage::v1::NVMeSubsystem&
UpdateNVMeSubsystemRequest::_Internal::subsystem(const UpdateNVMeSubsystemRequest* msg) {
return *msg->subsystem_;
}
+const ::opi_api::common::v1::ObjectKey&
+UpdateNVMeSubsystemRequest::_Internal::txn_id(const UpdateNVMeSubsystemRequest* msg) {
+ return *msg->txn_id_;
+}
+void UpdateNVMeSubsystemRequest::clear_txn_id() {
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
+}
UpdateNVMeSubsystemRequest::UpdateNVMeSubsystemRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -4088,11 +4238,19 @@ UpdateNVMeSubsystemRequest::UpdateNVMeSubsystemRequest(const UpdateNVMeSubsystem
} else {
subsystem_ = nullptr;
}
+ if (from._internal_has_txn_id()) {
+ txn_id_ = new ::opi_api::common::v1::ObjectKey(*from.txn_id_);
+ } else {
+ txn_id_ = nullptr;
+ }
// @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.UpdateNVMeSubsystemRequest)
}
inline void UpdateNVMeSubsystemRequest::SharedCtor() {
-subsystem_ = nullptr;
+::memset(reinterpret_cast(this) + static_cast(
+ reinterpret_cast(&subsystem_) - reinterpret_cast(this)),
+ 0, static_cast(reinterpret_cast(&txn_id_) -
+ reinterpret_cast(&subsystem_)) + sizeof(txn_id_));
}
UpdateNVMeSubsystemRequest::~UpdateNVMeSubsystemRequest() {
@@ -4105,6 +4263,7 @@ UpdateNVMeSubsystemRequest::~UpdateNVMeSubsystemRequest() {
inline void UpdateNVMeSubsystemRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete subsystem_;
+ if (this != internal_default_instance()) delete txn_id_;
}
void UpdateNVMeSubsystemRequest::ArenaDtor(void* object) {
@@ -4127,6 +4286,10 @@ void UpdateNVMeSubsystemRequest::Clear() {
delete subsystem_;
}
subsystem_ = nullptr;
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -4144,6 +4307,14 @@ const char* UpdateNVMeSubsystemRequest::_InternalParse(const char* ptr, ::PROTOB
} else
goto handle_unusual;
continue;
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_txn_id(), ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
default:
goto handle_unusual;
} // switch
@@ -4181,6 +4352,14 @@ uint8_t* UpdateNVMeSubsystemRequest::_InternalSerialize(
1, _Internal::subsystem(this), target, stream);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::txn_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);
@@ -4204,6 +4383,13 @@ size_t UpdateNVMeSubsystemRequest::ByteSizeLong() const {
*subsystem_);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *txn_id_);
+ }
+
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
@@ -4229,6 +4415,9 @@ void UpdateNVMeSubsystemRequest::MergeFrom(const UpdateNVMeSubsystemRequest& fro
if (from._internal_has_subsystem()) {
_internal_mutable_subsystem()->::opi_api::storage::v1::NVMeSubsystem::MergeFrom(from._internal_subsystem());
}
+ if (from._internal_has_txn_id()) {
+ _internal_mutable_txn_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_txn_id());
+ }
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -4246,7 +4435,12 @@ bool UpdateNVMeSubsystemRequest::IsInitialized() const {
void UpdateNVMeSubsystemRequest::InternalSwap(UpdateNVMeSubsystemRequest* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(subsystem_, other->subsystem_);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(UpdateNVMeSubsystemRequest, txn_id_)
+ + sizeof(UpdateNVMeSubsystemRequest::txn_id_)
+ - PROTOBUF_FIELD_OFFSET(UpdateNVMeSubsystemRequest, subsystem_)>(
+ reinterpret_cast(&subsystem_),
+ reinterpret_cast(&other->subsystem_));
}
::PROTOBUF_NAMESPACE_ID::Metadata UpdateNVMeSubsystemRequest::GetMetadata() const {
@@ -5330,12 +5524,23 @@ ::PROTOBUF_NAMESPACE_ID::Metadata NVMeSubsystemStatsResponse::GetMetadata() cons
class CreateNVMeControllerRequest::_Internal {
public:
static const ::opi_api::storage::v1::NVMeController& controller(const CreateNVMeControllerRequest* msg);
+ static const ::opi_api::common::v1::ObjectKey& txn_id(const CreateNVMeControllerRequest* msg);
};
const ::opi_api::storage::v1::NVMeController&
CreateNVMeControllerRequest::_Internal::controller(const CreateNVMeControllerRequest* msg) {
return *msg->controller_;
}
+const ::opi_api::common::v1::ObjectKey&
+CreateNVMeControllerRequest::_Internal::txn_id(const CreateNVMeControllerRequest* msg) {
+ return *msg->txn_id_;
+}
+void CreateNVMeControllerRequest::clear_txn_id() {
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
+}
CreateNVMeControllerRequest::CreateNVMeControllerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -5353,11 +5558,19 @@ CreateNVMeControllerRequest::CreateNVMeControllerRequest(const CreateNVMeControl
} else {
controller_ = nullptr;
}
+ if (from._internal_has_txn_id()) {
+ txn_id_ = new ::opi_api::common::v1::ObjectKey(*from.txn_id_);
+ } else {
+ txn_id_ = nullptr;
+ }
// @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.CreateNVMeControllerRequest)
}
inline void CreateNVMeControllerRequest::SharedCtor() {
-controller_ = nullptr;
+::memset(reinterpret_cast(this) + static_cast(
+ reinterpret_cast(&controller_) - reinterpret_cast(this)),
+ 0, static_cast(reinterpret_cast(&txn_id_) -
+ reinterpret_cast(&controller_)) + sizeof(txn_id_));
}
CreateNVMeControllerRequest::~CreateNVMeControllerRequest() {
@@ -5370,6 +5583,7 @@ CreateNVMeControllerRequest::~CreateNVMeControllerRequest() {
inline void CreateNVMeControllerRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete controller_;
+ if (this != internal_default_instance()) delete txn_id_;
}
void CreateNVMeControllerRequest::ArenaDtor(void* object) {
@@ -5392,6 +5606,10 @@ void CreateNVMeControllerRequest::Clear() {
delete controller_;
}
controller_ = nullptr;
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -5409,6 +5627,14 @@ const char* CreateNVMeControllerRequest::_InternalParse(const char* ptr, ::PROTO
} else
goto handle_unusual;
continue;
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_txn_id(), ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
default:
goto handle_unusual;
} // switch
@@ -5446,6 +5672,14 @@ uint8_t* CreateNVMeControllerRequest::_InternalSerialize(
1, _Internal::controller(this), target, stream);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::txn_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);
@@ -5469,6 +5703,13 @@ size_t CreateNVMeControllerRequest::ByteSizeLong() const {
*controller_);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *txn_id_);
+ }
+
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
@@ -5494,6 +5735,9 @@ void CreateNVMeControllerRequest::MergeFrom(const CreateNVMeControllerRequest& f
if (from._internal_has_controller()) {
_internal_mutable_controller()->::opi_api::storage::v1::NVMeController::MergeFrom(from._internal_controller());
}
+ if (from._internal_has_txn_id()) {
+ _internal_mutable_txn_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_txn_id());
+ }
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -5511,7 +5755,12 @@ bool CreateNVMeControllerRequest::IsInitialized() const {
void CreateNVMeControllerRequest::InternalSwap(CreateNVMeControllerRequest* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(controller_, other->controller_);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(CreateNVMeControllerRequest, txn_id_)
+ + sizeof(CreateNVMeControllerRequest::txn_id_)
+ - PROTOBUF_FIELD_OFFSET(CreateNVMeControllerRequest, controller_)>(
+ reinterpret_cast(&controller_),
+ reinterpret_cast(&other->controller_));
}
::PROTOBUF_NAMESPACE_ID::Metadata CreateNVMeControllerRequest::GetMetadata() const {
@@ -5525,18 +5774,29 @@ ::PROTOBUF_NAMESPACE_ID::Metadata CreateNVMeControllerRequest::GetMetadata() con
class DeleteNVMeControllerRequest::_Internal {
public:
static const ::opi_api::common::v1::ObjectKey& controller_id(const DeleteNVMeControllerRequest* msg);
+ static const ::opi_api::common::v1::ObjectKey& txn_id(const DeleteNVMeControllerRequest* msg);
};
const ::opi_api::common::v1::ObjectKey&
DeleteNVMeControllerRequest::_Internal::controller_id(const DeleteNVMeControllerRequest* msg) {
return *msg->controller_id_;
}
+const ::opi_api::common::v1::ObjectKey&
+DeleteNVMeControllerRequest::_Internal::txn_id(const DeleteNVMeControllerRequest* msg) {
+ return *msg->txn_id_;
+}
void DeleteNVMeControllerRequest::clear_controller_id() {
if (GetArenaForAllocation() == nullptr && controller_id_ != nullptr) {
delete controller_id_;
}
controller_id_ = nullptr;
}
+void DeleteNVMeControllerRequest::clear_txn_id() {
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
+}
DeleteNVMeControllerRequest::DeleteNVMeControllerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -5554,11 +5814,19 @@ DeleteNVMeControllerRequest::DeleteNVMeControllerRequest(const DeleteNVMeControl
} else {
controller_id_ = nullptr;
}
+ if (from._internal_has_txn_id()) {
+ txn_id_ = new ::opi_api::common::v1::ObjectKey(*from.txn_id_);
+ } else {
+ txn_id_ = nullptr;
+ }
// @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.DeleteNVMeControllerRequest)
}
inline void DeleteNVMeControllerRequest::SharedCtor() {
-controller_id_ = nullptr;
+::memset(reinterpret_cast(this) + static_cast(
+ reinterpret_cast(&controller_id_) - reinterpret_cast(this)),
+ 0, static_cast(reinterpret_cast(&txn_id_) -
+ reinterpret_cast(&controller_id_)) + sizeof(txn_id_));
}
DeleteNVMeControllerRequest::~DeleteNVMeControllerRequest() {
@@ -5571,6 +5839,7 @@ DeleteNVMeControllerRequest::~DeleteNVMeControllerRequest() {
inline void DeleteNVMeControllerRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete controller_id_;
+ if (this != internal_default_instance()) delete txn_id_;
}
void DeleteNVMeControllerRequest::ArenaDtor(void* object) {
@@ -5593,6 +5862,10 @@ void DeleteNVMeControllerRequest::Clear() {
delete controller_id_;
}
controller_id_ = nullptr;
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -5610,6 +5883,14 @@ const char* DeleteNVMeControllerRequest::_InternalParse(const char* ptr, ::PROTO
} else
goto handle_unusual;
continue;
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_txn_id(), ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
default:
goto handle_unusual;
} // switch
@@ -5647,6 +5928,14 @@ uint8_t* DeleteNVMeControllerRequest::_InternalSerialize(
1, _Internal::controller_id(this), target, stream);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::txn_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);
@@ -5670,6 +5959,13 @@ size_t DeleteNVMeControllerRequest::ByteSizeLong() const {
*controller_id_);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *txn_id_);
+ }
+
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
@@ -5695,6 +5991,9 @@ void DeleteNVMeControllerRequest::MergeFrom(const DeleteNVMeControllerRequest& f
if (from._internal_has_controller_id()) {
_internal_mutable_controller_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_controller_id());
}
+ if (from._internal_has_txn_id()) {
+ _internal_mutable_txn_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_txn_id());
+ }
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -5712,7 +6011,12 @@ bool DeleteNVMeControllerRequest::IsInitialized() const {
void DeleteNVMeControllerRequest::InternalSwap(DeleteNVMeControllerRequest* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(controller_id_, other->controller_id_);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(DeleteNVMeControllerRequest, txn_id_)
+ + sizeof(DeleteNVMeControllerRequest::txn_id_)
+ - PROTOBUF_FIELD_OFFSET(DeleteNVMeControllerRequest, controller_id_)>(
+ reinterpret_cast(&controller_id_),
+ reinterpret_cast(&other->controller_id_));
}
::PROTOBUF_NAMESPACE_ID::Metadata DeleteNVMeControllerRequest::GetMetadata() const {
@@ -5726,12 +6030,23 @@ ::PROTOBUF_NAMESPACE_ID::Metadata DeleteNVMeControllerRequest::GetMetadata() con
class UpdateNVMeControllerRequest::_Internal {
public:
static const ::opi_api::storage::v1::NVMeController& controller(const UpdateNVMeControllerRequest* msg);
+ static const ::opi_api::common::v1::ObjectKey& txn_id(const UpdateNVMeControllerRequest* msg);
};
const ::opi_api::storage::v1::NVMeController&
UpdateNVMeControllerRequest::_Internal::controller(const UpdateNVMeControllerRequest* msg) {
return *msg->controller_;
}
+const ::opi_api::common::v1::ObjectKey&
+UpdateNVMeControllerRequest::_Internal::txn_id(const UpdateNVMeControllerRequest* msg) {
+ return *msg->txn_id_;
+}
+void UpdateNVMeControllerRequest::clear_txn_id() {
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
+}
UpdateNVMeControllerRequest::UpdateNVMeControllerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -5749,11 +6064,19 @@ UpdateNVMeControllerRequest::UpdateNVMeControllerRequest(const UpdateNVMeControl
} else {
controller_ = nullptr;
}
+ if (from._internal_has_txn_id()) {
+ txn_id_ = new ::opi_api::common::v1::ObjectKey(*from.txn_id_);
+ } else {
+ txn_id_ = nullptr;
+ }
// @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.UpdateNVMeControllerRequest)
}
inline void UpdateNVMeControllerRequest::SharedCtor() {
-controller_ = nullptr;
+::memset(reinterpret_cast(this) + static_cast(
+ reinterpret_cast(&controller_) - reinterpret_cast(this)),
+ 0, static_cast(reinterpret_cast(&txn_id_) -
+ reinterpret_cast(&controller_)) + sizeof(txn_id_));
}
UpdateNVMeControllerRequest::~UpdateNVMeControllerRequest() {
@@ -5766,6 +6089,7 @@ UpdateNVMeControllerRequest::~UpdateNVMeControllerRequest() {
inline void UpdateNVMeControllerRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete controller_;
+ if (this != internal_default_instance()) delete txn_id_;
}
void UpdateNVMeControllerRequest::ArenaDtor(void* object) {
@@ -5788,6 +6112,10 @@ void UpdateNVMeControllerRequest::Clear() {
delete controller_;
}
controller_ = nullptr;
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -5805,6 +6133,14 @@ const char* UpdateNVMeControllerRequest::_InternalParse(const char* ptr, ::PROTO
} else
goto handle_unusual;
continue;
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_txn_id(), ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
default:
goto handle_unusual;
} // switch
@@ -5842,6 +6178,14 @@ uint8_t* UpdateNVMeControllerRequest::_InternalSerialize(
1, _Internal::controller(this), target, stream);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::txn_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);
@@ -5865,6 +6209,13 @@ size_t UpdateNVMeControllerRequest::ByteSizeLong() const {
*controller_);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *txn_id_);
+ }
+
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
@@ -5890,6 +6241,9 @@ void UpdateNVMeControllerRequest::MergeFrom(const UpdateNVMeControllerRequest& f
if (from._internal_has_controller()) {
_internal_mutable_controller()->::opi_api::storage::v1::NVMeController::MergeFrom(from._internal_controller());
}
+ if (from._internal_has_txn_id()) {
+ _internal_mutable_txn_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_txn_id());
+ }
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -5907,7 +6261,12 @@ bool UpdateNVMeControllerRequest::IsInitialized() const {
void UpdateNVMeControllerRequest::InternalSwap(UpdateNVMeControllerRequest* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(controller_, other->controller_);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(UpdateNVMeControllerRequest, txn_id_)
+ + sizeof(UpdateNVMeControllerRequest::txn_id_)
+ - PROTOBUF_FIELD_OFFSET(UpdateNVMeControllerRequest, controller_)>(
+ reinterpret_cast(&controller_),
+ reinterpret_cast(&other->controller_));
}
::PROTOBUF_NAMESPACE_ID::Metadata UpdateNVMeControllerRequest::GetMetadata() const {
@@ -7095,12 +7454,23 @@ ::PROTOBUF_NAMESPACE_ID::Metadata NVMeControllerStatsResponse::GetMetadata() con
class CreateNVMeNamespaceRequest::_Internal {
public:
static const ::opi_api::storage::v1::NVMeNamespace& namespace_(const CreateNVMeNamespaceRequest* msg);
+ static const ::opi_api::common::v1::ObjectKey& txn_id(const CreateNVMeNamespaceRequest* msg);
};
const ::opi_api::storage::v1::NVMeNamespace&
CreateNVMeNamespaceRequest::_Internal::namespace_(const CreateNVMeNamespaceRequest* msg) {
return *msg->namespace__;
}
+const ::opi_api::common::v1::ObjectKey&
+CreateNVMeNamespaceRequest::_Internal::txn_id(const CreateNVMeNamespaceRequest* msg) {
+ return *msg->txn_id_;
+}
+void CreateNVMeNamespaceRequest::clear_txn_id() {
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
+}
CreateNVMeNamespaceRequest::CreateNVMeNamespaceRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -7118,11 +7488,19 @@ CreateNVMeNamespaceRequest::CreateNVMeNamespaceRequest(const CreateNVMeNamespace
} else {
namespace__ = nullptr;
}
+ if (from._internal_has_txn_id()) {
+ txn_id_ = new ::opi_api::common::v1::ObjectKey(*from.txn_id_);
+ } else {
+ txn_id_ = nullptr;
+ }
// @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.CreateNVMeNamespaceRequest)
}
inline void CreateNVMeNamespaceRequest::SharedCtor() {
-namespace__ = nullptr;
+::memset(reinterpret_cast(this) + static_cast(
+ reinterpret_cast(&namespace__) - reinterpret_cast(this)),
+ 0, static_cast(reinterpret_cast(&txn_id_) -
+ reinterpret_cast(&namespace__)) + sizeof(txn_id_));
}
CreateNVMeNamespaceRequest::~CreateNVMeNamespaceRequest() {
@@ -7135,6 +7513,7 @@ CreateNVMeNamespaceRequest::~CreateNVMeNamespaceRequest() {
inline void CreateNVMeNamespaceRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete namespace__;
+ if (this != internal_default_instance()) delete txn_id_;
}
void CreateNVMeNamespaceRequest::ArenaDtor(void* object) {
@@ -7157,6 +7536,10 @@ void CreateNVMeNamespaceRequest::Clear() {
delete namespace__;
}
namespace__ = nullptr;
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -7174,6 +7557,14 @@ const char* CreateNVMeNamespaceRequest::_InternalParse(const char* ptr, ::PROTOB
} else
goto handle_unusual;
continue;
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_txn_id(), ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
default:
goto handle_unusual;
} // switch
@@ -7211,6 +7602,14 @@ uint8_t* CreateNVMeNamespaceRequest::_InternalSerialize(
1, _Internal::namespace_(this), target, stream);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::txn_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);
@@ -7234,6 +7633,13 @@ size_t CreateNVMeNamespaceRequest::ByteSizeLong() const {
*namespace__);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *txn_id_);
+ }
+
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
@@ -7259,6 +7665,9 @@ void CreateNVMeNamespaceRequest::MergeFrom(const CreateNVMeNamespaceRequest& fro
if (from._internal_has_namespace_()) {
_internal_mutable_namespace_()->::opi_api::storage::v1::NVMeNamespace::MergeFrom(from._internal_namespace_());
}
+ if (from._internal_has_txn_id()) {
+ _internal_mutable_txn_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_txn_id());
+ }
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -7276,7 +7685,12 @@ bool CreateNVMeNamespaceRequest::IsInitialized() const {
void CreateNVMeNamespaceRequest::InternalSwap(CreateNVMeNamespaceRequest* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(namespace__, other->namespace__);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(CreateNVMeNamespaceRequest, txn_id_)
+ + sizeof(CreateNVMeNamespaceRequest::txn_id_)
+ - PROTOBUF_FIELD_OFFSET(CreateNVMeNamespaceRequest, namespace__)>(
+ reinterpret_cast(&namespace__),
+ reinterpret_cast(&other->namespace__));
}
::PROTOBUF_NAMESPACE_ID::Metadata CreateNVMeNamespaceRequest::GetMetadata() const {
@@ -7290,18 +7704,29 @@ ::PROTOBUF_NAMESPACE_ID::Metadata CreateNVMeNamespaceRequest::GetMetadata() cons
class DeleteNVMeNamespaceRequest::_Internal {
public:
static const ::opi_api::common::v1::ObjectKey& namespace_id(const DeleteNVMeNamespaceRequest* msg);
+ static const ::opi_api::common::v1::ObjectKey& txn_id(const DeleteNVMeNamespaceRequest* msg);
};
const ::opi_api::common::v1::ObjectKey&
DeleteNVMeNamespaceRequest::_Internal::namespace_id(const DeleteNVMeNamespaceRequest* msg) {
return *msg->namespace_id_;
}
+const ::opi_api::common::v1::ObjectKey&
+DeleteNVMeNamespaceRequest::_Internal::txn_id(const DeleteNVMeNamespaceRequest* msg) {
+ return *msg->txn_id_;
+}
void DeleteNVMeNamespaceRequest::clear_namespace_id() {
if (GetArenaForAllocation() == nullptr && namespace_id_ != nullptr) {
delete namespace_id_;
}
namespace_id_ = nullptr;
}
+void DeleteNVMeNamespaceRequest::clear_txn_id() {
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
+}
DeleteNVMeNamespaceRequest::DeleteNVMeNamespaceRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -7319,11 +7744,19 @@ DeleteNVMeNamespaceRequest::DeleteNVMeNamespaceRequest(const DeleteNVMeNamespace
} else {
namespace_id_ = nullptr;
}
+ if (from._internal_has_txn_id()) {
+ txn_id_ = new ::opi_api::common::v1::ObjectKey(*from.txn_id_);
+ } else {
+ txn_id_ = nullptr;
+ }
// @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.DeleteNVMeNamespaceRequest)
}
inline void DeleteNVMeNamespaceRequest::SharedCtor() {
-namespace_id_ = nullptr;
+::memset(reinterpret_cast(this) + static_cast(
+ reinterpret_cast(&namespace_id_) - reinterpret_cast(this)),
+ 0, static_cast(reinterpret_cast(&txn_id_) -
+ reinterpret_cast(&namespace_id_)) + sizeof(txn_id_));
}
DeleteNVMeNamespaceRequest::~DeleteNVMeNamespaceRequest() {
@@ -7336,6 +7769,7 @@ DeleteNVMeNamespaceRequest::~DeleteNVMeNamespaceRequest() {
inline void DeleteNVMeNamespaceRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete namespace_id_;
+ if (this != internal_default_instance()) delete txn_id_;
}
void DeleteNVMeNamespaceRequest::ArenaDtor(void* object) {
@@ -7358,6 +7792,10 @@ void DeleteNVMeNamespaceRequest::Clear() {
delete namespace_id_;
}
namespace_id_ = nullptr;
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -7375,6 +7813,14 @@ const char* DeleteNVMeNamespaceRequest::_InternalParse(const char* ptr, ::PROTOB
} else
goto handle_unusual;
continue;
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_txn_id(), ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
default:
goto handle_unusual;
} // switch
@@ -7412,6 +7858,14 @@ uint8_t* DeleteNVMeNamespaceRequest::_InternalSerialize(
1, _Internal::namespace_id(this), target, stream);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::txn_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);
@@ -7435,6 +7889,13 @@ size_t DeleteNVMeNamespaceRequest::ByteSizeLong() const {
*namespace_id_);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *txn_id_);
+ }
+
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
@@ -7460,6 +7921,9 @@ void DeleteNVMeNamespaceRequest::MergeFrom(const DeleteNVMeNamespaceRequest& fro
if (from._internal_has_namespace_id()) {
_internal_mutable_namespace_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_namespace_id());
}
+ if (from._internal_has_txn_id()) {
+ _internal_mutable_txn_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_txn_id());
+ }
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -7477,7 +7941,12 @@ bool DeleteNVMeNamespaceRequest::IsInitialized() const {
void DeleteNVMeNamespaceRequest::InternalSwap(DeleteNVMeNamespaceRequest* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(namespace_id_, other->namespace_id_);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(DeleteNVMeNamespaceRequest, txn_id_)
+ + sizeof(DeleteNVMeNamespaceRequest::txn_id_)
+ - PROTOBUF_FIELD_OFFSET(DeleteNVMeNamespaceRequest, namespace_id_)>(
+ reinterpret_cast(&namespace_id_),
+ reinterpret_cast(&other->namespace_id_));
}
::PROTOBUF_NAMESPACE_ID::Metadata DeleteNVMeNamespaceRequest::GetMetadata() const {
@@ -7491,12 +7960,23 @@ ::PROTOBUF_NAMESPACE_ID::Metadata DeleteNVMeNamespaceRequest::GetMetadata() cons
class UpdateNVMeNamespaceRequest::_Internal {
public:
static const ::opi_api::storage::v1::NVMeNamespace& namespace_(const UpdateNVMeNamespaceRequest* msg);
+ static const ::opi_api::common::v1::ObjectKey& txn_id(const UpdateNVMeNamespaceRequest* msg);
};
const ::opi_api::storage::v1::NVMeNamespace&
UpdateNVMeNamespaceRequest::_Internal::namespace_(const UpdateNVMeNamespaceRequest* msg) {
return *msg->namespace__;
}
+const ::opi_api::common::v1::ObjectKey&
+UpdateNVMeNamespaceRequest::_Internal::txn_id(const UpdateNVMeNamespaceRequest* msg) {
+ return *msg->txn_id_;
+}
+void UpdateNVMeNamespaceRequest::clear_txn_id() {
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
+}
UpdateNVMeNamespaceRequest::UpdateNVMeNamespaceRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -7514,11 +7994,19 @@ UpdateNVMeNamespaceRequest::UpdateNVMeNamespaceRequest(const UpdateNVMeNamespace
} else {
namespace__ = nullptr;
}
+ if (from._internal_has_txn_id()) {
+ txn_id_ = new ::opi_api::common::v1::ObjectKey(*from.txn_id_);
+ } else {
+ txn_id_ = nullptr;
+ }
// @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.UpdateNVMeNamespaceRequest)
}
inline void UpdateNVMeNamespaceRequest::SharedCtor() {
-namespace__ = nullptr;
+::memset(reinterpret_cast(this) + static_cast(
+ reinterpret_cast(&namespace__) - reinterpret_cast(this)),
+ 0, static_cast(reinterpret_cast(&txn_id_) -
+ reinterpret_cast(&namespace__)) + sizeof(txn_id_));
}
UpdateNVMeNamespaceRequest::~UpdateNVMeNamespaceRequest() {
@@ -7531,6 +8019,7 @@ UpdateNVMeNamespaceRequest::~UpdateNVMeNamespaceRequest() {
inline void UpdateNVMeNamespaceRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete namespace__;
+ if (this != internal_default_instance()) delete txn_id_;
}
void UpdateNVMeNamespaceRequest::ArenaDtor(void* object) {
@@ -7553,6 +8042,10 @@ void UpdateNVMeNamespaceRequest::Clear() {
delete namespace__;
}
namespace__ = nullptr;
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -7570,6 +8063,14 @@ const char* UpdateNVMeNamespaceRequest::_InternalParse(const char* ptr, ::PROTOB
} else
goto handle_unusual;
continue;
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_txn_id(), ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
default:
goto handle_unusual;
} // switch
@@ -7607,6 +8108,14 @@ uint8_t* UpdateNVMeNamespaceRequest::_InternalSerialize(
1, _Internal::namespace_(this), target, stream);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::txn_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);
@@ -7630,6 +8139,13 @@ size_t UpdateNVMeNamespaceRequest::ByteSizeLong() const {
*namespace__);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *txn_id_);
+ }
+
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
@@ -7655,6 +8171,9 @@ void UpdateNVMeNamespaceRequest::MergeFrom(const UpdateNVMeNamespaceRequest& fro
if (from._internal_has_namespace_()) {
_internal_mutable_namespace_()->::opi_api::storage::v1::NVMeNamespace::MergeFrom(from._internal_namespace_());
}
+ if (from._internal_has_txn_id()) {
+ _internal_mutable_txn_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_txn_id());
+ }
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -7672,7 +8191,12 @@ bool UpdateNVMeNamespaceRequest::IsInitialized() const {
void UpdateNVMeNamespaceRequest::InternalSwap(UpdateNVMeNamespaceRequest* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(namespace__, other->namespace__);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(UpdateNVMeNamespaceRequest, txn_id_)
+ + sizeof(UpdateNVMeNamespaceRequest::txn_id_)
+ - PROTOBUF_FIELD_OFFSET(UpdateNVMeNamespaceRequest, namespace__)>(
+ reinterpret_cast(&namespace__),
+ reinterpret_cast(&other->namespace__));
}
::PROTOBUF_NAMESPACE_ID::Metadata UpdateNVMeNamespaceRequest::GetMetadata() const {
diff --git a/storage/v1alpha1/gen/cpp/frontend_nvme_pcie.pb.h b/storage/v1alpha1/gen/cpp/frontend_nvme_pcie.pb.h
index 112785fb..1b519c8f 100644
--- a/storage/v1alpha1/gen/cpp/frontend_nvme_pcie.pb.h
+++ b/storage/v1alpha1/gen/cpp/frontend_nvme_pcie.pb.h
@@ -2104,6 +2104,7 @@ class CreateNVMeSubsystemRequest final :
enum : int {
kSubsystemFieldNumber = 1,
+ kTxnIdFieldNumber = 2,
};
// .opi_api.storage.v1.NVMeSubsystem subsystem = 1;
bool has_subsystem() const;
@@ -2123,6 +2124,24 @@ class CreateNVMeSubsystemRequest final :
::opi_api::storage::v1::NVMeSubsystem* subsystem);
::opi_api::storage::v1::NVMeSubsystem* unsafe_arena_release_subsystem();
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ bool has_txn_id() const;
+ private:
+ bool _internal_has_txn_id() const;
+ public:
+ void clear_txn_id();
+ const ::opi_api::common::v1::ObjectKey& txn_id() const;
+ PROTOBUF_NODISCARD ::opi_api::common::v1::ObjectKey* release_txn_id();
+ ::opi_api::common::v1::ObjectKey* mutable_txn_id();
+ void set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id);
+ private:
+ const ::opi_api::common::v1::ObjectKey& _internal_txn_id() const;
+ ::opi_api::common::v1::ObjectKey* _internal_mutable_txn_id();
+ public:
+ void unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id);
+ ::opi_api::common::v1::ObjectKey* unsafe_arena_release_txn_id();
+
// @@protoc_insertion_point(class_scope:opi_api.storage.v1.CreateNVMeSubsystemRequest)
private:
class _Internal;
@@ -2131,6 +2150,7 @@ class CreateNVMeSubsystemRequest final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::opi_api::storage::v1::NVMeSubsystem* subsystem_;
+ ::opi_api::common::v1::ObjectKey* txn_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_frontend_5fnvme_5fpcie_2eproto;
};
@@ -2259,6 +2279,7 @@ class DeleteNVMeSubsystemRequest final :
enum : int {
kSubsystemIdFieldNumber = 1,
+ kTxnIdFieldNumber = 2,
};
// .opi_api.common.v1.ObjectKey subsystem_id = 1;
bool has_subsystem_id() const;
@@ -2278,6 +2299,24 @@ class DeleteNVMeSubsystemRequest final :
::opi_api::common::v1::ObjectKey* subsystem_id);
::opi_api::common::v1::ObjectKey* unsafe_arena_release_subsystem_id();
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ bool has_txn_id() const;
+ private:
+ bool _internal_has_txn_id() const;
+ public:
+ void clear_txn_id();
+ const ::opi_api::common::v1::ObjectKey& txn_id() const;
+ PROTOBUF_NODISCARD ::opi_api::common::v1::ObjectKey* release_txn_id();
+ ::opi_api::common::v1::ObjectKey* mutable_txn_id();
+ void set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id);
+ private:
+ const ::opi_api::common::v1::ObjectKey& _internal_txn_id() const;
+ ::opi_api::common::v1::ObjectKey* _internal_mutable_txn_id();
+ public:
+ void unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id);
+ ::opi_api::common::v1::ObjectKey* unsafe_arena_release_txn_id();
+
// @@protoc_insertion_point(class_scope:opi_api.storage.v1.DeleteNVMeSubsystemRequest)
private:
class _Internal;
@@ -2286,6 +2325,7 @@ class DeleteNVMeSubsystemRequest final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::opi_api::common::v1::ObjectKey* subsystem_id_;
+ ::opi_api::common::v1::ObjectKey* txn_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_frontend_5fnvme_5fpcie_2eproto;
};
@@ -2414,6 +2454,7 @@ class UpdateNVMeSubsystemRequest final :
enum : int {
kSubsystemFieldNumber = 1,
+ kTxnIdFieldNumber = 2,
};
// .opi_api.storage.v1.NVMeSubsystem subsystem = 1;
bool has_subsystem() const;
@@ -2433,6 +2474,24 @@ class UpdateNVMeSubsystemRequest final :
::opi_api::storage::v1::NVMeSubsystem* subsystem);
::opi_api::storage::v1::NVMeSubsystem* unsafe_arena_release_subsystem();
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ bool has_txn_id() const;
+ private:
+ bool _internal_has_txn_id() const;
+ public:
+ void clear_txn_id();
+ const ::opi_api::common::v1::ObjectKey& txn_id() const;
+ PROTOBUF_NODISCARD ::opi_api::common::v1::ObjectKey* release_txn_id();
+ ::opi_api::common::v1::ObjectKey* mutable_txn_id();
+ void set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id);
+ private:
+ const ::opi_api::common::v1::ObjectKey& _internal_txn_id() const;
+ ::opi_api::common::v1::ObjectKey* _internal_mutable_txn_id();
+ public:
+ void unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id);
+ ::opi_api::common::v1::ObjectKey* unsafe_arena_release_txn_id();
+
// @@protoc_insertion_point(class_scope:opi_api.storage.v1.UpdateNVMeSubsystemRequest)
private:
class _Internal;
@@ -2441,6 +2500,7 @@ class UpdateNVMeSubsystemRequest final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::opi_api::storage::v1::NVMeSubsystem* subsystem_;
+ ::opi_api::common::v1::ObjectKey* txn_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_frontend_5fnvme_5fpcie_2eproto;
};
@@ -3363,6 +3423,7 @@ class CreateNVMeControllerRequest final :
enum : int {
kControllerFieldNumber = 1,
+ kTxnIdFieldNumber = 2,
};
// .opi_api.storage.v1.NVMeController controller = 1;
bool has_controller() const;
@@ -3382,6 +3443,24 @@ class CreateNVMeControllerRequest final :
::opi_api::storage::v1::NVMeController* controller);
::opi_api::storage::v1::NVMeController* unsafe_arena_release_controller();
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ bool has_txn_id() const;
+ private:
+ bool _internal_has_txn_id() const;
+ public:
+ void clear_txn_id();
+ const ::opi_api::common::v1::ObjectKey& txn_id() const;
+ PROTOBUF_NODISCARD ::opi_api::common::v1::ObjectKey* release_txn_id();
+ ::opi_api::common::v1::ObjectKey* mutable_txn_id();
+ void set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id);
+ private:
+ const ::opi_api::common::v1::ObjectKey& _internal_txn_id() const;
+ ::opi_api::common::v1::ObjectKey* _internal_mutable_txn_id();
+ public:
+ void unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id);
+ ::opi_api::common::v1::ObjectKey* unsafe_arena_release_txn_id();
+
// @@protoc_insertion_point(class_scope:opi_api.storage.v1.CreateNVMeControllerRequest)
private:
class _Internal;
@@ -3390,6 +3469,7 @@ class CreateNVMeControllerRequest final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::opi_api::storage::v1::NVMeController* controller_;
+ ::opi_api::common::v1::ObjectKey* txn_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_frontend_5fnvme_5fpcie_2eproto;
};
@@ -3518,6 +3598,7 @@ class DeleteNVMeControllerRequest final :
enum : int {
kControllerIdFieldNumber = 1,
+ kTxnIdFieldNumber = 2,
};
// .opi_api.common.v1.ObjectKey controller_id = 1;
bool has_controller_id() const;
@@ -3537,6 +3618,24 @@ class DeleteNVMeControllerRequest final :
::opi_api::common::v1::ObjectKey* controller_id);
::opi_api::common::v1::ObjectKey* unsafe_arena_release_controller_id();
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ bool has_txn_id() const;
+ private:
+ bool _internal_has_txn_id() const;
+ public:
+ void clear_txn_id();
+ const ::opi_api::common::v1::ObjectKey& txn_id() const;
+ PROTOBUF_NODISCARD ::opi_api::common::v1::ObjectKey* release_txn_id();
+ ::opi_api::common::v1::ObjectKey* mutable_txn_id();
+ void set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id);
+ private:
+ const ::opi_api::common::v1::ObjectKey& _internal_txn_id() const;
+ ::opi_api::common::v1::ObjectKey* _internal_mutable_txn_id();
+ public:
+ void unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id);
+ ::opi_api::common::v1::ObjectKey* unsafe_arena_release_txn_id();
+
// @@protoc_insertion_point(class_scope:opi_api.storage.v1.DeleteNVMeControllerRequest)
private:
class _Internal;
@@ -3545,6 +3644,7 @@ class DeleteNVMeControllerRequest final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::opi_api::common::v1::ObjectKey* controller_id_;
+ ::opi_api::common::v1::ObjectKey* txn_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_frontend_5fnvme_5fpcie_2eproto;
};
@@ -3673,6 +3773,7 @@ class UpdateNVMeControllerRequest final :
enum : int {
kControllerFieldNumber = 1,
+ kTxnIdFieldNumber = 2,
};
// .opi_api.storage.v1.NVMeController controller = 1;
bool has_controller() const;
@@ -3692,6 +3793,24 @@ class UpdateNVMeControllerRequest final :
::opi_api::storage::v1::NVMeController* controller);
::opi_api::storage::v1::NVMeController* unsafe_arena_release_controller();
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ bool has_txn_id() const;
+ private:
+ bool _internal_has_txn_id() const;
+ public:
+ void clear_txn_id();
+ const ::opi_api::common::v1::ObjectKey& txn_id() const;
+ PROTOBUF_NODISCARD ::opi_api::common::v1::ObjectKey* release_txn_id();
+ ::opi_api::common::v1::ObjectKey* mutable_txn_id();
+ void set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id);
+ private:
+ const ::opi_api::common::v1::ObjectKey& _internal_txn_id() const;
+ ::opi_api::common::v1::ObjectKey* _internal_mutable_txn_id();
+ public:
+ void unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id);
+ ::opi_api::common::v1::ObjectKey* unsafe_arena_release_txn_id();
+
// @@protoc_insertion_point(class_scope:opi_api.storage.v1.UpdateNVMeControllerRequest)
private:
class _Internal;
@@ -3700,6 +3819,7 @@ class UpdateNVMeControllerRequest final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::opi_api::storage::v1::NVMeController* controller_;
+ ::opi_api::common::v1::ObjectKey* txn_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_frontend_5fnvme_5fpcie_2eproto;
};
@@ -4662,6 +4782,7 @@ class CreateNVMeNamespaceRequest final :
enum : int {
kNamespaceFieldNumber = 1,
+ kTxnIdFieldNumber = 2,
};
// .opi_api.storage.v1.NVMeNamespace namespace = 1;
bool has_namespace_() const;
@@ -4681,6 +4802,24 @@ class CreateNVMeNamespaceRequest final :
::opi_api::storage::v1::NVMeNamespace* namespace_);
::opi_api::storage::v1::NVMeNamespace* unsafe_arena_release_namespace_();
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ bool has_txn_id() const;
+ private:
+ bool _internal_has_txn_id() const;
+ public:
+ void clear_txn_id();
+ const ::opi_api::common::v1::ObjectKey& txn_id() const;
+ PROTOBUF_NODISCARD ::opi_api::common::v1::ObjectKey* release_txn_id();
+ ::opi_api::common::v1::ObjectKey* mutable_txn_id();
+ void set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id);
+ private:
+ const ::opi_api::common::v1::ObjectKey& _internal_txn_id() const;
+ ::opi_api::common::v1::ObjectKey* _internal_mutable_txn_id();
+ public:
+ void unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id);
+ ::opi_api::common::v1::ObjectKey* unsafe_arena_release_txn_id();
+
// @@protoc_insertion_point(class_scope:opi_api.storage.v1.CreateNVMeNamespaceRequest)
private:
class _Internal;
@@ -4689,6 +4828,7 @@ class CreateNVMeNamespaceRequest final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::opi_api::storage::v1::NVMeNamespace* namespace__;
+ ::opi_api::common::v1::ObjectKey* txn_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_frontend_5fnvme_5fpcie_2eproto;
};
@@ -4817,6 +4957,7 @@ class DeleteNVMeNamespaceRequest final :
enum : int {
kNamespaceIdFieldNumber = 1,
+ kTxnIdFieldNumber = 2,
};
// .opi_api.common.v1.ObjectKey namespace_id = 1;
bool has_namespace_id() const;
@@ -4836,6 +4977,24 @@ class DeleteNVMeNamespaceRequest final :
::opi_api::common::v1::ObjectKey* namespace_id);
::opi_api::common::v1::ObjectKey* unsafe_arena_release_namespace_id();
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ bool has_txn_id() const;
+ private:
+ bool _internal_has_txn_id() const;
+ public:
+ void clear_txn_id();
+ const ::opi_api::common::v1::ObjectKey& txn_id() const;
+ PROTOBUF_NODISCARD ::opi_api::common::v1::ObjectKey* release_txn_id();
+ ::opi_api::common::v1::ObjectKey* mutable_txn_id();
+ void set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id);
+ private:
+ const ::opi_api::common::v1::ObjectKey& _internal_txn_id() const;
+ ::opi_api::common::v1::ObjectKey* _internal_mutable_txn_id();
+ public:
+ void unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id);
+ ::opi_api::common::v1::ObjectKey* unsafe_arena_release_txn_id();
+
// @@protoc_insertion_point(class_scope:opi_api.storage.v1.DeleteNVMeNamespaceRequest)
private:
class _Internal;
@@ -4844,6 +5003,7 @@ class DeleteNVMeNamespaceRequest final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::opi_api::common::v1::ObjectKey* namespace_id_;
+ ::opi_api::common::v1::ObjectKey* txn_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_frontend_5fnvme_5fpcie_2eproto;
};
@@ -4972,6 +5132,7 @@ class UpdateNVMeNamespaceRequest final :
enum : int {
kNamespaceFieldNumber = 1,
+ kTxnIdFieldNumber = 2,
};
// .opi_api.storage.v1.NVMeNamespace namespace = 1;
bool has_namespace_() const;
@@ -4991,6 +5152,24 @@ class UpdateNVMeNamespaceRequest final :
::opi_api::storage::v1::NVMeNamespace* namespace_);
::opi_api::storage::v1::NVMeNamespace* unsafe_arena_release_namespace_();
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ bool has_txn_id() const;
+ private:
+ bool _internal_has_txn_id() const;
+ public:
+ void clear_txn_id();
+ const ::opi_api::common::v1::ObjectKey& txn_id() const;
+ PROTOBUF_NODISCARD ::opi_api::common::v1::ObjectKey* release_txn_id();
+ ::opi_api::common::v1::ObjectKey* mutable_txn_id();
+ void set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id);
+ private:
+ const ::opi_api::common::v1::ObjectKey& _internal_txn_id() const;
+ ::opi_api::common::v1::ObjectKey* _internal_mutable_txn_id();
+ public:
+ void unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id);
+ ::opi_api::common::v1::ObjectKey* unsafe_arena_release_txn_id();
+
// @@protoc_insertion_point(class_scope:opi_api.storage.v1.UpdateNVMeNamespaceRequest)
private:
class _Internal;
@@ -4999,6 +5178,7 @@ class UpdateNVMeNamespaceRequest final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::opi_api::storage::v1::NVMeNamespace* namespace__;
+ ::opi_api::common::v1::ObjectKey* txn_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_frontend_5fnvme_5fpcie_2eproto;
};
@@ -7747,6 +7927,92 @@ inline void CreateNVMeSubsystemRequest::set_allocated_subsystem(::opi_api::stora
// @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.CreateNVMeSubsystemRequest.subsystem)
}
+// .opi_api.common.v1.ObjectKey txn_id = 2;
+inline bool CreateNVMeSubsystemRequest::_internal_has_txn_id() const {
+ return this != internal_default_instance() && txn_id_ != nullptr;
+}
+inline bool CreateNVMeSubsystemRequest::has_txn_id() const {
+ return _internal_has_txn_id();
+}
+inline const ::opi_api::common::v1::ObjectKey& CreateNVMeSubsystemRequest::_internal_txn_id() const {
+ const ::opi_api::common::v1::ObjectKey* p = txn_id_;
+ return p != nullptr ? *p : reinterpret_cast(
+ ::opi_api::common::v1::_ObjectKey_default_instance_);
+}
+inline const ::opi_api::common::v1::ObjectKey& CreateNVMeSubsystemRequest::txn_id() const {
+ // @@protoc_insertion_point(field_get:opi_api.storage.v1.CreateNVMeSubsystemRequest.txn_id)
+ return _internal_txn_id();
+}
+inline void CreateNVMeSubsystemRequest::unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id) {
+ if (GetArenaForAllocation() == nullptr) {
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ txn_id_ = txn_id;
+ if (txn_id) {
+
+ } else {
+
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.storage.v1.CreateNVMeSubsystemRequest.txn_id)
+}
+inline ::opi_api::common::v1::ObjectKey* CreateNVMeSubsystemRequest::release_txn_id() {
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_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* CreateNVMeSubsystemRequest::unsafe_arena_release_txn_id() {
+ // @@protoc_insertion_point(field_release:opi_api.storage.v1.CreateNVMeSubsystemRequest.txn_id)
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_id_ = nullptr;
+ return temp;
+}
+inline ::opi_api::common::v1::ObjectKey* CreateNVMeSubsystemRequest::_internal_mutable_txn_id() {
+
+ if (txn_id_ == nullptr) {
+ auto* p = CreateMaybeMessage<::opi_api::common::v1::ObjectKey>(GetArenaForAllocation());
+ txn_id_ = p;
+ }
+ return txn_id_;
+}
+inline ::opi_api::common::v1::ObjectKey* CreateNVMeSubsystemRequest::mutable_txn_id() {
+ ::opi_api::common::v1::ObjectKey* _msg = _internal_mutable_txn_id();
+ // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.CreateNVMeSubsystemRequest.txn_id)
+ return _msg;
+}
+inline void CreateNVMeSubsystemRequest::set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
+ if (message_arena == nullptr) {
+ delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ if (txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
+ ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
+ reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id));
+ if (message_arena != submessage_arena) {
+ txn_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, txn_id, submessage_arena);
+ }
+
+ } else {
+
+ }
+ txn_id_ = txn_id;
+ // @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.CreateNVMeSubsystemRequest.txn_id)
+}
+
// -------------------------------------------------------------------
// DeleteNVMeSubsystemRequest
@@ -7837,6 +8103,92 @@ inline void DeleteNVMeSubsystemRequest::set_allocated_subsystem_id(::opi_api::co
// @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.DeleteNVMeSubsystemRequest.subsystem_id)
}
+// .opi_api.common.v1.ObjectKey txn_id = 2;
+inline bool DeleteNVMeSubsystemRequest::_internal_has_txn_id() const {
+ return this != internal_default_instance() && txn_id_ != nullptr;
+}
+inline bool DeleteNVMeSubsystemRequest::has_txn_id() const {
+ return _internal_has_txn_id();
+}
+inline const ::opi_api::common::v1::ObjectKey& DeleteNVMeSubsystemRequest::_internal_txn_id() const {
+ const ::opi_api::common::v1::ObjectKey* p = txn_id_;
+ return p != nullptr ? *p : reinterpret_cast(
+ ::opi_api::common::v1::_ObjectKey_default_instance_);
+}
+inline const ::opi_api::common::v1::ObjectKey& DeleteNVMeSubsystemRequest::txn_id() const {
+ // @@protoc_insertion_point(field_get:opi_api.storage.v1.DeleteNVMeSubsystemRequest.txn_id)
+ return _internal_txn_id();
+}
+inline void DeleteNVMeSubsystemRequest::unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id) {
+ if (GetArenaForAllocation() == nullptr) {
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ txn_id_ = txn_id;
+ if (txn_id) {
+
+ } else {
+
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.storage.v1.DeleteNVMeSubsystemRequest.txn_id)
+}
+inline ::opi_api::common::v1::ObjectKey* DeleteNVMeSubsystemRequest::release_txn_id() {
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_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* DeleteNVMeSubsystemRequest::unsafe_arena_release_txn_id() {
+ // @@protoc_insertion_point(field_release:opi_api.storage.v1.DeleteNVMeSubsystemRequest.txn_id)
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_id_ = nullptr;
+ return temp;
+}
+inline ::opi_api::common::v1::ObjectKey* DeleteNVMeSubsystemRequest::_internal_mutable_txn_id() {
+
+ if (txn_id_ == nullptr) {
+ auto* p = CreateMaybeMessage<::opi_api::common::v1::ObjectKey>(GetArenaForAllocation());
+ txn_id_ = p;
+ }
+ return txn_id_;
+}
+inline ::opi_api::common::v1::ObjectKey* DeleteNVMeSubsystemRequest::mutable_txn_id() {
+ ::opi_api::common::v1::ObjectKey* _msg = _internal_mutable_txn_id();
+ // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.DeleteNVMeSubsystemRequest.txn_id)
+ return _msg;
+}
+inline void DeleteNVMeSubsystemRequest::set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
+ if (message_arena == nullptr) {
+ delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ if (txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
+ ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
+ reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id));
+ if (message_arena != submessage_arena) {
+ txn_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, txn_id, submessage_arena);
+ }
+
+ } else {
+
+ }
+ txn_id_ = txn_id;
+ // @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.DeleteNVMeSubsystemRequest.txn_id)
+}
+
// -------------------------------------------------------------------
// UpdateNVMeSubsystemRequest
@@ -7931,6 +8283,92 @@ inline void UpdateNVMeSubsystemRequest::set_allocated_subsystem(::opi_api::stora
// @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.UpdateNVMeSubsystemRequest.subsystem)
}
+// .opi_api.common.v1.ObjectKey txn_id = 2;
+inline bool UpdateNVMeSubsystemRequest::_internal_has_txn_id() const {
+ return this != internal_default_instance() && txn_id_ != nullptr;
+}
+inline bool UpdateNVMeSubsystemRequest::has_txn_id() const {
+ return _internal_has_txn_id();
+}
+inline const ::opi_api::common::v1::ObjectKey& UpdateNVMeSubsystemRequest::_internal_txn_id() const {
+ const ::opi_api::common::v1::ObjectKey* p = txn_id_;
+ return p != nullptr ? *p : reinterpret_cast(
+ ::opi_api::common::v1::_ObjectKey_default_instance_);
+}
+inline const ::opi_api::common::v1::ObjectKey& UpdateNVMeSubsystemRequest::txn_id() const {
+ // @@protoc_insertion_point(field_get:opi_api.storage.v1.UpdateNVMeSubsystemRequest.txn_id)
+ return _internal_txn_id();
+}
+inline void UpdateNVMeSubsystemRequest::unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id) {
+ if (GetArenaForAllocation() == nullptr) {
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ txn_id_ = txn_id;
+ if (txn_id) {
+
+ } else {
+
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.storage.v1.UpdateNVMeSubsystemRequest.txn_id)
+}
+inline ::opi_api::common::v1::ObjectKey* UpdateNVMeSubsystemRequest::release_txn_id() {
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_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* UpdateNVMeSubsystemRequest::unsafe_arena_release_txn_id() {
+ // @@protoc_insertion_point(field_release:opi_api.storage.v1.UpdateNVMeSubsystemRequest.txn_id)
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_id_ = nullptr;
+ return temp;
+}
+inline ::opi_api::common::v1::ObjectKey* UpdateNVMeSubsystemRequest::_internal_mutable_txn_id() {
+
+ if (txn_id_ == nullptr) {
+ auto* p = CreateMaybeMessage<::opi_api::common::v1::ObjectKey>(GetArenaForAllocation());
+ txn_id_ = p;
+ }
+ return txn_id_;
+}
+inline ::opi_api::common::v1::ObjectKey* UpdateNVMeSubsystemRequest::mutable_txn_id() {
+ ::opi_api::common::v1::ObjectKey* _msg = _internal_mutable_txn_id();
+ // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.UpdateNVMeSubsystemRequest.txn_id)
+ return _msg;
+}
+inline void UpdateNVMeSubsystemRequest::set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
+ if (message_arena == nullptr) {
+ delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ if (txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
+ ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
+ reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id));
+ if (message_arena != submessage_arena) {
+ txn_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, txn_id, submessage_arena);
+ }
+
+ } else {
+
+ }
+ txn_id_ = txn_id;
+ // @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.UpdateNVMeSubsystemRequest.txn_id)
+}
+
// -------------------------------------------------------------------
// ListNVMeSubsystemRequest
@@ -8430,6 +8868,92 @@ inline void CreateNVMeControllerRequest::set_allocated_controller(::opi_api::sto
// @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.CreateNVMeControllerRequest.controller)
}
+// .opi_api.common.v1.ObjectKey txn_id = 2;
+inline bool CreateNVMeControllerRequest::_internal_has_txn_id() const {
+ return this != internal_default_instance() && txn_id_ != nullptr;
+}
+inline bool CreateNVMeControllerRequest::has_txn_id() const {
+ return _internal_has_txn_id();
+}
+inline const ::opi_api::common::v1::ObjectKey& CreateNVMeControllerRequest::_internal_txn_id() const {
+ const ::opi_api::common::v1::ObjectKey* p = txn_id_;
+ return p != nullptr ? *p : reinterpret_cast(
+ ::opi_api::common::v1::_ObjectKey_default_instance_);
+}
+inline const ::opi_api::common::v1::ObjectKey& CreateNVMeControllerRequest::txn_id() const {
+ // @@protoc_insertion_point(field_get:opi_api.storage.v1.CreateNVMeControllerRequest.txn_id)
+ return _internal_txn_id();
+}
+inline void CreateNVMeControllerRequest::unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id) {
+ if (GetArenaForAllocation() == nullptr) {
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ txn_id_ = txn_id;
+ if (txn_id) {
+
+ } else {
+
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.storage.v1.CreateNVMeControllerRequest.txn_id)
+}
+inline ::opi_api::common::v1::ObjectKey* CreateNVMeControllerRequest::release_txn_id() {
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_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* CreateNVMeControllerRequest::unsafe_arena_release_txn_id() {
+ // @@protoc_insertion_point(field_release:opi_api.storage.v1.CreateNVMeControllerRequest.txn_id)
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_id_ = nullptr;
+ return temp;
+}
+inline ::opi_api::common::v1::ObjectKey* CreateNVMeControllerRequest::_internal_mutable_txn_id() {
+
+ if (txn_id_ == nullptr) {
+ auto* p = CreateMaybeMessage<::opi_api::common::v1::ObjectKey>(GetArenaForAllocation());
+ txn_id_ = p;
+ }
+ return txn_id_;
+}
+inline ::opi_api::common::v1::ObjectKey* CreateNVMeControllerRequest::mutable_txn_id() {
+ ::opi_api::common::v1::ObjectKey* _msg = _internal_mutable_txn_id();
+ // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.CreateNVMeControllerRequest.txn_id)
+ return _msg;
+}
+inline void CreateNVMeControllerRequest::set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
+ if (message_arena == nullptr) {
+ delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ if (txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
+ ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
+ reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id));
+ if (message_arena != submessage_arena) {
+ txn_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, txn_id, submessage_arena);
+ }
+
+ } else {
+
+ }
+ txn_id_ = txn_id;
+ // @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.CreateNVMeControllerRequest.txn_id)
+}
+
// -------------------------------------------------------------------
// DeleteNVMeControllerRequest
@@ -8520,6 +9044,92 @@ inline void DeleteNVMeControllerRequest::set_allocated_controller_id(::opi_api::
// @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.DeleteNVMeControllerRequest.controller_id)
}
+// .opi_api.common.v1.ObjectKey txn_id = 2;
+inline bool DeleteNVMeControllerRequest::_internal_has_txn_id() const {
+ return this != internal_default_instance() && txn_id_ != nullptr;
+}
+inline bool DeleteNVMeControllerRequest::has_txn_id() const {
+ return _internal_has_txn_id();
+}
+inline const ::opi_api::common::v1::ObjectKey& DeleteNVMeControllerRequest::_internal_txn_id() const {
+ const ::opi_api::common::v1::ObjectKey* p = txn_id_;
+ return p != nullptr ? *p : reinterpret_cast(
+ ::opi_api::common::v1::_ObjectKey_default_instance_);
+}
+inline const ::opi_api::common::v1::ObjectKey& DeleteNVMeControllerRequest::txn_id() const {
+ // @@protoc_insertion_point(field_get:opi_api.storage.v1.DeleteNVMeControllerRequest.txn_id)
+ return _internal_txn_id();
+}
+inline void DeleteNVMeControllerRequest::unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id) {
+ if (GetArenaForAllocation() == nullptr) {
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ txn_id_ = txn_id;
+ if (txn_id) {
+
+ } else {
+
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.storage.v1.DeleteNVMeControllerRequest.txn_id)
+}
+inline ::opi_api::common::v1::ObjectKey* DeleteNVMeControllerRequest::release_txn_id() {
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_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* DeleteNVMeControllerRequest::unsafe_arena_release_txn_id() {
+ // @@protoc_insertion_point(field_release:opi_api.storage.v1.DeleteNVMeControllerRequest.txn_id)
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_id_ = nullptr;
+ return temp;
+}
+inline ::opi_api::common::v1::ObjectKey* DeleteNVMeControllerRequest::_internal_mutable_txn_id() {
+
+ if (txn_id_ == nullptr) {
+ auto* p = CreateMaybeMessage<::opi_api::common::v1::ObjectKey>(GetArenaForAllocation());
+ txn_id_ = p;
+ }
+ return txn_id_;
+}
+inline ::opi_api::common::v1::ObjectKey* DeleteNVMeControllerRequest::mutable_txn_id() {
+ ::opi_api::common::v1::ObjectKey* _msg = _internal_mutable_txn_id();
+ // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.DeleteNVMeControllerRequest.txn_id)
+ return _msg;
+}
+inline void DeleteNVMeControllerRequest::set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
+ if (message_arena == nullptr) {
+ delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ if (txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
+ ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
+ reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id));
+ if (message_arena != submessage_arena) {
+ txn_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, txn_id, submessage_arena);
+ }
+
+ } else {
+
+ }
+ txn_id_ = txn_id;
+ // @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.DeleteNVMeControllerRequest.txn_id)
+}
+
// -------------------------------------------------------------------
// UpdateNVMeControllerRequest
@@ -8614,6 +9224,92 @@ inline void UpdateNVMeControllerRequest::set_allocated_controller(::opi_api::sto
// @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.UpdateNVMeControllerRequest.controller)
}
+// .opi_api.common.v1.ObjectKey txn_id = 2;
+inline bool UpdateNVMeControllerRequest::_internal_has_txn_id() const {
+ return this != internal_default_instance() && txn_id_ != nullptr;
+}
+inline bool UpdateNVMeControllerRequest::has_txn_id() const {
+ return _internal_has_txn_id();
+}
+inline const ::opi_api::common::v1::ObjectKey& UpdateNVMeControllerRequest::_internal_txn_id() const {
+ const ::opi_api::common::v1::ObjectKey* p = txn_id_;
+ return p != nullptr ? *p : reinterpret_cast(
+ ::opi_api::common::v1::_ObjectKey_default_instance_);
+}
+inline const ::opi_api::common::v1::ObjectKey& UpdateNVMeControllerRequest::txn_id() const {
+ // @@protoc_insertion_point(field_get:opi_api.storage.v1.UpdateNVMeControllerRequest.txn_id)
+ return _internal_txn_id();
+}
+inline void UpdateNVMeControllerRequest::unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id) {
+ if (GetArenaForAllocation() == nullptr) {
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ txn_id_ = txn_id;
+ if (txn_id) {
+
+ } else {
+
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.storage.v1.UpdateNVMeControllerRequest.txn_id)
+}
+inline ::opi_api::common::v1::ObjectKey* UpdateNVMeControllerRequest::release_txn_id() {
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_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* UpdateNVMeControllerRequest::unsafe_arena_release_txn_id() {
+ // @@protoc_insertion_point(field_release:opi_api.storage.v1.UpdateNVMeControllerRequest.txn_id)
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_id_ = nullptr;
+ return temp;
+}
+inline ::opi_api::common::v1::ObjectKey* UpdateNVMeControllerRequest::_internal_mutable_txn_id() {
+
+ if (txn_id_ == nullptr) {
+ auto* p = CreateMaybeMessage<::opi_api::common::v1::ObjectKey>(GetArenaForAllocation());
+ txn_id_ = p;
+ }
+ return txn_id_;
+}
+inline ::opi_api::common::v1::ObjectKey* UpdateNVMeControllerRequest::mutable_txn_id() {
+ ::opi_api::common::v1::ObjectKey* _msg = _internal_mutable_txn_id();
+ // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.UpdateNVMeControllerRequest.txn_id)
+ return _msg;
+}
+inline void UpdateNVMeControllerRequest::set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
+ if (message_arena == nullptr) {
+ delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ if (txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
+ ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
+ reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id));
+ if (message_arena != submessage_arena) {
+ txn_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, txn_id, submessage_arena);
+ }
+
+ } else {
+
+ }
+ txn_id_ = txn_id;
+ // @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.UpdateNVMeControllerRequest.txn_id)
+}
+
// -------------------------------------------------------------------
// ListNVMeControllerRequest
@@ -9285,6 +9981,92 @@ inline void CreateNVMeNamespaceRequest::set_allocated_namespace_(::opi_api::stor
// @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.CreateNVMeNamespaceRequest.namespace)
}
+// .opi_api.common.v1.ObjectKey txn_id = 2;
+inline bool CreateNVMeNamespaceRequest::_internal_has_txn_id() const {
+ return this != internal_default_instance() && txn_id_ != nullptr;
+}
+inline bool CreateNVMeNamespaceRequest::has_txn_id() const {
+ return _internal_has_txn_id();
+}
+inline const ::opi_api::common::v1::ObjectKey& CreateNVMeNamespaceRequest::_internal_txn_id() const {
+ const ::opi_api::common::v1::ObjectKey* p = txn_id_;
+ return p != nullptr ? *p : reinterpret_cast(
+ ::opi_api::common::v1::_ObjectKey_default_instance_);
+}
+inline const ::opi_api::common::v1::ObjectKey& CreateNVMeNamespaceRequest::txn_id() const {
+ // @@protoc_insertion_point(field_get:opi_api.storage.v1.CreateNVMeNamespaceRequest.txn_id)
+ return _internal_txn_id();
+}
+inline void CreateNVMeNamespaceRequest::unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id) {
+ if (GetArenaForAllocation() == nullptr) {
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ txn_id_ = txn_id;
+ if (txn_id) {
+
+ } else {
+
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.storage.v1.CreateNVMeNamespaceRequest.txn_id)
+}
+inline ::opi_api::common::v1::ObjectKey* CreateNVMeNamespaceRequest::release_txn_id() {
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_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* CreateNVMeNamespaceRequest::unsafe_arena_release_txn_id() {
+ // @@protoc_insertion_point(field_release:opi_api.storage.v1.CreateNVMeNamespaceRequest.txn_id)
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_id_ = nullptr;
+ return temp;
+}
+inline ::opi_api::common::v1::ObjectKey* CreateNVMeNamespaceRequest::_internal_mutable_txn_id() {
+
+ if (txn_id_ == nullptr) {
+ auto* p = CreateMaybeMessage<::opi_api::common::v1::ObjectKey>(GetArenaForAllocation());
+ txn_id_ = p;
+ }
+ return txn_id_;
+}
+inline ::opi_api::common::v1::ObjectKey* CreateNVMeNamespaceRequest::mutable_txn_id() {
+ ::opi_api::common::v1::ObjectKey* _msg = _internal_mutable_txn_id();
+ // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.CreateNVMeNamespaceRequest.txn_id)
+ return _msg;
+}
+inline void CreateNVMeNamespaceRequest::set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
+ if (message_arena == nullptr) {
+ delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ if (txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
+ ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
+ reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id));
+ if (message_arena != submessage_arena) {
+ txn_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, txn_id, submessage_arena);
+ }
+
+ } else {
+
+ }
+ txn_id_ = txn_id;
+ // @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.CreateNVMeNamespaceRequest.txn_id)
+}
+
// -------------------------------------------------------------------
// DeleteNVMeNamespaceRequest
@@ -9375,6 +10157,92 @@ inline void DeleteNVMeNamespaceRequest::set_allocated_namespace_id(::opi_api::co
// @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.DeleteNVMeNamespaceRequest.namespace_id)
}
+// .opi_api.common.v1.ObjectKey txn_id = 2;
+inline bool DeleteNVMeNamespaceRequest::_internal_has_txn_id() const {
+ return this != internal_default_instance() && txn_id_ != nullptr;
+}
+inline bool DeleteNVMeNamespaceRequest::has_txn_id() const {
+ return _internal_has_txn_id();
+}
+inline const ::opi_api::common::v1::ObjectKey& DeleteNVMeNamespaceRequest::_internal_txn_id() const {
+ const ::opi_api::common::v1::ObjectKey* p = txn_id_;
+ return p != nullptr ? *p : reinterpret_cast(
+ ::opi_api::common::v1::_ObjectKey_default_instance_);
+}
+inline const ::opi_api::common::v1::ObjectKey& DeleteNVMeNamespaceRequest::txn_id() const {
+ // @@protoc_insertion_point(field_get:opi_api.storage.v1.DeleteNVMeNamespaceRequest.txn_id)
+ return _internal_txn_id();
+}
+inline void DeleteNVMeNamespaceRequest::unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id) {
+ if (GetArenaForAllocation() == nullptr) {
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ txn_id_ = txn_id;
+ if (txn_id) {
+
+ } else {
+
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.storage.v1.DeleteNVMeNamespaceRequest.txn_id)
+}
+inline ::opi_api::common::v1::ObjectKey* DeleteNVMeNamespaceRequest::release_txn_id() {
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_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* DeleteNVMeNamespaceRequest::unsafe_arena_release_txn_id() {
+ // @@protoc_insertion_point(field_release:opi_api.storage.v1.DeleteNVMeNamespaceRequest.txn_id)
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_id_ = nullptr;
+ return temp;
+}
+inline ::opi_api::common::v1::ObjectKey* DeleteNVMeNamespaceRequest::_internal_mutable_txn_id() {
+
+ if (txn_id_ == nullptr) {
+ auto* p = CreateMaybeMessage<::opi_api::common::v1::ObjectKey>(GetArenaForAllocation());
+ txn_id_ = p;
+ }
+ return txn_id_;
+}
+inline ::opi_api::common::v1::ObjectKey* DeleteNVMeNamespaceRequest::mutable_txn_id() {
+ ::opi_api::common::v1::ObjectKey* _msg = _internal_mutable_txn_id();
+ // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.DeleteNVMeNamespaceRequest.txn_id)
+ return _msg;
+}
+inline void DeleteNVMeNamespaceRequest::set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
+ if (message_arena == nullptr) {
+ delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ if (txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
+ ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
+ reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id));
+ if (message_arena != submessage_arena) {
+ txn_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, txn_id, submessage_arena);
+ }
+
+ } else {
+
+ }
+ txn_id_ = txn_id;
+ // @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.DeleteNVMeNamespaceRequest.txn_id)
+}
+
// -------------------------------------------------------------------
// UpdateNVMeNamespaceRequest
@@ -9469,6 +10337,92 @@ inline void UpdateNVMeNamespaceRequest::set_allocated_namespace_(::opi_api::stor
// @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.UpdateNVMeNamespaceRequest.namespace)
}
+// .opi_api.common.v1.ObjectKey txn_id = 2;
+inline bool UpdateNVMeNamespaceRequest::_internal_has_txn_id() const {
+ return this != internal_default_instance() && txn_id_ != nullptr;
+}
+inline bool UpdateNVMeNamespaceRequest::has_txn_id() const {
+ return _internal_has_txn_id();
+}
+inline const ::opi_api::common::v1::ObjectKey& UpdateNVMeNamespaceRequest::_internal_txn_id() const {
+ const ::opi_api::common::v1::ObjectKey* p = txn_id_;
+ return p != nullptr ? *p : reinterpret_cast(
+ ::opi_api::common::v1::_ObjectKey_default_instance_);
+}
+inline const ::opi_api::common::v1::ObjectKey& UpdateNVMeNamespaceRequest::txn_id() const {
+ // @@protoc_insertion_point(field_get:opi_api.storage.v1.UpdateNVMeNamespaceRequest.txn_id)
+ return _internal_txn_id();
+}
+inline void UpdateNVMeNamespaceRequest::unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id) {
+ if (GetArenaForAllocation() == nullptr) {
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ txn_id_ = txn_id;
+ if (txn_id) {
+
+ } else {
+
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.storage.v1.UpdateNVMeNamespaceRequest.txn_id)
+}
+inline ::opi_api::common::v1::ObjectKey* UpdateNVMeNamespaceRequest::release_txn_id() {
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_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* UpdateNVMeNamespaceRequest::unsafe_arena_release_txn_id() {
+ // @@protoc_insertion_point(field_release:opi_api.storage.v1.UpdateNVMeNamespaceRequest.txn_id)
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_id_ = nullptr;
+ return temp;
+}
+inline ::opi_api::common::v1::ObjectKey* UpdateNVMeNamespaceRequest::_internal_mutable_txn_id() {
+
+ if (txn_id_ == nullptr) {
+ auto* p = CreateMaybeMessage<::opi_api::common::v1::ObjectKey>(GetArenaForAllocation());
+ txn_id_ = p;
+ }
+ return txn_id_;
+}
+inline ::opi_api::common::v1::ObjectKey* UpdateNVMeNamespaceRequest::mutable_txn_id() {
+ ::opi_api::common::v1::ObjectKey* _msg = _internal_mutable_txn_id();
+ // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.UpdateNVMeNamespaceRequest.txn_id)
+ return _msg;
+}
+inline void UpdateNVMeNamespaceRequest::set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
+ if (message_arena == nullptr) {
+ delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ if (txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
+ ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
+ reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id));
+ if (message_arena != submessage_arena) {
+ txn_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, txn_id, submessage_arena);
+ }
+
+ } else {
+
+ }
+ txn_id_ = txn_id;
+ // @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.UpdateNVMeNamespaceRequest.txn_id)
+}
+
// -------------------------------------------------------------------
// ListNVMeNamespaceRequest
diff --git a/storage/v1alpha1/gen/cpp/frontend_virtio_blk.pb.cc b/storage/v1alpha1/gen/cpp/frontend_virtio_blk.pb.cc
index 89d8c2fc..b4a51b53 100644
--- a/storage/v1alpha1/gen/cpp/frontend_virtio_blk.pb.cc
+++ b/storage/v1alpha1/gen/cpp/frontend_virtio_blk.pb.cc
@@ -36,7 +36,8 @@ struct VirtioBlkDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT VirtioBlkDefaultTypeInternal _VirtioBlk_default_instance_;
constexpr CreateVirtioBlkRequest::CreateVirtioBlkRequest(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : controller_(nullptr){}
+ : controller_(nullptr)
+ , txn_id_(nullptr){}
struct CreateVirtioBlkRequestDefaultTypeInternal {
constexpr CreateVirtioBlkRequestDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
@@ -48,7 +49,8 @@ struct CreateVirtioBlkRequestDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CreateVirtioBlkRequestDefaultTypeInternal _CreateVirtioBlkRequest_default_instance_;
constexpr DeleteVirtioBlkRequest::DeleteVirtioBlkRequest(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : controller_id_(nullptr){}
+ : controller_id_(nullptr)
+ , txn_id_(nullptr){}
struct DeleteVirtioBlkRequestDefaultTypeInternal {
constexpr DeleteVirtioBlkRequestDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
@@ -60,7 +62,8 @@ struct DeleteVirtioBlkRequestDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DeleteVirtioBlkRequestDefaultTypeInternal _DeleteVirtioBlkRequest_default_instance_;
constexpr UpdateVirtioBlkRequest::UpdateVirtioBlkRequest(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : controller_(nullptr){}
+ : controller_(nullptr)
+ , txn_id_(nullptr){}
struct UpdateVirtioBlkRequestDefaultTypeInternal {
constexpr UpdateVirtioBlkRequestDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
@@ -158,6 +161,7 @@ const uint32_t TableStruct_frontend_5fvirtio_5fblk_2eproto::offsets[] PROTOBUF_S
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::CreateVirtioBlkRequest, controller_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::CreateVirtioBlkRequest, txn_id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::DeleteVirtioBlkRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -165,6 +169,7 @@ const uint32_t TableStruct_frontend_5fvirtio_5fblk_2eproto::offsets[] PROTOBUF_S
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::DeleteVirtioBlkRequest, controller_id_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::DeleteVirtioBlkRequest, txn_id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::UpdateVirtioBlkRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -172,6 +177,7 @@ const uint32_t TableStruct_frontend_5fvirtio_5fblk_2eproto::offsets[] PROTOBUF_S
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::UpdateVirtioBlkRequest, controller_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::UpdateVirtioBlkRequest, txn_id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::ListVirtioBlkRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -214,13 +220,13 @@ const uint32_t TableStruct_frontend_5fvirtio_5fblk_2eproto::offsets[] PROTOBUF_S
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::opi_api::storage::v1::VirtioBlk)},
{ 10, -1, -1, sizeof(::opi_api::storage::v1::CreateVirtioBlkRequest)},
- { 17, -1, -1, sizeof(::opi_api::storage::v1::DeleteVirtioBlkRequest)},
- { 24, -1, -1, sizeof(::opi_api::storage::v1::UpdateVirtioBlkRequest)},
- { 31, -1, -1, sizeof(::opi_api::storage::v1::ListVirtioBlkRequest)},
- { 39, -1, -1, sizeof(::opi_api::storage::v1::ListVirtioBlkResponse)},
- { 47, -1, -1, sizeof(::opi_api::storage::v1::GetVirtioBlkRequest)},
- { 54, -1, -1, sizeof(::opi_api::storage::v1::VirtioBlkStatsRequest)},
- { 61, -1, -1, sizeof(::opi_api::storage::v1::VirtioBlkStatsResponse)},
+ { 18, -1, -1, sizeof(::opi_api::storage::v1::DeleteVirtioBlkRequest)},
+ { 26, -1, -1, sizeof(::opi_api::storage::v1::UpdateVirtioBlkRequest)},
+ { 34, -1, -1, sizeof(::opi_api::storage::v1::ListVirtioBlkRequest)},
+ { 42, -1, -1, sizeof(::opi_api::storage::v1::ListVirtioBlkResponse)},
+ { 50, -1, -1, sizeof(::opi_api::storage::v1::GetVirtioBlkRequest)},
+ { 57, -1, -1, sizeof(::opi_api::storage::v1::VirtioBlkStatsRequest)},
+ { 64, -1, -1, sizeof(::opi_api::storage::v1::VirtioBlkStatsResponse)},
};
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
@@ -243,45 +249,49 @@ const char descriptor_table_protodef_frontend_5fvirtio_5fblk_2eproto[] PROTOBUF_
"d\030\001 \001(\0132\034.opi_api.common.v1.ObjectKey\0220\n"
"\007pcie_id\030\002 \001(\0132\037.opi_api.storage.v1.PciE"
"ndpoint\022/\n\tvolume_id\030\003 \001(\0132\034.opi_api.com"
- "mon.v1.ObjectKey\022\022\n\nmax_io_qps\030\004 \001(\003\"K\n\026"
+ "mon.v1.ObjectKey\022\022\n\nmax_io_qps\030\004 \001(\003\"y\n\026"
"CreateVirtioBlkRequest\0221\n\ncontroller\030\001 \001"
- "(\0132\035.opi_api.storage.v1.VirtioBlk\"M\n\026Del"
- "eteVirtioBlkRequest\0223\n\rcontroller_id\030\001 \001"
- "(\0132\034.opi_api.common.v1.ObjectKey\"K\n\026Upda"
- "teVirtioBlkRequest\0221\n\ncontroller\030\001 \001(\0132\035"
- ".opi_api.storage.v1.VirtioBlk\"=\n\024ListVir"
- "tioBlkRequest\022\021\n\tpage_size\030\001 \001(\005\022\022\n\npage"
- "_token\030\002 \001(\t\"d\n\025ListVirtioBlkResponse\0222\n"
- "\013controllers\030\001 \003(\0132\035.opi_api.storage.v1."
- "VirtioBlk\022\027\n\017next_page_token\030\002 \001(\t\"J\n\023Ge"
- "tVirtioBlkRequest\0223\n\rcontroller_id\030\001 \001(\013"
- "2\034.opi_api.common.v1.ObjectKey\"L\n\025Virtio"
- "BlkStatsRequest\0223\n\rcontroller_id\030\001 \001(\0132\034"
- ".opi_api.common.v1.ObjectKey\"Q\n\026VirtioBl"
- "kStatsResponse\022(\n\002id\030\001 \001(\0132\034.opi_api.com"
- "mon.v1.ObjectKey\022\r\n\005stats\030\002 \001(\t2\374\005\n\030Fron"
- "tendVirtioBlkService\022\177\n\017CreateVirtioBlk\022"
- "*.opi_api.storage.v1.CreateVirtioBlkRequ"
- "est\032\035.opi_api.storage.v1.VirtioBlk\"!\202\323\344\223"
- "\002\033\"\016/v1/virtioblks:\tvirtioblk\022y\n\017DeleteV"
- "irtioBlk\022*.opi_api.storage.v1.DeleteVirt"
- "ioBlkRequest\032\026.google.protobuf.Empty\"\"\202\323"
- "\344\223\002\034*\032/v1/virtioblks/{virtioblk}\022\177\n\017Upda"
- "teVirtioBlk\022*.opi_api.storage.v1.UpdateV"
- "irtioBlkRequest\032\035.opi_api.storage.v1.Vir"
- "tioBlk\"!\202\323\344\223\002\0332\016/v1/virtioblks:\tvirtiobl"
- "k\022|\n\rListVirtioBlk\022(.opi_api.storage.v1."
- "ListVirtioBlkRequest\032).opi_api.storage.v"
- "1.ListVirtioBlkResponse\"\026\202\323\344\223\002\020\022\016/v1/vir"
- "tioblks\022z\n\014GetVirtioBlk\022\'.opi_api.storag"
- "e.v1.GetVirtioBlkRequest\032\035.opi_api.stora"
- "ge.v1.VirtioBlk\"\"\202\323\344\223\002\034\022\032/v1/virtioblks/"
- "{virtioblk}\022i\n\016VirtioBlkStats\022).opi_api."
- "storage.v1.VirtioBlkStatsRequest\032*.opi_a"
- "pi.storage.v1.VirtioBlkStatsResponse\"\000Be"
- "\n\022opi_api.storage.v1B\026FrontendVirtioBlkP"
- "rotoP\001Z5github.com/opiproject/opi-api/st"
- "orage/v1alpha1/gen/gob\006proto3"
+ "(\0132\035.opi_api.storage.v1.VirtioBlk\022,\n\006txn"
+ "_id\030\002 \001(\0132\034.opi_api.common.v1.ObjectKey\""
+ "{\n\026DeleteVirtioBlkRequest\0223\n\rcontroller_"
+ "id\030\001 \001(\0132\034.opi_api.common.v1.ObjectKey\022,"
+ "\n\006txn_id\030\002 \001(\0132\034.opi_api.common.v1.Objec"
+ "tKey\"y\n\026UpdateVirtioBlkRequest\0221\n\ncontro"
+ "ller\030\001 \001(\0132\035.opi_api.storage.v1.VirtioBl"
+ "k\022,\n\006txn_id\030\002 \001(\0132\034.opi_api.common.v1.Ob"
+ "jectKey\"=\n\024ListVirtioBlkRequest\022\021\n\tpage_"
+ "size\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\"d\n\025ListVi"
+ "rtioBlkResponse\0222\n\013controllers\030\001 \003(\0132\035.o"
+ "pi_api.storage.v1.VirtioBlk\022\027\n\017next_page"
+ "_token\030\002 \001(\t\"J\n\023GetVirtioBlkRequest\0223\n\rc"
+ "ontroller_id\030\001 \001(\0132\034.opi_api.common.v1.O"
+ "bjectKey\"L\n\025VirtioBlkStatsRequest\0223\n\rcon"
+ "troller_id\030\001 \001(\0132\034.opi_api.common.v1.Obj"
+ "ectKey\"Q\n\026VirtioBlkStatsResponse\022(\n\002id\030\001"
+ " \001(\0132\034.opi_api.common.v1.ObjectKey\022\r\n\005st"
+ "ats\030\002 \001(\t2\374\005\n\030FrontendVirtioBlkService\022\177"
+ "\n\017CreateVirtioBlk\022*.opi_api.storage.v1.C"
+ "reateVirtioBlkRequest\032\035.opi_api.storage."
+ "v1.VirtioBlk\"!\202\323\344\223\002\033\"\016/v1/virtioblks:\tvi"
+ "rtioblk\022y\n\017DeleteVirtioBlk\022*.opi_api.sto"
+ "rage.v1.DeleteVirtioBlkRequest\032\026.google."
+ "protobuf.Empty\"\"\202\323\344\223\002\034*\032/v1/virtioblks/{"
+ "virtioblk}\022\177\n\017UpdateVirtioBlk\022*.opi_api."
+ "storage.v1.UpdateVirtioBlkRequest\032\035.opi_"
+ "api.storage.v1.VirtioBlk\"!\202\323\344\223\002\0332\016/v1/vi"
+ "rtioblks:\tvirtioblk\022|\n\rListVirtioBlk\022(.o"
+ "pi_api.storage.v1.ListVirtioBlkRequest\032)"
+ ".opi_api.storage.v1.ListVirtioBlkRespons"
+ "e\"\026\202\323\344\223\002\020\022\016/v1/virtioblks\022z\n\014GetVirtioBl"
+ "k\022\'.opi_api.storage.v1.GetVirtioBlkReque"
+ "st\032\035.opi_api.storage.v1.VirtioBlk\"\"\202\323\344\223\002"
+ "\034\022\032/v1/virtioblks/{virtioblk}\022i\n\016VirtioB"
+ "lkStats\022).opi_api.storage.v1.VirtioBlkSt"
+ "atsRequest\032*.opi_api.storage.v1.VirtioBl"
+ "kStatsResponse\"\000Be\n\022opi_api.storage.v1B\026"
+ "FrontendVirtioBlkProtoP\001Z5github.com/opi"
+ "project/opi-api/storage/v1alpha1/gen/gob"
+ "\006proto3"
;
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_frontend_5fvirtio_5fblk_2eproto_deps[4] = {
&::descriptor_table_google_2fapi_2fannotations_2eproto,
@@ -291,7 +301,7 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor
};
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_frontend_5fvirtio_5fblk_2eproto_once;
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_frontend_5fvirtio_5fblk_2eproto = {
- false, false, 1829, descriptor_table_protodef_frontend_5fvirtio_5fblk_2eproto, "frontend_virtio_blk.proto",
+ false, false, 1967, descriptor_table_protodef_frontend_5fvirtio_5fblk_2eproto, "frontend_virtio_blk.proto",
&descriptor_table_frontend_5fvirtio_5fblk_2eproto_once, descriptor_table_frontend_5fvirtio_5fblk_2eproto_deps, 4, 9,
schemas, file_default_instances, TableStruct_frontend_5fvirtio_5fblk_2eproto::offsets,
file_level_metadata_frontend_5fvirtio_5fblk_2eproto, file_level_enum_descriptors_frontend_5fvirtio_5fblk_2eproto, file_level_service_descriptors_frontend_5fvirtio_5fblk_2eproto,
@@ -638,12 +648,23 @@ ::PROTOBUF_NAMESPACE_ID::Metadata VirtioBlk::GetMetadata() const {
class CreateVirtioBlkRequest::_Internal {
public:
static const ::opi_api::storage::v1::VirtioBlk& controller(const CreateVirtioBlkRequest* msg);
+ static const ::opi_api::common::v1::ObjectKey& txn_id(const CreateVirtioBlkRequest* msg);
};
const ::opi_api::storage::v1::VirtioBlk&
CreateVirtioBlkRequest::_Internal::controller(const CreateVirtioBlkRequest* msg) {
return *msg->controller_;
}
+const ::opi_api::common::v1::ObjectKey&
+CreateVirtioBlkRequest::_Internal::txn_id(const CreateVirtioBlkRequest* msg) {
+ return *msg->txn_id_;
+}
+void CreateVirtioBlkRequest::clear_txn_id() {
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
+}
CreateVirtioBlkRequest::CreateVirtioBlkRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -661,11 +682,19 @@ CreateVirtioBlkRequest::CreateVirtioBlkRequest(const CreateVirtioBlkRequest& fro
} else {
controller_ = nullptr;
}
+ if (from._internal_has_txn_id()) {
+ txn_id_ = new ::opi_api::common::v1::ObjectKey(*from.txn_id_);
+ } else {
+ txn_id_ = nullptr;
+ }
// @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.CreateVirtioBlkRequest)
}
inline void CreateVirtioBlkRequest::SharedCtor() {
-controller_ = nullptr;
+::memset(reinterpret_cast(this) + static_cast(
+ reinterpret_cast(&controller_) - reinterpret_cast(this)),
+ 0, static_cast(reinterpret_cast(&txn_id_) -
+ reinterpret_cast(&controller_)) + sizeof(txn_id_));
}
CreateVirtioBlkRequest::~CreateVirtioBlkRequest() {
@@ -678,6 +707,7 @@ CreateVirtioBlkRequest::~CreateVirtioBlkRequest() {
inline void CreateVirtioBlkRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete controller_;
+ if (this != internal_default_instance()) delete txn_id_;
}
void CreateVirtioBlkRequest::ArenaDtor(void* object) {
@@ -700,6 +730,10 @@ void CreateVirtioBlkRequest::Clear() {
delete controller_;
}
controller_ = nullptr;
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -717,6 +751,14 @@ const char* CreateVirtioBlkRequest::_InternalParse(const char* ptr, ::PROTOBUF_N
} else
goto handle_unusual;
continue;
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_txn_id(), ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
default:
goto handle_unusual;
} // switch
@@ -754,6 +796,14 @@ uint8_t* CreateVirtioBlkRequest::_InternalSerialize(
1, _Internal::controller(this), target, stream);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::txn_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);
@@ -777,6 +827,13 @@ size_t CreateVirtioBlkRequest::ByteSizeLong() const {
*controller_);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *txn_id_);
+ }
+
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
@@ -802,6 +859,9 @@ void CreateVirtioBlkRequest::MergeFrom(const CreateVirtioBlkRequest& from) {
if (from._internal_has_controller()) {
_internal_mutable_controller()->::opi_api::storage::v1::VirtioBlk::MergeFrom(from._internal_controller());
}
+ if (from._internal_has_txn_id()) {
+ _internal_mutable_txn_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_txn_id());
+ }
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -819,7 +879,12 @@ bool CreateVirtioBlkRequest::IsInitialized() const {
void CreateVirtioBlkRequest::InternalSwap(CreateVirtioBlkRequest* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(controller_, other->controller_);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(CreateVirtioBlkRequest, txn_id_)
+ + sizeof(CreateVirtioBlkRequest::txn_id_)
+ - PROTOBUF_FIELD_OFFSET(CreateVirtioBlkRequest, controller_)>(
+ reinterpret_cast(&controller_),
+ reinterpret_cast(&other->controller_));
}
::PROTOBUF_NAMESPACE_ID::Metadata CreateVirtioBlkRequest::GetMetadata() const {
@@ -833,18 +898,29 @@ ::PROTOBUF_NAMESPACE_ID::Metadata CreateVirtioBlkRequest::GetMetadata() const {
class DeleteVirtioBlkRequest::_Internal {
public:
static const ::opi_api::common::v1::ObjectKey& controller_id(const DeleteVirtioBlkRequest* msg);
+ static const ::opi_api::common::v1::ObjectKey& txn_id(const DeleteVirtioBlkRequest* msg);
};
const ::opi_api::common::v1::ObjectKey&
DeleteVirtioBlkRequest::_Internal::controller_id(const DeleteVirtioBlkRequest* msg) {
return *msg->controller_id_;
}
+const ::opi_api::common::v1::ObjectKey&
+DeleteVirtioBlkRequest::_Internal::txn_id(const DeleteVirtioBlkRequest* msg) {
+ return *msg->txn_id_;
+}
void DeleteVirtioBlkRequest::clear_controller_id() {
if (GetArenaForAllocation() == nullptr && controller_id_ != nullptr) {
delete controller_id_;
}
controller_id_ = nullptr;
}
+void DeleteVirtioBlkRequest::clear_txn_id() {
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
+}
DeleteVirtioBlkRequest::DeleteVirtioBlkRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -862,11 +938,19 @@ DeleteVirtioBlkRequest::DeleteVirtioBlkRequest(const DeleteVirtioBlkRequest& fro
} else {
controller_id_ = nullptr;
}
+ if (from._internal_has_txn_id()) {
+ txn_id_ = new ::opi_api::common::v1::ObjectKey(*from.txn_id_);
+ } else {
+ txn_id_ = nullptr;
+ }
// @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.DeleteVirtioBlkRequest)
}
inline void DeleteVirtioBlkRequest::SharedCtor() {
-controller_id_ = nullptr;
+::memset(reinterpret_cast(this) + static_cast(
+ reinterpret_cast(&controller_id_) - reinterpret_cast(this)),
+ 0, static_cast(reinterpret_cast(&txn_id_) -
+ reinterpret_cast(&controller_id_)) + sizeof(txn_id_));
}
DeleteVirtioBlkRequest::~DeleteVirtioBlkRequest() {
@@ -879,6 +963,7 @@ DeleteVirtioBlkRequest::~DeleteVirtioBlkRequest() {
inline void DeleteVirtioBlkRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete controller_id_;
+ if (this != internal_default_instance()) delete txn_id_;
}
void DeleteVirtioBlkRequest::ArenaDtor(void* object) {
@@ -901,6 +986,10 @@ void DeleteVirtioBlkRequest::Clear() {
delete controller_id_;
}
controller_id_ = nullptr;
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -918,6 +1007,14 @@ const char* DeleteVirtioBlkRequest::_InternalParse(const char* ptr, ::PROTOBUF_N
} else
goto handle_unusual;
continue;
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_txn_id(), ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
default:
goto handle_unusual;
} // switch
@@ -955,6 +1052,14 @@ uint8_t* DeleteVirtioBlkRequest::_InternalSerialize(
1, _Internal::controller_id(this), target, stream);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::txn_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);
@@ -978,6 +1083,13 @@ size_t DeleteVirtioBlkRequest::ByteSizeLong() const {
*controller_id_);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *txn_id_);
+ }
+
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
@@ -1003,6 +1115,9 @@ void DeleteVirtioBlkRequest::MergeFrom(const DeleteVirtioBlkRequest& from) {
if (from._internal_has_controller_id()) {
_internal_mutable_controller_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_controller_id());
}
+ if (from._internal_has_txn_id()) {
+ _internal_mutable_txn_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_txn_id());
+ }
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -1020,7 +1135,12 @@ bool DeleteVirtioBlkRequest::IsInitialized() const {
void DeleteVirtioBlkRequest::InternalSwap(DeleteVirtioBlkRequest* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(controller_id_, other->controller_id_);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(DeleteVirtioBlkRequest, txn_id_)
+ + sizeof(DeleteVirtioBlkRequest::txn_id_)
+ - PROTOBUF_FIELD_OFFSET(DeleteVirtioBlkRequest, controller_id_)>(
+ reinterpret_cast(&controller_id_),
+ reinterpret_cast(&other->controller_id_));
}
::PROTOBUF_NAMESPACE_ID::Metadata DeleteVirtioBlkRequest::GetMetadata() const {
@@ -1034,12 +1154,23 @@ ::PROTOBUF_NAMESPACE_ID::Metadata DeleteVirtioBlkRequest::GetMetadata() const {
class UpdateVirtioBlkRequest::_Internal {
public:
static const ::opi_api::storage::v1::VirtioBlk& controller(const UpdateVirtioBlkRequest* msg);
+ static const ::opi_api::common::v1::ObjectKey& txn_id(const UpdateVirtioBlkRequest* msg);
};
const ::opi_api::storage::v1::VirtioBlk&
UpdateVirtioBlkRequest::_Internal::controller(const UpdateVirtioBlkRequest* msg) {
return *msg->controller_;
}
+const ::opi_api::common::v1::ObjectKey&
+UpdateVirtioBlkRequest::_Internal::txn_id(const UpdateVirtioBlkRequest* msg) {
+ return *msg->txn_id_;
+}
+void UpdateVirtioBlkRequest::clear_txn_id() {
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
+}
UpdateVirtioBlkRequest::UpdateVirtioBlkRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -1057,11 +1188,19 @@ UpdateVirtioBlkRequest::UpdateVirtioBlkRequest(const UpdateVirtioBlkRequest& fro
} else {
controller_ = nullptr;
}
+ if (from._internal_has_txn_id()) {
+ txn_id_ = new ::opi_api::common::v1::ObjectKey(*from.txn_id_);
+ } else {
+ txn_id_ = nullptr;
+ }
// @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.UpdateVirtioBlkRequest)
}
inline void UpdateVirtioBlkRequest::SharedCtor() {
-controller_ = nullptr;
+::memset(reinterpret_cast(this) + static_cast(
+ reinterpret_cast(&controller_) - reinterpret_cast(this)),
+ 0, static_cast(reinterpret_cast(&txn_id_) -
+ reinterpret_cast(&controller_)) + sizeof(txn_id_));
}
UpdateVirtioBlkRequest::~UpdateVirtioBlkRequest() {
@@ -1074,6 +1213,7 @@ UpdateVirtioBlkRequest::~UpdateVirtioBlkRequest() {
inline void UpdateVirtioBlkRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete controller_;
+ if (this != internal_default_instance()) delete txn_id_;
}
void UpdateVirtioBlkRequest::ArenaDtor(void* object) {
@@ -1096,6 +1236,10 @@ void UpdateVirtioBlkRequest::Clear() {
delete controller_;
}
controller_ = nullptr;
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -1113,6 +1257,14 @@ const char* UpdateVirtioBlkRequest::_InternalParse(const char* ptr, ::PROTOBUF_N
} else
goto handle_unusual;
continue;
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_txn_id(), ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
default:
goto handle_unusual;
} // switch
@@ -1150,6 +1302,14 @@ uint8_t* UpdateVirtioBlkRequest::_InternalSerialize(
1, _Internal::controller(this), target, stream);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::txn_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);
@@ -1173,6 +1333,13 @@ size_t UpdateVirtioBlkRequest::ByteSizeLong() const {
*controller_);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *txn_id_);
+ }
+
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
@@ -1198,6 +1365,9 @@ void UpdateVirtioBlkRequest::MergeFrom(const UpdateVirtioBlkRequest& from) {
if (from._internal_has_controller()) {
_internal_mutable_controller()->::opi_api::storage::v1::VirtioBlk::MergeFrom(from._internal_controller());
}
+ if (from._internal_has_txn_id()) {
+ _internal_mutable_txn_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_txn_id());
+ }
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -1215,7 +1385,12 @@ bool UpdateVirtioBlkRequest::IsInitialized() const {
void UpdateVirtioBlkRequest::InternalSwap(UpdateVirtioBlkRequest* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(controller_, other->controller_);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(UpdateVirtioBlkRequest, txn_id_)
+ + sizeof(UpdateVirtioBlkRequest::txn_id_)
+ - PROTOBUF_FIELD_OFFSET(UpdateVirtioBlkRequest, controller_)>(
+ reinterpret_cast(&controller_),
+ reinterpret_cast(&other->controller_));
}
::PROTOBUF_NAMESPACE_ID::Metadata UpdateVirtioBlkRequest::GetMetadata() const {
diff --git a/storage/v1alpha1/gen/cpp/frontend_virtio_blk.pb.h b/storage/v1alpha1/gen/cpp/frontend_virtio_blk.pb.h
index e8bfc4c1..00e509d4 100644
--- a/storage/v1alpha1/gen/cpp/frontend_virtio_blk.pb.h
+++ b/storage/v1alpha1/gen/cpp/frontend_virtio_blk.pb.h
@@ -436,6 +436,7 @@ class CreateVirtioBlkRequest final :
enum : int {
kControllerFieldNumber = 1,
+ kTxnIdFieldNumber = 2,
};
// .opi_api.storage.v1.VirtioBlk controller = 1;
bool has_controller() const;
@@ -455,6 +456,24 @@ class CreateVirtioBlkRequest final :
::opi_api::storage::v1::VirtioBlk* controller);
::opi_api::storage::v1::VirtioBlk* unsafe_arena_release_controller();
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ bool has_txn_id() const;
+ private:
+ bool _internal_has_txn_id() const;
+ public:
+ void clear_txn_id();
+ const ::opi_api::common::v1::ObjectKey& txn_id() const;
+ PROTOBUF_NODISCARD ::opi_api::common::v1::ObjectKey* release_txn_id();
+ ::opi_api::common::v1::ObjectKey* mutable_txn_id();
+ void set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id);
+ private:
+ const ::opi_api::common::v1::ObjectKey& _internal_txn_id() const;
+ ::opi_api::common::v1::ObjectKey* _internal_mutable_txn_id();
+ public:
+ void unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id);
+ ::opi_api::common::v1::ObjectKey* unsafe_arena_release_txn_id();
+
// @@protoc_insertion_point(class_scope:opi_api.storage.v1.CreateVirtioBlkRequest)
private:
class _Internal;
@@ -463,6 +482,7 @@ class CreateVirtioBlkRequest final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::opi_api::storage::v1::VirtioBlk* controller_;
+ ::opi_api::common::v1::ObjectKey* txn_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_frontend_5fvirtio_5fblk_2eproto;
};
@@ -591,6 +611,7 @@ class DeleteVirtioBlkRequest final :
enum : int {
kControllerIdFieldNumber = 1,
+ kTxnIdFieldNumber = 2,
};
// .opi_api.common.v1.ObjectKey controller_id = 1;
bool has_controller_id() const;
@@ -610,6 +631,24 @@ class DeleteVirtioBlkRequest final :
::opi_api::common::v1::ObjectKey* controller_id);
::opi_api::common::v1::ObjectKey* unsafe_arena_release_controller_id();
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ bool has_txn_id() const;
+ private:
+ bool _internal_has_txn_id() const;
+ public:
+ void clear_txn_id();
+ const ::opi_api::common::v1::ObjectKey& txn_id() const;
+ PROTOBUF_NODISCARD ::opi_api::common::v1::ObjectKey* release_txn_id();
+ ::opi_api::common::v1::ObjectKey* mutable_txn_id();
+ void set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id);
+ private:
+ const ::opi_api::common::v1::ObjectKey& _internal_txn_id() const;
+ ::opi_api::common::v1::ObjectKey* _internal_mutable_txn_id();
+ public:
+ void unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id);
+ ::opi_api::common::v1::ObjectKey* unsafe_arena_release_txn_id();
+
// @@protoc_insertion_point(class_scope:opi_api.storage.v1.DeleteVirtioBlkRequest)
private:
class _Internal;
@@ -618,6 +657,7 @@ class DeleteVirtioBlkRequest final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::opi_api::common::v1::ObjectKey* controller_id_;
+ ::opi_api::common::v1::ObjectKey* txn_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_frontend_5fvirtio_5fblk_2eproto;
};
@@ -746,6 +786,7 @@ class UpdateVirtioBlkRequest final :
enum : int {
kControllerFieldNumber = 1,
+ kTxnIdFieldNumber = 2,
};
// .opi_api.storage.v1.VirtioBlk controller = 1;
bool has_controller() const;
@@ -765,6 +806,24 @@ class UpdateVirtioBlkRequest final :
::opi_api::storage::v1::VirtioBlk* controller);
::opi_api::storage::v1::VirtioBlk* unsafe_arena_release_controller();
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ bool has_txn_id() const;
+ private:
+ bool _internal_has_txn_id() const;
+ public:
+ void clear_txn_id();
+ const ::opi_api::common::v1::ObjectKey& txn_id() const;
+ PROTOBUF_NODISCARD ::opi_api::common::v1::ObjectKey* release_txn_id();
+ ::opi_api::common::v1::ObjectKey* mutable_txn_id();
+ void set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id);
+ private:
+ const ::opi_api::common::v1::ObjectKey& _internal_txn_id() const;
+ ::opi_api::common::v1::ObjectKey* _internal_mutable_txn_id();
+ public:
+ void unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id);
+ ::opi_api::common::v1::ObjectKey* unsafe_arena_release_txn_id();
+
// @@protoc_insertion_point(class_scope:opi_api.storage.v1.UpdateVirtioBlkRequest)
private:
class _Internal;
@@ -773,6 +832,7 @@ class UpdateVirtioBlkRequest final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::opi_api::storage::v1::VirtioBlk* controller_;
+ ::opi_api::common::v1::ObjectKey* txn_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_frontend_5fvirtio_5fblk_2eproto;
};
@@ -1973,6 +2033,92 @@ inline void CreateVirtioBlkRequest::set_allocated_controller(::opi_api::storage:
// @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.CreateVirtioBlkRequest.controller)
}
+// .opi_api.common.v1.ObjectKey txn_id = 2;
+inline bool CreateVirtioBlkRequest::_internal_has_txn_id() const {
+ return this != internal_default_instance() && txn_id_ != nullptr;
+}
+inline bool CreateVirtioBlkRequest::has_txn_id() const {
+ return _internal_has_txn_id();
+}
+inline const ::opi_api::common::v1::ObjectKey& CreateVirtioBlkRequest::_internal_txn_id() const {
+ const ::opi_api::common::v1::ObjectKey* p = txn_id_;
+ return p != nullptr ? *p : reinterpret_cast(
+ ::opi_api::common::v1::_ObjectKey_default_instance_);
+}
+inline const ::opi_api::common::v1::ObjectKey& CreateVirtioBlkRequest::txn_id() const {
+ // @@protoc_insertion_point(field_get:opi_api.storage.v1.CreateVirtioBlkRequest.txn_id)
+ return _internal_txn_id();
+}
+inline void CreateVirtioBlkRequest::unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id) {
+ if (GetArenaForAllocation() == nullptr) {
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ txn_id_ = txn_id;
+ if (txn_id) {
+
+ } else {
+
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.storage.v1.CreateVirtioBlkRequest.txn_id)
+}
+inline ::opi_api::common::v1::ObjectKey* CreateVirtioBlkRequest::release_txn_id() {
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_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* CreateVirtioBlkRequest::unsafe_arena_release_txn_id() {
+ // @@protoc_insertion_point(field_release:opi_api.storage.v1.CreateVirtioBlkRequest.txn_id)
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_id_ = nullptr;
+ return temp;
+}
+inline ::opi_api::common::v1::ObjectKey* CreateVirtioBlkRequest::_internal_mutable_txn_id() {
+
+ if (txn_id_ == nullptr) {
+ auto* p = CreateMaybeMessage<::opi_api::common::v1::ObjectKey>(GetArenaForAllocation());
+ txn_id_ = p;
+ }
+ return txn_id_;
+}
+inline ::opi_api::common::v1::ObjectKey* CreateVirtioBlkRequest::mutable_txn_id() {
+ ::opi_api::common::v1::ObjectKey* _msg = _internal_mutable_txn_id();
+ // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.CreateVirtioBlkRequest.txn_id)
+ return _msg;
+}
+inline void CreateVirtioBlkRequest::set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
+ if (message_arena == nullptr) {
+ delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ if (txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
+ ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
+ reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id));
+ if (message_arena != submessage_arena) {
+ txn_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, txn_id, submessage_arena);
+ }
+
+ } else {
+
+ }
+ txn_id_ = txn_id;
+ // @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.CreateVirtioBlkRequest.txn_id)
+}
+
// -------------------------------------------------------------------
// DeleteVirtioBlkRequest
@@ -2063,6 +2209,92 @@ inline void DeleteVirtioBlkRequest::set_allocated_controller_id(::opi_api::commo
// @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.DeleteVirtioBlkRequest.controller_id)
}
+// .opi_api.common.v1.ObjectKey txn_id = 2;
+inline bool DeleteVirtioBlkRequest::_internal_has_txn_id() const {
+ return this != internal_default_instance() && txn_id_ != nullptr;
+}
+inline bool DeleteVirtioBlkRequest::has_txn_id() const {
+ return _internal_has_txn_id();
+}
+inline const ::opi_api::common::v1::ObjectKey& DeleteVirtioBlkRequest::_internal_txn_id() const {
+ const ::opi_api::common::v1::ObjectKey* p = txn_id_;
+ return p != nullptr ? *p : reinterpret_cast(
+ ::opi_api::common::v1::_ObjectKey_default_instance_);
+}
+inline const ::opi_api::common::v1::ObjectKey& DeleteVirtioBlkRequest::txn_id() const {
+ // @@protoc_insertion_point(field_get:opi_api.storage.v1.DeleteVirtioBlkRequest.txn_id)
+ return _internal_txn_id();
+}
+inline void DeleteVirtioBlkRequest::unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id) {
+ if (GetArenaForAllocation() == nullptr) {
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ txn_id_ = txn_id;
+ if (txn_id) {
+
+ } else {
+
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.storage.v1.DeleteVirtioBlkRequest.txn_id)
+}
+inline ::opi_api::common::v1::ObjectKey* DeleteVirtioBlkRequest::release_txn_id() {
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_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* DeleteVirtioBlkRequest::unsafe_arena_release_txn_id() {
+ // @@protoc_insertion_point(field_release:opi_api.storage.v1.DeleteVirtioBlkRequest.txn_id)
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_id_ = nullptr;
+ return temp;
+}
+inline ::opi_api::common::v1::ObjectKey* DeleteVirtioBlkRequest::_internal_mutable_txn_id() {
+
+ if (txn_id_ == nullptr) {
+ auto* p = CreateMaybeMessage<::opi_api::common::v1::ObjectKey>(GetArenaForAllocation());
+ txn_id_ = p;
+ }
+ return txn_id_;
+}
+inline ::opi_api::common::v1::ObjectKey* DeleteVirtioBlkRequest::mutable_txn_id() {
+ ::opi_api::common::v1::ObjectKey* _msg = _internal_mutable_txn_id();
+ // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.DeleteVirtioBlkRequest.txn_id)
+ return _msg;
+}
+inline void DeleteVirtioBlkRequest::set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
+ if (message_arena == nullptr) {
+ delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ if (txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
+ ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
+ reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id));
+ if (message_arena != submessage_arena) {
+ txn_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, txn_id, submessage_arena);
+ }
+
+ } else {
+
+ }
+ txn_id_ = txn_id;
+ // @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.DeleteVirtioBlkRequest.txn_id)
+}
+
// -------------------------------------------------------------------
// UpdateVirtioBlkRequest
@@ -2157,6 +2389,92 @@ inline void UpdateVirtioBlkRequest::set_allocated_controller(::opi_api::storage:
// @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.UpdateVirtioBlkRequest.controller)
}
+// .opi_api.common.v1.ObjectKey txn_id = 2;
+inline bool UpdateVirtioBlkRequest::_internal_has_txn_id() const {
+ return this != internal_default_instance() && txn_id_ != nullptr;
+}
+inline bool UpdateVirtioBlkRequest::has_txn_id() const {
+ return _internal_has_txn_id();
+}
+inline const ::opi_api::common::v1::ObjectKey& UpdateVirtioBlkRequest::_internal_txn_id() const {
+ const ::opi_api::common::v1::ObjectKey* p = txn_id_;
+ return p != nullptr ? *p : reinterpret_cast(
+ ::opi_api::common::v1::_ObjectKey_default_instance_);
+}
+inline const ::opi_api::common::v1::ObjectKey& UpdateVirtioBlkRequest::txn_id() const {
+ // @@protoc_insertion_point(field_get:opi_api.storage.v1.UpdateVirtioBlkRequest.txn_id)
+ return _internal_txn_id();
+}
+inline void UpdateVirtioBlkRequest::unsafe_arena_set_allocated_txn_id(
+ ::opi_api::common::v1::ObjectKey* txn_id) {
+ if (GetArenaForAllocation() == nullptr) {
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ txn_id_ = txn_id;
+ if (txn_id) {
+
+ } else {
+
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.storage.v1.UpdateVirtioBlkRequest.txn_id)
+}
+inline ::opi_api::common::v1::ObjectKey* UpdateVirtioBlkRequest::release_txn_id() {
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_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* UpdateVirtioBlkRequest::unsafe_arena_release_txn_id() {
+ // @@protoc_insertion_point(field_release:opi_api.storage.v1.UpdateVirtioBlkRequest.txn_id)
+
+ ::opi_api::common::v1::ObjectKey* temp = txn_id_;
+ txn_id_ = nullptr;
+ return temp;
+}
+inline ::opi_api::common::v1::ObjectKey* UpdateVirtioBlkRequest::_internal_mutable_txn_id() {
+
+ if (txn_id_ == nullptr) {
+ auto* p = CreateMaybeMessage<::opi_api::common::v1::ObjectKey>(GetArenaForAllocation());
+ txn_id_ = p;
+ }
+ return txn_id_;
+}
+inline ::opi_api::common::v1::ObjectKey* UpdateVirtioBlkRequest::mutable_txn_id() {
+ ::opi_api::common::v1::ObjectKey* _msg = _internal_mutable_txn_id();
+ // @@protoc_insertion_point(field_mutable:opi_api.storage.v1.UpdateVirtioBlkRequest.txn_id)
+ return _msg;
+}
+inline void UpdateVirtioBlkRequest::set_allocated_txn_id(::opi_api::common::v1::ObjectKey* txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
+ if (message_arena == nullptr) {
+ delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id_);
+ }
+ if (txn_id) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
+ ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
+ reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(txn_id));
+ if (message_arena != submessage_arena) {
+ txn_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, txn_id, submessage_arena);
+ }
+
+ } else {
+
+ }
+ txn_id_ = txn_id;
+ // @@protoc_insertion_point(field_set_allocated:opi_api.storage.v1.UpdateVirtioBlkRequest.txn_id)
+}
+
// -------------------------------------------------------------------
// ListVirtioBlkRequest
diff --git a/storage/v1alpha1/gen/cpp/frontend_virtio_scsi.pb.cc b/storage/v1alpha1/gen/cpp/frontend_virtio_scsi.pb.cc
index 9b3df840..7328aa8e 100644
--- a/storage/v1alpha1/gen/cpp/frontend_virtio_scsi.pb.cc
+++ b/storage/v1alpha1/gen/cpp/frontend_virtio_scsi.pb.cc
@@ -61,7 +61,8 @@ struct VirtioScsiLunDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT VirtioScsiLunDefaultTypeInternal _VirtioScsiLun_default_instance_;
constexpr CreateVirtioScsiTargetRequest::CreateVirtioScsiTargetRequest(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : target_(nullptr){}
+ : target_(nullptr)
+ , txn_id_(nullptr){}
struct CreateVirtioScsiTargetRequestDefaultTypeInternal {
constexpr CreateVirtioScsiTargetRequestDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
@@ -73,7 +74,8 @@ struct CreateVirtioScsiTargetRequestDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CreateVirtioScsiTargetRequestDefaultTypeInternal _CreateVirtioScsiTargetRequest_default_instance_;
constexpr DeleteVirtioScsiTargetRequest::DeleteVirtioScsiTargetRequest(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : target_id_(nullptr){}
+ : target_id_(nullptr)
+ , txn_id_(nullptr){}
struct DeleteVirtioScsiTargetRequestDefaultTypeInternal {
constexpr DeleteVirtioScsiTargetRequestDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
@@ -85,7 +87,8 @@ struct DeleteVirtioScsiTargetRequestDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DeleteVirtioScsiTargetRequestDefaultTypeInternal _DeleteVirtioScsiTargetRequest_default_instance_;
constexpr UpdateVirtioScsiTargetRequest::UpdateVirtioScsiTargetRequest(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : target_(nullptr){}
+ : target_(nullptr)
+ , txn_id_(nullptr){}
struct UpdateVirtioScsiTargetRequestDefaultTypeInternal {
constexpr UpdateVirtioScsiTargetRequestDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
@@ -160,7 +163,8 @@ struct VirtioScsiTargetStatsResponseDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT VirtioScsiTargetStatsResponseDefaultTypeInternal _VirtioScsiTargetStatsResponse_default_instance_;
constexpr CreateVirtioScsiControllerRequest::CreateVirtioScsiControllerRequest(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : controller_(nullptr){}
+ : controller_(nullptr)
+ , txn_id_(nullptr){}
struct CreateVirtioScsiControllerRequestDefaultTypeInternal {
constexpr CreateVirtioScsiControllerRequestDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
@@ -172,7 +176,8 @@ struct CreateVirtioScsiControllerRequestDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CreateVirtioScsiControllerRequestDefaultTypeInternal _CreateVirtioScsiControllerRequest_default_instance_;
constexpr DeleteVirtioScsiControllerRequest::DeleteVirtioScsiControllerRequest(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : controller_id_(nullptr){}
+ : controller_id_(nullptr)
+ , txn_id_(nullptr){}
struct DeleteVirtioScsiControllerRequestDefaultTypeInternal {
constexpr DeleteVirtioScsiControllerRequestDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
@@ -184,7 +189,8 @@ struct DeleteVirtioScsiControllerRequestDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DeleteVirtioScsiControllerRequestDefaultTypeInternal _DeleteVirtioScsiControllerRequest_default_instance_;
constexpr UpdateVirtioScsiControllerRequest::UpdateVirtioScsiControllerRequest(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : controller_(nullptr){}
+ : controller_(nullptr)
+ , txn_id_(nullptr){}
struct UpdateVirtioScsiControllerRequestDefaultTypeInternal {
constexpr UpdateVirtioScsiControllerRequestDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
@@ -259,7 +265,8 @@ struct VirtioScsiControllerStatsResponseDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT VirtioScsiControllerStatsResponseDefaultTypeInternal _VirtioScsiControllerStatsResponse_default_instance_;
constexpr CreateVirtioScsiLunRequest::CreateVirtioScsiLunRequest(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : lun_(nullptr){}
+ : lun_(nullptr)
+ , txn_id_(nullptr){}
struct CreateVirtioScsiLunRequestDefaultTypeInternal {
constexpr CreateVirtioScsiLunRequestDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
@@ -272,7 +279,8 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CreateVirtioScsiLunRequestDefau
constexpr DeleteVirtioScsiLunRequest::DeleteVirtioScsiLunRequest(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: controller_id_(nullptr)
- , lun_id_(nullptr){}
+ , lun_id_(nullptr)
+ , txn_id_(nullptr){}
struct DeleteVirtioScsiLunRequestDefaultTypeInternal {
constexpr DeleteVirtioScsiLunRequestDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
@@ -284,7 +292,8 @@ struct DeleteVirtioScsiLunRequestDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DeleteVirtioScsiLunRequestDefaultTypeInternal _DeleteVirtioScsiLunRequest_default_instance_;
constexpr UpdateVirtioScsiLunRequest::UpdateVirtioScsiLunRequest(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : lun_(nullptr){}
+ : lun_(nullptr)
+ , txn_id_(nullptr){}
struct UpdateVirtioScsiLunRequestDefaultTypeInternal {
constexpr UpdateVirtioScsiLunRequestDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
@@ -400,6 +409,7 @@ const uint32_t TableStruct_frontend_5fvirtio_5fscsi_2eproto::offsets[] PROTOBUF_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::CreateVirtioScsiTargetRequest, target_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::CreateVirtioScsiTargetRequest, txn_id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::DeleteVirtioScsiTargetRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -407,6 +417,7 @@ const uint32_t TableStruct_frontend_5fvirtio_5fscsi_2eproto::offsets[] PROTOBUF_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::DeleteVirtioScsiTargetRequest, target_id_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::DeleteVirtioScsiTargetRequest, txn_id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::UpdateVirtioScsiTargetRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -414,6 +425,7 @@ const uint32_t TableStruct_frontend_5fvirtio_5fscsi_2eproto::offsets[] PROTOBUF_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::UpdateVirtioScsiTargetRequest, target_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::UpdateVirtioScsiTargetRequest, txn_id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::ListVirtioScsiTargetRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -459,6 +471,7 @@ const uint32_t TableStruct_frontend_5fvirtio_5fscsi_2eproto::offsets[] PROTOBUF_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::CreateVirtioScsiControllerRequest, controller_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::CreateVirtioScsiControllerRequest, txn_id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::DeleteVirtioScsiControllerRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -466,6 +479,7 @@ const uint32_t TableStruct_frontend_5fvirtio_5fscsi_2eproto::offsets[] PROTOBUF_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::DeleteVirtioScsiControllerRequest, controller_id_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::DeleteVirtioScsiControllerRequest, txn_id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::UpdateVirtioScsiControllerRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -473,6 +487,7 @@ const uint32_t TableStruct_frontend_5fvirtio_5fscsi_2eproto::offsets[] PROTOBUF_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::UpdateVirtioScsiControllerRequest, controller_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::UpdateVirtioScsiControllerRequest, txn_id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::ListVirtioScsiControllerRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -518,6 +533,7 @@ const uint32_t TableStruct_frontend_5fvirtio_5fscsi_2eproto::offsets[] PROTOBUF_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::CreateVirtioScsiLunRequest, lun_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::CreateVirtioScsiLunRequest, txn_id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::DeleteVirtioScsiLunRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -526,6 +542,7 @@ const uint32_t TableStruct_frontend_5fvirtio_5fscsi_2eproto::offsets[] PROTOBUF_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::DeleteVirtioScsiLunRequest, controller_id_),
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::DeleteVirtioScsiLunRequest, lun_id_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::DeleteVirtioScsiLunRequest, txn_id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::UpdateVirtioScsiLunRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -533,6 +550,7 @@ const uint32_t TableStruct_frontend_5fvirtio_5fscsi_2eproto::offsets[] PROTOBUF_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::UpdateVirtioScsiLunRequest, lun_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::UpdateVirtioScsiLunRequest, txn_id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::opi_api::storage::v1::ListVirtioScsiLunRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -580,29 +598,29 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOB
{ 8, -1, -1, sizeof(::opi_api::storage::v1::VirtioScsiController)},
{ 16, -1, -1, sizeof(::opi_api::storage::v1::VirtioScsiLun)},
{ 25, -1, -1, sizeof(::opi_api::storage::v1::CreateVirtioScsiTargetRequest)},
- { 32, -1, -1, sizeof(::opi_api::storage::v1::DeleteVirtioScsiTargetRequest)},
- { 39, -1, -1, sizeof(::opi_api::storage::v1::UpdateVirtioScsiTargetRequest)},
- { 46, -1, -1, sizeof(::opi_api::storage::v1::ListVirtioScsiTargetRequest)},
- { 54, -1, -1, sizeof(::opi_api::storage::v1::ListVirtioScsiTargetResponse)},
- { 62, -1, -1, sizeof(::opi_api::storage::v1::GetVirtioScsiTargetRequest)},
- { 69, -1, -1, sizeof(::opi_api::storage::v1::VirtioScsiTargetStatsRequest)},
- { 76, -1, -1, sizeof(::opi_api::storage::v1::VirtioScsiTargetStatsResponse)},
- { 84, -1, -1, sizeof(::opi_api::storage::v1::CreateVirtioScsiControllerRequest)},
- { 91, -1, -1, sizeof(::opi_api::storage::v1::DeleteVirtioScsiControllerRequest)},
- { 98, -1, -1, sizeof(::opi_api::storage::v1::UpdateVirtioScsiControllerRequest)},
- { 105, -1, -1, sizeof(::opi_api::storage::v1::ListVirtioScsiControllerRequest)},
- { 113, -1, -1, sizeof(::opi_api::storage::v1::ListVirtioScsiControllerResponse)},
- { 121, -1, -1, sizeof(::opi_api::storage::v1::GetVirtioScsiControllerRequest)},
- { 128, -1, -1, sizeof(::opi_api::storage::v1::VirtioScsiControllerStatsRequest)},
- { 135, -1, -1, sizeof(::opi_api::storage::v1::VirtioScsiControllerStatsResponse)},
- { 143, -1, -1, sizeof(::opi_api::storage::v1::CreateVirtioScsiLunRequest)},
- { 150, -1, -1, sizeof(::opi_api::storage::v1::DeleteVirtioScsiLunRequest)},
- { 158, -1, -1, sizeof(::opi_api::storage::v1::UpdateVirtioScsiLunRequest)},
- { 165, -1, -1, sizeof(::opi_api::storage::v1::ListVirtioScsiLunRequest)},
- { 174, -1, -1, sizeof(::opi_api::storage::v1::ListVirtioScsiLunResponse)},
- { 182, -1, -1, sizeof(::opi_api::storage::v1::GetVirtioScsiLunRequest)},
- { 190, -1, -1, sizeof(::opi_api::storage::v1::VirtioScsiLunStatsRequest)},
- { 198, -1, -1, sizeof(::opi_api::storage::v1::VirtioScsiLunStatsResponse)},
+ { 33, -1, -1, sizeof(::opi_api::storage::v1::DeleteVirtioScsiTargetRequest)},
+ { 41, -1, -1, sizeof(::opi_api::storage::v1::UpdateVirtioScsiTargetRequest)},
+ { 49, -1, -1, sizeof(::opi_api::storage::v1::ListVirtioScsiTargetRequest)},
+ { 57, -1, -1, sizeof(::opi_api::storage::v1::ListVirtioScsiTargetResponse)},
+ { 65, -1, -1, sizeof(::opi_api::storage::v1::GetVirtioScsiTargetRequest)},
+ { 72, -1, -1, sizeof(::opi_api::storage::v1::VirtioScsiTargetStatsRequest)},
+ { 79, -1, -1, sizeof(::opi_api::storage::v1::VirtioScsiTargetStatsResponse)},
+ { 87, -1, -1, sizeof(::opi_api::storage::v1::CreateVirtioScsiControllerRequest)},
+ { 95, -1, -1, sizeof(::opi_api::storage::v1::DeleteVirtioScsiControllerRequest)},
+ { 103, -1, -1, sizeof(::opi_api::storage::v1::UpdateVirtioScsiControllerRequest)},
+ { 111, -1, -1, sizeof(::opi_api::storage::v1::ListVirtioScsiControllerRequest)},
+ { 119, -1, -1, sizeof(::opi_api::storage::v1::ListVirtioScsiControllerResponse)},
+ { 127, -1, -1, sizeof(::opi_api::storage::v1::GetVirtioScsiControllerRequest)},
+ { 134, -1, -1, sizeof(::opi_api::storage::v1::VirtioScsiControllerStatsRequest)},
+ { 141, -1, -1, sizeof(::opi_api::storage::v1::VirtioScsiControllerStatsResponse)},
+ { 149, -1, -1, sizeof(::opi_api::storage::v1::CreateVirtioScsiLunRequest)},
+ { 157, -1, -1, sizeof(::opi_api::storage::v1::DeleteVirtioScsiLunRequest)},
+ { 166, -1, -1, sizeof(::opi_api::storage::v1::UpdateVirtioScsiLunRequest)},
+ { 174, -1, -1, sizeof(::opi_api::storage::v1::ListVirtioScsiLunRequest)},
+ { 183, -1, -1, sizeof(::opi_api::storage::v1::ListVirtioScsiLunResponse)},
+ { 191, -1, -1, sizeof(::opi_api::storage::v1::GetVirtioScsiLunRequest)},
+ { 199, -1, -1, sizeof(::opi_api::storage::v1::VirtioScsiLunStatsRequest)},
+ { 207, -1, -1, sizeof(::opi_api::storage::v1::VirtioScsiLunStatsResponse)},
};
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
@@ -648,136 +666,147 @@ const char descriptor_table_protodef_frontend_5fvirtio_5fscsi_2eproto[] PROTOBUF
"id\030\001 \001(\0132\034.opi_api.common.v1.ObjectKey\022/"
"\n\ttarget_id\030\002 \001(\0132\034.opi_api.common.v1.Ob"
"jectKey\022/\n\tvolume_id\030\003 \001(\0132\034.opi_api.com"
- "mon.v1.ObjectKey\"U\n\035CreateVirtioScsiTarg"
- "etRequest\0224\n\006target\030\001 \001(\0132$.opi_api.stor"
- "age.v1.VirtioScsiTarget\"P\n\035DeleteVirtioS"
- "csiTargetRequest\022/\n\ttarget_id\030\001 \001(\0132\034.op"
- "i_api.common.v1.ObjectKey\"U\n\035UpdateVirti"
- "oScsiTargetRequest\0224\n\006target\030\001 \001(\0132$.opi"
- "_api.storage.v1.VirtioScsiTarget\"D\n\033List"
- "VirtioScsiTargetRequest\022\021\n\tpage_size\030\001 \001"
- "(\005\022\022\n\npage_token\030\002 \001(\t\"n\n\034ListVirtioScsi"
- "TargetResponse\0225\n\007targets\030\001 \003(\0132$.opi_ap"
- "i.storage.v1.VirtioScsiTarget\022\027\n\017next_pa"
- "ge_token\030\002 \001(\t\"M\n\032GetVirtioScsiTargetReq"
- "uest\022/\n\ttarget_id\030\001 \001(\0132\034.opi_api.common"
- ".v1.ObjectKey\"O\n\034VirtioScsiTargetStatsRe"
- "quest\022/\n\ttarget_id\030\001 \001(\0132\034.opi_api.commo"
- "n.v1.ObjectKey\"X\n\035VirtioScsiTargetStatsR"
- "esponse\022(\n\002id\030\001 \001(\0132\034.opi_api.common.v1."
- "ObjectKey\022\r\n\005stats\030\002 \001(\t\"a\n!CreateVirtio"
- "ScsiControllerRequest\022<\n\ncontroller\030\001 \001("
- "\0132(.opi_api.storage.v1.VirtioScsiControl"
- "ler\"X\n!DeleteVirtioScsiControllerRequest"
- "\0223\n\rcontroller_id\030\001 \001(\0132\034.opi_api.common"
- ".v1.ObjectKey\"a\n!UpdateVirtioScsiControl"
- "lerRequest\022<\n\ncontroller\030\001 \001(\0132(.opi_api"
- ".storage.v1.VirtioScsiController\"H\n\037List"
- "VirtioScsiControllerRequest\022\021\n\tpage_size"
- "\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\"z\n ListVirtio"
- "ScsiControllerResponse\022=\n\013controllers\030\001 "
- "\003(\0132(.opi_api.storage.v1.VirtioScsiContr"
- "oller\022\027\n\017next_page_token\030\002 \001(\t\"U\n\036GetVir"
- "tioScsiControllerRequest\0223\n\rcontroller_i"
- "d\030\001 \001(\0132\034.opi_api.common.v1.ObjectKey\"W\n"
- " VirtioScsiControllerStatsRequest\0223\n\rcon"
+ "mon.v1.ObjectKey\"\203\001\n\035CreateVirtioScsiTar"
+ "getRequest\0224\n\006target\030\001 \001(\0132$.opi_api.sto"
+ "rage.v1.VirtioScsiTarget\022,\n\006txn_id\030\002 \001(\013"
+ "2\034.opi_api.common.v1.ObjectKey\"~\n\035Delete"
+ "VirtioScsiTargetRequest\022/\n\ttarget_id\030\001 \001"
+ "(\0132\034.opi_api.common.v1.ObjectKey\022,\n\006txn_"
+ "id\030\002 \001(\0132\034.opi_api.common.v1.ObjectKey\"\203"
+ "\001\n\035UpdateVirtioScsiTargetRequest\0224\n\006targ"
+ "et\030\001 \001(\0132$.opi_api.storage.v1.VirtioScsi"
+ "Target\022,\n\006txn_id\030\002 \001(\0132\034.opi_api.common."
+ "v1.ObjectKey\"D\n\033ListVirtioScsiTargetRequ"
+ "est\022\021\n\tpage_size\030\001 \001(\005\022\022\n\npage_token\030\002 \001"
+ "(\t\"n\n\034ListVirtioScsiTargetResponse\0225\n\007ta"
+ "rgets\030\001 \003(\0132$.opi_api.storage.v1.VirtioS"
+ "csiTarget\022\027\n\017next_page_token\030\002 \001(\t\"M\n\032Ge"
+ "tVirtioScsiTargetRequest\022/\n\ttarget_id\030\001 "
+ "\001(\0132\034.opi_api.common.v1.ObjectKey\"O\n\034Vir"
+ "tioScsiTargetStatsRequest\022/\n\ttarget_id\030\001"
+ " \001(\0132\034.opi_api.common.v1.ObjectKey\"X\n\035Vi"
+ "rtioScsiTargetStatsResponse\022(\n\002id\030\001 \001(\0132"
+ "\034.opi_api.common.v1.ObjectKey\022\r\n\005stats\030\002"
+ " \001(\t\"\217\001\n!CreateVirtioScsiControllerReque"
+ "st\022<\n\ncontroller\030\001 \001(\0132(.opi_api.storage"
+ ".v1.VirtioScsiController\022,\n\006txn_id\030\002 \001(\013"
+ "2\034.opi_api.common.v1.ObjectKey\"\206\001\n!Delet"
+ "eVirtioScsiControllerRequest\0223\n\rcontroll"
+ "er_id\030\001 \001(\0132\034.opi_api.common.v1.ObjectKe"
+ "y\022,\n\006txn_id\030\002 \001(\0132\034.opi_api.common.v1.Ob"
+ "jectKey\"\217\001\n!UpdateVirtioScsiControllerRe"
+ "quest\022<\n\ncontroller\030\001 \001(\0132(.opi_api.stor"
+ "age.v1.VirtioScsiController\022,\n\006txn_id\030\002 "
+ "\001(\0132\034.opi_api.common.v1.ObjectKey\"H\n\037Lis"
+ "tVirtioScsiControllerRequest\022\021\n\tpage_siz"
+ "e\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\"z\n ListVirti"
+ "oScsiControllerResponse\022=\n\013controllers\030\001"
+ " \003(\0132(.opi_api.storage.v1.VirtioScsiCont"
+ "roller\022\027\n\017next_page_token\030\002 \001(\t\"U\n\036GetVi"
+ "rtioScsiControllerRequest\0223\n\rcontroller_"
+ "id\030\001 \001(\0132\034.opi_api.common.v1.ObjectKey\"W"
+ "\n VirtioScsiControllerStatsRequest\0223\n\rco"
+ "ntroller_id\030\001 \001(\0132\034.opi_api.common.v1.Ob"
+ "jectKey\"\\\n!VirtioScsiControllerStatsResp"
+ "onse\022(\n\002id\030\001 \001(\0132\034.opi_api.common.v1.Obj"
+ "ectKey\022\r\n\005stats\030\002 \001(\t\"z\n\032CreateVirtioScs"
+ "iLunRequest\022.\n\003lun\030\001 \001(\0132!.opi_api.stora"
+ "ge.v1.VirtioScsiLun\022,\n\006txn_id\030\002 \001(\0132\034.op"
+ "i_api.common.v1.ObjectKey\"\255\001\n\032DeleteVirt"
+ "ioScsiLunRequest\0223\n\rcontroller_id\030\001 \001(\0132"
+ "\034.opi_api.common.v1.ObjectKey\022,\n\006lun_id\030"
+ "\002 \001(\0132\034.opi_api.common.v1.ObjectKey\022,\n\006t"
+ "xn_id\030\003 \001(\0132\034.opi_api.common.v1.ObjectKe"
+ "y\"z\n\032UpdateVirtioScsiLunRequest\022.\n\003lun\030\001"
+ " \001(\0132!.opi_api.storage.v1.VirtioScsiLun\022"
+ ",\n\006txn_id\030\002 \001(\0132\034.opi_api.common.v1.Obje"
+ "ctKey\"v\n\030ListVirtioScsiLunRequest\0223\n\rcon"
"troller_id\030\001 \001(\0132\034.opi_api.common.v1.Obj"
- "ectKey\"\\\n!VirtioScsiControllerStatsRespo"
- "nse\022(\n\002id\030\001 \001(\0132\034.opi_api.common.v1.Obje"
- "ctKey\022\r\n\005stats\030\002 \001(\t\"L\n\032CreateVirtioScsi"
- "LunRequest\022.\n\003lun\030\001 \001(\0132!.opi_api.storag"
- "e.v1.VirtioScsiLun\"\177\n\032DeleteVirtioScsiLu"
- "nRequest\0223\n\rcontroller_id\030\001 \001(\0132\034.opi_ap"
- "i.common.v1.ObjectKey\022,\n\006lun_id\030\002 \001(\0132\034."
- "opi_api.common.v1.ObjectKey\"L\n\032UpdateVir"
- "tioScsiLunRequest\022.\n\003lun\030\001 \001(\0132!.opi_api"
- ".storage.v1.VirtioScsiLun\"v\n\030ListVirtioS"
- "csiLunRequest\0223\n\rcontroller_id\030\001 \001(\0132\034.o"
- "pi_api.common.v1.ObjectKey\022\021\n\tpage_size\030"
- "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"e\n\031ListVirtioS"
- "csiLunResponse\022/\n\004luns\030\001 \003(\0132!.opi_api.s"
- "torage.v1.VirtioScsiLun\022\027\n\017next_page_tok"
- "en\030\002 \001(\t\"|\n\027GetVirtioScsiLunRequest\0223\n\rc"
- "ontroller_id\030\001 \001(\0132\034.opi_api.common.v1.O"
- "bjectKey\022,\n\006lun_id\030\002 \001(\0132\034.opi_api.commo"
- "n.v1.ObjectKey\"~\n\031VirtioScsiLunStatsRequ"
- "est\0223\n\rcontroller_id\030\001 \001(\0132\034.opi_api.com"
- "mon.v1.ObjectKey\022,\n\006lun_id\030\002 \001(\0132\034.opi_a"
- "pi.common.v1.ObjectKey\"U\n\032VirtioScsiLunS"
- "tatsResponse\022(\n\002id\030\001 \001(\0132\034.opi_api.commo"
- "n.v1.ObjectKey\022\r\n\005stats\030\002 \001(\t2\327\025\n\031Fronte"
- "ndVirtioScsiService\022\242\001\n\026CreateVirtioScsi"
- "Target\0221.opi_api.storage.v1.CreateVirtio"
- "ScsiTargetRequest\032$.opi_api.storage.v1.V"
- "irtioScsiTarget\"/\202\323\344\223\002)\"\025/v1/virtioscsit"
- "argets:\020virtioscsitarget\022\225\001\n\026DeleteVirti"
- "oScsiTarget\0221.opi_api.storage.v1.DeleteV"
- "irtioScsiTargetRequest\032\026.google.protobuf"
- ".Empty\"0\202\323\344\223\002**(/v1/virtioscsitargets/{v"
- "irtioscsitarget}\022\242\001\n\026UpdateVirtioScsiTar"
- "get\0221.opi_api.storage.v1.UpdateVirtioScs"
- "iTargetRequest\032$.opi_api.storage.v1.Virt"
- "ioScsiTarget\"/\202\323\344\223\002)2\025/v1/virtioscsitarg"
- "ets:\020virtioscsitarget\022\230\001\n\024ListVirtioScsi"
- "Target\022/.opi_api.storage.v1.ListVirtioSc"
- "siTargetRequest\0320.opi_api.storage.v1.Lis"
- "tVirtioScsiTargetResponse\"\035\202\323\344\223\002\027\022\025/v1/v"
- "irtioscsitargets\022\235\001\n\023GetVirtioScsiTarget"
- "\022..opi_api.storage.v1.GetVirtioScsiTarge"
- "tRequest\032$.opi_api.storage.v1.VirtioScsi"
- "Target\"0\202\323\344\223\002*\022(/v1/virtioscsitargets/{v"
- "irtioscsitarget}\022~\n\025VirtioScsiTargetStat"
- "s\0220.opi_api.storage.v1.VirtioScsiTargetS"
- "tatsRequest\0321.opi_api.storage.v1.VirtioS"
- "csiTargetStatsResponse\"\000\022\252\001\n\032CreateVirti"
- "oScsiController\0225.opi_api.storage.v1.Cre"
- "ateVirtioScsiControllerRequest\032(.opi_api"
- ".storage.v1.VirtioScsiController\"+\202\323\344\223\002%"
- "\"\023/v1/virtioscsictrls:\016virtioscsictrl\022\231\001"
- "\n\032DeleteVirtioScsiController\0225.opi_api.s"
- "torage.v1.DeleteVirtioScsiControllerRequ"
- "est\032\026.google.protobuf.Empty\",\202\323\344\223\002&*$/v1"
- "/virtioscsictrls/{virtioscsictrl}\022\252\001\n\032Up"
- "dateVirtioScsiController\0225.opi_api.stora"
- "ge.v1.UpdateVirtioScsiControllerRequest\032"
- "(.opi_api.storage.v1.VirtioScsiControlle"
- "r\"+\202\323\344\223\002%2\023/v1/virtioscsictrls:\016virtiosc"
- "sictrl\022\242\001\n\030ListVirtioScsiController\0223.op"
- "i_api.storage.v1.ListVirtioScsiControlle"
- "rRequest\0324.opi_api.storage.v1.ListVirtio"
- "ScsiControllerResponse\"\033\202\323\344\223\002\025\022\023/v1/virt"
- "ioscsictrls\022\245\001\n\027GetVirtioScsiController\022"
- "2.opi_api.storage.v1.GetVirtioScsiContro"
- "llerRequest\032(.opi_api.storage.v1.VirtioS"
- "csiController\",\202\323\344\223\002&\022$/v1/virtioscsictr"
- "ls/{virtioscsictrl}\022\212\001\n\031VirtioScsiContro"
- "llerStats\0224.opi_api.storage.v1.VirtioScs"
- "iControllerStatsRequest\0325.opi_api.storag"
- "e.v1.VirtioScsiControllerStatsResponse\"\000"
- "\022\223\001\n\023CreateVirtioScsiLun\022..opi_api.stora"
- "ge.v1.CreateVirtioScsiLunRequest\032!.opi_a"
- "pi.storage.v1.VirtioScsiLun\")\202\323\344\223\002#\"\022/v1"
- "/virtioscsiluns:\rvirtioscsilun\022\211\001\n\023Delet"
- "eVirtioScsiLun\022..opi_api.storage.v1.Dele"
- "teVirtioScsiLunRequest\032\026.google.protobuf"
- ".Empty\"*\202\323\344\223\002$*\"/v1/virtioscsiluns/{virt"
- "ioscsilun}\022\223\001\n\023UpdateVirtioScsiLun\022..opi"
- "_api.storage.v1.UpdateVirtioScsiLunReque"
- "st\032!.opi_api.storage.v1.VirtioScsiLun\")\202"
- "\323\344\223\002#2\022/v1/virtioscsiluns:\rvirtioscsilun"
- "\022\214\001\n\021ListVirtioScsiLun\022,.opi_api.storage"
- ".v1.ListVirtioScsiLunRequest\032-.opi_api.s"
- "torage.v1.ListVirtioScsiLunResponse\"\032\202\323\344"
- "\223\002\024\022\022/v1/virtioscsiluns\022\216\001\n\020GetVirtioScs"
- "iLun\022+.opi_api.storage.v1.GetVirtioScsiL"
- "unRequest\032!.opi_api.storage.v1.VirtioScs"
- "iLun\"*\202\323\344\223\002$\022\"/v1/virtioscsiluns/{virtio"
- "scsilun}\022u\n\022VirtioScsiLunStats\022-.opi_api"
- ".storage.v1.VirtioScsiLunStatsRequest\032.."
- "opi_api.storage.v1.VirtioScsiLunStatsRes"
- "ponse\"\000Bf\n\022opi_api.storage.v1B\027FrontendV"
- "irtioScsiProtoP\001Z5github.com/opiproject/"
- "opi-api/storage/v1alpha1/gen/gob\006proto3"
+ "ectKey\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030"
+ "\003 \001(\t\"e\n\031ListVirtioScsiLunResponse\022/\n\004lu"
+ "ns\030\001 \003(\0132!.opi_api.storage.v1.VirtioScsi"
+ "Lun\022\027\n\017next_page_token\030\002 \001(\t\"|\n\027GetVirti"
+ "oScsiLunRequest\0223\n\rcontroller_id\030\001 \001(\0132\034"
+ ".opi_api.common.v1.ObjectKey\022,\n\006lun_id\030\002"
+ " \001(\0132\034.opi_api.common.v1.ObjectKey\"~\n\031Vi"
+ "rtioScsiLunStatsRequest\0223\n\rcontroller_id"
+ "\030\001 \001(\0132\034.opi_api.common.v1.ObjectKey\022,\n\006"
+ "lun_id\030\002 \001(\0132\034.opi_api.common.v1.ObjectK"
+ "ey\"U\n\032VirtioScsiLunStatsResponse\022(\n\002id\030\001"
+ " \001(\0132\034.opi_api.common.v1.ObjectKey\022\r\n\005st"
+ "ats\030\002 \001(\t2\327\025\n\031FrontendVirtioScsiService\022"
+ "\242\001\n\026CreateVirtioScsiTarget\0221.opi_api.sto"
+ "rage.v1.CreateVirtioScsiTargetRequest\032$."
+ "opi_api.storage.v1.VirtioScsiTarget\"/\202\323\344"
+ "\223\002)\"\025/v1/virtioscsitargets:\020virtioscsita"
+ "rget\022\225\001\n\026DeleteVirtioScsiTarget\0221.opi_ap"
+ "i.storage.v1.DeleteVirtioScsiTargetReque"
+ "st\032\026.google.protobuf.Empty\"0\202\323\344\223\002**(/v1/"
+ "virtioscsitargets/{virtioscsitarget}\022\242\001\n"
+ "\026UpdateVirtioScsiTarget\0221.opi_api.storag"
+ "e.v1.UpdateVirtioScsiTargetRequest\032$.opi"
+ "_api.storage.v1.VirtioScsiTarget\"/\202\323\344\223\002)"
+ "2\025/v1/virtioscsitargets:\020virtioscsitarge"
+ "t\022\230\001\n\024ListVirtioScsiTarget\022/.opi_api.sto"
+ "rage.v1.ListVirtioScsiTargetRequest\0320.op"
+ "i_api.storage.v1.ListVirtioScsiTargetRes"
+ "ponse\"\035\202\323\344\223\002\027\022\025/v1/virtioscsitargets\022\235\001\n"
+ "\023GetVirtioScsiTarget\022..opi_api.storage.v"
+ "1.GetVirtioScsiTargetRequest\032$.opi_api.s"
+ "torage.v1.VirtioScsiTarget\"0\202\323\344\223\002*\022(/v1/"
+ "virtioscsitargets/{virtioscsitarget}\022~\n\025"
+ "VirtioScsiTargetStats\0220.opi_api.storage."
+ "v1.VirtioScsiTargetStatsRequest\0321.opi_ap"
+ "i.storage.v1.VirtioScsiTargetStatsRespon"
+ "se\"\000\022\252\001\n\032CreateVirtioScsiController\0225.op"
+ "i_api.storage.v1.CreateVirtioScsiControl"
+ "lerRequest\032(.opi_api.storage.v1.VirtioSc"
+ "siController\"+\202\323\344\223\002%\"\023/v1/virtioscsictrl"
+ "s:\016virtioscsictrl\022\231\001\n\032DeleteVirtioScsiCo"
+ "ntroller\0225.opi_api.storage.v1.DeleteVirt"
+ "ioScsiControllerRequest\032\026.google.protobu"
+ "f.Empty\",\202\323\344\223\002&*$/v1/virtioscsictrls/{vi"
+ "rtioscsictrl}\022\252\001\n\032UpdateVirtioScsiContro"
+ "ller\0225.opi_api.storage.v1.UpdateVirtioSc"
+ "siControllerRequest\032(.opi_api.storage.v1"
+ ".VirtioScsiController\"+\202\323\344\223\002%2\023/v1/virti"
+ "oscsictrls:\016virtioscsictrl\022\242\001\n\030ListVirti"
+ "oScsiController\0223.opi_api.storage.v1.Lis"
+ "tVirtioScsiControllerRequest\0324.opi_api.s"
+ "torage.v1.ListVirtioScsiControllerRespon"
+ "se\"\033\202\323\344\223\002\025\022\023/v1/virtioscsictrls\022\245\001\n\027GetV"
+ "irtioScsiController\0222.opi_api.storage.v1"
+ ".GetVirtioScsiControllerRequest\032(.opi_ap"
+ "i.storage.v1.VirtioScsiController\",\202\323\344\223\002"
+ "&\022$/v1/virtioscsictrls/{virtioscsictrl}\022"
+ "\212\001\n\031VirtioScsiControllerStats\0224.opi_api."
+ "storage.v1.VirtioScsiControllerStatsRequ"
+ "est\0325.opi_api.storage.v1.VirtioScsiContr"
+ "ollerStatsResponse\"\000\022\223\001\n\023CreateVirtioScs"
+ "iLun\022..opi_api.storage.v1.CreateVirtioSc"
+ "siLunRequest\032!.opi_api.storage.v1.Virtio"
+ "ScsiLun\")\202\323\344\223\002#\"\022/v1/virtioscsiluns:\rvir"
+ "tioscsilun\022\211\001\n\023DeleteVirtioScsiLun\022..opi"
+ "_api.storage.v1.DeleteVirtioScsiLunReque"
+ "st\032\026.google.protobuf.Empty\"*\202\323\344\223\002$*\"/v1/"
+ "virtioscsiluns/{virtioscsilun}\022\223\001\n\023Updat"
+ "eVirtioScsiLun\022..opi_api.storage.v1.Upda"
+ "teVirtioScsiLunRequest\032!.opi_api.storage"
+ ".v1.VirtioScsiLun\")\202\323\344\223\002#2\022/v1/virtioscs"
+ "iluns:\rvirtioscsilun\022\214\001\n\021ListVirtioScsiL"
+ "un\022,.opi_api.storage.v1.ListVirtioScsiLu"
+ "nRequest\032-.opi_api.storage.v1.ListVirtio"
+ "ScsiLunResponse\"\032\202\323\344\223\002\024\022\022/v1/virtioscsil"
+ "uns\022\216\001\n\020GetVirtioScsiLun\022+.opi_api.stora"
+ "ge.v1.GetVirtioScsiLunRequest\032!.opi_api."
+ "storage.v1.VirtioScsiLun\"*\202\323\344\223\002$\022\"/v1/vi"
+ "rtioscsiluns/{virtioscsilun}\022u\n\022VirtioSc"
+ "siLunStats\022-.opi_api.storage.v1.VirtioSc"
+ "siLunStatsRequest\032..opi_api.storage.v1.V"
+ "irtioScsiLunStatsResponse\"\000Bf\n\022opi_api.s"
+ "torage.v1B\027FrontendVirtioScsiProtoP\001Z5gi"
+ "thub.com/opiproject/opi-api/storage/v1al"
+ "pha1/gen/gob\006proto3"
;
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_frontend_5fvirtio_5fscsi_2eproto_deps[4] = {
&::descriptor_table_google_2fapi_2fannotations_2eproto,
@@ -787,7 +816,7 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor
};
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_frontend_5fvirtio_5fscsi_2eproto_once;
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_frontend_5fvirtio_5fscsi_2eproto = {
- false, false, 5679, descriptor_table_protodef_frontend_5fvirtio_5fscsi_2eproto, "frontend_virtio_scsi.proto",
+ false, false, 6099, descriptor_table_protodef_frontend_5fvirtio_5fscsi_2eproto, "frontend_virtio_scsi.proto",
&descriptor_table_frontend_5fvirtio_5fscsi_2eproto_once, descriptor_table_frontend_5fvirtio_5fscsi_2eproto_deps, 4, 27,
schemas, file_default_instances, TableStruct_frontend_5fvirtio_5fscsi_2eproto::offsets,
file_level_metadata_frontend_5fvirtio_5fscsi_2eproto, file_level_enum_descriptors_frontend_5fvirtio_5fscsi_2eproto, file_level_service_descriptors_frontend_5fvirtio_5fscsi_2eproto,
@@ -1599,12 +1628,23 @@ ::PROTOBUF_NAMESPACE_ID::Metadata VirtioScsiLun::GetMetadata() const {
class CreateVirtioScsiTargetRequest::_Internal {
public:
static const ::opi_api::storage::v1::VirtioScsiTarget& target(const CreateVirtioScsiTargetRequest* msg);
+ static const ::opi_api::common::v1::ObjectKey& txn_id(const CreateVirtioScsiTargetRequest* msg);
};
const ::opi_api::storage::v1::VirtioScsiTarget&
CreateVirtioScsiTargetRequest::_Internal::target(const CreateVirtioScsiTargetRequest* msg) {
return *msg->target_;
}
+const ::opi_api::common::v1::ObjectKey&
+CreateVirtioScsiTargetRequest::_Internal::txn_id(const CreateVirtioScsiTargetRequest* msg) {
+ return *msg->txn_id_;
+}
+void CreateVirtioScsiTargetRequest::clear_txn_id() {
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
+}
CreateVirtioScsiTargetRequest::CreateVirtioScsiTargetRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -1622,11 +1662,19 @@ CreateVirtioScsiTargetRequest::CreateVirtioScsiTargetRequest(const CreateVirtioS
} else {
target_ = nullptr;
}
+ if (from._internal_has_txn_id()) {
+ txn_id_ = new ::opi_api::common::v1::ObjectKey(*from.txn_id_);
+ } else {
+ txn_id_ = nullptr;
+ }
// @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.CreateVirtioScsiTargetRequest)
}
inline void CreateVirtioScsiTargetRequest::SharedCtor() {
-target_ = nullptr;
+::memset(reinterpret_cast(this) + static_cast(
+ reinterpret_cast(&target_) - reinterpret_cast(this)),
+ 0, static_cast(reinterpret_cast(&txn_id_) -
+ reinterpret_cast(&target_)) + sizeof(txn_id_));
}
CreateVirtioScsiTargetRequest::~CreateVirtioScsiTargetRequest() {
@@ -1639,6 +1687,7 @@ CreateVirtioScsiTargetRequest::~CreateVirtioScsiTargetRequest() {
inline void CreateVirtioScsiTargetRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete target_;
+ if (this != internal_default_instance()) delete txn_id_;
}
void CreateVirtioScsiTargetRequest::ArenaDtor(void* object) {
@@ -1661,6 +1710,10 @@ void CreateVirtioScsiTargetRequest::Clear() {
delete target_;
}
target_ = nullptr;
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -1678,6 +1731,14 @@ const char* CreateVirtioScsiTargetRequest::_InternalParse(const char* ptr, ::PRO
} else
goto handle_unusual;
continue;
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_txn_id(), ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
default:
goto handle_unusual;
} // switch
@@ -1715,6 +1776,14 @@ uint8_t* CreateVirtioScsiTargetRequest::_InternalSerialize(
1, _Internal::target(this), target, stream);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::txn_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);
@@ -1738,6 +1807,13 @@ size_t CreateVirtioScsiTargetRequest::ByteSizeLong() const {
*target_);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *txn_id_);
+ }
+
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
@@ -1763,6 +1839,9 @@ void CreateVirtioScsiTargetRequest::MergeFrom(const CreateVirtioScsiTargetReques
if (from._internal_has_target()) {
_internal_mutable_target()->::opi_api::storage::v1::VirtioScsiTarget::MergeFrom(from._internal_target());
}
+ if (from._internal_has_txn_id()) {
+ _internal_mutable_txn_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_txn_id());
+ }
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -1780,7 +1859,12 @@ bool CreateVirtioScsiTargetRequest::IsInitialized() const {
void CreateVirtioScsiTargetRequest::InternalSwap(CreateVirtioScsiTargetRequest* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(target_, other->target_);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(CreateVirtioScsiTargetRequest, txn_id_)
+ + sizeof(CreateVirtioScsiTargetRequest::txn_id_)
+ - PROTOBUF_FIELD_OFFSET(CreateVirtioScsiTargetRequest, target_)>(
+ reinterpret_cast(&target_),
+ reinterpret_cast(&other->target_));
}
::PROTOBUF_NAMESPACE_ID::Metadata CreateVirtioScsiTargetRequest::GetMetadata() const {
@@ -1794,18 +1878,29 @@ ::PROTOBUF_NAMESPACE_ID::Metadata CreateVirtioScsiTargetRequest::GetMetadata() c
class DeleteVirtioScsiTargetRequest::_Internal {
public:
static const ::opi_api::common::v1::ObjectKey& target_id(const DeleteVirtioScsiTargetRequest* msg);
+ static const ::opi_api::common::v1::ObjectKey& txn_id(const DeleteVirtioScsiTargetRequest* msg);
};
const ::opi_api::common::v1::ObjectKey&
DeleteVirtioScsiTargetRequest::_Internal::target_id(const DeleteVirtioScsiTargetRequest* msg) {
return *msg->target_id_;
}
+const ::opi_api::common::v1::ObjectKey&
+DeleteVirtioScsiTargetRequest::_Internal::txn_id(const DeleteVirtioScsiTargetRequest* msg) {
+ return *msg->txn_id_;
+}
void DeleteVirtioScsiTargetRequest::clear_target_id() {
if (GetArenaForAllocation() == nullptr && target_id_ != nullptr) {
delete target_id_;
}
target_id_ = nullptr;
}
+void DeleteVirtioScsiTargetRequest::clear_txn_id() {
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
+}
DeleteVirtioScsiTargetRequest::DeleteVirtioScsiTargetRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -1823,11 +1918,19 @@ DeleteVirtioScsiTargetRequest::DeleteVirtioScsiTargetRequest(const DeleteVirtioS
} else {
target_id_ = nullptr;
}
+ if (from._internal_has_txn_id()) {
+ txn_id_ = new ::opi_api::common::v1::ObjectKey(*from.txn_id_);
+ } else {
+ txn_id_ = nullptr;
+ }
// @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.DeleteVirtioScsiTargetRequest)
}
inline void DeleteVirtioScsiTargetRequest::SharedCtor() {
-target_id_ = nullptr;
+::memset(reinterpret_cast(this) + static_cast(
+ reinterpret_cast(&target_id_) - reinterpret_cast(this)),
+ 0, static_cast(reinterpret_cast(&txn_id_) -
+ reinterpret_cast(&target_id_)) + sizeof(txn_id_));
}
DeleteVirtioScsiTargetRequest::~DeleteVirtioScsiTargetRequest() {
@@ -1840,6 +1943,7 @@ DeleteVirtioScsiTargetRequest::~DeleteVirtioScsiTargetRequest() {
inline void DeleteVirtioScsiTargetRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete target_id_;
+ if (this != internal_default_instance()) delete txn_id_;
}
void DeleteVirtioScsiTargetRequest::ArenaDtor(void* object) {
@@ -1862,6 +1966,10 @@ void DeleteVirtioScsiTargetRequest::Clear() {
delete target_id_;
}
target_id_ = nullptr;
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -1879,6 +1987,14 @@ const char* DeleteVirtioScsiTargetRequest::_InternalParse(const char* ptr, ::PRO
} else
goto handle_unusual;
continue;
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_txn_id(), ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
default:
goto handle_unusual;
} // switch
@@ -1916,6 +2032,14 @@ uint8_t* DeleteVirtioScsiTargetRequest::_InternalSerialize(
1, _Internal::target_id(this), target, stream);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::txn_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);
@@ -1939,6 +2063,13 @@ size_t DeleteVirtioScsiTargetRequest::ByteSizeLong() const {
*target_id_);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *txn_id_);
+ }
+
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
@@ -1964,6 +2095,9 @@ void DeleteVirtioScsiTargetRequest::MergeFrom(const DeleteVirtioScsiTargetReques
if (from._internal_has_target_id()) {
_internal_mutable_target_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_target_id());
}
+ if (from._internal_has_txn_id()) {
+ _internal_mutable_txn_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_txn_id());
+ }
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -1981,7 +2115,12 @@ bool DeleteVirtioScsiTargetRequest::IsInitialized() const {
void DeleteVirtioScsiTargetRequest::InternalSwap(DeleteVirtioScsiTargetRequest* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(target_id_, other->target_id_);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(DeleteVirtioScsiTargetRequest, txn_id_)
+ + sizeof(DeleteVirtioScsiTargetRequest::txn_id_)
+ - PROTOBUF_FIELD_OFFSET(DeleteVirtioScsiTargetRequest, target_id_)>(
+ reinterpret_cast(&target_id_),
+ reinterpret_cast(&other->target_id_));
}
::PROTOBUF_NAMESPACE_ID::Metadata DeleteVirtioScsiTargetRequest::GetMetadata() const {
@@ -1995,12 +2134,23 @@ ::PROTOBUF_NAMESPACE_ID::Metadata DeleteVirtioScsiTargetRequest::GetMetadata() c
class UpdateVirtioScsiTargetRequest::_Internal {
public:
static const ::opi_api::storage::v1::VirtioScsiTarget& target(const UpdateVirtioScsiTargetRequest* msg);
+ static const ::opi_api::common::v1::ObjectKey& txn_id(const UpdateVirtioScsiTargetRequest* msg);
};
const ::opi_api::storage::v1::VirtioScsiTarget&
UpdateVirtioScsiTargetRequest::_Internal::target(const UpdateVirtioScsiTargetRequest* msg) {
return *msg->target_;
}
+const ::opi_api::common::v1::ObjectKey&
+UpdateVirtioScsiTargetRequest::_Internal::txn_id(const UpdateVirtioScsiTargetRequest* msg) {
+ return *msg->txn_id_;
+}
+void UpdateVirtioScsiTargetRequest::clear_txn_id() {
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
+}
UpdateVirtioScsiTargetRequest::UpdateVirtioScsiTargetRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -2018,11 +2168,19 @@ UpdateVirtioScsiTargetRequest::UpdateVirtioScsiTargetRequest(const UpdateVirtioS
} else {
target_ = nullptr;
}
+ if (from._internal_has_txn_id()) {
+ txn_id_ = new ::opi_api::common::v1::ObjectKey(*from.txn_id_);
+ } else {
+ txn_id_ = nullptr;
+ }
// @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.UpdateVirtioScsiTargetRequest)
}
inline void UpdateVirtioScsiTargetRequest::SharedCtor() {
-target_ = nullptr;
+::memset(reinterpret_cast(this) + static_cast(
+ reinterpret_cast(&target_) - reinterpret_cast(this)),
+ 0, static_cast(reinterpret_cast(&txn_id_) -
+ reinterpret_cast(&target_)) + sizeof(txn_id_));
}
UpdateVirtioScsiTargetRequest::~UpdateVirtioScsiTargetRequest() {
@@ -2035,6 +2193,7 @@ UpdateVirtioScsiTargetRequest::~UpdateVirtioScsiTargetRequest() {
inline void UpdateVirtioScsiTargetRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete target_;
+ if (this != internal_default_instance()) delete txn_id_;
}
void UpdateVirtioScsiTargetRequest::ArenaDtor(void* object) {
@@ -2057,6 +2216,10 @@ void UpdateVirtioScsiTargetRequest::Clear() {
delete target_;
}
target_ = nullptr;
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -2074,6 +2237,14 @@ const char* UpdateVirtioScsiTargetRequest::_InternalParse(const char* ptr, ::PRO
} else
goto handle_unusual;
continue;
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_txn_id(), ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
default:
goto handle_unusual;
} // switch
@@ -2111,6 +2282,14 @@ uint8_t* UpdateVirtioScsiTargetRequest::_InternalSerialize(
1, _Internal::target(this), target, stream);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::txn_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);
@@ -2134,6 +2313,13 @@ size_t UpdateVirtioScsiTargetRequest::ByteSizeLong() const {
*target_);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *txn_id_);
+ }
+
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
@@ -2159,6 +2345,9 @@ void UpdateVirtioScsiTargetRequest::MergeFrom(const UpdateVirtioScsiTargetReques
if (from._internal_has_target()) {
_internal_mutable_target()->::opi_api::storage::v1::VirtioScsiTarget::MergeFrom(from._internal_target());
}
+ if (from._internal_has_txn_id()) {
+ _internal_mutable_txn_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_txn_id());
+ }
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -2176,7 +2365,12 @@ bool UpdateVirtioScsiTargetRequest::IsInitialized() const {
void UpdateVirtioScsiTargetRequest::InternalSwap(UpdateVirtioScsiTargetRequest* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(target_, other->target_);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(UpdateVirtioScsiTargetRequest, txn_id_)
+ + sizeof(UpdateVirtioScsiTargetRequest::txn_id_)
+ - PROTOBUF_FIELD_OFFSET(UpdateVirtioScsiTargetRequest, target_)>(
+ reinterpret_cast(&target_),
+ reinterpret_cast(&other->target_));
}
::PROTOBUF_NAMESPACE_ID::Metadata UpdateVirtioScsiTargetRequest::GetMetadata() const {
@@ -3309,12 +3503,23 @@ ::PROTOBUF_NAMESPACE_ID::Metadata VirtioScsiTargetStatsResponse::GetMetadata() c
class CreateVirtioScsiControllerRequest::_Internal {
public:
static const ::opi_api::storage::v1::VirtioScsiController& controller(const CreateVirtioScsiControllerRequest* msg);
+ static const ::opi_api::common::v1::ObjectKey& txn_id(const CreateVirtioScsiControllerRequest* msg);
};
const ::opi_api::storage::v1::VirtioScsiController&
CreateVirtioScsiControllerRequest::_Internal::controller(const CreateVirtioScsiControllerRequest* msg) {
return *msg->controller_;
}
+const ::opi_api::common::v1::ObjectKey&
+CreateVirtioScsiControllerRequest::_Internal::txn_id(const CreateVirtioScsiControllerRequest* msg) {
+ return *msg->txn_id_;
+}
+void CreateVirtioScsiControllerRequest::clear_txn_id() {
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
+}
CreateVirtioScsiControllerRequest::CreateVirtioScsiControllerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -3332,11 +3537,19 @@ CreateVirtioScsiControllerRequest::CreateVirtioScsiControllerRequest(const Creat
} else {
controller_ = nullptr;
}
+ if (from._internal_has_txn_id()) {
+ txn_id_ = new ::opi_api::common::v1::ObjectKey(*from.txn_id_);
+ } else {
+ txn_id_ = nullptr;
+ }
// @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.CreateVirtioScsiControllerRequest)
}
inline void CreateVirtioScsiControllerRequest::SharedCtor() {
-controller_ = nullptr;
+::memset(reinterpret_cast(this) + static_cast(
+ reinterpret_cast(&controller_) - reinterpret_cast(this)),
+ 0, static_cast(reinterpret_cast(&txn_id_) -
+ reinterpret_cast(&controller_)) + sizeof(txn_id_));
}
CreateVirtioScsiControllerRequest::~CreateVirtioScsiControllerRequest() {
@@ -3349,6 +3562,7 @@ CreateVirtioScsiControllerRequest::~CreateVirtioScsiControllerRequest() {
inline void CreateVirtioScsiControllerRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete controller_;
+ if (this != internal_default_instance()) delete txn_id_;
}
void CreateVirtioScsiControllerRequest::ArenaDtor(void* object) {
@@ -3371,6 +3585,10 @@ void CreateVirtioScsiControllerRequest::Clear() {
delete controller_;
}
controller_ = nullptr;
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -3388,6 +3606,14 @@ const char* CreateVirtioScsiControllerRequest::_InternalParse(const char* ptr, :
} else
goto handle_unusual;
continue;
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_txn_id(), ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
default:
goto handle_unusual;
} // switch
@@ -3425,6 +3651,14 @@ uint8_t* CreateVirtioScsiControllerRequest::_InternalSerialize(
1, _Internal::controller(this), target, stream);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::txn_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);
@@ -3448,6 +3682,13 @@ size_t CreateVirtioScsiControllerRequest::ByteSizeLong() const {
*controller_);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *txn_id_);
+ }
+
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
@@ -3473,6 +3714,9 @@ void CreateVirtioScsiControllerRequest::MergeFrom(const CreateVirtioScsiControll
if (from._internal_has_controller()) {
_internal_mutable_controller()->::opi_api::storage::v1::VirtioScsiController::MergeFrom(from._internal_controller());
}
+ if (from._internal_has_txn_id()) {
+ _internal_mutable_txn_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_txn_id());
+ }
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -3490,7 +3734,12 @@ bool CreateVirtioScsiControllerRequest::IsInitialized() const {
void CreateVirtioScsiControllerRequest::InternalSwap(CreateVirtioScsiControllerRequest* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(controller_, other->controller_);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(CreateVirtioScsiControllerRequest, txn_id_)
+ + sizeof(CreateVirtioScsiControllerRequest::txn_id_)
+ - PROTOBUF_FIELD_OFFSET(CreateVirtioScsiControllerRequest, controller_)>(
+ reinterpret_cast(&controller_),
+ reinterpret_cast(&other->controller_));
}
::PROTOBUF_NAMESPACE_ID::Metadata CreateVirtioScsiControllerRequest::GetMetadata() const {
@@ -3504,18 +3753,29 @@ ::PROTOBUF_NAMESPACE_ID::Metadata CreateVirtioScsiControllerRequest::GetMetadata
class DeleteVirtioScsiControllerRequest::_Internal {
public:
static const ::opi_api::common::v1::ObjectKey& controller_id(const DeleteVirtioScsiControllerRequest* msg);
+ static const ::opi_api::common::v1::ObjectKey& txn_id(const DeleteVirtioScsiControllerRequest* msg);
};
const ::opi_api::common::v1::ObjectKey&
DeleteVirtioScsiControllerRequest::_Internal::controller_id(const DeleteVirtioScsiControllerRequest* msg) {
return *msg->controller_id_;
}
+const ::opi_api::common::v1::ObjectKey&
+DeleteVirtioScsiControllerRequest::_Internal::txn_id(const DeleteVirtioScsiControllerRequest* msg) {
+ return *msg->txn_id_;
+}
void DeleteVirtioScsiControllerRequest::clear_controller_id() {
if (GetArenaForAllocation() == nullptr && controller_id_ != nullptr) {
delete controller_id_;
}
controller_id_ = nullptr;
}
+void DeleteVirtioScsiControllerRequest::clear_txn_id() {
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
+}
DeleteVirtioScsiControllerRequest::DeleteVirtioScsiControllerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -3533,11 +3793,19 @@ DeleteVirtioScsiControllerRequest::DeleteVirtioScsiControllerRequest(const Delet
} else {
controller_id_ = nullptr;
}
+ if (from._internal_has_txn_id()) {
+ txn_id_ = new ::opi_api::common::v1::ObjectKey(*from.txn_id_);
+ } else {
+ txn_id_ = nullptr;
+ }
// @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.DeleteVirtioScsiControllerRequest)
}
inline void DeleteVirtioScsiControllerRequest::SharedCtor() {
-controller_id_ = nullptr;
+::memset(reinterpret_cast(this) + static_cast(
+ reinterpret_cast(&controller_id_) - reinterpret_cast(this)),
+ 0, static_cast(reinterpret_cast(&txn_id_) -
+ reinterpret_cast(&controller_id_)) + sizeof(txn_id_));
}
DeleteVirtioScsiControllerRequest::~DeleteVirtioScsiControllerRequest() {
@@ -3550,6 +3818,7 @@ DeleteVirtioScsiControllerRequest::~DeleteVirtioScsiControllerRequest() {
inline void DeleteVirtioScsiControllerRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete controller_id_;
+ if (this != internal_default_instance()) delete txn_id_;
}
void DeleteVirtioScsiControllerRequest::ArenaDtor(void* object) {
@@ -3572,6 +3841,10 @@ void DeleteVirtioScsiControllerRequest::Clear() {
delete controller_id_;
}
controller_id_ = nullptr;
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -3589,6 +3862,14 @@ const char* DeleteVirtioScsiControllerRequest::_InternalParse(const char* ptr, :
} else
goto handle_unusual;
continue;
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_txn_id(), ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
default:
goto handle_unusual;
} // switch
@@ -3626,6 +3907,14 @@ uint8_t* DeleteVirtioScsiControllerRequest::_InternalSerialize(
1, _Internal::controller_id(this), target, stream);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::txn_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);
@@ -3649,6 +3938,13 @@ size_t DeleteVirtioScsiControllerRequest::ByteSizeLong() const {
*controller_id_);
}
+ // .opi_api.common.v1.ObjectKey txn_id = 2;
+ if (this->_internal_has_txn_id()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *txn_id_);
+ }
+
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
@@ -3674,6 +3970,9 @@ void DeleteVirtioScsiControllerRequest::MergeFrom(const DeleteVirtioScsiControll
if (from._internal_has_controller_id()) {
_internal_mutable_controller_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_controller_id());
}
+ if (from._internal_has_txn_id()) {
+ _internal_mutable_txn_id()->::opi_api::common::v1::ObjectKey::MergeFrom(from._internal_txn_id());
+ }
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -3691,7 +3990,12 @@ bool DeleteVirtioScsiControllerRequest::IsInitialized() const {
void DeleteVirtioScsiControllerRequest::InternalSwap(DeleteVirtioScsiControllerRequest* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(controller_id_, other->controller_id_);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(DeleteVirtioScsiControllerRequest, txn_id_)
+ + sizeof(DeleteVirtioScsiControllerRequest::txn_id_)
+ - PROTOBUF_FIELD_OFFSET(DeleteVirtioScsiControllerRequest, controller_id_)>(
+ reinterpret_cast(&controller_id_),
+ reinterpret_cast(&other->controller_id_));
}
::PROTOBUF_NAMESPACE_ID::Metadata DeleteVirtioScsiControllerRequest::GetMetadata() const {
@@ -3705,12 +4009,23 @@ ::PROTOBUF_NAMESPACE_ID::Metadata DeleteVirtioScsiControllerRequest::GetMetadata
class UpdateVirtioScsiControllerRequest::_Internal {
public:
static const ::opi_api::storage::v1::VirtioScsiController& controller(const UpdateVirtioScsiControllerRequest* msg);
+ static const ::opi_api::common::v1::ObjectKey& txn_id(const UpdateVirtioScsiControllerRequest* msg);
};
const ::opi_api::storage::v1::VirtioScsiController&
UpdateVirtioScsiControllerRequest::_Internal::controller(const UpdateVirtioScsiControllerRequest* msg) {
return *msg->controller_;
}
+const ::opi_api::common::v1::ObjectKey&
+UpdateVirtioScsiControllerRequest::_Internal::txn_id(const UpdateVirtioScsiControllerRequest* msg) {
+ return *msg->txn_id_;
+}
+void UpdateVirtioScsiControllerRequest::clear_txn_id() {
+ if (GetArenaForAllocation() == nullptr && txn_id_ != nullptr) {
+ delete txn_id_;
+ }
+ txn_id_ = nullptr;
+}
UpdateVirtioScsiControllerRequest::UpdateVirtioScsiControllerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -3728,11 +4043,19 @@ UpdateVirtioScsiControllerRequest::UpdateVirtioScsiControllerRequest(const Updat
} else {
controller_ = nullptr;
}
+ if (from._internal_has_txn_id()) {
+ txn_id_ = new ::opi_api::common::v1::ObjectKey(*from.txn_id_);
+ } else {
+ txn_id_ = nullptr;
+ }
// @@protoc_insertion_point(copy_constructor:opi_api.storage.v1.UpdateVirtioScsiControllerRequest)
}
inline void UpdateVirtioScsiControllerRequest::SharedCtor() {
-controller_ = nullptr;
+::memset(reinterpret_cast(this) + static_cast(
+ reinterpret_cast(&controller_) - reinterpret_cast(this)),
+ 0, static_cast(reinterpret_cast